李帅 3 months ago
parent
commit
7ca3cbbc8a

+ 1 - 0
src/views/patientCenter/listToDetailsDialog.vue

@@ -221,6 +221,7 @@ export default {
221
           })
221
           })
222
           num += number.reduce((a, b) => a + b, 0)
222
           num += number.reduce((a, b) => a + b, 0)
223
         })
223
         })
224
+        this.listToDetails.netReceiptsCost = num
224
         return num
225
         return num
225
       } else {
226
       } else {
226
         return 0
227
         return 0

+ 27 - 16
src/views/patientCenter/medical/addMedicalTreeDialog.vue

@@ -22,7 +22,7 @@
22
         ref="tree"
22
         ref="tree"
23
         draggable
23
         draggable
24
         :allow-drop="allowDrop"
24
         :allow-drop="allowDrop"
25
-        style="max-height: 90%;overflow-y: auto;"
25
+        style="max-height: 90%; overflow-y: auto"
26
       >
26
       >
27
       </el-tree>
27
       </el-tree>
28
 
28
 
@@ -35,7 +35,11 @@
35
 </template>
35
 </template>
36
 
36
 
37
 <script>
37
 <script>
38
-import { diagnosisTypeTree , listToPatientId , diagnosisTypeOrderDoctor} from '@/api/allApi.js'
38
+import {
39
+  diagnosisTypeTree,
40
+  listToPatientId,
41
+  diagnosisTypeOrderDoctor
42
+} from '@/api/allApi.js'
39
 
43
 
40
 export default {
44
 export default {
41
   name: 'EitcErmPcAddMedicalTreeDialog',
45
   name: 'EitcErmPcAddMedicalTreeDialog',
@@ -46,18 +50,18 @@ export default {
46
     },
50
     },
47
     ids: {
51
     ids: {
48
       type: String,
52
       type: String,
49
-      default: ""
50
-    },
53
+      default: ''
54
+    }
51
   },
55
   },
52
   data() {
56
   data() {
53
     return {
57
     return {
54
       deptOptions: [],
58
       deptOptions: [],
55
-      filterText:"",
59
+      filterText: '',
56
       defaultProps: {
60
       defaultProps: {
57
         children: 'childrenList',
61
         children: 'childrenList',
58
         label: 'diagnosisName'
62
         label: 'diagnosisName'
59
       },
63
       },
60
-      diagnosisTypeId: "",
64
+      diagnosisTypeId: '',
61
       tableData: {}
65
       tableData: {}
62
     }
66
     }
63
   },
67
   },
@@ -81,32 +85,35 @@ export default {
81
       return data.diagnosisName.indexOf(value) !== -1
85
       return data.diagnosisName.indexOf(value) !== -1
82
     },
86
     },
83
     beforeClose() {
87
     beforeClose() {
84
-      this.$emit('cancelAll',"3")
88
+      this.$emit('cancelAll', '3')
85
     },
89
     },
86
     handleNodeClick(data, node, self) {
90
     handleNodeClick(data, node, self) {
87
       this.diagnosisTypeId = data.id
91
       this.diagnosisTypeId = data.id
88
     },
92
     },
89
-    cancel(){
90
-      this.$emit('cancelAll',"3")
93
+    cancel() {
94
+      this.$emit('cancelAll', '3')
91
     },
95
     },
92
     async doSubmit() {
96
     async doSubmit() {
93
-      if (!this.diagnosisTypeId) return this.$message.error("请选择诊断类型")
94
-      const res = await listToPatientId({diagnosisTypeId:this.diagnosisTypeId , patientId:this.ids})
97
+      if (!this.diagnosisTypeId) return this.$message.error('请选择诊断类型')
98
+      const res = await listToPatientId({
99
+        diagnosisTypeId: this.diagnosisTypeId,
100
+        patientId: this.ids
101
+      })
95
       if (res.code !== 200) return this.$message.error(res.msg)
102
       if (res.code !== 200) return this.$message.error(res.msg)
96
       this.tableData = res.data
103
       this.tableData = res.data
97
-      this.$emit('cancelAll',"3")
104
+      this.$emit('cancelAll', '3')
98
       // this.$emit('changeWidth',true)
105
       // this.$emit('changeWidth',true)
99
-      this.$emit('addYaList',this.tableData)
106
+      this.$emit('addYaList', this.tableData)
100
 
107
 
101
       await diagnosisTypeOrderDoctor(this.deptOptions)
108
       await diagnosisTypeOrderDoctor(this.deptOptions)
102
     },
109
     },
103
     allowDrop(draggingNode, dropNode, type) {
110
     allowDrop(draggingNode, dropNode, type) {
104
       //注掉的是同级拖拽
111
       //注掉的是同级拖拽
105
       if (draggingNode.level === dropNode.level) {
112
       if (draggingNode.level === dropNode.level) {
106
-          return type === 'prev' || type === 'next'
113
+        return type === 'prev' || type === 'next'
107
       } else {
114
       } else {
108
-          // 不同级进行处理
109
-          return false
115
+        // 不同级进行处理
116
+        return false
110
       }
117
       }
111
     }
118
     }
112
   }
119
   }
@@ -119,4 +126,8 @@ export default {
119
   bottom: 5px;
126
   bottom: 5px;
120
   right: 5px;
127
   right: 5px;
121
 }
128
 }
129
+
130
+::v-deep .el-tree-node:focus > .el-tree-node__content {
131
+  background-color: #ccc;
132
+}
122
 </style>
133
 </style>