csx 5 years ago
parent
commit
4630badc3d

+ 55 - 16
src/pages/main/DialysisArea.vue View File

59
             {{ selected_date_str }}
59
             {{ selected_date_str }}
60
             <span class="iconfont">&#xe74a;</span>
60
             <span class="iconfont">&#xe74a;</span>
61
           </li>
61
           </li>
62
+          <li @click="mypatient()">
63
+            我的病人
64
+            <span class="iconfont">&#xe74a;</span>
65
+          </li>
62
         </ul>
66
         </ul>
63
       </div>
67
       </div>
64
       <div class="stateBox">
68
       <div class="stateBox">
128
   data() {
132
   data() {
129
     return {
133
     return {
130
       loading: false,
134
       loading: false,
131
-
135
+      user_id: 0,
132
       networkStates: true,
136
       networkStates: true,
133
       timer: null,
137
       timer: null,
138
+      ismypatient: false,
134
       selected_date: this.$store.getters.app.dialysis_area.schedule_date, //new Date(),
139
       selected_date: this.$store.getters.app.dialysis_area.schedule_date, //new Date(),
135
       schedual_types: [
140
       schedual_types: [
136
         { value: 0, text: "全部班", select: true },
141
         { value: 0, text: "全部班", select: true },
195
         return schedules;
200
         return schedules;
196
       }
201
       }
197
 
202
 
203
+       if (this.ismypatient) {
204
+        var schedules = [];
205
+        for (let o_i = 0; o_i < this.dialysis_scheduals.length; o_i++) {
206
+          const scheduleInfo = this.dialysis_scheduals[o_i];
207
+          var originSchedules = scheduleInfo.scheduals;
208
+          if (originSchedules.length == 0) {
209
+            continue;
210
+          }
211
+          var filtedSchedules = [];
212
+          for (let s_i = 0; s_i < originSchedules.length; s_i++) {
213
+            const schedule = originSchedules[s_i];
214
+            if (schedule.dialysis_order.start_nurse == this.user_id ) {
215
+              filtedSchedules.push(schedule);
216
+              // break;
217
+            }
218
+          }
219
+          if (filtedSchedules.length > 0) {
220
+            schedules.push({
221
+              zone_name: scheduleInfo.zone_name,
222
+              scheduals: filtedSchedules
223
+            });
224
+          }
225
+        }
226
+        return schedules;
227
+      }
228
+
198
       var zone_selected = this.zone_selected;
229
       var zone_selected = this.zone_selected;
199
       var timetype_selected = this.schedual_type_selected;
230
       var timetype_selected = this.schedual_type_selected;
200
-      if (
201
-        (zone_selected == 0 && timetype_selected == 0) ||
202
-        this.zones.length <= 1
203
-      ) {
231
+      if ( (zone_selected == 0 && timetype_selected == 0) || this.zones.length <= 1 ) {
204
         return this.dialysis_scheduals;
232
         return this.dialysis_scheduals;
205
       }
233
       }
206
 
234
 
212
         var filtedSchedules = [];
240
         var filtedSchedules = [];
213
         for (let s_i = 0; s_i < originSchedules.length; s_i++) {
241
         for (let s_i = 0; s_i < originSchedules.length; s_i++) {
214
           const schedule = originSchedules[s_i];
242
           const schedule = originSchedules[s_i];
215
-          if (
216
-            zone_name.length == 0 ||
217
-            (zone_name.length > 0 &&
218
-              zone_name == schedule.device_number.zone.name)
219
-          ) {
220
-            if (
221
-              timetype_selected == 0 ||
222
-              schedule.schedule_type == timetype_selected
223
-            ) {
224
-              filtedSchedules.push(schedule);
243
+           if(this.ismypatient){
244
+             if ( schedule.dialysis_order.creator == this.user_id){
245
+               filtedSchedules.push(schedule);
246
+             }
247
+           }
248
+          else {
249
+            if  ( zone_name.length == 0 || (zone_name.length > 0 && zone_name == schedule.device_number.zone.name) ) {
250
+              if ( timetype_selected == 0 || schedule.schedule_type == timetype_selected ) {
251
+                filtedSchedules.push(schedule);
252
+              }
225
             }
253
             }
226
           }
254
           }
227
         }
255
         }
232
           });
260
           });
233
         }
261
         }
234
       }
262
       }
263
+      this.ismypatient = false
235
       return schedules;
264
       return schedules;
236
     }
265
     }
237
   },
266
   },
238
   created() {
267
   created() {
268
+    this.user_id = this.$store.getters.user.user.id;
239
     this.requestDialysisScheduals();
269
     this.requestDialysisScheduals();
240
   },
270
   },
241
   mounted() {
271
   mounted() {
248
     this.timer = null;
278
     this.timer = null;
249
   },
279
   },
250
   methods: {
280
   methods: {
281
+    mypatient(){
282
+      this.search_keyword = '';
283
+      this.zone_selected = 0;
284
+      this.schedual_type_selected = 0;
285
+      this.ismypatient = true;
286
+    },
251
     reloads: function() {
287
     reloads: function() {
252
       this.reload();
288
       this.reload();
253
     },
289
     },
254
     handletimeType: function(index) {
290
     handletimeType: function(index) {
291
+      this.ismypatient = false
255
       this.sch_type_options_visible = false;
292
       this.sch_type_options_visible = false;
256
       this.schedual_type_selected = index;
293
       this.schedual_type_selected = index;
257
       this.$emit("clear_search_keyword");
294
       this.$emit("clear_search_keyword");
262
       });
299
       });
263
     },
300
     },
264
     handleZoneChange: function(index) {
301
     handleZoneChange: function(index) {
302
+      this.ismypatient = false
265
       this.zone_options_visible = false;
303
       this.zone_options_visible = false;
266
       this.zone_selected = index;
304
       this.zone_selected = index;
267
       this.$emit("clear_search_keyword");
305
       this.$emit("clear_search_keyword");
272
       });
310
       });
273
     },
311
     },
