Browse Source

修改问题

张保健 3 years ago
parent
commit
7397cafeca

+ 24 - 28
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

@@ -31,7 +31,7 @@
31 31
                   v-for="(item, index) in treatment_mode"
32 32
                   :label="item.name"
33 33
                   :value="item.id"
34
-                  :key="index + 1"
34
+                  :key="index + 'q'"
35 35
                 ></el-option>
36 36
               </el-select>
37 37
             </el-form-item>
@@ -83,7 +83,7 @@
83 83
                 <el-option :key="0" label="请选择" :value="0"></el-option>
84 84
                 <el-option
85 85
                   v-for="(option, index) in dialysate_formulation_options"
86
-                  :key="index + 1"
86
+                  :key="index + 'w'"
87 87
                   :label="option.name"
88 88
                   :value="option.id"
89 89
                 ></el-option>
@@ -99,7 +99,7 @@
99 99
             <el-form-item label="抗凝剂:">
100 100
               <el-select v-model="dialysisPrescription.anticoagulant" placeholder="请选择" style="width:100%;"  @change="changeThisAnticoagulant" >
101 101
                 <el-option :key="0" label="请选择" :value="0"></el-option>
102
-                <el-option v-for="(item, index) in anticoagulantsConfit" :label="item.name" :key="index + 1" :value="item.id" ></el-option>
102
+                <el-option v-for="(item, index) in anticoagulantsConfit" :label="item.name" :key="index + 'e'" :value="item.id" ></el-option>
103 103
               </el-select>
104 104
             </el-form-item>
105 105
           </el-col>
@@ -251,7 +251,7 @@
251 251
                 <el-option
252 252
                   v-for="(item, index) in dialyzerPerfusionApparatus"
253 253
                   :label="item.name"
254
-                  :key="index"
254
+                  :key="index+'r'"
255 255
                   :value="item.id"
256 256
                 ></el-option>
257 257
               </el-select>
@@ -270,7 +270,7 @@
270 270
                 <el-option
271 271
                   v-for="(item, index) in body_fluid_option"
272 272
                   :label="item.name"
273
-                  :key="index + 1"
273
+                  :key="index + 't'"
274 274
                   :value="item.id"
275 275
                 ></el-option>
276 276
               </el-select>
@@ -302,7 +302,7 @@
302 302
                 <el-option
303 303
                   v-for="(item, index) in special_medicine_option"
304 304
                   :label="item.name"
305
-                  :key="index + 1"
305
+                  :key="index + 'y'"
306 306
                   :value="item.id"
307 307
                 ></el-option>
308 308
               </el-select>
@@ -333,7 +333,7 @@
333 333
                 <el-option :key="0" label="请选择" :value="0"></el-option>
334 334
                 <el-option
335 335
                   v-for="(option, index) in displace_liqui_part_option"
336
-                  :key="index + 1"
336
+                  :key="index + 'u'"
337 337
                   :label="option.name"
338 338
                   :value="option.id"
339 339
                 ></el-option>
@@ -365,7 +365,7 @@
365 365
 
366 366
                 <el-option
367 367
                   v-for="(option, index) in blood_access_option"
368
-                  :key="index + 1"
368
+                  :key="index + 'i'"
369 369
                   :label="option.name"
370 370
                   :value="option.id"
371 371
                 ></el-option>
@@ -394,7 +394,7 @@
394 394
                 <el-option :key="0" label="请选择" :value="0"></el-option>
395 395
                 <el-option
396 396
                   v-for="(option, index) in niprocart_info"
397
-                  :key="index + 1"
397
+                  :key="index + 'p'"
398 398
                   :label="option.GoodInfo.specification_name"
399 399
                   :value="option.GoodInfo.id"
400 400
                 ></el-option>
@@ -415,7 +415,7 @@
415 415
 
416 416
                 <el-option
417 417
                   v-for="(option, index) in jms_info"
418
-                  :key="index + 1"
418
+                  :key="index + 'a'"
419 419
                   :label="option.GoodInfo.specification_name"
420 420
                   :value="option.GoodInfo.id"
