From c9e41d009cf2c476bee50c5030e8ae199e51e594 Mon Sep 17 00:00:00 2001 From: bianyaqi Date: Mon, 12 Jun 2023 16:41:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=AA=E9=81=93=E5=86=B2=E6=B4=97=E8=A1=A8?= =?UTF-8?q?=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 | 2 +- .../views/modules/formList/Lacrimal.vue | 224 +++++++++++++++--- 2 files changed, 197 insertions(+), 29 deletions(-) diff --git a/src/components/360View/medicalRecord/index.vue b/src/components/360View/medicalRecord/index.vue index c39550e..0d1ef12 100644 --- a/src/components/360View/medicalRecord/index.vue +++ b/src/components/360View/medicalRecord/index.vue @@ -108,7 +108,7 @@ :is-platform="isPlatform" :patient-detail="patientData" :case-id="id" - @handleSaveTable="updateForm" + @handleSaveTable="saveFormData" @formDelete="formDelete" />
- 左眼: + 右眼:
- 泪小点进针, - 反流(自 - 泪小点反流),患者自诉咽部 - 液体, + + + + 泪小点进针, + + + + 反流(自 + + + + 泪小点反流),患者自诉咽部 + + + + 液体, 分泌物。
- 泪小点进针, - 反流(自 - 泪小点反流),患者自诉咽部 - 液体, + + + + 泪小点进针, + + + + 反流(自 + + + + 泪小点反流),患者自诉咽部 + + + + 液体, 分泌物。
- 右眼: + 左眼:
- 泪小点进针, - 反流(自 - 泪小点反流),患者自诉咽部 - 液体, + + + + 泪小点进针, + + + + 反流(自 + + + + 泪小点反流),患者自诉咽部 + + + + 液体, 分泌物。
- 泪小点进针, - 反流(自 - 泪小点反流),患者自诉咽部 - 液体, + + + + 泪小点进针, + + + + 反流(自 + + + + 泪小点反流),患者自诉咽部 + + + + 液体, 分泌物。
@@ -92,6 +220,27 @@ export default { print: { id: 'lacrimal' }, + options: [ + { + label: '上', + value: 1 + }, + { + label: '下', + value: 2 + } + ], + reOptions: [ + { + label: '有', + value: 3 + }, + { + label: '无', + value: 4 + } + ], + orgin: '', confirmData: { patientName: '', operator: '', @@ -119,21 +268,37 @@ export default { } } }, + watch: { + caseId(val) { + if (val) { + this.queryFormData() + } + } + }, created() { - this.confirmData.patientName = this.patientDetail.patientName - const userData = JSON.parse(window.sessionStorage.getItem('qg-userData')) - this.confirmData.operator = userData.signImgBase + this.orgin = JSON.parse(JSON.stringify(this.confirmData)) + this.queryFormData() }, methods: { // 保存 handleSaveTable() { - // this.confirmData.jzNumber = window.sessionStorage.getItem('jzNumber') - // this.$http.post('/mzbl/saveMzblJgshzl', { - // caseId: this.caseId, - // ...this.confirmData - // }).then(() => { - // this.$emit('handleSaveTable') - // }) + const data = JSON.stringify(this.confirmData) + this.$emit('handleSaveTable', data) + }, + queryFormData() { + this.$http.get('/case/getCaseById', { params: { + id: this.caseId + }}).then(data => { + const detail = data.data.data + if (detail.jsonText) { + this.confirmData = JSON.parse(detail.jsonText) + } else { + this.confirmData = JSON.parse(JSON.stringify(this.orgin)) + this.confirmData.patientName = this.patientDetail.patientName + const userData = JSON.parse(window.sessionStorage.getItem('qg-userData')) + this.confirmData.operator = userData.signImgBase + } + }) }, // 删除 formDelete() { @@ -202,4 +367,7 @@ export default { ::v-deep .el-input__prefix{ display: none; } +::v-deep .el-icon-arrow-up{ + display: none; +}