274
     handleScheduleDateChange: function(date) {
312
     handleScheduleDateChange: function(date) {
313
+      this.ismypatient = false
275
       this.zone_selected = 0;
314
       this.zone_selected = 0;
276
       this.schedual_type_selected = 0;
315
       this.schedual_type_selected = 0;
277
 
316
 
286
 
325
 
287
     requestDialysisScheduals() {
326
     requestDialysisScheduals() {
288
       // this.$toast.loading({forbidClick: true, duration: 0})
327
       // this.$toast.loading({forbidClick: true, duration: 0})
289
-      this.loading = true;
328
+      // this.loading = true;
290
       var type = 0;
329
       var type = 0;
291
       getDialysisScheduals({ type: type, date: this.selected_date_str })
330
       getDialysisScheduals({ type: type, date: this.selected_date_str })
292
         .then(rs => {
331
         .then(rs => {

+ 157 - 79
src/pages/main/WaitingArea.vue View File

27
                 <li
27
                 <li
28
                   v-for="(option, index) in zone_options"
28
                   v-for="(option, index) in zone_options"
29
                   :key="index"
29
                   :key="index"
30
-                  @click="handleZoneChange(index)"
30
+                  @click="handleZoneChange(index,option)"
31
                   :class="zone_selected == index ? 'tick' : ''"
31
                   :class="zone_selected == index ? 'tick' : ''"
32
                 >
32
                 >
33
                   {{ option.text }}
33
                   {{ option.text }}
135
       select_index: 0,
135
       select_index: 0,
136
       zone_selected: 0,
136
       zone_selected: 0,
137
       time_selected: 0,
137
       time_selected: 0,
138
+      cur_zone_selected: 0,
138
       networkStates: true,
139
       networkStates: true,
139
       scheduals: [],
140
       scheduals: [],
140
 
141
 
159
   },
160
   },
160
   computed: {
161
   computed: {
161
     filtedScheduals: function() {
162
     filtedScheduals: function() {
163
+
162
       var search_keyword = this.search_keyword;
164
       var search_keyword = this.search_keyword;
163
       if (this.search_keyword.length > 0) {
165
       if (this.search_keyword.length > 0) {
164
         var scheduals = [];
166
         var scheduals = [];
219
       //   }
221
       //   }
220
       //   return schedules
222
       //   return schedules
221
       // }
223
       // }
222
-
224
+      
223
       var zone_selected = this.zone_selected;
225
       var zone_selected = this.zone_selected;
224
       var timetype_selected = this.time_selected;
226
       var timetype_selected = this.time_selected;
227
+      var assessment_before_dislysis_count = 0;
228
+      var prescription_count = 0;
225
       if (zone_selected != 0 || timetype_selected != 0) {
229
       if (zone_selected != 0 || timetype_selected != 0) {
226
-        var zone_name =
227
-          zone_selected == 0 ? "" : this.zone_options[zone_selected].text;
228
-        var schedules = [];
229
-        for (let o_i = 0; o_i < this.zone_scheduals.length; o_i++) {
230
-          const scheduleInfo = this.zone_scheduals[o_i];
231
-          var originSchedules = scheduleInfo.scheduals;
232
-          var filtedSchedules = [];
233
-          for (let s_i = 0; s_i < originSchedules.length; s_i++) {
234
-            const schedule = originSchedules[s_i];
235
-            if (
236
-              zone_name.length == 0 ||
237
-              (zone_name.length > 0 &&
238
-                zone_name == schedule.device_number.zone.name)
239
-            ) {
240
-              if (
241
-                timetype_selected == 0 ||
242
-                schedule.schedule_type == timetype_selected
243
-              ) {
244
-                filtedSchedules.push(schedule);
230
+        // var zone_name = zone_selected == 0 ? "" : this.zone_options[zone_selected].text;
231
+        // var schedules = [];
232
+        // for (let o_i = 0; o_i < this.zone_scheduals.length; o_i++) {
233
+        //   const scheduleInfo = this.zone_scheduals[o_i];
234
+        //   var originSchedules = scheduleInfo.scheduals;
235
+        //   var filtedSchedules = [];
236
+        //   for (let s_i = 0; s_i < originSchedules.length; s_i++) {
237
+        //     const schedule = originSchedules[s_i];
238
+        //     if ( zone_name.length == 0 || (zone_name.length > 0 && zone_name == schedule.device_number.zone.name)) {
239
+        //       if ( timetype_selected == 0 ||  schedule.schedule_type == timetype_selected ) {
240
+        //         filtedSchedules.push(schedule);
241
+        //       }
242
+        //     }
243
+        //   }
244
+        //   if (filtedSchedules.length > 0) {
245
+        //     schedules.push({
246
+        //       zone_name: scheduleInfo.zone_name,
247
+        //       scheduals: filtedSchedules
248
+        //     });
249
+        //   }
250
+        // }
251
+       
252
+        // return schedules;
253
+        if (this.select_index == 2) {
254
+          var scheduals = [];
255
+          for (let index = 0; index < this.scheduals.length; index++) {
256
+            const schedual = this.scheduals[index];
257
+            if (schedual.assessment_before_dislysis == null || schedual.assessment_before_dislysis.weighing_before == 0) {
258
+              if(this.cur_zone_selected > 0 && schedual.device_number.zone.id != this.cur_zone_selected) {
259
+                continue
245
               }
260
               }
261
+              if(timetype_selected > 0 && schedual.schedule_type != timetype_selected) {
262
+                continue
263
+              }
264
+              scheduals.push(schedual);
246
             }
265
             }
247
           }
266
           }
248
-          if (filtedSchedules.length > 0) {
249
-            schedules.push({
250
-              zone_name: scheduleInfo.zone_name,
251
-              scheduals: filtedSchedules
252
-            });
267
+          return this.processScheduals(scheduals);
268
+          // return scheduals;
269
+        } else if (this.select_index == 1) {
270
+          var scheduals = [];
271
+          for (let index = 0; index < this.scheduals.length; index++) {
272
+            const schedual = this.scheduals[index];
273
+            if (schedual.prescription == null || schedual.prescription.creater == 0) {
274
+              if(this.cur_zone_selected > 0 && schedual.device_number.zone.id != this.cur_zone_selected) {
275
+                continue
276
+              }
277
+              if(timetype_selected > 0 && schedual.schedule_type != timetype_selected) {
278
+                continue
279
+              }
280
+              scheduals.push(schedual);
281
+            }
253
           }
282
           }
283
+          // return scheduals;
284
+          return this.processScheduals(scheduals);
285
+        } else {
286
+          // return this.zone_scheduals;
287
+          var scheduals = [];
288
+          for (let index = 0; index < this.scheduals.length; index++) {
289
+            const schedual = this.scheduals[index];
290
+            if (schedual.dialysis_order == null) {
291
+              if(this.cur_zone_selected > 0 && schedual.device_number.zone.id != this.cur_zone_selected) {
292
+                continue
293
+              }
294
+              if(timetype_selected > 0 && schedual.schedule_type != timetype_selected) {
295
+                continue
296
+              }
297
+              scheduals.push(schedual);
298
+            }
299
+          }
300
+          // return scheduals;
301
+          return this.processScheduals(scheduals);
254
         }
302
         }
255
-        return schedules;
256
       }
303
       }
257
 
304
 
258
       if (this.select_index == 2) {
305
       if (this.select_index == 2) {
259
         var scheduals = [];
306
         var scheduals = [];
260
         for (let index = 0; index < this.scheduals.length; index++) {
307
         for (let index = 0; index < this.scheduals.length; index++) {
261
           const schedual = this.scheduals[index];
308
           const schedual = this.scheduals[index];
262
-          if (schedual.assessment_before_dislysis == null) {
309
+          if (schedual.assessment_before_dislysis == null || schedual.assessment_before_dislysis.weighing_before == 0) {
263
             scheduals.push(schedual);
310
             scheduals.push(schedual);
264
           }
311
           }
265
         }
312
         }
269
         var scheduals = [];
316
         var scheduals = [];
270
         for (let index = 0; index < this.scheduals.length; index++) {
317
         for (let index = 0; index < this.scheduals.length; index++) {
271
           const schedual = this.scheduals[index];
318
           const schedual = this.scheduals[index];
272
-          if (
273
-            schedual.assessment_before_dislysis == null &&
274
-            schedual.prescription == null
275
-          ) {
319
+          if (schedual.prescription == null || schedual.prescription.creater == 0) {
276
             scheduals.push(schedual);
320
             scheduals.push(schedual);
277
           }
321
           }
278
         }
322
         }
279
         // return scheduals;
323
         // return scheduals;
280
         return this.processScheduals(scheduals);
324
         return this.processScheduals(scheduals);
281
       } else {
325
       } else {
282
-        return this.zone_scheduals;
326
+        // return this.zone_scheduals;
327
+        var scheduals = [];
328
+        for (let index = 0; index < this.scheduals.length; index++) {
329
+          const schedual = this.scheduals[index];
330
+          if (schedual.dialysis_order == null) {
331
+            scheduals.push(schedual);
332
+          }
333
+        }
334
+        // return scheduals;
335
+        return this.processScheduals(scheduals);
283
       }
336
       }
284
     }
337
     }
285
   },
338
   },
312
   beforeDestroy() {
365
   beforeDestroy() {
313
     clearInterval(this.timer);
366
     clearInterval(this.timer);
314
     this.timer = null;
367
     this.timer = null;
315
-    // this.$once('hook:beforeDestroy', () => {
316
-    //   clearInterval(this.timer);
317
-    // })
368
+    this.$once('hook:beforeDestroy', () => {
369
+      clearInterval(this.timer);
370
+    })
318
   },
371
   },
319
   methods: {
372
   methods: {
373
+    processScheduals: function(scheduals) {
374
+      var zoneMap = {};
375
+      var schedualMap = {};
376
+      var assessment_before_dislysis_count = 0;
377
+      var prescription_count = 0;
378
+      for (let index = 0; index < scheduals.length; index++) {
379
+        const schedual = scheduals[index];
380
+        if (schedualMap[schedual.device_number.zone.id] == null) {
381
+          schedualMap[schedual.device_number.zone.id] = [];
382
+        }
383
+        if (this.select_index == 1) {
384
+            if(schedual.prescription == null || schedual.prescription.creater == 0){
385
+            schedualMap[schedual.device_number.zone.id].push(schedual);
386
+            prescription_count++
387
+          }
388
+        } else if (this.select_index == 2){
389
+            if(schedual.assessment_before_dislysis == null || schedual.assessment_before_dislysis.weighing_before == 0){
390
+            schedualMap[schedual.device_number.zone.id].push(schedual);
391
+            assessment_before_dislysis_count++
392
+          }
393
+        } else {
394
+          if(schedual.dialysis_order == null){
395
+            schedualMap[schedual.device_number.zone.id].push(schedual);
396
+          }
397
+        }
398
+        if (zoneMap[schedual.device_number.zone.id] == null) {
399
+          zoneMap[schedual.device_number.zone.id] = schedual.device_number.zone;
400
+        }
401
+      }
402
+
403
+      if (this.select_index == 1) {
404
+        this.menuList[1].count = prescription_count;
405
+      }
406
+      if (this.select_index == 2) {
407
+        this.menuList[2].count = assessment_before_dislysis_count;
408
+      }
409
+            
410
+
411
+      var zones = [];
412
+      // zones.push({ value: 0, text: "全部分区" })
413
+      for (var zoneId in zoneMap) {
414
+        zones.push({ id: zoneMap[zoneId].id, name: zoneMap[zoneId].name });
415
+      }
416
+
417
+      zones = zones.sort(function(a, b) {
418
+        return a.id > b.id;
419
+      });
420
+      // this.zones = zones
421
+
422
+      var zone_scheduals = [];
423
+      for (let index = 0; index < zones.length; index++) {
424
+        const zone = zones[index];
425
+        var scheduals = schedualMap[zone.id];
426
+        zone_scheduals.push({
427
+          zone_id: zone.id,
428
+          zone_name: zone.name,
429
+
430
+          scheduals: scheduals
431
+        });
432
+      }
433
+      // this.zone_scheduals = zone_scheduals;
434
+      return zone_scheduals;
435
+    },
320
     reloads: function() {
436
     reloads: function() {
321
       this.reload();
437
       this.reload();
322
     },
438
     },
333
       setSelectedTimesDataConfigList(this.time_selected);
449
       setSelectedTimesDataConfigList(this.time_selected);
334
       setWaitTypeSelectedConfig(tabIndex);
450
       setWaitTypeSelectedConfig(tabIndex);
335
     },
451
     },
336
-    handleZoneChange: function(index) {
452
+    handleZoneChange: function(index,zone) {
337
       this.zone_options_visible = false;
453
       this.zone_options_visible = false;
338
       this.zone_selected = index;
454
       this.zone_selected = index;
339
-      this.select_index = -1;
455
+      this.cur_zone_selected = zone.value
456
+      // this.select_index = -1;
340
       setSelectedAreaDataConfigList(index.toString());
457
       setSelectedAreaDataConfigList(index.toString());
341
     },
458
     },
342
     handleTimeChange: function(index) {
459
     handleTimeChange: function(index) {
343
       this.time_selected = index;
460
       this.time_selected = index;
344
-      this.select_index = -1;
461
+      // this.select_index = -1;
345
       this.time_options_visible = false;
462
       this.time_options_visible = false;
346
       setSelectedTimesDataConfigList(index.toString());
463
       setSelectedTimesDataConfigList(index.toString());
347
     },
464
     },
348
 
465
 
349
     requestScheduals() {
466
     requestScheduals() {
350
-      this.loading = true;
467
+      // this.loading = true;
351
       var date = parseTime(Date.parse(new Date()), "{y}-{m}-{d}");
468
       var date = parseTime(Date.parse(new Date()), "{y}-{m}-{d}");
352
       getWaitingScheduals({ date: date })
469
       getWaitingScheduals({ date: date })
353
         .then(rs => {
470
         .then(rs => {
419
       //   return a.value > b.value
536
       //   return a.value > b.value
420
       // })
537
       // })
421
       return zones;
538
       return zones;
422
-    },
423
-    processScheduals: function(scheduals) {
424
-      var zoneMap = {};
425
-      var schedualMap = {};
426
-      for (let index = 0; index < scheduals.length; index++) {
427
-        const schedual = scheduals[index];
428
-        if (schedualMap[schedual.device_number.zone.id] == null) {
429
-          schedualMap[schedual.device_number.zone.id] = [];
430
-        }
431
-        schedualMap[schedual.device_number.zone.id].push(schedual);
432
-        if (zoneMap[schedual.device_number.zone.id] == null) {
433
-          zoneMap[schedual.device_number.zone.id] = schedual.device_number.zone;
434
-        }
435
-      }
436
-
437
-      var zones = [];
438
-      // zones.push({ value: 0, text: "全部分区" })
439
-      for (var zoneId in zoneMap) {
440
-        zones.push({ id: zoneMap[zoneId].id, name: zoneMap[zoneId].name });
441
-      }
442
-
443
-      zones = zones.sort(function(a, b) {
444
-        return a.id > b.id;
445
-      });
446
-      // this.zones = zones
447
-
448
-      var zone_scheduals = [];
449
-      for (let index = 0; index < zones.length; index++) {
450
-        const zone = zones[index];
451
-        var scheduals = schedualMap[zone.id];
452
-        zone_scheduals.push({
453
-          zone_id: zone.id,
454
-          zone_name: zone.name,
455
-
456
-          scheduals: scheduals
457
-        });
458
-      }
459
-      // this.zone_scheduals = zone_scheduals;
460
-      return zone_scheduals;
461
     }
539
     }
462
   }
540
   }
463
 };
541
 };

+ 8 - 0
src/pages/main/dialog/AssessmentDialog.vue View File

20
             <input type="tel" @focus="inputFocus" v-model="formValue.dry_weight"/>
20
             <input type="tel" @focus="inputFocus" v-model="formValue.dry_weight"/>
21
           </div>
21
           </div>
22
         </div>
22
         </div>
23
+        <div class="item" v-if="isShow('衣物重')">
24
+          <h2 class="name">衣物重(kg)</h2>
25
+          <div class="content">
26
+            <input type="tel" @focus="inputFocus" v-model="formValue.additional_weight"/>
27
+          </div>
28
+        </div>
23
         <div class="item" v-if="isShow('体温')">
29
         <div class="item" v-if="isShow('体温')">
24
           <h2 class="name">体温(℃)</h2>
30
           <h2 class="name">体温(℃)</h2>
25
           <div class="content">
31
           <div class="content">
380
         formValue: {
386
         formValue: {
381
           weight_before: '',
387
           weight_before: '',
382
           dry_weight: '',
388
           dry_weight: '',
389
+          AdditionalWeight :'',
383
           temperature: '',
390
           temperature: '',
384
           systolic_blood_pressure: '',
391
           systolic_blood_pressure: '',
385
           diastolic_blood_pressure: '',
392
           diastolic_blood_pressure: '',
1175
       this.formValue = this.predialysis
1182
       this.formValue = this.predialysis
1176
       if (this.predialysis.id == undefined && this.last_predialysis.id != undefined) {
1183
       if (this.predialysis.id == undefined && this.last_predialysis.id != undefined) {
1177
         this.$set(this.formValue, 'dry_weight', this.last_predialysis['dry_weight'].toString())
1184
         this.$set(this.formValue, 'dry_weight', this.last_predialysis['dry_weight'].toString())
1185
+        this.$set(this.formValue, 'additional_weight', this.last_predialysis['additional_weight'].toString())
1178
         this.$set(this.formValue, 'internal_fistula', this.last_predialysis['internal_fistula'])
1186
         this.$set(this.formValue, 'internal_fistula', this.last_predialysis['internal_fistula'])
1179
         this.$set(this.formValue, 'internal_fistula_skin', this.last_predialysis['internal_fistula_skin'])
1187
         this.$set(this.formValue, 'internal_fistula_skin', this.last_predialysis['internal_fistula_skin'])
1180
         this.$set(this.formValue, 'blood_access_part_id', this.last_predialysis['blood_access_part_id'])
1188
         this.$set(this.formValue, 'blood_access_part_id', this.last_predialysis['blood_access_part_id'])

+ 168 - 82
src/pages/main/dialog/PrescriptionDialog.vue View File

5
       <div class="DialogTit">
5
       <div class="DialogTit">
6
         <span @click="close()" class="iconfont">&#xe6e9;</span>
6
         <span @click="close()" class="iconfont">&#xe6e9;</span>
7
         <h1 class="name">透析处方</h1>
7
         <h1 class="name">透析处方</h1>
8
+        <botton @click="showmsgtip">{{patient.name}}  [透析号 {{patient.dialysis_no}} ]</botton>
8
         <span @click="commitInfo" class="success" v-if="isPermission()">完成</span>
9
         <span @click="commitInfo" class="success" v-if="isPermission()">完成</span>
9
         <span @click="commitInfo" class="success" v-if="!isPermission()"></span>
10
         <span @click="commitInfo" class="success" v-if="!isPermission()"></span>
10
 
11
 
198
           </div>
199
           </div>
199
         </div>
200
         </div>
200
 
201
 
201
-
202
         <div @click="showSubMenu('special_medicine')" class="item" ref="special_medicine" v-if="isShow('透析前使用特殊药物')">
202
         <div @click="showSubMenu('special_medicine')" class="item" ref="special_medicine" v-if="isShow('透析前使用特殊药物')">
203
           <label class="name" for="knj">透析前使用特殊药物</label>
203
           <label class="name" for="knj">透析前使用特殊药物</label>
204
           <div class="content">
204
           <div class="content">
236
           </div>
236
           </div>
237
         </div>
237
         </div>
238
 
238
 
239
-
240
         <div @click="showSubMenu('blood_access')" class="item" ref="blood_access" v-if="isShow('血管通路')">
239
         <div @click="showSubMenu('blood_access')" class="item" ref="blood_access" v-if="isShow('血管通路')">
241
           <label class="name" for="knj">血管通路</label>
240
           <label class="name" for="knj">血管通路</label>
242
           <div class="content">
241
           <div class="content">
252
           </div>
251
           </div>
253
         </div>
252
         </div>
254
 
253
 
255
-
256
         <div @click="dialysisGoodsClick()" class="item" ref="consumable_material" v-if="config.is_open == 1">
254
         <div @click="dialysisGoodsClick()" class="item" ref="consumable_material" v-if="config.is_open == 1">
257
           <label class="name" for="knj">透析耗材</label>
255
           <label class="name" for="knj">透析耗材</label>
258
           <div class="content">
256
           <div class="content">
261
           </div>
259
           </div>
262
         </div>
260
         </div>
263
 
261
 
264
-
265
         <div class="item" style="display: none">
262
         <div class="item" style="display: none">
266
           <label class="name" for="dtl">医生签名</label>
263
           <label class="name" for="dtl">医生签名</label>
267
           <div class="content">
264
           <div class="content">
271
           </div>
268
           </div>
272
         </div>
269
         </div>
273
 
270
 
274
-
275
         <div class="line"></div>
271
         <div class="line"></div>
276
         <div>
272
         <div>
277
           <div class="item">
273
           <div class="item">
315
     <long-advice-sub-menu :visibility="advice_visibility" v-on:menu-cancle-three="menuCancleThree"
311
     <long-advice-sub-menu :visibility="advice_visibility" v-on:menu-cancle-three="menuCancleThree"
316
                           v-on:menu-comfirm-three="menuComfirmThree" :propsForm="advicePropForm"></long-advice-sub-menu>
312
                           v-on:menu-comfirm-three="menuComfirmThree" :propsForm="advicePropForm"></long-advice-sub-menu>
317
 
313
 
314
+    <msg-tip style="width:500px;" :visibility="msgtip_visibility" :predialysis="predialysis"
315
+                           :last_predialysis="last_predialysis"
316
+                           :record="record"
317
+                           :last_record="last_record"
318
+                           :patient_prop="patient"
319
+                           :prescription_prop="prescription_prop"
320
+                           v-on:menu-msg-tip="menuMsgTip"></msg-tip>
318
 
321
 
319
   </div>
322
   </div>
320
 </template>
323
 </template>
329
 
332
 
330
   import {parseTime} from '@/utils'
333
   import {parseTime} from '@/utils'
331
   import LongAdviceSubMenu from './subMenu/LongAdviceSubMenu'
334
   import LongAdviceSubMenu from './subMenu/LongAdviceSubMenu'
335
+  import MsgTip from './subMenu/MsgTip'
332
 
336
 
333
   export default {
337
   export default {
334
     name: 'PrescriptionDialog',
338
     name: 'PrescriptionDialog',
339
           return new Array()
343
           return new Array()
340
         }
344
         }
341
       },
345
       },
346
+      predialysis:{
347
+        type:Object
348
+      },
349
+      last_predialysis: {
350
+        type:Object
351
+      },
352
+      record:{
353
+        type:Object
354
+      },
355
+      last_record: {
356
+        type:Object
357
+      },
342
       patient_prop: {
358
       patient_prop: {
343
         type: Object
359
         type: Object
344
       },
360
       },
390
     },
406
     },
391
     data () {
407
     data () {
392
       return {
408
       return {
393
-        is_pre: 0,
409
+        is_pre:0,
394
         loading: false,
410
         loading: false,
395
         signUrl: '',
411
         signUrl: '',
396
         isShowDesc: true,
412
         isShowDesc: true,
397
         advice_visibility: false,
413
         advice_visibility: false,
414
+        msgtip_visibility: false,
398
         time: '03:00',
415
         time: '03:00',
399
         timeValue: '',
416
         timeValue: '',
400
         isShowSign: false,
417
         isShowSign: false,
509
       }
526
       }
510
     },
527
     },
511
 
528
 
512
-    methods: {
513
-      isPermission () {
514
-        if (this.$store.getters.user.user.user_type == 3 && (this.$store.getters.user.template_info.template_id == 2 || this.$store.getters.user.template_info.template_id == 6)) {
515
-          return false
516
-        } else {
517
-          return true
518
-        }
519
-      },
520
-      isShow (name) {
521
-        var filedList = this.$store.getters.user.fileds
529
+
530
+  methods: {
531
+    showmsgtip(){
532
+        this.msgtip_visibility = true
533
+        this.isShowDialog = false
534
+
535
+    },
536
+    isPermission () {
537
+      if (this.$store.getters.user.user.user_type == 3 && (this.$store.getters.user.template_info.template_id == 2 || this.$store.getters.user.template_info.template_id == 6)) {
538
+        return false
539
+      } else{
540
+        return true
541
+      }
542
+    },
543
+    isShow (name) {
544
+      var filedList = this.$store.getters.user.fileds
522
 
545
 
523
         for (let i = 0; i < filedList.length; i++) {
546
         for (let i = 0; i < filedList.length; i++) {
524
           if (filedList[i].module == 1 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
547
           if (filedList[i].module == 1 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
714
         this.isShowDialog = true
737
         this.isShowDialog = true
715
 
738
 
716
       },
739
       },
717
-      menuComfirmThree: function (targetAdvices) {
740
+    menuMsgTip: function () {
741
+      this.msgtip_visibility = false
742
+      this.isShowDialog = true
743
+    },
744
+
745
+    menuComfirmThree: function (targetAdvices) {
718
         if (targetAdvices.length > 0) {
746
         if (targetAdvices.length > 0) {
719
           let params = {
747
           let params = {
720
             advices: targetAdvices,
748
             advices: targetAdvices,
733
 
761
 
734
             }
762
             }
735
           })
763
           })
736
-        }
737
 
764
 
738
-        if (this.is_pre == 1) {
739
-          Toast.loading({forbidClick: true, duration: 0})
740
-          let ParamsQuery = this.dialysisPrescription
741
-          ParamsQuery['patient'] = this.$route.query.patient_id
742
-          ParamsQuery['record_date'] = this.record_date
743
-          commitDialysisPrescription(ParamsQuery).then(response => {
744
-            if (response.data.state == 0) {
745
-              Toast.fail(response.data.msg)
746
-              return false
747
-            } else {
748
-              Toast.success('提交成功')
749
-              this.$emit('prescription', response.data.data.prescription)
750
-              this.finish()
751
-            }
752
-          })
765
+          if (this.is_pre == 1) {
766
+            Toast.loading({forbidClick: true, duration: 0})
767
+            let ParamsQuery = this.dialysisPrescription
768
+            ParamsQuery['patient'] = this.$route.query.patient_id
769
+            ParamsQuery['record_date'] = this.record_date
770
+            commitDialysisPrescription(ParamsQuery).then(response => {
771
+              if (response.data.state == 0) {
772
+                Toast.fail(response.data.msg)
773
+                return false
774
+              } else {
775
+                Toast.success('提交成功')
776
+
777
+                this.$emit('prescription', response.data.data.prescription)
778
+                this.finish()
779
+              }
780
+            })
781
+
782
+          } else if (this.is_pre == 2) {
783
+            Toast.loading({forbidClick: true, duration: 0})
784
+            let ParamsQuery = this.dialysisPrescription
785
+            ParamsQuery['patient'] = this.$route.query.patient_id
786
+            ParamsQuery['record_date'] = this.record_date
787
+            postSolution(ParamsQuery).then(response => {
788
+              if (response.data.state == 0) {
789
+                Toast.fail(response.data.msg)
790
+                return false
791
+              } else {
792
+                Toast.success('提交成功')
793
+
794
+                this.$emit('advice')
795
+                this.$emit('longSolution', response.data.data.solution)
796
+                this.$emit('prescription', response.data.data.prescription)
797
+                this.finish()
798
+              }
799
+            })
800
+          }
801
+        }else{
802
+
803
+          if (this.is_pre == 1) {
804
+            Toast.loading({forbidClick: true, duration: 0})
805
+            let ParamsQuery = this.dialysisPrescription
806
+            ParamsQuery['patient'] = this.$route.query.patient_id
807
+            ParamsQuery['record_date'] = this.record_date
808
+            commitDialysisPrescription(ParamsQuery).then(response => {
809
+              if (response.data.state == 0) {
810
+                Toast.fail(response.data.msg)
811
+                return false
812
+              } else {
813
+                Toast.success('提交成功')
814
+
815
+                this.$emit('prescription', response.data.data.prescription)
816
+                this.finish()
817
+              }
818
+            })
819
+
820
+          } else if (this.is_pre == 2) {
821
+            Toast.loading({forbidClick: true, duration: 0})
822
+            let ParamsQuery = this.dialysisPrescription
823
+            ParamsQuery['patient'] = this.$route.query.patient_id
824
+            ParamsQuery['record_date'] = this.record_date
825
+            postSolution(ParamsQuery).then(response => {
826
+              if (response.data.state == 0) {
827
+                Toast.fail(response.data.msg)
828
+                return false
829
+              } else {
830
+                Toast.success('提交成功')
831
+
832
+                this.$emit('advice')
833
+                this.$emit('longSolution', response.data.data.solution)
834
+                this.$emit('prescription', response.data.data.prescription)
835
+                this.finish()
836
+              }
837
+            })
838
+          }
753
 
839
 
754
-        } else if (this.is_pre == 2) {
755
-          Toast.loading({forbidClick: true, duration: 0})
756
-          let ParamsQuery = this.dialysisPrescription
757
-          ParamsQuery['patient'] = this.$route.query.patient_id
758
-          ParamsQuery['record_date'] = this.record_date
759
-          postSolution(ParamsQuery).then(response => {
760
-            if (response.data.state == 0) {
761
-              Toast.fail(response.data.msg)
762
-              return false
763
-            } else {
764
-              Toast.success('提交成功')
765
-              this.$emit('advice')
766
-              this.$emit('longSolution', response.data.data.solution)
767
-              this.$emit('prescription', response.data.data.prescription)
768
-              this.finish()
769
-            }
770
-          })
771
         }
840
         }
772
 
841
 
773
       },
842
       },
901
                 return false
970
                 return false
902
               } else {
971
               } else {
903
                 Toast.success('提交成功')
972
                 Toast.success('提交成功')
973
+                this.dialysisPrescription.creater = response.data.data.prescription.creater
974
+
904
                 this.$emit('prescription', response.data.data.prescription)
975
                 this.$emit('prescription', response.data.data.prescription)
905
                 this.finish()
976
                 this.finish()
906
               }
977
               }
928
                   return false
999
                   return false
929
                 } else {
1000
                 } else {
930
                   Toast.success('提交成功')
1001
                   Toast.success('提交成功')
1002
+                  this.dialysisPrescription.creater = response.data.data.prescription.creater
1003
+
931
                   this.$emit('prescription', response.data.data.prescription)
1004
                   this.$emit('prescription', response.data.data.prescription)
932
                   this.finish()
1005
                   this.finish()
933
                 }
1006
                 }
963
                   return false
1036
                   return false
964
                 } else {
1037
                 } else {
965
                   Toast.success('提交成功')
1038
                   Toast.success('提交成功')
1039
+                  this.dialysisPrescription.creater = response.data.data.prescription.creater
1040
+
966
                   this.$emit('prescription', response.data.data.prescription)
1041
                   this.$emit('prescription', response.data.data.prescription)
967
                   this.finish()
1042
                   this.finish()
968
                 }
1043
                 }
978
                   return false
1053
                   return false
979
                 } else {
1054
                 } else {
980
                   Toast.success('提交成功')
1055
                   Toast.success('提交成功')
1056
+                  this.dialysisPrescription.creater = response.data.data.prescription.creater
1057
+
981
                   this.$emit('prescription', response.data.data.prescription)
1058
                   this.$emit('prescription', response.data.data.prescription)
982
                   this.finish()
1059
                   this.finish()
983
                 }
1060
                 }
1071
                     return false
1148
                     return false
1072
                   } else {
1149
                   } else {
1073
                     Toast.success('提交成功')
1150
                     Toast.success('提交成功')
1074
-
1075
                     this.$emit('prescription', response.data.data.prescription)
1151
                     this.$emit('prescription', response.data.data.prescription)
1076
                     this.finish()
1152
                     this.finish()
1077
 
1153
 
1088
                     return false
1164
                     return false
1089
                   } else {
1165
                   } else {
1090
                     Toast.success('提交成功')
1166
                     Toast.success('提交成功')
1091
-
1092
                     this.$emit('prescription', response.data.data.prescription)
1167
                     this.$emit('prescription', response.data.data.prescription)
1093
                     this.finish()
1168
                     this.finish()
1094
 
1169
 
1097
 
1172
 
1098
               }
1173
               }
