diff --git a/src/views/trials/trials-panel/visit/qc-check/components/qualityAssurance.vue b/src/views/trials/trials-panel/visit/qc-check/components/qualityAssurance.vue index 365da61e..6021d0b3 100644 --- a/src/views/trials/trials-panel/visit/qc-check/components/qualityAssurance.vue +++ b/src/views/trials/trials-panel/visit/qc-check/components/qualityAssurance.vue @@ -1417,7 +1417,7 @@ export default { trialId: this.trialId, SubjectId: this.data.SubjectId }).then(res => { - if (res.Result) { + if (res.Result&&res.Result.VisitId) { this.$confirm(this.$t('trials:qcQuality:title:title2', '', { showCancelButton: false })).then(() => { @@ -1426,10 +1426,11 @@ export default { SubjectId: this.data.SubjectId }).then(res => { this.$emit('getList') - this.$emit('nextTask') + this.$emit('nextTask',res.Result.VisitId); }) }) } else { + this.$emit('getList') this.$alert('没有后续质控任务') } }) 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 c5ac6174..332b6862 100644 --- a/src/views/trials/trials-panel/visit/qc-check/index.vue +++ b/src/views/trials/trials-panel/visit/qc-check/index.vue @@ -923,9 +923,15 @@ export default { }) }).catch(() => {}) }, - nextTask() { + nextTask(visitId = null) { this.loading = true - getNextQCInfo({ trialId: this.trialId }).then(res => { + let obj = { + trialId: this.trialId + } + if(visitId){ + obj.visitId = visitId; + } + getNextQCInfo(obj).then(res => { this.loading = false this.qcVisible = false if (res.Result) {