指控添加跳过功能
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
c4fd8c3ea3
commit
c101302cca
|
|
@ -898,6 +898,10 @@
|
|||
@click="handleQCState(8)">
|
||||
{{ $t('trials:audit:button:auditPassed') }}
|
||||
</el-button>
|
||||
<el-button size="small" type="primary" round
|
||||
@click="skipTask">
|
||||
跳过
|
||||
</el-button>
|
||||
<!-- 审核终止 -->
|
||||
<!-- <el-button :disabled="isAudit" size="small" type="primary" round @click="handleQCState(7)">-->
|
||||
<!-- {{ $t('trials:audit:button:auditFailed') }}-->
|
||||
|
|
@ -2129,6 +2133,42 @@ export default {
|
|||
this.$refs['signForm'].btnLoading = false
|
||||
})
|
||||
},
|
||||
async skipTask() {
|
||||
try {
|
||||
let res = await getNextIQCQuality({
|
||||
trialId: this.trialId,
|
||||
SubjectId: this.data.SubjectId,
|
||||
SubjectVisitId: this.data.Id,
|
||||
IsSkipCurrentVisit: true
|
||||
})
|
||||
|
||||
if (res.Result && res.Result.VisitId) {
|
||||
let confirm = await this.$confirm(
|
||||
this.$t('trials:qcQuality:title:title2', '', {
|
||||
showCancelButton: false,
|
||||
})
|
||||
)
|
||||
if (confirm !== 'confirm') return
|
||||
await collectNextIQCQuality({
|
||||
trialId: this.trialId,
|
||||
SubjectId: this.data.SubjectId,
|
||||
SubjectVisitId: this.data.Id
|
||||
})
|
||||
this.$emit('getList')
|
||||
this.$emit('nextTask', res.Result.VisitId)
|
||||
} else {
|
||||
// 没有后续质控任务
|
||||
this.$emit('getList')
|
||||
let confirm = await this.$confirm(this.$t('trials:qcQuality:title:closeQCDialog'))
|
||||
if (confirm !== 'confirm') return
|
||||
this.$emit('close')
|
||||
}
|
||||
} catch(e) {
|
||||
console.log(e)
|
||||
this.$emit('getList')
|
||||
}
|
||||
|
||||
},
|
||||
getNextQCInfo() {
|
||||
// '是否确认进入下一个质控任务?'
|
||||
var message = this.$t('trials:qcQuality:title:title2')
|
||||
|
|
|
|||
Loading…
Reference in New Issue