1099
             }
1174
             }
1100
-          }
1101
-          Toast.loading({forbidClick: true, duration: 0})
1102
-          let ParamsQuery = this.dialysisPrescription
1103
-          ParamsQuery['patient'] = this.$route.query.patient_id
1104
-          ParamsQuery['record_date'] = this.record_date
1105
-          commitDialysisPrescription(ParamsQuery).then(response => {
1106
-            if (response.data.state == 0) {
1107
-              Toast.fail(response.data.msg)
1108
-              return false
1109
-            } else {
1110
-              Toast.success('提交成功')
1175
+          }else{
1176
+
1177
+            Toast.loading({forbidClick: true, duration: 0})
1178
+            let ParamsQuery = this.dialysisPrescription
1179
+            ParamsQuery['patient'] = this.$route.query.patient_id
1180
+            ParamsQuery['record_date'] = this.record_date
1181
+            commitDialysisPrescription(ParamsQuery).then(response => {
1182
+              if (response.data.state == 0) {
1183
+                Toast.fail(response.data.msg)
1184
+                return false
1185
+              } else {
1186
+                Toast.success('提交成功')
1187
+                this.$emit('prescription', response.data.data.prescription)
1188
+                this.finish()
1111
 
1189
 
1112
-              this.$emit('prescription', response.data.data.prescription)
1113
-              this.finish()
1190
+              }
1191
+            })
1192
+
1193
+
1194
+
1195
+
1196
+          }
1114
 
1197
 
1115
-            }
1116
-          })
1117
 
