指控添加跳过功能
continuous-integration/drone/push Build is passing Details

uat_us
caiyiling 2026-04-21 17:04:57 +08:00
parent c4fd8c3ea3
commit c101302cca
1 changed files with 40 additions and 0 deletions

View File

@ -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')