From 7bbf60dd7cc26b2e3d0709397ae7fae9ca96a843 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Thu, 21 Mar 2024 14:15:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BD=B1=E5=83=8F=E8=B4=A8=E6=8E=A7=E5=AE=A1?= =?UTF-8?q?=E6=A0=B8=E5=88=A4=E6=96=AD=E6=98=AF=E5=90=A6=E6=8B=A5=E6=9C=89?= =?UTF-8?q?=E4=B8=8B=E4=B8=80=E4=BB=BB=E5=8A=A1=E9=80=BB=E8=BE=91=E5=8F=98?= =?UTF-8?q?=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../visit/qc-check/components/qualityAssurance.vue | 4 ++-- src/views/trials/trials-panel/visit/qc-check/index.vue | 10 ++++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) 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..bfd8d2f9 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,7 +1426,7 @@ export default { SubjectId: this.data.SubjectId }).then(res => { this.$emit('getList') - this.$emit('nextTask') + this.$emit('nextTask',res.Result.VisitId); }) }) } else { 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) {