李帅 3 månader sedan
förälder
incheckning
7ca3cbbc8a

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

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

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

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