From ef0e53d9033da57cc21145adb40436689df264c6 Mon Sep 17 00:00:00 2001 From: bianyaqi Date: Mon, 24 Apr 2023 17:23:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A8=E5=8D=95=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../360View/medicalRecord/index.vue | 64 +-- src/page-subspecialty/views/main-sidebar.vue | 4 +- .../modules/formList/InformedConsent.vue | 508 ++++++++++++------ .../views/modules/formList/laserSurgery.vue | 276 ++++++---- .../views/modules/formList/mraForm.vue | 28 +- .../views/modules/formList/reportForm.vue | 150 +++++- 6 files changed, 670 insertions(+), 360 deletions(-) diff --git a/src/components/360View/medicalRecord/index.vue b/src/components/360View/medicalRecord/index.vue index cfd08b9..3f3362f 100644 --- a/src/components/360View/medicalRecord/index.vue +++ b/src/components/360View/medicalRecord/index.vue @@ -37,7 +37,7 @@ :only-read="onlyRead" :is-platform="isPlatform" :patient-detail="patientData" - :json-text="jsonText" + :case-id="id" @handleSaveTable="updateForm" @formDelete="formDelete" /> @@ -47,7 +47,7 @@ :only-read="onlyRead" :is-platform="isPlatform" :patient-detail="patientData" - :json-text="jsonText" + :case-id="id" @handleSaveTable="updateForm" @formDelete="formDelete" /> @@ -57,7 +57,7 @@ :only-read="onlyRead" :is-platform="isPlatform" :patient-detail="patientData" - :json-text="jsonText" + :case-id="id" @handleSaveTable="updateForm" @formDelete="formDelete" /> @@ -67,7 +67,7 @@ :only-read="onlyRead" :is-platform="isPlatform" :patient-detail="patientData" - :json-text="jsonText" + :case-id="id" @handleSaveTable="updateForm" @formDelete="formDelete" /> @@ -129,8 +129,7 @@ export default { formList: [], defaultChecked: [], formType: '门诊', - patientData: {}, - jsonText: '' + patientData: {} } }, created() { @@ -151,7 +150,6 @@ export default { this.id = item.id this.name = item.name this.caseId = item.id - this.jsonText = item.jsonText this.isPlatform = this.isSearch === item.platform return } @@ -160,7 +158,6 @@ export default { this.id = item.id this.name = item.name this.caseId = item.id - this.jsonText = item.jsonText this.isPlatform = this.isSearch === item.platform }) }, @@ -197,28 +194,8 @@ export default { this.patientData = data.data.data }) }, - updateForm(data) { - if (data) { - this.jsonText = JSON.stringify(data) - } - this.saveFormData(this.jsonText) - }, - async saveFormData(jsonText) { - const params = { - flag: 8, - name: this.name, - jsonText, - patientId: this.patientId, - id: this.id, - platform: this.isSearch - } - const { data: res } = await this.$http.post('/case/update', params) - if (res.code === 0) { - this.$message.success('保存成功') - this.getFormList('update') - } else { - this.$message.error(res.msg) - } + updateForm() { + this.getFormList('update') }, addRecord(name) { const date = this.$moment().format('YYYY-MM-DD HH:mm:ss') @@ -248,16 +225,24 @@ export default { }) }, // 删除表单 - formDelete() { - const params = { - id: this.id + formDelete(val) { + if (!val) { + switch (this.name) { + case '眼科激光手术患者知情同意书': + this.$refs.informedConsent.formDelete() + break + case '报告': + this.$refs.reportForm.formDelete() + break + case '眼底血管造影知情同意书': + this.$refs.mraForm.formDelete() + break + case '眼科激光手术治疗': + this.$refs.laserSurgery.formDelete() + } + } else { + this.getFormList() } - this.$confirmFun('你确定要删除吗?').then(() => { - this.$http.post('/case/delete', params).then(() => { - this.getFormList() - this.$message.success('删除成功') - }) - }) }, async getFormList(mode) { const { data: res } = await this.$http.get('/patient/view/getCases', { @@ -274,7 +259,6 @@ export default { this.name = this.formList[0].name this.id = this.formList[0].id this.curIndex = 0 - this.jsonText = this.formList[0].jsonText this.isPlatform = this.isSearch === this.formList[0].platform } else { this.name = '' diff --git a/src/page-subspecialty/views/main-sidebar.vue b/src/page-subspecialty/views/main-sidebar.vue index bf58393..4958368 100644 --- a/src/page-subspecialty/views/main-sidebar.vue +++ b/src/page-subspecialty/views/main-sidebar.vue @@ -53,8 +53,8 @@ export default { } }, created() { - const defauleActiveIndex = window.localStorage.getItem('defauleActiveIndex') - ? window.localStorage.getItem('defauleActiveIndex') : window.SITE_CONFIG.menuList[0].children[0].id + const defauleActiveIndex = window.sessionStorage.getItem('defauleActiveIndex') + ? window.sessionStorage.getItem('defauleActiveIndex') : window.SITE_CONFIG.menuList[0].children[0].id setTimeout(() => { this.$store.state.sidebarMenuList = window.SITE_CONFIG.menuList }, 200) diff --git a/src/page-subspecialty/views/modules/formList/InformedConsent.vue b/src/page-subspecialty/views/modules/formList/InformedConsent.vue index a19689a..c5bbfca 100644 --- a/src/page-subspecialty/views/modules/formList/InformedConsent.vue +++ b/src/page-subspecialty/views/modules/formList/InformedConsent.vue @@ -15,19 +15,19 @@

-
姓名:
-
年龄:
-
性别:
-
眼别:
+
姓名:
+
年龄:
+
性别:
+
眼别:
一、术前诊断:
-
+
{{ `${index+1}. ${item.name}:` }} - +