允许PM退回阅片任务到访视未提交状态
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2025-09-24 15:54:19 +08:00
parent 7ca7b4c378
commit 05ff472d01
2 changed files with 34 additions and 0 deletions

View File

@ -3664,3 +3664,11 @@ export function updateTrialUserRole(data) {
data data
}) })
} }
// 阅片任务退回
export function visitImageBack(data) {
return request({
url: `/Patient/visitImageBack`,
method: 'put',
data
})
}

View File

@ -173,6 +173,9 @@
:title="$t('trials:reading:button:uploadImages')" @click=" :title="$t('trials:reading:button:uploadImages')" @click="
handleCommand('getDownloadSubjectVisitStudyInfo', scope.row) handleCommand('getDownloadSubjectVisitStudyInfo', scope.row)
" /> " />
<!--退回-->
<el-button circle icon="el-icon-back" :loading="downloading" :title="$t('trials:reading:button:back')"
@click="imageBack(scope.row)" />
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -231,6 +234,7 @@ import { createImageShare, updateImageShare } from '@/api/share'
import { import {
getDownloadSubjectVisitStudyInfo, getDownloadSubjectVisitStudyInfo,
downloadImageSuccess, downloadImageSuccess,
visitImageBack
} from '@/api/trials.js' } from '@/api/trials.js'
import BaseModel from '@/components/BaseModel' import BaseModel from '@/components/BaseModel'
import moment from "moment"; import moment from "moment";
@ -321,6 +325,28 @@ export default {
} }
}, },
methods: { methods: {
async imageBack(row) {
try {
let confirm = await this.$confirm(this.$t('trials:trials-panel:reading:confirm:imageBack'), '', {
type: 'warning'
})
if (!confirm) return false
let data = {
TrialId: this.$route.query.trialId,
SubjectId: row.SubjectId,
SubjectVisitId: row.SourceSubjectVisitId
}
this.loading = true
let res = await visitImageBack(data)
this.loading = false
if (res.IsSuccess) {
this.getList()
}
} catch (err) {
this.loading = false
console.log(err)
}
},
async updateImageShare() { async updateImageShare() {
try { try {
let validate = await this.$refs.ruleForm.validate() let validate = await this.$refs.ruleForm.validate()