421 421
                 ></el-option>
@@ -436,7 +436,7 @@
436 436
 
437 437
                 <el-option
438 438
                   v-for="(option, index) in fistula_needle_set_info"
439
-                  :key="index + 1"
439
+                  :key="index + 's'"
440 440
                   :label="option.GoodInfo.specification_name"
441 441
                   :value="option.GoodInfo.id"
442 442
                 ></el-option>
@@ -457,7 +457,7 @@
457 457
 
458 458
                 <el-option
459 459
                   v-for="(option, index) in fistula_needle_set_16_info"
460
-                  :key="index + 1"
460
+                  :key="index + 'd'"
461 461
                   :label="option.GoodInfo.specification_name"
462 462
                   :value="option.GoodInfo.id"
463 463
                 ></el-option>
@@ -478,7 +478,7 @@
478 478
 
479 479
                 <el-option
480 480
                   v-for="(option, index) in hemoperfusion_info"
481
-                  :key="index + 1"
481
+                  :key="index + 'f'"
482 482
                   :label="option.GoodInfo.specification_name"
483 483
                   :value="option.GoodInfo.id"
484 484
                 ></el-option>
@@ -499,7 +499,7 @@
499 499
 
500 500
                 <el-option
501 501
                   v-for="(option, index) in dialyser_sterilised_info"
502
-                  :key="index + 1"
502
+                  :key="index + 'g'"
503 503
                   :label="option.GoodInfo.specification_name"
504 504
                   :value="option.GoodInfo.id"
505 505
                 ></el-option>
@@ -520,7 +520,7 @@
520 520
 
521 521
                 <el-option
522 522
                   v-for="(option, index) in filtryzer_info"
523
-                  :key="index + 1"
523
+                  :key="index + 'h'"
524 524
                   :label="option.GoodInfo.specification_name"
525 525
                   :value="option.GoodInfo.id"
526 526
                 ></el-option>
@@ -556,7 +556,7 @@
556 556
 
557 557
                 <el-option
558 558
                   v-for="(option, index) in injector_info"
559
-                  :key="index + 1"
559
+                  :key="index + 'j'"
560 560
                   :label="option.GoodInfo.specification_name"
561 561
                   :value="option.GoodInfo.id"
562 562
                 ></el-option>
@@ -577,7 +577,7 @@
577 577
 
578 578
                 <el-option
579 579
                   v-for="(option, index) in bloodlines_info"
580
-                  :key="index + 1"
580
+                  :key="index + 'k'"
581 581
                   :label="option.GoodInfo.specification_name"
582 582
                   :value="option.GoodInfo.id"
583 583
                 ></el-option>
@@ -598,7 +598,7 @@
598 598
 
599 599
                 <el-option
600 600
                   v-for="(option, index) in tubingHemodialysis_info"
601
-                  :key="index + 1"
601
+                  :key="index + 'x'"
602 602
                   :label="option.GoodInfo.specification_name"
603 603
                   :value="option.GoodInfo.id"
604 604
                 ></el-option>
@@ -616,7 +616,7 @@
616 616
 
617 617
                 <el-option
618 618
                   v-for="(option, index) in safe_package_info"
619
-                  :key="index + 1"
619
+                  :key="index + 'z'"
620 620
                   :label="option.GoodInfo.specification_name"
621 621
                   :value="option.GoodInfo.id"
622 622
                 ></el-option>
@@ -634,7 +634,7 @@
634 634
 
635 635
                 <el-option
636 636
                   v-for="(option, index) in aliquid_info"
637
-                  :key="index + 1"
637
+                  :key="index + 'c'"
638 638
                   :label="option.GoodInfo.specification_name"
639 639
                   :value="option.GoodInfo.id"
640 640
                 ></el-option>
@@ -677,7 +677,7 @@
677 677
           style="display: flex;align-items: center"
678 678
           v-for="(advice, index) in targetAdvices"
679 679
           :label="advice.id"
680
-          :key="index"
680
+          :key="index+'q'"
681 681
           :value="advice.id"
682 682
           :name="advice.id"
683 683
         >