1198
 
1118
         }
1199
         }
1119
       }, commitSolutionInfo: function () {
1200
       }, commitSolutionInfo: function () {
1353
                 })
1434
                 })
1354
               }
1435
               }
1355
             }
1436
             }
1437
+          }else{
1438
+
1439
+            Toast.loading({forbidClick: true, duration: 0})
1440
+            let ParamsQuery = this.dialysisPrescription
1441
+            ParamsQuery['patient'] = this.$route.query.patient_id
1442
+            ParamsQuery['record_date'] = this.record_date
1443
+            postSolution(ParamsQuery).then(response => {
1444
+              if (response.data.state == 0) {
1445
+                Toast.fail(response.data.msg)
1446
+                return false
1447
+              } else {
1448
+                Toast.success('提交成功')
1449
+                this.$emit('longSolution', response.data.data.solution)
1450
+                this.$emit('prescription', response.data.data.prescription)
1451
+                this.finish()
1452
+
1453
+              }
1454
+            })
1455
+
1356
           }
1456
           }
1357
-          Toast.loading({forbidClick: true, duration: 0})
1358
-          let ParamsQuery = this.dialysisPrescription
1359
-          ParamsQuery['patient'] = this.$route.query.patient_id
1360
-          ParamsQuery['record_date'] = this.record_date
1361
-          postSolution(ParamsQuery).then(response => {
1362
-            if (response.data.state == 0) {
1363
-              Toast.fail(response.data.msg)
1364
-              return false
1365
-            } else {
1366
-              Toast.success('提交成功')
1367
-              this.$emit('longSolution', response.data.data.solution)
1368
-              this.$emit('prescription', response.data.data.prescription)
1369
-              this.finish()
1370
 
1457
 
1371
-            }
1372
-          })
1373
         }
