From bd9b31d1ce27e68e6c6a432581fab430e367ff87 Mon Sep 17 00:00:00 2001 From: newPeter7 Date: Tue, 11 Apr 2023 14:13:40 +0800 Subject: [PATCH] peter --- .../360View/commonForm/optometryForm.vue | 211 ++++++++---------- .../360View/commonForm/threeVision.vue | 2 - 2 files changed, 98 insertions(+), 115 deletions(-) diff --git a/src/components/360View/commonForm/optometryForm.vue b/src/components/360View/commonForm/optometryForm.vue index b11778a..88cfa85 100644 --- a/src/components/360View/commonForm/optometryForm.vue +++ b/src/components/360View/commonForm/optometryForm.vue @@ -13,12 +13,11 @@ 验光报告单

- 登记号: - 姓名: - 性别: - 年龄: - 屈光发育档案: - 档案号: + 登记号: + 姓名: + 性别: + 年龄: + 屈光发育档案:
@@ -29,11 +28,6 @@ 瞳孔
-
-
- 检查方法 -
-
右眼 @@ -49,11 +43,11 @@ 右眼
-
-
- 左眼 -
-
+ + + + +
视光师: @@ -75,6 +69,12 @@
最终处方 +
+
+ +
{{ item.name }}
+
+

{{ scope.row.name }}

@@ -96,24 +96,6 @@
-
-
-
- - - - - - - -
-
-
@@ -129,28 +111,14 @@
-
-
- -
-
裸眼视力
-
-
-
- -
{{ item.name }}
-
-
- - - - +
+ 左眼
@@ -162,14 +130,14 @@

- +

-
+
@@ -187,6 +155,11 @@ 球镜(DS)
+
+
+ 检查方法 +
+
@@ -202,22 +175,11 @@
-
+
- +
- - - - - - - - - - - @@ -232,6 +194,20 @@ 柱镜(DC)
+
+
+
+ + + +
+
+
@@ -247,9 +223,9 @@
-
+
- +
@@ -281,9 +257,9 @@
-
+
- +
@@ -315,9 +291,9 @@
-
+
- +
@@ -344,9 +320,9 @@
-
+
- +
@@ -373,9 +349,9 @@
-
+
- +
@@ -387,6 +363,11 @@ 棱镜
+
+
+ +
+
@@ -428,8 +409,7 @@ export default { patientName: '', patientSex: '', patientAge: '', - file: '', - fileNUm: '' + file: '' }, originTableData: [], tableData: [ @@ -441,6 +421,7 @@ export default { }, { name: '1', value: '', + examValue: '', pupil: [ { name: '正常瞳孔', @@ -464,10 +445,6 @@ export default { isSelect: false } ], - type: '' - }, { - name: '2', - value: '', examine: [ { name: '检影', @@ -514,9 +491,6 @@ export default { isSelect: false } ], - type: '' - }, { - name: '5', type: '', a: '', b: '', @@ -526,7 +500,7 @@ export default { f: '', g: '' }, { - name: '6', + name: '5', type: '', a: '', b: '', @@ -535,7 +509,7 @@ export default { e: '', f: '', g: '' - }, { + },{ name: '配镜建议', suggest: [ { @@ -574,9 +548,9 @@ export default { this.ws.close() }, mounted() { + this.originTableData = JSON.parse(JSON.stringify(this.tableData)) this.setSign() this.initWebSoket() - this.originTableData = JSON.parse(JSON.stringify(this.tableData)) this.getPatientData() }, methods: { @@ -604,10 +578,9 @@ export default { patientName: '', patientSex: '', patientAge: '', - file: '', - fileNUm: '' + file: '' } - this.tableData = this.originTableData + this.tableData = Object.assign([], this.originTableData) this.setSign() this.getPatientData() }, @@ -615,7 +588,7 @@ export default { const ods = this.tableData.filter(item => item.name === '3') const oss = this.tableData.filter(item => item.name === '4') this.tableData.forEach(item => { - if (item.name === '5') { + if (item.name === '最终处方') { item.a = ods[0].a item.b = ods[0].b item.c = ods[0].c @@ -624,7 +597,7 @@ export default { item.f = ods[0].f item.g = ods[0].g } - if (item.name === '6') { + if (item.name === '5') { item.a = oss[0].a item.b = oss[0].b item.c = oss[0].c @@ -673,7 +646,7 @@ export default { that.lockReconnect = false }, 5000) }, - reset() { // 重置心跳 + resetHeart() { // 重置心跳 const that = this // 清除时间 clearTimeout(that.timeoutObj) @@ -719,8 +692,9 @@ export default { } this.ws.onmessage = function(msg) { const message = JSON.parse(msg.data) + // const data = JSON.parse(msg.data) // const message = JSON.parse(data.msgTxt) - console.log(message) + // console.log(message) self.tableData.forEach(item => { if (item.name == '3') { item.a = message.RData.DS @@ -736,7 +710,7 @@ export default { item.e = message.LData.ADD } }) - self.reset() + self.resetHeart() } }, handleSaveTable() { @@ -751,31 +725,37 @@ export default { }, objectSpanMethod({ row, column, rowIndex, columnIndex }) { if (columnIndex === 0) { - if (rowIndex === 0 || rowIndex === 3 || rowIndex === 6) { + if (rowIndex === 0 || rowIndex === 5) { // [0,0][0,3][0,6] 合并单元格 3行合并1列 + return { + rowspan: 2, + colspan: 1 + } + } + if (rowIndex === 2) { return { rowspan: 3, colspan: 1 } } // [0,11] 最后一行 9列合并城1行 - if (rowIndex === 11) { + if (rowIndex === 9) { return { rowspan: 1, colspan: 9 } } } else if (columnIndex === 1) { - if (rowIndex === 6 || rowIndex === 9 || rowIndex === 10) { + if (rowIndex === 7 || rowIndex === 8) { return { rowspan: 1, colspan: 8 } } - if (rowIndex === 1 || rowIndex === 2) { + if (rowIndex === 1) { return { rowspan: 1, - colspan: 7 + colspan: 3 } } } else if (columnIndex === 3) { @@ -785,6 +765,12 @@ export default { colspan: 2 } } + if (rowIndex === 1) { + return { + rowspan: 1, + colspan: 3 + } + } } else if (columnIndex === 5) { if (rowIndex === 0) { return { @@ -792,8 +778,8 @@ export default { colspan: 3 } } - } else if (rowIndex === 6 || rowIndex === 9 || rowIndex === 10) { - if (columnIndex === 2 || columnIndex === 3 || columnIndex === 4 || columnIndex === 5 || columnIndex === 3) { + } else if (rowIndex === 7 || rowIndex === 8) { + if (columnIndex === 2 || columnIndex === 3 || columnIndex === 4 || columnIndex === 5 || columnIndex === 6) { return { rowspan: 0, colspan: 0 @@ -805,7 +791,7 @@ export default { } - + diff --git a/src/components/360View/commonForm/threeVision.vue b/src/components/360View/commonForm/threeVision.vue index 318b201..f262732 100644 --- a/src/components/360View/commonForm/threeVision.vue +++ b/src/components/360View/commonForm/threeVision.vue @@ -673,8 +673,6 @@ export default { height: 26px !important; line-height: 26px !important; text-align: center; - } - .el-input__inner { border-bottom: 1px solid #ccc; border-radius: 0; padding: 0;