From 8a96b489c0849a2ddd7bdf50aabf1d827943144a Mon Sep 17 00:00:00 2001 From: bianyaqi Date: Wed, 24 May 2023 19:31:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B2=BB=E7=96=97=E8=A1=A8=E5=8D=95=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/formList/InformedConsent.vue | 2 ++ .../views/modules/formList/laserSurgery.vue | 24 ++++++++----------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/src/page-subspecialty/views/modules/formList/InformedConsent.vue b/src/page-subspecialty/views/modules/formList/InformedConsent.vue index 2ba7642..e49d6be 100644 --- a/src/page-subspecialty/views/modules/formList/InformedConsent.vue +++ b/src/page-subspecialty/views/modules/formList/InformedConsent.vue @@ -165,6 +165,7 @@ export default { }, data() { return { + origin: '', confirmData: { bnz: '', coats: '', @@ -368,6 +369,7 @@ export default { } }, created() { + this.origin = JSON.parse(JSON.stringify(this.confirmData)) // 患者信息带入 this.confirmData.patientName = this.patientDetail.patientName this.confirmData.patientAge = this.patientDetail.patientAge diff --git a/src/page-subspecialty/views/modules/formList/laserSurgery.vue b/src/page-subspecialty/views/modules/formList/laserSurgery.vue index 7205cbf..a6aac85 100644 --- a/src/page-subspecialty/views/modules/formList/laserSurgery.vue +++ b/src/page-subspecialty/views/modules/formList/laserSurgery.vue @@ -286,8 +286,14 @@ export default { } }, created() { + this.confirmData.patientName = this.patientDetail.patientName + this.confirmData.patientAge = this.patientDetail.patientAge + this.confirmData.patientSex = this.patientDetail.patientSex + this.confirmData.patientId = this.patientDetail.patientId + this.confirmData.patientAddress = this.patientDetail.patientAddress + this.confirmData.patientPhone = this.patientDetail.patientPhone + this.confirmData.operateDate = new Date() // 患者信息带入 - this.origin = JSON.parse(JSON.stringify(this.confirmData)) this.getConfirmDetail() this.queryProject() this.$store.commit('initPlugin') @@ -365,19 +371,9 @@ export default { caseId: this.caseId }}).then(data => { const detail = data.data.data - if (detail.jzNumber) { - this.confirmData = { ...detail } - } else { - this.confirmData = this.origin - this.queryDiagnostic() - this.confirmData.patientName = this.patientDetail.patientName - this.confirmData.patientAge = this.patientDetail.patientAge - this.confirmData.patientSex = this.patientDetail.patientSex - this.confirmData.patientId = this.patientDetail.patientId - this.confirmData.patientAddress = this.patientDetail.patientAddress - this.confirmData.patientPhone = this.patientDetail.patientPhone - this.confirmData.operateDate = new Date() - this.confirmData.jzNumber = '' + this.confirmData = { ...detail } + this.queryDiagnostic() + if (!detail.jzNumber) { if (this.confirmData.eyeType === 'OD') { this.confirmData.jgzlSyt = odOrOs.od } else {