@@ -983,12 +983,11 @@ export default {
983 983
   },
984 984
   computed: {
985 985
     dialysis_date: function() {
986
-      if(this.$route.query.date){
986
+      if (this.$route.query.date) {
987 987
         return uParseTime(this.$route.query.date, '{y}/{m}/{d}')
988
-      }else{
988
+      } else {
989 989
         return this.record_date
990 990
       }
991
-      
992 991
     }
993 992
   },
994 993
   data() {
@@ -1189,7 +1188,7 @@ export default {
1189 1188
           arrFour.push(anticoagulantsConfitOne[item])
1190 1189
         }
1191 1190
       })
1192
-      console.log('arrFour', arrFour)
1191
+
1193 1192
       this.anticoagulantsConfit = arrFour
1194 1193
       this.dialysisList = this.devices
1195 1194
 
@@ -1611,9 +1610,6 @@ export default {
1611 1610
       return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
1612 1611
     },
1613 1612
     show(pre) {
1614
-      if (pre.id == 0) {
1615
-        this.dialysisPrescription.anticoagulant = '低分子肝素'
1616
-      }
1617 1613
       if (pre.anticoagulant == 3) {
1618 1614
         this.dialysisPrescription.anticoagulant = '低分子肝素'
1619 1615
       }

File diff suppressed because it is too large
+ 345 - 347
src/xt_pages/dialysis/template/DialysisPrintOrderSixteen.vue


+ 103 - 100
src/xt_pages/user/components/PatientSidebar.vue View File

@@ -54,18 +54,18 @@
54 54
   </div>
55 55
 </template>
56 56
 <script>
57
-import { fetchAllList, PostSearch } from "@/api/patient";
58
-import { jsGetAge, uParseTime } from "@/utils/tools";
57
+import { fetchAllList, PostSearch } from '@/api/patient'
58
+import { jsGetAge, uParseTime } from '@/utils/tools'
59 59
 
60 60
 export default {
61
-  name: "patientSidebar",
62
-  value: "",
61
+  name: 'patientSidebar',
62
+  value: '',
63 63
   searchArray: [],
64 64
   props: {
65 65
     id: 0,
66 66
     defaultActive: {
67 67
       type: String,
68
-      default: "1-1"
68
+      default: '1-1'
69 69
     }
70 70
   },
71 71
   data() {
@@ -74,186 +74,189 @@ export default {
74 74
       patientsList: null,
75 75
       currentPatient: {},
76 76
       selectID: 0,
77
-      keyword: "",
78
-      value: "",
79
-      treeKey: "",
77
+      keyword: '',
78
+      value: '',
79
+      treeKey: '',
80 80
       treeData: [
81 81
         {
82
-          name: "1",
83
-          label: "电子病历",
82
+          name: '1',
83
+          label: '电子病历',
84 84
           children: [
85 85
             {
86
-              name: "1-1",
87
-              label: "基本信息"
86
+              name: '1-1',
87
+              label: '基本信息'
88 88
             },
89 89
             {
90
-              name: "1-4",
91
-              label: "医嘱管理"
90
+              name: '1-4',
91
+              label: '医嘱管理'
92 92
             },
93 93
             {
94
-              name: "1-6",
95
-              label: "干体重"
94
+              name: '1-6',
95
+              label: '干体重'
96 96
             },
97 97
             {
98
-              name: "1-2",
99
-              label: "病程管理"
98
+              name: '1-2',
99
+              label: '病程管理'
100 100
             },
101 101
             {
102
-              name: "1-3",
103
-              label: "检验检查"
102
+              name: '1-3',
103
+              label: '检验检查'
104 104
             },
105 105
             {
106
-              name: "1-5",
107
-              label: "抢救记录"
106
+              name: '1-5',
107
+              label: '抢救记录'
108 108
             }
109 109
           ]
110 110
         },
111 111
         {
112
-          name: "2",
113
-          label: "透析管理",
112
+          name: '2',
113
+          label: '透析管理',
114 114
           children: [
115 115
             {
116
-              name: "2-1",
117
-              label: "长期透析处方"
116
+              name: '2-1',
117
+              label: '长期透析处方'
118 118
             },
119 119
             {
120
-              name: "2-2",
121
-              label: "透析记录"
120
+              name: '2-2',
121
+              label: '透析记录'
122 122
             },
123 123
             {
124
-              name: "2-4",
125
-              label: "排班信息"
124
+              name: '2-4',
125
+              label: '排班信息'
126 126
             },
127 127
             {
128
-              name: "2-5",
129
-              label: "宣教信息"
128
+              name: '2-5',
129
+              label: '宣教信息'
130 130
             }
131 131
           ]
132 132
         }
133 133
       ]
134
-    };
134
+    }
135 135
   },
136 136
   methods: {
137 137
     handleNodeClick(data) {
138
-      var name = data.name;
139
-      if (name == "1-1") {
140
-        this.$router.push({ path: "/patients/patient/" + this.id });
141
-      } else if (name == "1-2") {
142
-        this.$router.push({ path: "/patients/course?id=" + this.id });
143
-      } else if (name == "1-3") {
144
-        this.$router.push({ path: "/patients/inspection?id=" + this.id });
145
-      } else if (name == "1-4") {
138
+      var name = data.name
139
+      if (name == '1-1') {
140
+        this.$router.push({ path: '/patients/patient/' + this.id })
141
+      } else if (name == '1-2') {
142
+        this.$router.push({ path: '/patients/course?id=' + this.id })
143
+      } else if (name == '1-3') {
144
+        this.$router.push({ path: '/patients/inspection?id=' + this.id })
145
+      } else if (name == '1-4') {
146 146
         this.$router.push({
147
-          path: "/patients/patient/" + this.id + "/doctorAdvice"
148
-        });
149
-      } else if (name == "1-6") {
147
+          path: '/patients/patient/' + this.id + '/doctorAdvice'
148
+        })
149
+      } else if (name == '1-6') {
150 150
         this.$router.push({
151
-          path: "/patients/patient/" + this.id + "/dryWeight"
152
-        });
153
-      } else if (name == "1-5") {
154
-        this.$router.push({ path: "/patients/rescue?id=" + this.id });
155
-      } else if (name == "2-1") {
151
+          path: '/patients/patient/' + this.id + '/dryWeight'
152
+        })
153
+      } else if (name == '1-5') {
154
+        this.$router.push({ path: '/patients/rescue?id=' + this.id })
155
+      } else if (name == '2-1') {
156 156
         this.$router.push({
157
-          path: "/patients/patient/" + this.id + "/dialysisSolution"
158
-        });
159
-      } else if (name == "2-2") {
157
+          path: '/patients/patient/' + this.id + '/dialysisSolution'
158
+        })
159
+      } else if (name == '2-2') {
160 160
         this.$router.push({
161
-          path: "/patients/patient/" + this.id + "/dialysisRecord"
162
-        });
163
-      } else if (name == "2-4") {
161
+          path: '/patients/patient/' + this.id + '/dialysisRecord'
162
+        })
163
+      } else if (name == '2-4') {
164 164
         this.$router.push({
165
-          path: "/patients/patient/" + this.id + "/scheduling"
166
-        });
167
-      } else if (name == "2-5") {
165
+          path: '/patients/patient/' + this.id + '/scheduling'
166
+        })
167
+      } else if (name == '2-5') {
168 168
         this.$router.push({
169
-          path: "/patients/patient/" + this.id + "/proeducation"
170
-        });
169
+          path: '/patients/patient/' + this.id + '/proeducation'
170
+        })
171 171
       }
