允许PM退回阅片任务到访视未提交状态
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
7ca7b4c378
commit
05ff472d01
|
@ -3663,4 +3663,12 @@ export function updateTrialUserRole(data) {
|
|||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
// 阅片任务退回
|
||||
export function visitImageBack(data) {
|
||||
return request({
|
||||
url: `/Patient/visitImageBack`,
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
|
@ -173,6 +173,9 @@
|
|||
:title="$t('trials:reading:button:uploadImages')" @click="
|
||||
handleCommand('getDownloadSubjectVisitStudyInfo', scope.row)
|
||||
" />
|
||||
<!--退回-->
|
||||
<el-button circle icon="el-icon-back" :loading="downloading" :title="$t('trials:reading:button:back')"
|
||||
@click="imageBack(scope.row)" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
@ -231,6 +234,7 @@ import { createImageShare, updateImageShare } from '@/api/share'
|
|||
import {
|
||||
getDownloadSubjectVisitStudyInfo,
|
||||
downloadImageSuccess,
|
||||
visitImageBack
|
||||
} from '@/api/trials.js'
|
||||
import BaseModel from '@/components/BaseModel'
|
||||
import moment from "moment";
|
||||
|
@ -321,6 +325,28 @@ export default {
|
|||
}
|
||||
},
|
||||
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() {
|
||||
try {
|
||||
let validate = await this.$refs.ruleForm.validate()
|
||||
|
|
Loading…
Reference in New Issue