1458
         }
1374
 
1459
 
1375
       }, finish: function () {
1460
       }, finish: function () {
1611
     components: {
1696
     components: {
1612
       LongAdviceSubMenu,
1697
       LongAdviceSubMenu,
1613
       MultipleSubMenu,
1698
       MultipleSubMenu,
1699
+      MsgTip,
1614
       // MultipleSubMenu,
1700
       // MultipleSubMenu,
1615
       CheckBoxSubMenu
1701
       CheckBoxSubMenu
1616
     },
1702
     },

+ 211 - 0
src/pages/main/dialog/subMenu/MsgTip.vue View File

1
+<template>
2
+  <div v-if="visibility" class="Dialog">
3
+    <div class="DialogTit">
4
+      <div class="back" @click="cancle()">
5
+        <span class="iconfont">&#xe720; </span>返回
6
+      </div>
7
+      <h1 class="name">{{patient_prop.name}} [透析号 {{patient_prop.dialysis_no}} ]</h1>
8
+      <span @click="comfirm" class="success" >确定</span
9
+      >
10
+    </div>
11
+
12
+    <div class="DialogContent">
13
+        <div class="item">
14
+          <label class="name" for="txms">本次透析日期</label>
15
+          <div class="content">
16
+            <span class="text" id="txms"> {{dialysis_date}}</span>
17
+            
18
+          </div>
19
+        </div>
20
+        <div class="item">
21
+          <label class="name" for="txms">透前体重(kg)</label>
22
+          <div class="content">
23
+            <span class="text" id="txms">{{predialysis.weighing_before}}</span>
24
+            
25
+          </div>
26
+        </div>
27
+        <div class="item">
28
+          <label class="name" for="txms">干体重(kg)</label>
29
+          <div class="content">
30
+            <span class="text" id="txms">{{predialysis.dry_weight}}</span>
31
+            
32
+          </div>
33
+        </div>
34
+        <div class="item">
35
+          <label class="name" for="txms">衣物重(kg)</label>
36
+          <div class="content">
37
+            <span class="text" id="txms">{{predialysis.additional_weight}}</span>
38
+            
39
+          </div>
40
+        </div>
41
+        <div class="item">
42
+          <label class="name" for="txms">体重增加(kg)</label>
43
+          <div class="content">
44
+            <span class="text" id="txms">{{prescription_prop.dewater_amount}}</span>
45
+            
46
+          </div>
47
+        </div>
48
+        <div class="item">
49
+          <label class="name" for="txms">透后体重(kg)</label>
50
+          <div class="content">
51
+            <span class="text" id="txms">{{record.weight_after}}</span>
52
+            
53
+          </div>
54
+        </div>
55
+        <div class="item">
56
+          <label class="name" for="txms">体重减少(kg)</label>
57
+          <div class="content">
58
+            <span class="text" id="txms">{{record.weight_loss}}</span>
59
+            
60
+          </div>
61
+        </div>
62
+        <div class="item">
63
+          <label class="name" for="txms">上次透后体重(kg)</label>
64
+          <div class="content">
65
+            <span class="text" id="txms">{{predialysis.weight_after_last_transparency}}</span>
66
+            
67
+          </div>
68
+        </div>
69
+    </div>
70
+  </div>
71
+</template>
72
+
73
+<script>
74
+  import {parseTime} from '@/utils'
75
+
76
+  export default {
77
+    name: 'LongAdviceSubMenu',
78
+    created () {
79
+    },
80
+    data () {
81
+      return {
82
+        result: [],
83
+        id: 0,
84
+        selectName: ''
85
+      }
86
+    },
87
+    props: {
88
+      predialysis: {
89
+        type: Object
90
+      },
91
+      visibility: {
92
+        type: Boolean,
93
+        default: false
94
+      },
95
+      last_predialysis: {
96
+        type: Object
97
+      },
98
+      record: {
99
+        type: Object
100
+      },
101
+      last_record: {
102
+        type: Object
103
+      },
104
+      patient_prop: {
105
+        type: Object
106
+      },
107
+      prescription_prop: {
108
+        type: Object
109
+      },
110
+    },
111
+    computed: {
112
+    dialysis_date: function () {
113
+      return parseTime(this.$route.query.date, '{y}/{m}/{d}')
114
+      }
115
+    },
116
+    methods: {
117
+
118
+
119
+      cancle: function () {
120
+        this.$emit('menu-msg-tip')
121
+      },
122
+      comfirm: function () {
123
+        this.$emit('menu-msg-tip')
124
+      },
125
+      getValue: function () {
126
+        let form = {}
127
+
128
+        let results = []
129
+
130
+        for (let i = 0; i < this.propsForm.list.length; i++){
131
+          for (let a = 0; a < this.propsForm.result.length; a++){
132
+            if( this.propsForm.list[i].id == this.propsForm.result[a]){
133
+              results.push(this.propsForm.list[i])
134
+            }
135
+          }
136
+        }
137
+
138
+        var obj5={}
139
+        results = results.reduce((cur, next) => {
140
+          obj5[next.id] ? '' : obj5[next.id] = true && cur.push(next)
141
+          return cur
142
+        }, [])
143
+
144
+        results
145
+
146
+        return results
147
+      },
148
+
149
+    },
150
+    watch: {
151
+      visibility (val) {
152
+        //初始化数据操作
153
+      }
154
+    }
155
+  }
156
+</script>
157
+
158
+<style style="stylesheet/scss" lang="scss" scoped>
159
+  .optionsBox {
160
+  background: #fff;
161
+  max-height: 10rem;
162
+  min-height: 5rem;
163
+  @media only screen and (max-width: 812px) {
164
+  min-height: 8rem !important;
165
+  }
166
+  ul {
167
+  overflow-y: scroll;
168
+  max-height: 9rem;
169
+  li {
170
+  height: 1.1rem;
171
+  line-height: 1.1rem;
172
+  border-bottom: 1px #e5e5e5 solid;
173
+  padding: 0 0.38rem;
174
+  font-size: 0.36rem;
175
+  color: $title-color;
176
+  }
177
+  .tick {
178
+  position: relative;
179
+  &::before {
180
+  content: "";
181
+  display: inline-block;
182
+  border: 2px solid $main-color;
183
+  border-top-width: 0;
184
+  border-right-width: 0;
185
+  width: 0.3rem;
186
+  height: 0.15rem;
187
+  -webkit-transform: rotate(-50deg);
188
+  position: absolute;
189
+  top: 0.38rem;
190
+  right: 0.44rem;
191
+  }
192
+  }
193
+  }
194
+  }
195
+  .CheckBox {
196
+  background: #fff;
197
+  max-height: 6.8rem;
198
+  min-height: 5rem;
199
+  overflow-y: scroll;
200
+  @media only screen and (max-width: 812px) {
201
+  max-height: 8rem !important;
202
+  min-height: 8rem !important;
203
+  }
204
+
205
+  ul {
206
+  li {
207
+  line-height: 1rem;
208
+  }
209
+  }
210
+  }
211
+</style>

+ 16 - 30
src/pages/main/today/TodayTab.vue View File

63
                   :step_data="stepData"></details-info>
63
                   :step_data="stepData"></details-info>
64
 
64
 
65
     <div class="blueBorder"></div>
65
     <div class="blueBorder"></div>
66
-    <dialysis-prescription id="prescription" :prescription="prescription" :solution="solution" title="透析处方"
66
+    <dialysis-prescription id="prescription"  :prescription="prescription" :solution="solution" title="透析处方"
67
                            :device_number_map="device_map"></dialysis-prescription>
67
                            :device_number_map="device_map"></dialysis-prescription>
68
 
68
 
69
     <div class="blueBorder"></div>
69
     <div class="blueBorder"></div>
113
                            :waitUploadAdvices="waitUploadAdvices" :is_open="is_open"
113
                            :waitUploadAdvices="waitUploadAdvices" :is_open="is_open"
114
                            @close="closePrescriptionDialog" @prescription="prescriptionFunc"
114
                            @close="closePrescriptionDialog" @prescription="prescriptionFunc"
115
                            :admin_users_prop="admin_users" @advice="adviceFunc"
115
                            :admin_users_prop="admin_users" @advice="adviceFunc"
116
+                           :predialysis="predialysis_evaluation"
117
+                           :last_predialysis="last_predialysis_evaluation"
118
+                           :record="assessment_after_dislysis"
119
+                           :last_record="last_assessment_after_dislysis"
116
                            @longSolution="longSolutionFunc" ref="prescription_dialog"></prescription-dialog>
120
                            @longSolution="longSolutionFunc" ref="prescription_dialog"></prescription-dialog>
117
     </van-popup>
121
     </van-popup>
118
 
122
 
1019
 
1023
 
1020
       },
1024
       },
