From a2bca60d32a6492cb861b00c2f0450bcd89ed669 Mon Sep 17 00:00:00 2001 From: "15881625488@163.com" <15881625488@163.com> Date: Mon, 19 Jan 2026 21:15:45 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A[=E9=9D=9E=E5=AE=9E=E9=AA=8C?= =?UTF-8?q?=E7=AE=A1=E7=90=86]=E9=BA=BB=E7=B2=BE=E8=8D=AF=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=EF=BC=8C=E9=A2=84=E5=A1=AB=E5=A4=8D=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/business/form/drug/comp/ytbdList.vue | 21 +++++++++++++-------- src/views/business/form/nonTrial/comp/ytbdList.vue | 21 +++++++++++++-------- src/views/business/study/comp/ytbdList.vue | 2 +- 3 files changed, 27 insertions(+), 17 deletions(-) diff --git a/src/views/business/form/drug/comp/ytbdList.vue b/src/views/business/form/drug/comp/ytbdList.vue index a197cd7..b50978a 100644 --- a/src/views/business/form/drug/comp/ytbdList.vue +++ b/src/views/business/form/drug/comp/ytbdList.vue @@ -159,7 +159,7 @@ - + @@ -178,7 +178,7 @@ - + @@ -236,7 +236,7 @@ export default { return { formCount: 0, formFinishCount: 0, - formPreview: { + formDatePreview: { templateSn: null }, openPreview: false, @@ -303,12 +303,17 @@ export default { }) }, previewFzbd() { - let that = this - let _index = _.findIndex(this.formPreList, function (item) { - return item.id = that.formXz.formPreId + this.$modal.loading() + studyFormPre_info({ id: this.formXz.formPreId }).then(response => { + this.formDatePreview = _.merge({}, response.data, { + studySn: this.searchForm.studySn, + studyMc: this.searchForm.studyMc, + studyId: this.searchForm.studyId, + }) + this.openPreview = true + }).finally(() => { + this.$modal.closeLoading() }) - this.formPreview.templateSn = that.formPreList[_index].templateSn - this.openPreview = true }, saveCopy() { let that = this diff --git a/src/views/business/form/nonTrial/comp/ytbdList.vue b/src/views/business/form/nonTrial/comp/ytbdList.vue index 37cdc0f..7d83c55 100644 --- a/src/views/business/form/nonTrial/comp/ytbdList.vue +++ b/src/views/business/form/nonTrial/comp/ytbdList.vue @@ -160,7 +160,7 @@ - + @@ -179,7 +179,7 @@ - + @@ -237,7 +237,7 @@ export default { return { formCount: 0, formFinishCount: 0, - formPreview: { + formDatePreview: { templateSn: null }, openPreview: false, @@ -304,12 +304,17 @@ export default { }) }, previewFzbd() { - let that = this - let _index = _.findIndex(this.formPreList, function (item) { - return item.id = that.formXz.formPreId + this.$modal.loading() + studyFormPre_info({ id: this.formXz.formPreId }).then(response => { + this.formDatePreview = _.merge({}, response.data, { + studySn: this.searchForm.studySn, + studyMc: this.searchForm.studyMc, + studyId: this.searchForm.studyId, + }) + this.openPreview = true + }).finally(() => { + this.$modal.closeLoading() }) - this.formPreview.templateSn = that.formPreList[_index].templateSn - this.openPreview = true }, saveCopy() { let that = this diff --git a/src/views/business/study/comp/ytbdList.vue b/src/views/business/study/comp/ytbdList.vue index d3470bb..7380427 100644 --- a/src/views/business/study/comp/ytbdList.vue +++ b/src/views/business/study/comp/ytbdList.vue @@ -160,7 +160,7 @@ - +