172 172
     },
173 173
     changePatient(value) {
174
-      console.log(value);
175
-      this.$router.push("/patients/patient/" + value);
174
+      console.log(value)
175
+      this.$router.push('/patients/patient/' + value)
176 176
     },
177 177
     getList() {
178 178
       fetchAllList().then(response => {
179 179
         if (response.data.state == 1) {
180
-          this.patientsList = response.data.data.patients;
181
-          var len = this.patientsList.length;
180
+          this.patientsList = response.data.data.patients
181
+          var len = this.patientsList.length
182 182
           if (len > 0) {
183 183
             for (let index = 0; index < len; index++) {
184 184
               if (this.patientsList[index].id == this.id) {
185
-                this.currentPatient = this.patientsList[index];
186
-                //console.log("curr", this.currentPatient);
187
-                this.selectID = this.patientsList[index].id;
188
-                this.$emit("tran-patient", this.currentPatient);
189
-                break;
185
+                this.currentPatient = this.patientsList[index]
186
+                // console.log("curr", this.currentPatient);
187
+                this.selectID = this.patientsList[index].id
188
+                this.$emit('tran-patient', this.currentPatient)
189
+                break
190 190
               }
191 191
             }
192 192
           }
193 193
         }
194
-      });
194
+      })
195 195
     },