1021
       prescriptionFunc: function (val) {
1025
       prescriptionFunc: function (val) {
1022
-        if (this.status == 2) {
1023
-          if (val.creater > 0 && val.modifier == 0) {
1024
-            this.requestDialysisRecord()
1025
-          }
1026
-
1027
-        } else if (this.status == 3) {
1028
-          if (val.creater > 0 && val.modifier == 0) {
1029
-            this.requestDialysisRecord()
1030
-          }
1031
-        }
1026
+        this.requestDialysisRecord()
1032
 
1027
 
1033
         this.prescription = val
1028
         this.prescription = val
1034
 
1029
 
1036
       ,
1031
       ,
1037
       longSolutionFunc: function (val) {
1032
       longSolutionFunc: function (val) {
1038
         this.solution = val
1033
         this.solution = val
1039
-        if (this.status == 2) {
1040
-          if (val.creater > 0 && val.modifier == 0) {
1041
-            this.requestDialysisRecord()
1042
-          }
1043
-
1044
-        } else if (this.status == 3) {
1045
-          if (val.creater > 0 && val.modifier == 0) {
1046
-            this.requestDialysisRecord()
1047
-          }
1048
-        }
1034
+        this.requestDialysisRecord()
1049
 
1035
 
1050
       }
1036
       }
1051
       ,
1037
       ,
1052
       closePrescriptionDialog: function () {
1038
       closePrescriptionDialog: function () {
1053
         this.closeDialog(1)
1039
         this.closeDialog(1)
1054
-        this.scrollToView('prescription')
1040
+        // this.scrollToView('prescription')
1055
       }
1041
       }
1056
       ,
1042
       ,
1057
       closeAcceptsAssessment: function () {
1043
       closeAcceptsAssessment: function () {
1058
         this.closeDialog(2)
1044
         this.closeDialog(2)
1059
-        this.scrollToView('accepts_assessment')
1045
+        // this.scrollToView('accepts_assessment')
1060
       }
1046
       }
1061
       ,
1047
       ,
1062
       closeAssessmentBefore: function () {
1048
       closeAssessmentBefore: function () {
1063
         this.closeDialog(3)
1049
         this.closeDialog(3)
1064
-        this.scrollToView('assessment_before')
1050
+        // this.scrollToView('assessment_before')
1065
       }
1051
       }
1066
       ,
1052
       ,
1067
       update_evaluation: function (evaluation) {
1053
       update_evaluation: function (evaluation) {
1077
       ,
1063
       ,
1078
       closeDialysisComputer: function (dialysis_order) {
1064
       closeDialysisComputer: function (dialysis_order) {
1079
         this.closeDialog(0)
1065
         this.closeDialog(0)
1080
-        this.scrollToView('dialysis_computer')
1066
+        // this.scrollToView('dialysis_computer')
1081
       }
1067
       }
1082
       ,
1068
       ,
1083
       closeDoubleCheck: function () {
1069
       closeDoubleCheck: function () {
1084
         this.closeDialog(5)
1070
         this.closeDialog(5)
1085
-        this.scrollToView('double_check')
1071
+        // this.scrollToView('double_check')
1086
       }
1072
       }
1087
       ,
1073
       ,
1088
       closeMonitoring: function () {
1074
       closeMonitoring: function () {
1089
         this.closeDialog(6)
1075
         this.closeDialog(6)
1090
-        this.scrollToView('monitoring')
1076
+        // this.scrollToView('monitoring')
1091
       }
1077
       }
1092
       ,
1078
       ,
1093
       closeDialysisOff: function () {
1079
       closeDialysisOff: function () {
1094
         this.closeDialog(7)
1080
         this.closeDialog(7)
1095
-        this.scrollToView('dialysis_off')
1081
+        // this.scrollToView('dialysis_off')
1096
       }
1082
       }
1097
       ,
1083
       ,
1098
       closeAssessmentAfter: function (assessment_after_dislysis) {
1084
       closeAssessmentAfter: function (assessment_after_dislysis) {
1099
         this.closeDialog(8)
1085
         this.closeDialog(8)
1100
-        this.scrollToView('assessment_after')
1086
+        // this.scrollToView('assessment_after')
1101
         if (assessment_after_dislysis != undefined) {
1087
         if (assessment_after_dislysis != undefined) {
1102
           this.assessment_after_dislysis = assessment_after_dislysis
1088
           this.assessment_after_dislysis = assessment_after_dislysis
1103
         }
1089
         }
1105
       ,
1091
       ,
1106
       closeTreatmentOf: function () {
1092
       closeTreatmentOf: function () {
1107
         this.closeDialog(9)
1093
         this.closeDialog(9)
1108
-        this.scrollToView('treatment_of')
1094
+        // this.scrollToView('treatment_of')
1109
       }
1095
       }
1110
       ,
1096
       ,
1111
       scrollToView: function (id) {
1097
       scrollToView: function (id) {

+ 30 - 32
src/pages/main/today/detailsInfo.vue View File

49
 </template>
49
 </template>
50
 
50
 
51
 <script>
51
 <script>
52
-import { parseTime } from "@/utils";
52
+import { parseTime } from '@/utils'
53
 import { jsGetAge } from '@/utils/tools'
53
 import { jsGetAge } from '@/utils/tools'
54
 
54
 
55
 export default {
55
 export default {
56
-  name: "DetailsInfo",
57
-  data() {
56
+  name: 'DetailsInfo',
57
+  data () {
58
     return {
58
     return {
59
       // patient: {
59
       // patient: {
60
       //   name: "",
60
       //   name: "",
69
       //   number: "",
69
       //   number: "",
70
       // },
70
       // },
71
       steps: [
71
       steps: [
72
-        { title: "透析处方" },
73
-        { title: "接诊评估" },
74
-        { title: "透前评估" },
75
-        { title: "临时医嘱" },
76
-        { title: "透析上机" },
77
-        { title: "双人查对" },
78
-        { title: "透析监测" },
79
-        { title: "透析下机" },
80
-        { title: "透后评估" },
81
-        { title: "治疗小结" }
72
+        { title: '透析处方' },
73
+        { title: '接诊评估' },
74
+        { title: '透前评估' },
75
+        { title: '临时医嘱' },
76
+        { title: '透析上机' },
77
+        { title: '双人查对' },
78
+        { title: '透析监测' },
79
+        { title: '透析下机' },
80
+        { title: '透后评估' },
81
+        { title: '治疗小结' }
82
       ]
82
       ]
83
-    };
83
+    }
84
   },
84
   },
85
   props: {
85
   props: {
86
     step_data: {
86
     step_data: {
88
     },
88
     },
89
     patient: {
89
     patient: {
90
       type: Object,
90
       type: Object,
91
-      default: function() {
91
+      default: function () {
92
         return {
92
         return {
93
-          name: "",
93
+          name: '',
94
           gender: 1,
94
           gender: 1,
95
-          birthday: "",
96
-          dialysis_no: "",
95
+          birthday: '',
96
+          dialysis_no: '',
97
           // device_number: "",
97
           // device_number: "",
98
-          source: "",
99
-          admission_number: ""
100
-        };
98
+          source: '',
99
+          admission_number: ''
100
+        }
101
       }
101
       }
102
     },
102
     },
103
     device_number: {
103
     device_number: {
105
     }
105
     }
106
   },
106
   },
107
   computed: {
107
   computed: {
108
-    dialysis_date:function(){
109
-      return parseTime(this.$route.query.date, "{y}/{m}/{d}");
110
-
108
+    dialysis_date: function () {
109
+      return parseTime(this.$route.query.date, '{y}/{m}/{d}')
111
     },
110
     },
112
-    age: function() {
113
-      if (this.patient.age == 0){
111
+    age: function () {
112
+      if (this.patient.age == 0) {
114
         return jsGetAge(parseTime(this.patient.birthday, '{y}-{m}-{d}'), '-')
113
         return jsGetAge(parseTime(this.patient.birthday, '{y}-{m}-{d}'), '-')
115
-      }else{
114
+      } else {
116
         return this.patient.age
115
         return this.patient.age
117
       }
116
       }
118
     },
117
     },
119
-    source: function() {
120
-      return this.patient.source == 1 ? "门诊" : "住院";
118
+    source: function () {
119
+      return this.patient.source == 1 ? '门诊' : '住院'
121
     }
120
     }
122
   },
121
   },
123
   methods: {
122
   methods: {
141
     //   }
140
     //   }
142
     // }
141
     // }
143
   },
142
   },
144
-  created() {}
145
-};
143
+  created () {}
144
+}
146
 </script>
145
 </script>
147
 
146
 
148
 <style rel="stylesheet/scss" lang="scss" scoped>
147
 <style rel="stylesheet/scss" lang="scss" scoped>
239
   }
238
   }
240
 }
239
 }
241
 </style>
240
 </style>
242
-

+ 172 - 171
src/pages/main/today/dialysisPrescription.vue View File

156
 </template>
156
 </template>
157
 
157
 
158
 <script>
158
 <script>
159
-  import {getDataConfig} from '@/utils/data';
159
+import {getDataConfig} from '@/utils/data'
160
 export default {
160
 export default {
161
-  name: "DialysisPrescription",
162
-  data() {
161
+  name: 'DialysisPrescription',
162
+  data () {
163
     return {
163
     return {
164
-      title: "透析处方",
164
+      title: '透析处方',
165
       perfusion_apparatus_map: {},
165
       perfusion_apparatus_map: {},
166
-      dialysateFormulationMap:{},
167
-    };
166
+      dialysateFormulationMap: {}
167
+    }
168
   },
168
   },
169
   props: {
169
   props: {
170
     prescription: {
170
     prescription: {
171
-      type: Object,
171
+      type: Object
172
     },
172
     },
173
     solution: {
173
     solution: {
174
-      type: Object,
174
+      type: Object
175
     },
175
     },
176
     device_number_map: {
176
     device_number_map: {
177
-      type: Object,
177
+      type: Object
178
     }
178
     }
179
   },
179
   },
180
   computed: {
180
   computed: {
181
-    target_ultrafiltration:function(){
182
-      var v = this.getValueStr("target_ultrafiltration", "target_ultrafiltration")
181
+    target_ultrafiltration: function () {
182
+      var v = this.getValueStr('target_ultrafiltration', 'target_ultrafiltration')
183
       v = this.getFloat(v)
183
       v = this.getFloat(v)
184
-      return v.length == 0 ? "0" : v
184
+      return v.length == 0 ? '0' : v
185
     },
185
     },
186
-    dialysis_mode: function() {
187
-      var mode = this.getValueStr("mode_id", "mode_id")
186
+    dialysis_mode: function () {
187
+      var mode = this.getValueStr('mode_id', 'mode_id')
188
       if (mode.length == 0) {
188
       if (mode.length == 0) {
189
-        return ""
189
+        return ''
190
       }
190
       }
191
       if (this.$store.getters.treatment_mode[mode] != undefined) {
191
       if (this.$store.getters.treatment_mode[mode] != undefined) {
192
         return this.$store.getters.treatment_mode[mode].name
192
         return this.$store.getters.treatment_mode[mode].name
193
       }
193
       }
194
-      return ""
194
+      return ''
195
     },
195
     },
196
-    perfusion_apparatus: function() {
197
-      var v = this.getValueStr("perfusion_apparatus", "perfusion_apparatus")
196
+    perfusion_apparatus: function () {
197
+      var v = this.getValueStr('perfusion_apparatus', 'perfusion_apparatus')
198
       if (v.length == 0) {
198
       if (v.length == 0) {
199
-        return ""
199
+        return ''
200
       }
200
       }
201
       if (this.perfusion_apparatus_map[v] != undefined) {
201
       if (this.perfusion_apparatus_map[v] != undefined) {
202
         return this.perfusion_apparatus_map[v].name
202
         return this.perfusion_apparatus_map[v].name
203
       }
203
       }
204
-      return ""
204
+      return ''
205
     },
205
     },
206
-    displace_liqui: function() {
207
-      var v = this.getValueStr("displace_liqui", "displace_liqui")
208
-      return v.length == 0 ? "0" : v
206
+    displace_liqui: function () {
207
+      var v = this.getValueStr('displace_liqui', 'displace_liqui')
208
+      return v.length == 0 ? '0' : v
209
     },
209
     },
210
-    anticoagulant_shouji: function() {
211
-      var v = this.getValueStr("anticoagulant_shouji", "anticoagulant_shouji")
212
-      return v.length == 0 ? "0" : v
210
+    anticoagulant_shouji: function () {
211
+      var v = this.getValueStr('anticoagulant_shouji', 'anticoagulant_shouji')
212
+      return v.length == 0 ? '0' : v
213
     },
213
     },
214
-    kalium: function() {
215
-      var v = this.getValueStr("kalium", "kalium")
214
+    kalium: function () {
215
+      var v = this.getValueStr('kalium', 'kalium')
216
       v = this.getFloat(v)
216
       v = this.getFloat(v)
217
-      return v == 0 ? "0":v
218
-    },
219
-    replacement_total:function(){
220
-      var v = this.getValueStr("replacement_total", "replacement_total")
221
-      return v.length == 0 ? "0" : v
222
-    },
223
-    bicarbonate: function() {
224
-      var v = this.getValueStr("bicarbonate", "bicarbonate")
225
-      return v.length == 0 ? "0" : v
226
-    },
227
-    dialysate_flow: function() {
228
-      var v = this.getValueStr("dialysate_flow", "dialysate_flow")
229
-      return v.length == 0 ? "0" : v
230
-    },
231
-    dialysis_duration: function() {
232
-      var dialysis_duration_hour = (this.getValueStr("dialysis_duration_hour", "dialysis_duration_hour"))
233
-      var dialysis_duration_minute = (this.getValueStr("dialysis_duration_minute", "dialysis_duration_minute"))
234
-      if(dialysis_duration_hour.length == 0 && dialysis_duration_minute.length == 0){
235
-        return  "0"
236
-      }else{
237
-        var time = dialysis_duration_hour+"h"+dialysis_duration_minute+"min"
238
-        return time.length == 0 ? "0" : time
217
+      return v == 0 ? '0' : v
218
+    },
219
+    replacement_total: function () {
220
+      var v = this.getValueStr('replacement_total', 'replacement_total')
221
+      return v.length == 0 ? '0' : v
222
+    },
223
+    bicarbonate: function () {
224
+      var v = this.getValueStr('bicarbonate', 'bicarbonate')
225
+      return v.length == 0 ? '0' : v
226
+    },
227
+    dialysate_flow: function () {
228
+      var v = this.getValueStr('dialysate_flow', 'dialysate_flow')
229
+      return v.length == 0 ? '0' : v
230
+    },
231
+    dialysis_duration: function () {
232
+      var dialysis_duration_hour = (this.getValueStr('dialysis_duration_hour', 'dialysis_duration_hour'))
233
+      var dialysis_duration_minute = (this.getValueStr('dialysis_duration_minute', 'dialysis_duration_minute'))
234
+      if (dialysis_duration_hour.length == 0 && dialysis_duration_minute.length == 0) {
235
+        return '0'
236
+      } else {
237
+        var time = dialysis_duration_hour + 'h' + dialysis_duration_minute + 'min'
238
+        return time.length == 0 ? '0' : time
239
       }
239
       }
240
-
241
     },
240
     },
242
-    blood_flow_volume: function() {
243
-      var v = this.getValueStr("blood_flow_volume", "blood_flow_volume")
244
-      return v.length == 0 ? "0" : v
241
+    blood_flow_volume: function () {
242
+      var v = this.getValueStr('blood_flow_volume', 'blood_flow_volume')
243
+      return v.length == 0 ? '0' : v
245
     },
244
     },
246
-    replacement_way: function() {
247
-      return this.getValueStr("replacement_way", "replacement_way")
245
+    replacement_way: function () {
246
+      return this.getValueStr('replacement_way', 'replacement_way')
248
     },
247
     },
249
-    anticoagulant_weichi: function() {
250
-      var v = this.getValueStr("anticoagulant_weichi", "anticoagulant_weichi")
251
-      return v.length == 0 ? "0" : v
248
+    anticoagulant_weichi: function () {
249
+      var v = this.getValueStr('anticoagulant_weichi', 'anticoagulant_weichi')
250
+      return v.length == 0 ? '0' : v
252
     },
251
     },
253
-    sodium: function() {
254
-      var v = this.getValueStr("sodium", "sodium")
252
+    sodium: function () {
253
+      var v = this.getValueStr('sodium', 'sodium')
255
       console.log(v)
254
       console.log(v)
256
       v = this.getFloat(v)
255
       v = this.getFloat(v)
257
       console.log(v)
256
       console.log(v)
258
-      return v == 0 ? "0":v
257
+      return v == 0 ? '0' : v
259
     },
258
     },
260
-    glucose: function() {
261
-      var v = this.getValueStr("glucose", "glucose")
262
-      return v.length == 0 ? "0" : v
259
+    glucose: function () {
260
+      var v = this.getValueStr('glucose', 'glucose')
261
+      return v.length == 0 ? '0' : v
263
     },
262
     },
264
-    dialysate_temperature: function() {
265
-      var v = this.getValueStr("dialysate_temperature", "dialysate_temperature")
266
-      return v.length == 0 ? "0" : v
263
+    dialysate_temperature: function () {
264
+      var v = this.getValueStr('dialysate_temperature', 'dialysate_temperature')
265
+      return v.length == 0 ? '0' : v
267
     },
266
     },
268
-    dialyzer: function() {
269
-      var v = this.getValueStr("dialyzer", "hemodialysis_machine")
267
+    dialyzer: function () {
268
+      var v = this.getValueStr('dialyzer', 'hemodialysis_machine')
270
       if (v.length == 0) {
269
       if (v.length == 0) {
271
-        return ""
270
+        return ''
272
       }
271
       }
273
       if (this.device_number_map[v] != undefined) {
272
       if (this.device_number_map[v] != undefined) {
274
         return this.device_number_map[v].name
273
         return this.device_number_map[v].name
275
       }
274
       }
276
-      return ""
275
+      return ''
277
     },
276
     },
278
-    dialysate_formulation: function(){
279
-      var v = this.getValueStr("dialysate_formulation", "dialysate_formulation")
277
+    dialysate_formulation: function () {
278
+      var v = this.getValueStr('dialysate_formulation', 'dialysate_formulation')
280
       if (v.length == 0) {
279
       if (v.length == 0) {
281
-        return ""
280
+        return ''
282
       }
281
       }
283
-      if(v in this.dialysateFormulationMap) {
284
-        return  this.dialysateFormulationMap[v].name;
282
+      if (v in this.dialysateFormulationMap) {
283
+        return this.dialysateFormulationMap[v].name
285
       }
284
       }
286
-      return ""
285
+      return ''
287
     },
286
     },
288
-    prescription_dewatering: function() {
289
-      var v = this.getValueStr("prescription_dewatering", "dewater")
290
-      return v.length == 0 ? "0" : v
287
+    prescription_dewatering: function () {
288
+      var v = this.getValueStr('prescription_dewatering', 'dewater')
289
+      return v.length == 0 ? '0' : v
291
     },
290
     },
292
-    anticoagulant: function() {
293
-      var v = this.getValueStr("anticoagulant", "anticoagulant")
291
+    anticoagulant: function () {
292
+      var v = this.getValueStr('anticoagulant', 'anticoagulant')
294
       if (v.length == 0) {
293
       if (v.length == 0) {
295
-        return ""
294
+        return ''
296
       }
295
       }
297
       if (this.$store.getters.anticoagulants_confit[v] != undefined) {
296
       if (this.$store.getters.anticoagulants_confit[v] != undefined) {
298
         return this.$store.getters.anticoagulants_confit[v].name
297
         return this.$store.getters.anticoagulants_confit[v].name
299
       }
298
       }
300
-      return ""
299
+      return ''
301
     },
300
     },
302
-    anticoagulant_zongliang: function() {
303
-      var v = this.getValueStr("anticoagulant_zongliang", "anticoagulant_zongliang")
304
-      return v.length == 0 ? "0" : v
301
+    anticoagulant_zongliang: function () {
302
+      var v = this.getValueStr('anticoagulant_zongliang', 'anticoagulant_zongliang')
303
+      return v.length == 0 ? '0' : v
305
     },
304
     },
306
-    calcium: function() {
307
-
308
-      var v = this.getValueStr("calcium", "calcium")
305
+    calcium: function () {
306
+      var v = this.getValueStr('calcium', 'calcium')
309
       v = this.getFloat(v)
307
       v = this.getFloat(v)
310
-      return v == 0 ? "0":v
311
-
312
-
308
+      return v == 0 ? '0' : v
313
     },
309
     },
314
 
310
 
315
-    conductivity: function() {
316
-      var v = this.getValueStr("conductivity", "conductivity")
317
-      return v.length == 0 ? "0" : v
318
-    },
319
-    dialyzer_perfusion_apparatus: function() {
320
-      return this.getValueStr("dialyzer_perfusion_apparatus", "dialyzer_perfusion_apparatus")
321
-    },
322
-    note: function() {
323
-      return this.getValueStr("remark", "remark")
324
-    },body_fluid:function () {
325
-      var id =  this.getValueStr("body_fluid", "body_fluid")
326
-      if(id == 0){
327
-        return ""
311
+    conductivity: function () {
312
+      var v = this.getValueStr('conductivity', 'conductivity')
313
+      return v.length == 0 ? '0' : v
314
+    },
315
+    dialyzer_perfusion_apparatus: function () {
316
+      return this.getValueStr('dialyzer_perfusion_apparatus', 'dialyzer_perfusion_apparatus')
317
+    },
318
+    note: function () {
319
+      return this.getValueStr('remark', 'remark')
320
+    },
321
+    body_fluid: function () {
322
+      var id = this.getValueStr('body_fluid', 'body_fluid')
323
+      if (id == 0) {
324
+        return ''
328
       }
325
       }
329
-      var bodyFluidOptions = this.$store.getters.body_fluid;
330
-      for (let i = 0; i <bodyFluidOptions.length; i++){
331
-        if(bodyFluidOptions[i].id == id){
326
+      var bodyFluidOptions = this.$store.getters.body_fluid
327
+      for (let i = 0; i < bodyFluidOptions.length; i++) {
328
+        if (bodyFluidOptions[i].id == id) {
332
           return bodyFluidOptions[i].name
329
           return bodyFluidOptions[i].name
333
         }
330
         }
334
       }
331
       }
335
-    },special_medicine:function () {
336
-      var id =  this.getValueStr("special_medicine", "special_medicine")
337
-      if(id == 0){
338
-        return ""
332
+    },
333
+    special_medicine: function () {
334
+      var id = this.getValueStr('special_medicine', 'special_medicine')
335
+      if (id == 0) {
336
+        return ''
339
       }
337
       }
340
-      var special_medicine = this.$store.getters.special_medicine;
341
-      for (let i = 0; i <special_medicine.length; i++){
342
-        if(special_medicine[i].id == id){
338
+      var special_medicine = this.$store.getters.special_medicine
339
+      for (let i = 0; i < special_medicine.length; i++) {
340
+        if (special_medicine[i].id == id) {
343
           return special_medicine[i].name
341
           return special_medicine[i].name
344
         }
342
         }
345
       }
343
       }
346
-    },special_medicine_other:function () {
347
-      return this.getValueStr("special_medicine_other", "special_medicine_other")
348
-    },blood_access:function () {
349
-      var id =  this.getValueStr("blood_access", "blood_access")
350
-      if(id == 0){
351
-        return ""
344
+    },
345
+    special_medicine_other: function () {
346
+      return this.getValueStr('special_medicine_other', 'special_medicine_other')
347
+    },
348
+    blood_access: function () {
349
+      var id = this.getValueStr('blood_access', 'blood_access')
350
+      if (id == 0) {
351
+        return ''
352
       }
352
       }
353
-      var blood_access = this.$store.getters.blood_access;
354
-      for (let i = 0; i <blood_access.length; i++){
355
-        if(blood_access[i].id == id){
353
+      var blood_access = this.$store.getters.blood_access
354
+      console.log('blood_access', blood_access)
355
+      for (let i = 0; i < blood_access.length; i++) {
356
+        if (blood_access[i].id == id) {
356
           return blood_access[i].name
357
           return blood_access[i].name
357
         }
358
         }
358
       }
359
       }
359
-    },displace_liqui:function () {
360
-      var id =  this.getValueStr("displace_liqui_part", "displace_liqui_part")
361
-      var displace_liqui_value =  this.getValueStr("displace_liqui_value", "displace_liqui_value")
362
-      var displace_liqui_part = ""
363
-      var displace_liqui = this.$store.getters.displace_liqui;
364
-      for (let i = 0; i <displace_liqui.length; i++){
365
-        if(displace_liqui[i].id == id){
366
-           displace_liqui_part = displace_liqui[i].name
360
+    },
361
+    displace_liqui: function () {
362
+      var id = this.getValueStr('displace_liqui_part', 'displace_liqui_part')
363
+      var displace_liqui_value = this.getValueStr('displace_liqui_value', 'displace_liqui_value')
364
+      var displace_liqui_part = ''
365
+      var displace_liqui = this.$store.getters.displace_liqui
366
+      for (let i = 0; i < displace_liqui.length; i++) {
367
+        if (displace_liqui[i].id == id) {
368
+          displace_liqui_part = displace_liqui[i].name
367
         }
369
         }
368
       }
370
       }
369
-      return displace_liqui_part + displace_liqui_value+"L"
370
-    },ultrafiltration:function () {
371
-      var v = this.getValueStr("ultrafiltration", "ultrafiltration")
371
+      return displace_liqui_part + displace_liqui_value + 'L'
372
+    },
373
+    ultrafiltration: function () {
374
+      var v = this.getValueStr('ultrafiltration', 'ultrafiltration')
372
       v = this.getFloat(v)
375
       v = this.getFloat(v)
373
-      return v.length == 0 ? "0" : v
374
-    },target_ktv:function () {
375
-      var v = this.getValueStr("target_ktv", "target_ktv")
376
-      return v.length == 0 ? "0" : v
376
+      return v.length == 0 ? '0' : v
377
+    },
378
+    target_ktv: function () {
379
+      var v = this.getValueStr('target_ktv', 'target_ktv')
380
+      return v.length == 0 ? '0' : v
377
     }
381
     }
378
   },
382
   },
379
-  created() {
383
+  created () {
380
     var perfusion_apparatus = this.$store.getters.perfusion_apparatus
384
     var perfusion_apparatus = this.$store.getters.perfusion_apparatus
381
     var map = {}
385
     var map = {}
382
     for (let index = 0; index < perfusion_apparatus.length; index++) {
386
     for (let index = 0; index < perfusion_apparatus.length; index++) {
383
-      const p = perfusion_apparatus[index];
387
+      const p = perfusion_apparatus[index]
384
       map[p.id] = p
388
       map[p.id] = p
385
     }
389
     }
386
     this.perfusion_apparatus_map = map
390
     this.perfusion_apparatus_map = map
387
 
391
 
388
-    var dialysateFormulationOptions = getDataConfig('hemodialysis','dialysate_formulation');
389
-    for(var index in dialysateFormulationOptions){
390
-      this.dialysateFormulationMap[dialysateFormulationOptions[index].id] = dialysateFormulationOptions[index];
392
+    var dialysateFormulationOptions = getDataConfig('hemodialysis', 'dialysate_formulation')
393
+    for (var index in dialysateFormulationOptions) {
394
+      this.dialysateFormulationMap[dialysateFormulationOptions[index].id] = dialysateFormulationOptions[index]
391
     }
395
     }
392
   },
396
   },
393
   methods: {
397
   methods: {
394
-    isShow(name){
398
+    isShow (name) {
395
       var filedList = this.$store.getters.user.fileds
399
       var filedList = this.$store.getters.user.fileds
396
-      for (let i = 0; i < filedList.length; i++){
397
-        if(filedList[i].module == 1 && filedList[i].filed_name_cn == name&&filedList[i].is_show == 1){
400
+      for (let i = 0; i < filedList.length; i++) {
401
+        if (filedList[i].module == 1 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
398
           return true
402
           return true
399
         }
403
         }
400
       }
404
       }
401
       return false
405
       return false
402
     },
406
     },
403
-    getValueStr(pkey, skey) {
404
-      if ((this.prescription == null || this.prescription.id == "") && (this.solution == null || this.solution.id == "")) {
405
-        return ""
406
-      } else if (this.prescription != null && this.prescription.id != "") {
407
+    getValueStr (pkey, skey) {
408
+      if ((this.prescription == null || this.prescription.id == '') && (this.solution == null || this.solution.id == '')) {
409
+        return ''
410
+      } else if (this.prescription != null && this.prescription.id != '') {
407
         if (this.prescription[pkey] == null || this.prescription[pkey] == undefined) {
411
         if (this.prescription[pkey] == null || this.prescription[pkey] == undefined) {
408
-          return ""
412
+          return ''
409
         }
413
         }
410
-        return this.prescription[pkey] + ""
414
+        return this.prescription[pkey] + ''
411
       } else {
415
       } else {
412
         if (this.solution[skey] == null || this.solution[skey] == undefined) {
416
         if (this.solution[skey] == null || this.solution[skey] == undefined) {
413
-          return ""
417
+          return ''
414
         }
418
         }
415
-        return this.solution[skey] + ""
419
+        return this.solution[skey] + ''
416
       }
420
       }
417
-    }, getFloat: function(x) {
421
+    },
422
+    getFloat: function (x) {
418
       if (x != '.') {
423
       if (x != '.') {
419
-        var f = Math.round(x * 100) / 100;
420
-        var s = f.toString();
421
-        var rs = s.indexOf('.');
424
+        var f = Math.round(x * 100) / 100
425
+        var s = f.toString()
426
+        var rs = s.indexOf('.')
422
         if (rs <= 0) {
427
         if (rs <= 0) {
423
-          rs = s.length;
424
-          s += '.';
428
+          rs = s.length
429
+          s += '.'
425
         }
430
         }
426
         while (s.length <= rs + 1) {
431
         while (s.length <= rs + 1) {
427
-          s += '0';
432
+          s += '0'
428
         }
433
         }
429
-        return s;
434
+        return s
430
       } else {
435
       } else {
431
-        return '0.0';
436
+        return '0.0'
432
       }
437
       }
433
-
434
     }
438
     }
435
   }
439
   }
436
-};
440
+}
437
 </script>
441
 </script>
438
 
442
 
439
 <style rel="stylesheet/scss" lang="scss" scoped>
443
 <style rel="stylesheet/scss" lang="scss" scoped>
440
 </style>
444
 </style>
441
-
442
-
443
-

+ 1 - 1
src/pages/main/today/statOrder.vue View File

23
             <td :class="advice.parent_id == 0 ? 'advice_content' : 'subadvice_content'">
23
             <td :class="advice.parent_id == 0 ? 'advice_content' : 'subadvice_content'">
24
               <span>{{advice.advice_name }}</span>
24
               <span>{{advice.advice_name }}</span>
25
               <!-- <span>{{advice.drug_spec}}{{advice.drug_spec_unit}} * {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span> -->
25
               <!-- <span>{{advice.drug_spec}}{{advice.drug_spec_unit}} * {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span> -->
26
-              <span v-if="advice.drug_spec">{{advice.drug_spec}}{{advice.drug_spec_unit}}</span>
26
+              <span v-if="advice.advice_desc">{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
27
               <span v-if="advice.prescribing_number">{{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
27
               <span v-if="advice.prescribing_number">{{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
28
               <span v-if="advice.single_dose">单次用量{{advice.single_dose}}{{advice.single_dose_unit}}</span>
28
               <span v-if="advice.single_dose">单次用量{{advice.single_dose}}{{advice.single_dose_unit}}</span>
29
               <span v-if="advice.parent_id == 0">{{advice.delivery_way}}</span>
29
               <span v-if="advice.parent_id == 0">{{advice.delivery_way}}</span>