diff --git a/src/views/trials/trials-panel/visit/qc-check/index.vue b/src/views/trials/trials-panel/visit/qc-check/index.vue index 40998e2c..d63381b7 100644 --- a/src/views/trials/trials-panel/visit/qc-check/index.vue +++ b/src/views/trials/trials-panel/visit/qc-check/index.vue @@ -812,10 +812,25 @@ export default { .catch(() => { }) }, // 复审 - reviewTask(row) { + async reviewTask(row) { if (!this.OtherInfo.IsQCQuestionConfirmed) return this.$alert(this.$t("trials:qcCheck:alert:questionNoConfirm")) - this.rowData = { ...row } - this.qcVisible = true + this.loading = true + let res = await takeOrReleaseQCTask(row.TrialId, row.Id, true) + this.loading = false + if (res.IsSuccess) { + this.rowData = { ...row } + this.qcVisible = true + } else { + if (res.Code === 5 && res.ErrorMessage) { + this.$confirm(res.ErrorMessage, { + type: 'warning', + showCancelButton: false, + callback: (action) => { }, + }) + this.getList() + } + } + }, // 初审 handlePrimaryQC(row) {