196 196
     tranAge(birthday) {
197
-      var birth = uParseTime(birthday, "{y}-{m}-{d}");
198
-      return jsGetAge(birth, "-");
197
+      var birth = uParseTime(birthday, '{y}-{m}-{d}')
198
+      return jsGetAge(birth, '-')
199 199
     },
200 200
     tranSex(gender) {
201
-      var sex = "未知";
201
+      var sex = '未知'
202 202
       switch (gender) {
203 203
         case 1:
204
-          sex = "男";
205
-          break;
204
+          sex = '男'
205
+          break
206 206
         case 2:
207
-          sex = "女";
208
-          break;
207
+          sex = '女'
208
+          break
209 209
         default:
210
-          break;
210
+          break
211 211
       }
212
-      return sex;
212
+      return sex
213 213
     },
214 214
     querySearchAsync(keyword, cb) {
215
-      let key = "";
215
+      let key = ''
216 216
       if (keyword != undefined) {
217
-        key = keyword;
217
+        key = keyword
218 218
       }
219
-      let searchArray = [];
219
+      let searchArray = []
220 220
       PostSearch(key).then(response => {
221 221
         if (response.data.state == 1) {
222
-          searchArray = response.data.data.patient;
223
-          cb(searchArray);
222
+          searchArray = response.data.data.patient
223
+          cb(searchArray)
224 224
         } else {
225
-          this.$message.error(response.data.msg);
226
-          cb([]);
225
+          this.$message.error(response.data.msg)
226
+          cb([])
227 227
         }
228
-      });
228
+      })
229 229
     },
230 230
     handleSelect(val) {
231
-      this.$router.push("/patients/patient/" + val.id);
231
+      this.$router.push('/patients/patient/' + val.id)
232 232
     },
233 233
     getAge: function(val) {
234
-      var thisLen = val.id_card_no.length;
235
-      var birth = "";
234
+      if (val.id_card_no == undefined) {
235
+        return false
236
+      }
237
+      var thisLen = val.id_card_no.length
238
+      var birth = ''
236 239
       if (thisLen == 15) {
237
-        birth = "19" + val.id_card_no.substr(6, 6);
240
+        birth = '19' + val.id_card_no.substr(6, 6)
238 241
       } else {
239
-        birth = val.id_card_no.substr(6, 8);
242
+        birth = val.id_card_no.substr(6, 8)
240 243
       }
241 244
       var birthtwo =
242 245
         birth.substr(0, 4) +
243
-        "-" +
246
+        '-' +
244 247
         birth.substr(4, 2) +
245
-        "-" +
246
-        birth.substr(6, 2);
248
+        '-' +
249
+        birth.substr(6, 2)
247 250
 
248
-      var age = jsGetAge(birthtwo, "-");
249
-      return age;
251
+      var age = jsGetAge(birthtwo, '-')
252
+      return age
250 253
     }
251 254
   },
252 255
   created() {
253
-    this.treeKey = this.defaultActive;
254
-    this.getList();
256
+    this.treeKey = this.defaultActive
257
+    this.getList()
255 258
   }
256
-};
259
+}
257 260
 </script>
258 261
 
259 262
 <style>

File diff suppressed because it is too large
+ 560 - 562
src/xt_pages/user/dialysisSolution.vue