Browse Source

新增字段

张保健 4 years ago
parent
commit
cb775857f2

+ 32 - 29
src/xt_pages/dialysis/details/BasicInfor.vue View File

@@ -57,15 +57,15 @@
57 57
 </template>
58 58
 
59 59
 <script>
60
-const moment = require("moment");
61
-import { parseTime } from "@/utils";
62
-import { jsGetAge, uParseTime } from "@/utils/tools";
60
+const moment = require('moment')
61
+import { parseTime } from '@/utils'
62
+import { jsGetAge, uParseTime } from '@/utils/tools'
63 63
 
64 64
 export default {
65
-  name: "BasicInfor",
65
+  name: 'BasicInfor',
66 66
   data() {
67 67
     return {
68
-      title: "基本信息",
68
+      title: '基本信息',
69 69
       dialysis_time: 0
70 70
       // steps: [
71 71
       //   { title: "透析处方" },
@@ -79,13 +79,13 @@ export default {
79 79
       //   { title: "透后评估" },
80 80
       //   { title: "治疗小结" }
81 81
       // ]
82
-    };
82
+    }
83 83
   },
84 84
   props: {
85 85
     patient: {
86 86
       type: Object,
87 87
       default: function() {
88
-        return { id: 0 };
88
+        return { id: 0 }
89 89
       }
90 90
     },
91 91
     device_number: {
@@ -94,50 +94,53 @@ export default {
94 94
     steps: {
95 95
       type: Array,
96 96
       default: function() {
97
-        return [];
97
+        return []
98 98
       }
99 99
     }
100 100
   },
101 101
   computed: {
102 102
     created_time: function() {
103 103
       if (this.patient.id == 0) {
104
-        return "";
104
+        return ''
105 105
       } else {
106
-        return parseTime(this.patient.created_time, "{y}-{m}-{d}");
106
+        return parseTime(this.patient.created_time, '{y}-{m}-{d}')
107 107
       }
108 108
     },
109 109
     source: function() {
110
-      return this.patient.source == 1 ? "门诊" : "住院";
110
+      return this.patient.source == 1 ? '门诊' : '住院'
111 111
     }
112 112
   },
113 113
   methods: {
114 114
     getAge: function(val) {
115
-      var thisLen = val.id_card_no.length;
116
-      var birth = "";
117
-      if (thisLen == 15) {
118
-        birth = "19" + val.id_card_no.substr(6, 6);
119
-      } else {
120
-        birth = val.id_card_no.substr(6, 8);
121
-      }
122
-      var birthtwo =
123
-        birth.substr(0, 4) +
124
-        "-" +
125
-        birth.substr(4, 2) +
126
-        "-" +
127
-        birth.substr(6, 2);
115
+      if (val.id_card_no) {
116
+        var thisLen = val.id_card_no.length
128 117
 
129
-      var age = jsGetAge(birthtwo, "-");
130
-      return age;
118
+        var birth = ''
119
+        if (thisLen == 15) {
120
+          birth = '19' + val.id_card_no.substr(6, 6)
121
+        } else {
122
+          birth = val.id_card_no.substr(6, 8)
123
+        }
124
+        var birthtwo =
125
+          birth.substr(0, 4) +
126
+          '-' +
127
+          birth.substr(4, 2) +
128
+          '-' +
129
+          birth.substr(6, 2)
130
+
131
+        var age = jsGetAge(birthtwo, '-')
132
+        return age
133
+      }
131 134
     },
132 135
 
133 136
     stepState: function() {
134
-      return parseInt(Math.random() * 1000 + "") % 2 == 1;
137
+      return parseInt(Math.random() * 1000 + '') % 2 == 1
135 138
     }
136 139
   },
137 140
   created() {
138
-    this.dialysis_time = parseTime(this.$route.query.date, "{y}-{m}-{d}");
141
+    this.dialysis_time = parseTime(this.$route.query.date, '{y}-{m}-{d}')
139 142
   }
140
-};
143
+}
141 144
 </script>
142 145
 
143 146
 <style style="stylesheet/scss" lang="scss" scoped>

+ 161 - 247
src/xt_pages/dialysis/details/DialysisPrescription.vue View File

@@ -38,48 +38,18 @@
38 38
           <span class="content">{{ anticoagulant }}</span>
39 39
         </li>
40 40
 
41
-        <li
42
-          v-if="
43
-            isShow('总量') && getValueStr('anticoagulant', 'anticoagulant') != 5
44
-          "
45
-        >
41
+        <li v-if=" isShow('总量') && getValueStr('anticoagulant', 'anticoagulant') != 5 " >
46 42
           <label>总量: </label>
47
-          <span
48
-            class="content"
49
-            v-if="getValueStr('anticoagulant', 'anticoagulant') != 1"
50
-            >{{
51
-              anticoagulant_zongliang != "0" ? anticoagulant_zongliang : ""
52
-            }}</span
53
-          >
54
-          <span
55
-            class="content"
56
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 1"
57
-          ></span>
58
-          <span
59
-            class="unit"
60
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 2"
61
-            >{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span
62
-          >
63
-          <span
64
-            class="unit"
65
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 3"
66
-            >{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span
67
-          >
68
-          <span
69
-            class="unit"
70
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 1"
71
-            >{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span
72
-          >
73
-          <span
74
-            class="unit"
75
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 4"
76
-            >{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span
77
-          >
78
-          <span
79
-            class="unit"
80
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 5"
81
-            >{{ anticoagulant_zongliang != "0" ? "ml" : "" }}</span
82
-          >
43
+          <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{anticoagulant_zongliang != "0" ? anticoagulant_zongliang : ""}}</span>
44
+          <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" ></span>
45
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id != 13">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
46
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id == 13">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
47
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3" >{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
48
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
49
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
50
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 5">{{ anticoagulant_zongliang != "0" ? "ml" : "" }}</span>
51
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 6">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
52
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 7">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
83 53
         </li>
84 54
 
85 55
         <li v-if="isShow('透析器/灌流器')">
@@ -133,46 +103,18 @@
133 103
           }}</span>
134 104
         </li>
135 105
 
136
-        <li
137
-          v-if="
138
-            isShow('首剂') && getValueStr('anticoagulant', 'anticoagulant') != 5
139
-          "
140
-        >
106
+        <li v-if=" isShow('首剂') && getValueStr('anticoagulant', 'anticoagulant') != 5 " >
141 107
           <label>首剂 : </label>
142
-          <span
143
-            class="content"
144
-            v-if="getValueStr('anticoagulant', 'anticoagulant') != 1"
145
-            >{{ anticoagulant_shouji != "0" ? anticoagulant_shouji : "" }}</span
146
-          >
147
-          <span
148
-            class="content"
149
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 1"
150
-          ></span>
151
-          <span
152
-            class="unit"
153
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 2"
154
-            >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span
155
-          >
156
-          <span
157
-            class="unit"
158
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 3"
159
-            >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span
160
-          >
161
-          <span
162
-            class="unit"
163
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 1"
164
-            >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span
165
-          >
166
-          <span
167
-            class="unit"
168
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 4"
169
-            >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span
170
-          >
171
-          <span
172
-            class="unit"
173
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 5"
174
-            >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span
175
-          >
108
+          <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{ anticoagulant_shouji != "0" ? anticoagulant_shouji : "" }}</span>
109
+          <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" ></span>
110
+          <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2  && this.$store.getters.xt_user.template_info.template_id != 13" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
111
+          <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2  && this.$store.getters.xt_user.template_info.template_id == 13" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span>
112
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
113
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span>
114
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span >
115
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 5" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span>
116
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 6" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span >
117
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 7" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
176 118
         </li>
177 119
 
178 120
         <li v-if="isShow('钙')">
@@ -249,46 +191,18 @@
249 191
           <span class="unit">{{ dialysate_flow != "0" ? "ml/min" : "" }}</span>
250 192
         </li>
251 193
 
252
-        <li
253
-          v-if="
254
-            isShow('维持') && getValueStr('anticoagulant', 'anticoagulant') != 5
255
-          "
256
-        >
194
+        <li v-if="isShow('维持') && getValueStr('anticoagulant', 'anticoagulant') != 5">
257 195
           <label>维持 : </label>
258
-          <span
259
-            class="content"
260
-            v-if="getValueStr('anticoagulant', 'anticoagulant') != 1"
261
-            >{{ anticoagulant_weichi != "0" ? anticoagulant_weichi : "" }}</span
262
-          >
263
-          <span
264
-            class="content"
265
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 1"
266
-          ></span>
267
-          <span
268
-            class="unit"
269
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 2"
270
-            >{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span
271
-          >
272
-          <span
273
-            class="unit"
274
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 3"
275
-            >{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span
276
-          >
277
-          <span
278
-            class="unit"
279
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 1"
280
-            >{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span
281
-          >
282
-          <span
283
-            class="unit"
284
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 4"
285
-            >{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span
286
-          >
287
-          <span
288
-            class="unit"
289
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 5"
290
-            >{{ anticoagulant_weichi != "0" ? "ml/h" : "" }}</span
291
-          >
196
+          <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{ anticoagulant_weichi != "0" ? anticoagulant_weichi : "" }}</span>
197
+          <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1"></span>
198
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id != 13">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
199
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id == 13">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
200
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
201
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
202
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
203
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 5">{{ anticoagulant_weichi != "0" ? "ml/h" : "" }}</span>
204
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 6">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
205
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 7">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
292 206
         </li>
293 207
 
294 208
         <li
@@ -356,19 +270,19 @@
356 270
 </template>
357 271
 
358 272
 <script>
359
-import { getDataConfig } from "@/utils/data";
360
-import store from "@/store";
273
+import { getDataConfig } from '@/utils/data'
274
+import store from '@/store'
361 275
 
362 276
 export default {
363
-  name: "DialysisPrescription",
277
+  name: 'DialysisPrescription',
364 278
   data() {
365 279
     return {
366
-      title: "透析处方",
280
+      title: '透析处方',
367 281
       perfusion_apparatus_map: {},
368 282
       dialysateFormulationMap: {},
369 283
       blood_access_part: [],
370 284
       blood_access_part_opera: []
371
-    };
285
+    }
372 286
   },
373 287
   props: {
374 288
     prescription: {
@@ -384,288 +298,288 @@ export default {
384 298
   computed: {
385 299
     target_ultrafiltration: function() {
386 300
       var v = this.getValueStr(
387
-        "target_ultrafiltration",
388
-        "target_ultrafiltration"
389
-      );
390
-      return v.length == 0 ? "0" : v;
301
+        'target_ultrafiltration',
302
+        'target_ultrafiltration'
303
+      )
304
+      return v.length == 0 ? '0' : v
391 305
     },
392 306
     dialysis_mode: function() {
393
-      var mode = this.getValueStr("mode_id", "mode_id");
307
+      var mode = this.getValueStr('mode_id', 'mode_id')
394 308
       if (mode.length == 0) {
395
-        return "";
309
+        return ''
396 310
       }
397 311
       if (this.$store.getters.treatment_mode[mode] != undefined) {
398
-        return this.$store.getters.treatment_mode[mode].name;
312
+        return this.$store.getters.treatment_mode[mode].name
399 313
       }
400
-      return "";
314
+      return ''
401 315
     },
402 316
     perfusion_apparatus: function() {
403
-      var v = this.getValueStr("perfusion_apparatus", "perfusion_apparatus");
317
+      var v = this.getValueStr('perfusion_apparatus', 'perfusion_apparatus')
404 318
       if (v.length == 0) {
405
-        return "";
319
+        return ''
406 320
       }
407 321
       if (this.perfusion_apparatus_map[v] != undefined) {
408
-        return this.perfusion_apparatus_map[v].name;
322
+        return this.perfusion_apparatus_map[v].name
409 323
       }
410
-      return "";
324
+      return ''
411 325
     },
412 326
     displace_liqui: function() {
413
-      var v = this.getValueStr("displace_liqui", "displace_liqui");
414
-      return v.length == 0 ? "0" : v;
327
+      var v = this.getValueStr('displace_liqui', 'displace_liqui')
328
+      return v.length == 0 ? '0' : v
415 329
     },
416 330
     anticoagulant_shouji: function() {
417
-      var v = this.getValueStr("anticoagulant_shouji", "anticoagulant_shouji");
418
-      return v.length == 0 ? "0" : v;
331
+      var v = this.getValueStr('anticoagulant_shouji', 'anticoagulant_shouji')
332
+      return v.length == 0 ? '0' : v
419 333
     },
420 334
     kalium: function() {
421
-      var v = this.getValueStr("kalium", "kalium");
422
-      return v.length == 0 ? "0" : v;
335
+      var v = this.getValueStr('kalium', 'kalium')
336
+      return v.length == 0 ? '0' : v
423 337
     },
424 338
     replacement_total: function() {
425
-      var v = this.getValueStr("replacement_total", "replacement_total");
426
-      return v.length == 0 ? "0" : v;
339
+      var v = this.getValueStr('replacement_total', 'replacement_total')
340
+      return v.length == 0 ? '0' : v
427 341
     },
428 342
     bicarbonate: function() {
429
-      var v = this.getValueStr("bicarbonate", "bicarbonate");
430
-      return v.length == 0 ? "0" : v;
343
+      var v = this.getValueStr('bicarbonate', 'bicarbonate')
344
+      return v.length == 0 ? '0' : v
431 345
     },
432 346
     dialysate_flow: function() {
433
-      var v = this.getValueStr("dialysate_flow", "dialysate_flow");
434
-      return v.length == 0 ? "0" : v;
347
+      var v = this.getValueStr('dialysate_flow', 'dialysate_flow')
348
+      return v.length == 0 ? '0' : v
435 349
     },
436 350
     dialysis_duration: function() {
437 351
       var dialysis_duration_hour = this.getValueStr(
438
-        "dialysis_duration_hour",
439
-        "dialysis_duration_hour"
440
-      );
352
+        'dialysis_duration_hour',
353
+        'dialysis_duration_hour'
354
+      )
441 355
       var dialysis_duration_minute = this.getValueStr(
442
-        "dialysis_duration_minute",
443
-        "dialysis_duration_minute"
444
-      );
356
+        'dialysis_duration_minute',
357
+        'dialysis_duration_minute'
358
+      )
445 359
       if (
446 360
         dialysis_duration_hour.length == 0 &&
447 361
         dialysis_duration_minute.length == 0
448 362
       ) {
449
-        return "0";
363
+        return '0'
450 364
       } else {
451 365
         var time =
452
-          dialysis_duration_hour + "h" + dialysis_duration_minute + "min";
453
-        return time.length == 0 ? "0" : time;
366
+          dialysis_duration_hour + 'h' + dialysis_duration_minute + 'min'
367
+        return time.length == 0 ? '0' : time
454 368
       }
455 369
     },
456 370
     blood_flow_volume: function() {
457
-      var v = this.getValueStr("blood_flow_volume", "blood_flow_volume");
458
-      return v.length == 0 ? "0" : v;
371
+      var v = this.getValueStr('blood_flow_volume', 'blood_flow_volume')
372
+      return v.length == 0 ? '0' : v
459 373
     },
460 374
     replacement_way: function() {
461
-      return this.getValueStr("replacement_way", "replacement_way");
375
+      return this.getValueStr('replacement_way', 'replacement_way')
462 376
     },
463 377
     anticoagulant_weichi: function() {
464
-      var v = this.getValueStr("anticoagulant_weichi", "anticoagulant_weichi");
465
-      return v.length == 0 ? "0" : v;
378
+      var v = this.getValueStr('anticoagulant_weichi', 'anticoagulant_weichi')
379
+      return v.length == 0 ? '0' : v
466 380
     },
467 381
     sodium: function() {
468
-      var v = this.getValueStr("sodium", "sodium");
469
-      return v.length == 0 ? "0" : v;
382
+      var v = this.getValueStr('sodium', 'sodium')
383
+      return v.length == 0 ? '0' : v
470 384
     },
471 385
     glucose: function() {
472
-      var v = this.getValueStr("glucose", "glucose");
473
-      return v.length == 0 ? "0" : v;
386
+      var v = this.getValueStr('glucose', 'glucose')
387
+      return v.length == 0 ? '0' : v
474 388
     },
475 389
     dialysate_temperature: function() {
476 390
       var v = this.getValueStr(
477
-        "dialysate_temperature",
478
-        "dialysate_temperature"
479
-      );
480
-      return v.length == 0 ? "0" : v;
391
+        'dialysate_temperature',
392
+        'dialysate_temperature'
393
+      )
394
+      return v.length == 0 ? '0' : v
481 395
     },
482 396
     dialyzer: function() {
483
-      var v = this.getValueStr("dialyzer", "hemodialysis_machine");
397
+      var v = this.getValueStr('dialyzer', 'hemodialysis_machine')
484 398
       if (v.length == 0) {
485
-        return "";
399
+        return ''
486 400
       }
487 401
       if (this.device_number_map[v] != undefined) {
488
-        return this.device_number_map[v].name;
402
+        return this.device_number_map[v].name
489 403
       }
490
-      return "";
404
+      return ''
491 405
     },
492 406
     dialysate_formulation: function() {
493 407
       var v = this.getValueStr(
494
-        "dialysate_formulation",
495
-        "dialysate_formulation"
496
-      );
408
+        'dialysate_formulation',
409
+        'dialysate_formulation'
410
+      )
497 411
       if (v.length == 0) {
498
-        return "";
412
+        return ''
499 413
       }
500 414
       if (v in this.dialysateFormulationMap) {
501
-        return this.dialysateFormulationMap[v].name;
415
+        return this.dialysateFormulationMap[v].name
502 416
       }
503
-      return "";
417
+      return ''
504 418
     },
505 419
     prescription_dewatering: function() {
506
-      var v = this.getValueStr("prescription_dewatering", "dewater");
507
-      return v.length == 0 ? "0" : v;
420
+      var v = this.getValueStr('prescription_dewatering', 'dewater')
421
+      return v.length == 0 ? '0' : v
508 422
     },
509 423
     anticoagulant: function() {
510
-      var v = this.getValueStr("anticoagulant", "anticoagulant");
424
+      var v = this.getValueStr('anticoagulant', 'anticoagulant')
511 425
       if (v.length == 0) {
512
-        return "";
426
+        return ''
513 427
       }
514 428
       if (this.$store.getters.anticoagulants_confit[v] != undefined) {
515
-        return this.$store.getters.anticoagulants_confit[v].name;
429
+        return this.$store.getters.anticoagulants_confit[v].name
516 430
       }
517
-      return "";
431
+      return ''
518 432
     },
519 433
     anticoagulant_zongliang: function() {
520 434
       var v = this.getValueStr(
521
-        "anticoagulant_zongliang",
522
-        "anticoagulant_zongliang"
523
-      );
524
-      return v.length == 0 ? "0" : v;
435
+        'anticoagulant_zongliang',
436
+        'anticoagulant_zongliang'
437
+      )
438
+      return v.length == 0 ? '0' : v
525 439
     },
526 440
     calcium: function() {
527
-      var v = this.getValueStr("calcium", "calcium");
528
-      return v.length == 0 ? "0" : v;
441
+      var v = this.getValueStr('calcium', 'calcium')
442
+      return v.length == 0 ? '0' : v
529 443
     },
530 444
 
531 445
     conductivity: function() {
532
-      var v = this.getValueStr("conductivity", "conductivity");
533
-      return v.length == 0 ? "0" : v;
446
+      var v = this.getValueStr('conductivity', 'conductivity')
447
+      return v.length == 0 ? '0' : v
534 448
     },
535 449
     dialyzer_perfusion_apparatus: function() {
536 450
       return this.getValueStr(
537
-        "dialyzer_perfusion_apparatus",
538
-        "dialyzer_perfusion_apparatus"
539
-      );
451
+        'dialyzer_perfusion_apparatus',
452
+        'dialyzer_perfusion_apparatus'
453
+      )
540 454
     },
541 455
     body_fluid: function() {
542
-      var id = this.getValueStr("body_fluid", "body_fluid");
456
+      var id = this.getValueStr('body_fluid', 'body_fluid')
543 457
       if (id == 0) {
544
-        return "";
458
+        return ''
545 459
       }
546
-      var bodyFluidOptions = this.$store.getters.body_fluid;
460
+      var bodyFluidOptions = this.$store.getters.body_fluid
547 461
       for (let i = 0; i < bodyFluidOptions.length; i++) {
548 462
         if (bodyFluidOptions[i].id == id) {
549
-          return bodyFluidOptions[i].name;
463
+          return bodyFluidOptions[i].name
550 464
         }
551 465
       }
552 466
     },
553 467
     special_medicine: function() {
554
-      var id = this.getValueStr("special_medicine", "special_medicine");
468
+      var id = this.getValueStr('special_medicine', 'special_medicine')
555 469
       if (id == 0) {
556
-        return "";
470
+        return ''
557 471
       }
558
-      var special_medicine = this.$store.getters.special_medicine;
472
+      var special_medicine = this.$store.getters.special_medicine
559 473
       for (let i = 0; i < special_medicine.length; i++) {
560 474
         if (special_medicine[i].id == id) {
561
-          return special_medicine[i].name;
475
+          return special_medicine[i].name
562 476
         }
563 477
       }
564 478
     },
565 479
     special_medicine_other: function() {
566 480
       return this.getValueStr(
567
-        "special_medicine_other",
568
-        "special_medicine_other"
569
-      );
481
+        'special_medicine_other',
482
+        'special_medicine_other'
483
+      )
570 484
     },
571 485
     blood_access: function() {
572
-      var id = this.getValueStr("blood_access", "blood_access");
573
-      console.log("id", id);
486
+      var id = this.getValueStr('blood_access', 'blood_access')
487
+      console.log('id', id)
574 488
       if (id == 0) {
575
-        return "";
489
+        return ''
576 490
       }
577 491
       // var blood_access = this.$store.getters.blood_access_internal_fistula;
578
-      var blood_access = getDataConfig("hemodialysis", "vascular_access_desc");
492
+      var blood_access = getDataConfig('hemodialysis', 'vascular_access_desc')
579 493
       for (let i = 0; i < blood_access.length; i++) {
580 494
         if (blood_access[i].id == id) {
581
-          return blood_access[i].name;
495
+          return blood_access[i].name
582 496
         }
583 497
       }
584 498
     },
585 499
     displace_liqui: function() {
586
-      var id = this.getValueStr("displace_liqui_part", "displace_liqui_part");
500
+      var id = this.getValueStr('displace_liqui_part', 'displace_liqui_part')
587 501
       var displace_liqui_value = this.getValueStr(
588
-        "displace_liqui_value",
589
-        "displace_liqui_value"
590
-      );
591
-      var displace_liqui_part = "";
592
-      var displace_liqui = this.$store.getters.displace_liqui;
502
+        'displace_liqui_value',
503
+        'displace_liqui_value'
504
+      )
505
+      var displace_liqui_part = ''
506
+      var displace_liqui = this.$store.getters.displace_liqui
593 507
       for (let i = 0; i < displace_liqui.length; i++) {
594 508
         if (displace_liqui[i].id == id) {
595
-          displace_liqui_part = displace_liqui[i].name;
509
+          displace_liqui_part = displace_liqui[i].name
596 510
         }
597 511
       }
598
-      return displace_liqui_part + displace_liqui_value;
512
+      return displace_liqui_part + displace_liqui_value
599 513
     },
600 514
     ultrafiltration: function() {
601
-      var v = this.getValueStr("ultrafiltration", "ultrafiltration");
602
-      return v.length == 0 ? "0" : v;
515
+      var v = this.getValueStr('ultrafiltration', 'ultrafiltration')
516
+      return v.length == 0 ? '0' : v
603 517
     },
604 518
     body_fluid_other: function() {
605
-      return this.getValueStr("body_fluid_other", "body_fluid_others");
519
+      return this.getValueStr('body_fluid_other', 'body_fluid_others')
606 520
     },
607 521
     target_ktv: function() {
608
-      var v = this.getValueStr("target_ktv", "target_ktv");
609
-      return v.length == 0 ? "0" : v;
522
+      var v = this.getValueStr('target_ktv', 'target_ktv')
523
+      return v.length == 0 ? '0' : v
610 524
     }
611 525
   },
612 526
   created() {
613
-    var perfusion_apparatus = this.$store.getters.perfusion_apparatus;
614
-    var map = {};
527
+    var perfusion_apparatus = this.$store.getters.perfusion_apparatus
528
+    var map = {}
615 529
     for (let index = 0; index < perfusion_apparatus.length; index++) {
616
-      const p = perfusion_apparatus[index];
617
-      map[p.id] = p;
530
+      const p = perfusion_apparatus[index]
531
+      map[p.id] = p
618 532
     }
619
-    this.perfusion_apparatus_map = map;
533
+    this.perfusion_apparatus_map = map
620 534
 
621 535
     var dialysateFormulationOptions = getDataConfig(
622
-      "hemodialysis",
623
-      "dialysate_formulation"
624
-    );
536
+      'hemodialysis',
537
+      'dialysate_formulation'
538
+    )
625 539
 
626 540
     for (var index in dialysateFormulationOptions) {
627 541
       this.dialysateFormulationMap[dialysateFormulationOptions[index].id] =
628
-        dialysateFormulationOptions[index];
542
+        dialysateFormulationOptions[index]
629 543
     }
630 544
   },
631 545
   methods: {
632 546
     getValueStr(pkey, skey) {
633 547
       if (
634
-        (this.prescription == null || this.prescription.id == "") &&
635
-        (this.solution == null || this.solution.id == "")
548
+        (this.prescription == null || this.prescription.id == '') &&
549
+        (this.solution == null || this.solution.id == '')
636 550
       ) {
637
-        return "";
638
-      } else if (this.prescription != null && this.prescription.id != "") {
551
+        return ''
552
+      } else if (this.prescription != null && this.prescription.id != '') {
639 553
         if (
640 554
           this.prescription[pkey] == null ||
641 555
           this.prescription[pkey] == undefined
642 556
         ) {
643
-          return "";
557
+          return ''
644 558
         }
645
-        return this.prescription[pkey] + "";
559
+        return this.prescription[pkey] + ''
646 560
       } else {
647 561
         if (this.solution[skey] == null || this.solution[skey] == undefined) {
648
-          return "";
562
+          return ''
649 563
         }
650 564
 
651
-        return this.solution[skey] + "";
565
+        return this.solution[skey] + ''
652 566
       }
653 567
     },
654 568
     isShow(name) {
655
-      var filedList = store.getters.xt_user.fileds;
569
+      var filedList = store.getters.xt_user.fileds
656 570
       for (let i = 0; i < filedList.length; i++) {
657 571
         if (
658 572
           filedList[i].module == 1 &&
659 573
           filedList[i].filed_name_cn == name &&
660 574
           filedList[i].is_show == 1
661 575
         ) {
662
-          return true;
576
+          return true
663 577
         }
664 578
       }
665
-      return false;
579
+      return false
666 580
     }
667 581
   }
668
-};
582
+}
669 583
 </script>
670 584
 
671 585
 <style rel="stylesheet/scss" lang="scss" scoped></style>

+ 183 - 164
src/xt_pages/dialysis/details/assessmentAfter.vue View File

@@ -105,6 +105,16 @@
105 105
           <span id="bzh" class="content">{{ eat_name }}</span>
106 106
         </li>
107 107
 
108
+        <li v-if="isShow('回血')">
109
+          <label>回血: </label>
110
+          <span class="content"  v-if="return_blood != '0'">{{ return_blood }}</span>
111
+        </li>
112
+
113
+        <li v-if="isShow('补液量')">
114
+          <label>补液量: </label>
115
+          <span class="content"  v-if="rehydration_volume != '0'">{{ rehydration_volume }}</span>
116
+        </li>
117
+
108 118
         <!-- <li style="height: 0.6rem;">
109 119
           <label></label>
110 120
       </li> -->
@@ -175,6 +185,11 @@
175 185
             getIntravenousTubeName(this.record.intravenous_tube)
176 186
           }}</span>
177 187
         </li>
188
+
189
+        <li v-if="isShow('透析中进食')">
190
+          <label>透析中进食: </label>
191
+          <span class="content"  v-if="dialysis_during != '0'">{{ dialysis_during }}</span>
192
+        </li>
178 193
       </ul>
179 194
       <ul>
180 195
         <li v-if="isShow('透后称重')">
@@ -278,6 +293,10 @@
278 293
           }}</span>
279 294
           <span class="unit">{{ this.record.cvc_v ? "ml" : "" }}</span>
280 295
         </li>
296
+        <li v-if="isShow('出量')">
297
+          <label>出量: </label>
298
+          <span class="content"  v-if="stroke_volume != '0'">{{ stroke_volume }}</span>
299
+        </li>
281 300
       </ul>
282 301
     </div>
283 302
     <div class="note">
@@ -288,14 +307,14 @@
288 307
 </template>
289 308
 
290 309
 <script>
291
-import store from "@/store";
310
+import store from '@/store'
292 311
 
293 312
 export default {
294
-  name: "DialysisPrescription",
313
+  name: 'DialysisPrescription',
295 314
   data() {
296 315
     return {
297
-      title: "透后评估 "
298
-    };
316
+      title: '透后评估 '
317
+    }
299 318
   },
300 319
   props: {
301 320
     record: {
@@ -305,428 +324,428 @@ export default {
305 324
   computed: {
306 325
     weight_after: function() {
307 326
       if (this.record.id == 0) {
308
-        return "-";
327
+        return '-'
309 328
       }
310
-      return this.record.weight_after;
329
+      return this.record.weight_after
311 330
     },
312 331
     systolic_blood_pressure: function() {
313 332
       if (this.record.id == 0) {
314
-        return "-";
333
+        return '-'
315 334
       }
316
-      return this.record.systolic_blood_pressure;
335
+      return this.record.systolic_blood_pressure
317 336
     },
318 337
     actual_ultrafiltration: function() {
319 338
       if (this.record.id == 0) {
320
-        return "-";
339
+        return '-'
321 340
       }
322
-      return this.record.actual_ultrafiltration;
341
+      return this.record.actual_ultrafiltration
323 342
     },
324 343
     cruor: function() {
325 344
       if (this.record.id == 0) {
326
-        return "-";
345
+        return '-'
327 346
       }
328
-      return this.record.cruor;
347
+      return this.record.cruor
329 348
     },
330 349
     internal_fistula: function() {
331
-      if (this.record == null || this.record.id == "") {
332
-        return "-";
350
+      if (this.record == null || this.record.id == '') {
351
+        return '-'
333 352
       }
334
-      return this.record.internal_fistula;
353
+      return this.record.internal_fistula
335 354
     },
336 355
     weight_loss: function() {
337 356
       if (this.record.id == 0) {
338
-        return "-";
357
+        return '-'
339 358
       }
340
-      return this.record.weight_loss;
359
+      return this.record.weight_loss
341 360
     },
342 361
     inpatient_department: function() {
343 362
       if (this.record.id == 0) {
344
-        return "-";
363
+        return '-'
345 364
       }
346
-      return this.record.inpatient_department;
365
+      return this.record.inpatient_department
347 366
     },
348 367
     patient_gose: function() {
349 368
       if (this.record.id == 0) {
350
-        return 0;
369
+        return 0
351 370
       }
352
-      return this.record.patient_gose;
371
+      return this.record.patient_gose
353 372
     },
354 373
     diastolic_blood_pressure: function() {
355 374
       if (this.record.id == 0) {
356
-        return "-";
375
+        return '-'
357 376
       }
358
-      return this.record.diastolic_blood_pressure;
377
+      return this.record.diastolic_blood_pressure
359 378
     },
360 379
     actual_displacement: function() {
361 380
       if (this.record.id == 0) {
362
-        return "-";
381
+        return '-'
363 382
       }
364
-      return this.record.actual_displacement;
383
+      return this.record.actual_displacement
365 384
     },
366 385
     symptom_after_dialysis: function() {
367 386
       if (this.record.id == 0) {
368
-        return "-";
387
+        return '-'
369 388
       }
370
-      return this.record.symptom_after_dialysis;
389
+      return this.record.symptom_after_dialysis
371 390
     },
372 391
     blood_access_part: function() {
373 392
       if (this.record.id == 0) {
374
-        return "-";
393
+        return '-'
375 394
       }
376
-      const vascular_access = this.$store.getters.vascular_access;
377
-      const valen = vascular_access.length;
378
-      let name = "-";
395
+      const vascular_access = this.$store.getters.vascular_access
396
+      const valen = vascular_access.length
397
+      let name = '-'
379 398
 
380 399
       for (var index in vascular_access) {
381 400
         if (vascular_access[index].id == this.record.blood_access_part_id) {
382
-          name = vascular_access[index].name;
383
-          break;
401
+          name = vascular_access[index].name
402
+          break
384 403
         }
385 404
       }
386
-      return name;
405
+      return name
387 406
     },
388 407
     puncture_point_oozing_blood_name: function() {
389 408
       if (this.record.id == 0) {
390
-        return "-";
409
+        return '-'
391 410
       }
392 411
       switch (this.record.puncture_point_oozing_blood) {
393 412
         case 1:
394
-          return "有";
395
-          break;
413
+          return '有'
414
+          break
396 415
         case 2:
397
-          return "无";
398
-          break;
416
+          return '无'
417
+          break
399 418
 
400 419
         default:
401
-          return "-";
402
-          break;
420
+          return '-'
421
+          break
403 422
       }
404 423
     },
405 424
     eat_name: function() {
406
-      if (this.record == null || this.record.id == "") {
407
-        return "-";
425
+      if (this.record == null || this.record.id == '') {
426
+        return '-'
408 427
       }
409 428
       switch (this.record.is_eat) {
410 429
         case 1:
411
-          return "有";
412
-          break;
430
+          return '有'
431
+          break
413 432
         case 2:
414
-          return "无";
415
-          break;
433
+          return '无'
434
+          break
416 435
 
417 436
         default:
418
-          return "-";
419
-          break;
437
+          return '-'
438
+          break
420 439
       }
421 440
     },
422 441
     patient_gose_name: function() {
423 442
       if (this.record.id == 0) {
424
-        return "-";
443
+        return '-'
425 444
       }
426 445
       switch (this.record.patient_gose) {
427 446
         case 1:
428
-          return "离院";
429
-          break;
447
+          return '离院'
448
+          break
430 449
         case 2:
431
-          return "留观";
432
-          break;
450
+          return '留观'
451
+          break
433 452
         case 3:
434
-          return "住院";
435
-          break;
453
+          return '住院'
454
+          break
436 455
 
437 456
         default:
438
-          return "-";
439
-          break;
457
+          return '-'
458
+          break
440 459
       }
441 460
     },
442 461
     blood_access_opera: function() {
443 462
       if (this.record.id == 0) {
444
-        return "-";
463
+        return '-'
445 464
       }
446
-      const vascular_access = this.$store.getters.vascular_access_desc;
465
+      const vascular_access = this.$store.getters.vascular_access_desc
447 466
       // console.log(vascular_access);
448
-      let name = "-";
467
+      let name = '-'
449 468
       for (var index in vascular_access) {
450 469
         if (
451 470
           vascular_access[index].id == this.record.blood_access_part_opera_id
452 471
         ) {
453
-          name = vascular_access[index].name;
454
-          break;
472
+          name = vascular_access[index].name
473
+          break
455 474
         }
456 475
       }
457
-      return name;
476
+      return name
458 477
     },
459 478
     catheter: function() {
460 479
       if (this.record.id == 0) {
461
-        return "-";
480
+        return '-'
462 481
       }
463
-      return this.record.catheter;
482
+      return this.record.catheter
464 483
     },
465 484
     puncture_point_haematoma_name: function() {
466 485
       if (this.record.id == 0) {
467
-        return;
486
+        return
468 487
       }
469 488
       switch (this.record.puncture_point_haematoma) {
470 489
         case 1:
471
-          return "有";
472
-          break;
490
+          return '有'
491
+          break
473 492
         case 2:
474
-          return "无";
475
-          break;
493
+          return '无'
494
+          break
476 495
         default:
477
-          return "-";
478
-          break;
496
+          return '-'
497
+          break
479 498
       }
480 499
     }
481 500
   },
482 501
   breathing_rate: function() {
483 502
     if (this.record.id == 0) {
484
-      return "-";
503
+      return '-'
485 504
     }
486
-    return this.record.breathing_rate;
505
+    return this.record.breathing_rate
487 506
   },
488 507
   temperature: function() {
489 508
     if (this.record.id == 0) {
490
-      return "-";
509
+      return '-'
491 510
     }
492
-    return this.record.temperature;
511
+    return this.record.temperature
493 512
   },
494 513
   pulse_frequency: function() {
495 514
     if (this.record.id == 0) {
496
-      return "-";
515
+      return '-'
497 516
     }
498
-    return this.record.pulse_frequency;
517
+    return this.record.pulse_frequency
499 518
   },
500 519
   actual_treatment_hour: function() {
501 520
     if (this.record.id == 0) {
502
-      return "-";
521
+      return '-'
503 522
     }
504
-    return this.record.actual_treatment_hour;
523
+    return this.record.actual_treatment_hour
505 524
   },
506 525
   actual_treatment_minute: function() {
507 526
     if (this.record.id == 0) {
508
-      return "-";
527
+      return '-'
509 528
     }
510
-    return this.record.actual_treatment_minute;
529
+    return this.record.actual_treatment_minute
511 530
   },
512 531
 
513 532
   observation_content_other: function() {
514 533
     if (this.record.id == 0) {
515
-      return "-";
534
+      return '-'
516 535
     }
517
-    return this.record.observation_content_other;
536
+    return this.record.observation_content_other
518 537
   },
519 538
   observation_content: function() {
520 539
     if (this.record.id == 0) {
521
-      return "-";
540
+      return '-'
522 541
     }
523
-    return this.record.observation_content;
542
+    return this.record.observation_content
524 543
   },
525 544
   complication: function() {
526 545
     if (this.record.id == 0) {
527
-      return "-";
546
+      return '-'
528 547
     }
529
-    return this.record.complication;
548
+    return this.record.complication
530 549
   },
531 550
 
532 551
   temperature: function() {
533 552
     if (this.record.id == 0) {
534
-      return "-";
553
+      return '-'
535 554
     }
536
-    return this.record.temperature;
555
+    return this.record.temperature
537 556
   },
538 557
   pulse_frequency: function() {
539 558
     if (this.record.id == 0) {
540
-      return "-";
559
+      return '-'
541 560
     }
542
-    return this.record.pulse_frequency;
561
+    return this.record.pulse_frequency
543 562
   },
544 563
   actual_treatment_hour: function() {
545 564
     if (this.record.id == 0) {
546
-      return "-";
565
+      return '-'
547 566
     }
548
-    return this.record.actual_treatment_hour;
567
+    return this.record.actual_treatment_hour
549 568
   },
550 569
   actual_treatment_minute: function() {
551 570
     if (this.record.id == 0) {
552
-      return "-";
571
+      return '-'
553 572
     }
554
-    return this.record.actual_treatment_minute;
573
+    return this.record.actual_treatment_minute
555 574
   },
556 575
   dialysis_intakes: function() {
557 576
     if (this.record.id == 0) {
558
-      return "-";
577
+      return '-'
559 578
     }
560
-    return this.record.dialysis_intakes;
579
+    return this.record.dialysis_intakes
561 580
   },
562 581
   observation_content_other: function() {
563 582
     if (this.record.id == 0) {
564
-      return "-";
583
+      return '-'
565 584
     }
566
-    return this.record.observation_content_other;
585
+    return this.record.observation_content_other
567 586
   },
568 587
   observation_content: function() {
569 588
     if (this.record.id == 0) {
570
-      return "-";
589
+      return '-'
571 590
     }
572
-    return this.record.observation_content;
591
+    return this.record.observation_content
573 592
   },
574 593
   complication: function() {
575 594
     if (this.record.id == 0) {
576
-      return "-";
595
+      return '-'
577 596
     }
578
-    return this.record.complication;
597
+    return this.record.complication
579 598
   },
580 599
 
581 600
   remark: function() {
582 601
     if (this.record.id == 0) {
583
-      return "";
602
+      return ''
584 603
     }
585
-    return this.record.remark;
604
+    return this.record.remark
586 605
   },
587 606
   in_advance_minute: function() {
588
-    if (this.record == null || this.record.id == "") {
589
-      return "";
607
+    if (this.record == null || this.record.id == '') {
608
+      return ''
590 609
     }
591
-    return this.record.in_advance_minute;
610
+    return this.record.in_advance_minute
592 611
   },
593 612
   in_advance_reason: function() {
594
-    if (this.record == null || this.record.id == "") {
595
-      return "";
613
+    if (this.record == null || this.record.id == '') {
614
+      return ''
596 615
     }
597 616
     return (
598
-      this.record.in_advance_reason + "," + this.record.in_advance_reason_other
599
-    );
617
+      this.record.in_advance_reason + ',' + this.record.in_advance_reason_other
618
+    )
600 619
   },
601 620
   hemostasis_minute: function() {
602
-    if (this.record == null || this.record.id == "") {
603
-      return "";
621
+    if (this.record == null || this.record.id == '') {
622
+      return ''
604 623
     }
605 624
 
606
-    return this.record.hemostasis_minute;
625
+    return this.record.hemostasis_minute
607 626
   },
608 627
   in_advance_reason_other: function() {
609
-    if (this.record == null || this.record.id == "") {
610
-      return "";
628
+    if (this.record == null || this.record.id == '') {
629
+      return ''
611 630
     }
612
-    return this.record.in_advance_reason_other;
631
+    return this.record.in_advance_reason_other
613 632
   },
614 633
   methods: {
615 634
     getInternal: function() {
616 635
       if (this.record.id == 0) {
617
-        return "-";
636
+        return '-'
618 637
       }
619 638
       switch (this.record.internal_fistula_tremor_ac) {
620 639
         case 1:
621
-          return "存在";
622
-          break;
640
+          return '存在'
641
+          break
623 642
         case 2:
624
-          return "减弱";
625
-          break;
643
+          return '减弱'
644
+          break
626 645
         case 3:
627
-          return "无";
628
-          break;
646
+          return '无'
647
+          break
629 648
         default:
630
-          return "-";
649
+          return '-'
631 650
       }
632 651
     },
633 652
     getOpera: function(id) {
634
-      var hemostasis_opera = this.$store.getters.hemostasis_opera;
635
-      var hemostasisOperaName = "";
653
+      var hemostasis_opera = this.$store.getters.hemostasis_opera
654
+      var hemostasisOperaName = ''
636 655
       for (let i = 0; i < hemostasis_opera.length; i++) {
637 656
         if (hemostasis_opera[i].id == id) {
638
-          hemostasisOperaName = hemostasis_opera[i].name;
657
+          hemostasisOperaName = hemostasis_opera[i].name
639 658
         }
640 659
       }
641
-      return hemostasisOperaName;
660
+      return hemostasisOperaName
642 661
     },
643 662
     getTremorNoise: function(id) {
644
-      var tremor_noise = this.$store.getters.tremor_noise;
645
-      var tremorNoiseName = "";
663
+      var tremor_noise = this.$store.getters.tremor_noise
664
+      var tremorNoiseName = ''
646 665
       for (let i = 0; i < tremor_noise.length; i++) {
647 666
         if (tremor_noise[i].id == id) {
648
-          tremorNoiseName = tremor_noise[i].name;
667
+          tremorNoiseName = tremor_noise[i].name
649 668
         }
650 669
       }
651
-      return tremorNoiseName;
670
+      return tremorNoiseName
652 671
     },
653 672
     getUnit: function(val) {
654 673
       switch (val) {
655 674
         case 1:
656
-          return "g";
657
-          break;
675
+          return 'g'
676
+          break
658 677
         case 2:
659
-          return "ml";
660
-          break;
678
+          return 'ml'
679
+          break
661 680
       }
662 681
     },
663 682
     getDisequilibriumSyndrome: function(id) {
664
-      var disequilibrium_syndrome = this.$store.getters.disequilibrium_syndrome;
665
-      var disequilibriumSyndromeName = "";
683
+      var disequilibrium_syndrome = this.$store.getters.disequilibrium_syndrome
684
+      var disequilibriumSyndromeName = ''
666 685
       for (let i = 0; i < disequilibrium_syndrome.length; i++) {
667 686
         if (disequilibrium_syndrome[i].id == id) {
668
-          disequilibriumSyndromeName = disequilibrium_syndrome[i].name;
687
+          disequilibriumSyndromeName = disequilibrium_syndrome[i].name
669 688
         }
670 689
       }
671
-      return disequilibriumSyndromeName;
690
+      return disequilibriumSyndromeName
672 691
     },
673 692
     getDisequilibriumSyndromeOptionName: function(id) {
674 693
       var disequilibrium_syndrome_option = this.$store.getters
675
-        .disequilibrium_syndrome_option;
676
-      var disequilibriumSyndromeOptionName = "";
694
+        .disequilibrium_syndrome_option
695
+      var disequilibriumSyndromeOptionName = ''
677 696
       for (let i = 0; i < disequilibrium_syndrome_option.length; i++) {
678 697
         if (disequilibrium_syndrome_option[i].id == id) {
679 698
           disequilibriumSyndromeOptionName =
680
-            disequilibrium_syndrome_option[i].name;
699
+            disequilibrium_syndrome_option[i].name
681 700
         }
682 701
       }
683
-      return disequilibriumSyndromeOptionName;
702
+      return disequilibriumSyndromeOptionName
684 703
     },
685 704
     getArterialTubeName: function(id) {
686
-      var arterial_tube = this.$store.getters.arterial_tube;
687
-      var arterialTubeName = "";
705
+      var arterial_tube = this.$store.getters.arterial_tube
706
+      var arterialTubeName = ''
688 707
       for (let i = 0; i < arterial_tube.length; i++) {
689 708
         if (arterial_tube[i].id == id) {
690
-          arterialTubeName = arterial_tube[i].name;
709
+          arterialTubeName = arterial_tube[i].name
691 710
         }
692 711
       }
693
-      return arterialTubeName;
712
+      return arterialTubeName
694 713
     },
695 714
     getIntravenousTubeName: function(id) {
696
-      var intravenous_tube = this.$store.getters.intravenous_tube;
697
-      var intravenousTubeName = "";
715
+      var intravenous_tube = this.$store.getters.intravenous_tube
716
+      var intravenousTubeName = ''
698 717
       for (let i = 0; i < intravenous_tube.length; i++) {
699 718
         if (intravenous_tube[i].id == id) {
700
-          intravenousTubeName = intravenous_tube[i].name;
719
+          intravenousTubeName = intravenous_tube[i].name
701 720
         }
702 721
       }
703
-      return intravenousTubeName;
722
+      return intravenousTubeName
704 723
     },
705 724
     getDialyzer: function(id) {
706
-      var dialyzer = this.$store.getters.dialyzer;
707
-      var dialyzerName = "";
725
+      var dialyzer = this.$store.getters.dialyzer
726
+      var dialyzerName = ''
708 727
       for (let i = 0; i < dialyzer.length; i++) {
709 728
         if (dialyzer[i].id == id) {
710
-          dialyzerName = dialyzer[i].name;
729
+          dialyzerName = dialyzer[i].name
711 730
         }
712 731
       }
713
-      return dialyzerName;
732
+      return dialyzerName
714 733
     },
715 734
     isShow(name) {
716
-      var filedList = store.getters.xt_user.fileds;
735
+      var filedList = store.getters.xt_user.fileds
717 736
       for (let i = 0; i < filedList.length; i++) {
718 737
         if (
719 738
           filedList[i].module == 5 &&
720 739
           filedList[i].filed_name_cn == name &&
721 740
           filedList[i].is_show == 1
722 741
         ) {
723
-          return true;
742
+          return true
724 743
         }
725 744
       }
726
-      return false;
745
+      return false
727 746
     }
728 747
   }
729
-};
748
+}
730 749
 </script>
731 750
 
732 751
 <style rel="stylesheet/scss" lang="scss" scoped></style>

+ 15 - 0
src/xt_pages/dialysis/details/assessmentBefore.vue View File

@@ -65,6 +65,11 @@
65 65
           <span class="unit"> </span>
66 66
         </li>
67 67
 
68
+        <li v-if="isShow('体液过多症状')">
69
+          <label>体液过多症状 : </label>
70
+          <span class="content">{{ getHumorExcessiveSymptom(this.record.humor_excessive_symptom) }}</span>
71
+        </li>
72
+
68 73
         <li v-if="isShow('其他感染情况')">
69 74
           <label>其他感染情况:</label>
70 75
           <span class="content">{{ infect_other }}</span>
@@ -556,6 +561,16 @@ export default {
556 561
       }
557 562
       return PunctureWayOptionsName
558 563
     },
564
+    getHumorExcessiveSymptom: function(id) {
565
+      var HumorExcessiveSymptoms = getDataConfig('hemodialysis', 'humor_excessive_symptom')
566
+      var HumorExcessiveSymptomName = ''
567
+      for (let i = 0; i < HumorExcessiveSymptoms.length; i++) {
568
+        if (HumorExcessiveSymptoms[i].id == id) {
569
+          HumorExcessiveSymptomName = HumorExcessiveSymptoms[i].name
570
+        }
571
+      }
572
+      return HumorExcessiveSymptomName
573
+    },
559 574
     getVenousCatheterizationPart: function(id) {
560 575
       var venousCatheterizationPartOptions = this.$store.getters
561 576
         .venous_catheterization_part

+ 384 - 349
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue View File

@@ -324,6 +324,7 @@
324 324
             ></el-input>
325 325
           </el-form-item>
326 326
         </el-col>
327
+
327 328
         <el-col :span="8" v-if="isShow('透析中入量')">
328 329
           <el-form-item label="透析中入量: ">
329 330
             <el-input v-model="form.dialysis_intakes"></el-input>
@@ -344,6 +345,31 @@
344 345
           </el-form-item>
345 346
         </el-col>
346 347
 
348
+        <el-col :span="8" v-if="isShow('回血')">
349
+          <el-form-item label="回血(ml): ">
350
+            <el-input v-model="form.return_blood"></el-input>
351
+          </el-form-item>
352
+        </el-col>
353
+
354
+        <el-col :span="8" v-if="isShow('补液量')">
355
+          <el-form-item label="补液量(ml): ">
356
+            <el-input v-model="form.rehydration_volume"></el-input>
357
+          </el-form-item>
358
+        </el-col>
359
+
360
+        <el-col :span="8" v-if="isShow('透析中进食')">
361
+          <el-form-item label="透析中进食(ml): ">
362
+            <el-input v-model="form.dialysis_during"></el-input>
363
+          </el-form-item>
364
+        </el-col>
365
+
366
+        <el-col :span="8" v-if="isShow('出量')">
367
+          <el-form-item label="出量(ml): ">
368
+            <el-input v-model="form.stroke_volume"></el-input>
369
+          </el-form-item>
370
+        </el-col>
371
+
372
+
347 373
         <!-- </el-row>
348 374
 
349 375
         <el-row :gutter="20"> -->
@@ -522,53 +548,53 @@
522 548
 </template>
523 549
 
524 550
 <script>
525
-import { getDataConfig } from "@/utils/data";
526
-import MultiSelectBox from "./MultiSelectBox";
527
-import { postAssessmentAfterDislysis } from "@/api/dialysis";
528
-import { uParseTime } from "@/utils/tools";
529
-import store from "@/store";
551
+import { getDataConfig } from '@/utils/data'
552
+import MultiSelectBox from './MultiSelectBox'
553
+import { postAssessmentAfterDislysis } from '@/api/dialysis'
554
+import { uParseTime } from '@/utils/tools'
555
+import store from '@/store'
530 556
 
531
-import request from "@/utils/request";
557
+import request from '@/utils/request'
532 558
 
533 559
 export default {
534
-  name: "AssessmentAfterDislysis",
560
+  name: 'AssessmentAfterDislysis',
535 561
   props: {
536 562
     assessment_after_dislysis: {
537 563
       // 透后评估
538 564
       type: Object,
539 565
       default: () => {
540
-        return { id: 0 };
566
+        return { id: 0 }
541 567
       }
542 568
     },
543 569
     dialysis_order: {
544 570
       // 透析记录
545 571
       type: Object,
546 572
       default: () => {
547
-        return { id: 0 };
573
+        return { id: 0 }
548 574
       }
549 575
     },
550 576
     patient: {
551 577
       // 患者信息
552 578
       type: Object,
553 579
       default: () => {
554
-        return { id: 0 };
580
+        return { id: 0 }
555 581
       }
556 582
     }
557 583
   },
558 584
   data() {
559 585
     return {
560
-      showTxt: "",
586
+      showTxt: '',
561 587
       hasPermission: true,
562 588
       loading: false,
563
-      record_date: "",
589
+      record_date: '',
564 590
       isVisibility: false,
565 591
       template_id: 0,
566 592
       cruorOptions: [],
567 593
       symptomsOptions: [],
568 594
       internalFistulaOptions: [],
569 595
       vascularAccessOptions: [],
570
-      unit: [{ id: 1, name: "g" }, { id: 2, name: "ml" }],
571
-      actualTreatmentHourShow: "",
596
+      unit: [{ id: 1, name: 'g' }, { id: 2, name: 'ml' }],
597
+      actualTreatmentHourShow: '',
572 598
       vascularAccessDescOptions: [],
573 599
       catheterOptions: [],
574 600
       complicationOptions: [],
@@ -578,428 +604,448 @@ export default {
578 604
       channels: [],
579 605
 
580 606
       isVisibiltyForCruorDialog: false,
581
-      dialogCruorTitle: "凝血",
607
+      dialogCruorTitle: '凝血',
582 608
 
583 609
       InnerDialogProps: {
584 610
         values: [],
585 611
         visibility: false,
586 612
         isShowTextArea: true,
587
-        customContent: "",
588
-        titles: "",
589
-        type: "" // 不同弹框类型,用来匹配数据
613
+        customContent: '',
614
+        titles: '',
615
+        type: '' // 不同弹框类型,用来匹配数据
590 616
       },
591 617
 
592 618
       form: {
593
-        weight_after: "",
594
-        weight_loss: "",
595
-        temperature: "",
596
-        systolic_blood_pressure: "",
597
-        diastolic_blood_pressure: "",
598
-        pulse_frequency: "",
599
-        actual_ultrafiltration: "",
600
-        actual_displacement: "",
601
-        actual_treatment_hour: "",
602
-        actual_treatment_minute: "",
603
-        cruor: "",
604
-        symptom_after_dialysis: "",
605
-        dialysis_intakes: "",
606
-        internal_fistula: "",
607
-        blood_access_part_id: "",
608
-        blood_access_part_opera_id: "",
609
-        catheter: "",
610
-        complication: "",
619
+        weight_after: '',
620
+        weight_loss: '',
621
+        temperature: '',
622
+        systolic_blood_pressure: '',
623
+        diastolic_blood_pressure: '',
624
+        pulse_frequency: '',
625
+        actual_ultrafiltration: '',
626
+        actual_displacement: '',
627
+        actual_treatment_hour: '',
628
+        actual_treatment_minute: '',
629
+        cruor: '',
630
+        symptom_after_dialysis: '',
631
+        dialysis_intakes: '',
632
+        internal_fistula: '',
633
+        blood_access_part_id: '',
634
+        blood_access_part_opera_id: '',
635
+        catheter: '',
636
+        complication: '',
611 637
         puncture_point_oozing_blood: 2,
612 638
         puncture_point_haematoma: 2,
613
-        internal_fistula_tremor_ac: "",
614
-        patient_gose: "",
615
-        inpatient_department: "",
616
-        observation_content: "",
617
-        observation_content_other: "",
618
-        remark: "",
639
+        internal_fistula_tremor_ac: '',
640
+        patient_gose: '',
641
+        inpatient_department: '',
642
+        observation_content: '',
643
+        observation_content_other: '',
644
+        remark: '',
619 645
         dialysis_order_id: 0,
620 646
         is_eat: 2,
621
-        dialysis_process: "",
622
-        in_advance_minute: "",
623
-        in_advance_reason: "",
624
-        in_advance_reason_other: "",
625
-        hemostasis_minute: "",
626
-        hemostasis_opera: "",
627
-        tremor_noise: "",
628
-        disequilibrium_syndrome: "",
629
-        disequilibrium_syndrome_option: "",
630
-        arterial_tube: "",
631
-        intravenous_tube: "",
632
-        dialyzer: "",
633
-        breathing_rate: "",
647
+        dialysis_process: '',
648
+        in_advance_minute: '',
649
+        in_advance_reason: '',
650
+        in_advance_reason_other: '',
651
+        hemostasis_minute: '',
652
+        hemostasis_opera: '',
653
+        tremor_noise: '',
654
+        disequilibrium_syndrome: '',
655
+        disequilibrium_syndrome_option: '',
656
+        arterial_tube: '',
657
+        intravenous_tube: '',
658
+        dialyzer: '',
659
+        breathing_rate: '',
634 660
         dialysis_intakes_unit: 0,
635 661
         cvc_a: 0,
636 662
         cvc_v: 0,
637
-        channel: ""
663
+        channel: '',
664
+        return_blood: '',
665
+        rehydration_volume: '',
666
+        dialysis_during: '',
667
+        stroke_volume: ''
638 668
       }
639
-    };
669
+    }
640 670
   },
641 671
   watch: {
642
-    "assessment_after_dislysis.id": function() {
672
+    'assessment_after_dislysis.id': function() {
643 673
       if (this.assessment_after_dislysis.id > 0) {
644 674
         for (var index in this.form) {
645
-          this.form[index] = this.assessment_after_dislysis[index];
675
+          this.form[index] = this.assessment_after_dislysis[index]
646 676
         }
647 677
 
648
-        if (this.assessment_after_dislysis["blood_access_part_id"] == 0) {
649
-          this.form["blood_access_part_id"] = "";
678
+        if (this.assessment_after_dislysis['blood_access_part_id'] == 0) {
679
+          this.form['blood_access_part_id'] = ''
680
+        }
681
+        if (this.assessment_after_dislysis['blood_access_part_opera_id'] == 0) {
682
+          this.form['blood_access_part_opera_id'] = ''
683
+        }
684
+        if (this.assessment_after_dislysis['internal_fistula_tremor_ac'] == 0) {
685
+          this.form['internal_fistula_tremor_ac'] = ''
686
+        }
687
+        if (this.assessment_after_dislysis['patient_gose'] == 0) {
688
+          this.form['patient_gose'] = ''
650 689
         }
651
-        if (this.assessment_after_dislysis["blood_access_part_opera_id"] == 0) {
652
-          this.form["blood_access_part_opera_id"] = "";
690
+        if (this.assessment_after_dislysis['weight_after'] == 0) {
691
+          this.form['weight_after'] = ''
653 692
         }
654
-        if (this.assessment_after_dislysis["internal_fistula_tremor_ac"] == 0) {
655
-          this.form["internal_fistula_tremor_ac"] = "";
693
+        if (this.assessment_after_dislysis['weight_loss'] == 0) {
694
+          this.form['weight_loss'] = ''
656 695
         }
657
-        if (this.assessment_after_dislysis["patient_gose"] == 0) {
658
-          this.form["patient_gose"] = "";
696
+        if (this.assessment_after_dislysis['temperature'] == 0) {
697
+          this.form['temperature'] = ''
659 698
         }
660
-        if (this.assessment_after_dislysis["weight_after"] == 0) {
661
-          this.form["weight_after"] = "";
699
+        if (this.assessment_after_dislysis['systolic_blood_pressure'] == 0) {
700
+          this.form['systolic_blood_pressure'] = ''
662 701
         }
663
-        if (this.assessment_after_dislysis["weight_loss"] == 0) {
664
-          this.form["weight_loss"] = "";
702
+        if (this.assessment_after_dislysis['diastolic_blood_pressure'] == 0) {
703
+          this.form['diastolic_blood_pressure'] = ''
665 704
         }
666
-        if (this.assessment_after_dislysis["temperature"] == 0) {
667
-          this.form["temperature"] = "";
705
+        if (this.assessment_after_dislysis['pulse_frequency'] == 0) {
706
+          this.form['pulse_frequency'] = ''
668 707
         }
669
-        if (this.assessment_after_dislysis["systolic_blood_pressure"] == 0) {
670
-          this.form["systolic_blood_pressure"] = "";
708
+        if (this.assessment_after_dislysis['breathing_rate'] == 0) {
709
+          this.form['breathing_rate'] = ''
671 710
         }
672
-        if (this.assessment_after_dislysis["diastolic_blood_pressure"] == 0) {
673
-          this.form["diastolic_blood_pressure"] = "";
711
+        if (this.assessment_after_dislysis['actual_ultrafiltration'] == 0) {
712
+          this.form['actual_ultrafiltration'] = ''
674 713
         }
675
-        if (this.assessment_after_dislysis["pulse_frequency"] == 0) {
676
-          this.form["pulse_frequency"] = "";
714
+        if (this.assessment_after_dislysis['actual_displacement'] == 0) {
715
+          this.form['actual_displacement'] = ''
677 716
         }
678
-        if (this.assessment_after_dislysis["breathing_rate"] == 0) {
679
-          this.form["breathing_rate"] = "";
717
+        if (this.assessment_after_dislysis['dialysis_intakes'] == 0) {
718
+          this.form['dialysis_intakes'] = ''
680 719
         }
681
-        if (this.assessment_after_dislysis["actual_ultrafiltration"] == 0) {
682
-          this.form["actual_ultrafiltration"] = "";
720
+        if (this.assessment_after_dislysis['return_blood'] == 0) {
721
+          this.form['return_blood'] = ''
683 722
         }
684
-        if (this.assessment_after_dislysis["actual_displacement"] == 0) {
685
-          this.form["actual_displacement"] = "";
723
+        if (this.assessment_after_dislysis['rehydration_volume'] == 0) {
724
+          this.form['rehydration_volume'] = ''
686 725
         }
687
-        if (this.assessment_after_dislysis["dialysis_intakes"] == 0) {
688
-          this.form["dialysis_intakes"] = "";
726
+        if (this.assessment_after_dislysis['dialysis_during'] == 0) {
727
+          this.form['dialysis_during'] = ''
728
+        }
729
+        if (this.assessment_after_dislysis['stroke_volume'] == 0) {
730
+          this.form['stroke_volume'] = ''
689 731
         }
690 732
         this.actualTreatmentHourShow = new Date(
691 733
           2018,
692 734
           1,
693 735
           1,
694
-          this.assessment_after_dislysis["actual_treatment_hour"],
695
-          this.assessment_after_dislysis["actual_treatment_minute"]
696
-        );
736
+          this.assessment_after_dislysis['actual_treatment_hour'],
737
+          this.assessment_after_dislysis['actual_treatment_minute']
738
+        )
697 739
       }
698 740
     },
699
-    "dialysis_order.id": function() {
700
-      this.form["dialysis_order_id"] = this.assessment_after_dislysis[
701
-        "dialysis_order_id"
702
-      ];
741
+    'dialysis_order.id': function() {
742
+      this.form['dialysis_order_id'] = this.assessment_after_dislysis[
743
+        'dialysis_order_id'
744
+      ]
703 745
     },
704
-    "form.patient_gose": function() {
746
+    'form.patient_gose': function() {
705 747
       if (this.form.patient_gose.patient_gose != 3) {
706
-        this.form.inpatient_department = "";
707
-        this.form.observation_content = "";
708
-        this.form.observation_content_other = "";
748
+        this.form.inpatient_department = ''
749
+        this.form.observation_content = ''
750
+        this.form.observation_content_other = ''
709 751
       }
710 752
     },
711
-    "form.weight_after": function() {
753
+    'form.weight_after': function() {
712 754
       if (this) {
713 755
       }
714 756
     }
715 757
   },
716 758
   methods: {
717 759
     submitForm() {
718
-      this.loading = true;
719
-      const ParamsQuery = {};
760
+      this.loading = true
761
+      const ParamsQuery = {}
720 762
 
721 763
       if (!(this.patient.id > 0)) {
722
-        this.$message.error("没有选择患者");
723
-        this.loading = false;
724
-        return false;
764
+        this.$message.error('没有选择患者')
765
+        this.loading = false
766
+        return false
725 767
       }
726 768
       if (this.record_date.length != 10) {
727
-        this.$message.error("无效的日期");
728
-        this.loading = false;
729
-        return false;
769
+        this.$message.error('无效的日期')
770
+        this.loading = false
771
+        return false
730 772
       }
731 773
 
732
-      ParamsQuery["patient"] = this.patient.id;
733
-      ParamsQuery["record_date"] = this.record_date;
734
-      ParamsQuery["mode"] = "1";
774
+      ParamsQuery['patient'] = this.patient.id
775
+      ParamsQuery['record_date'] = this.record_date
776
+      ParamsQuery['mode'] = '1'
735 777
       if (this.assessment_after_dislysis.creater > 0) {
736
-        ParamsQuery["mode"] = "2";
778
+        ParamsQuery['mode'] = '2'
737 779
         if (
738 780
           this.assessment_after_dislysis.creater !=
739 781
           this.$store.getters.xt_user.user.id
740 782
         ) {
741
-          ParamsQuery["mode"] = "3";
783
+          ParamsQuery['mode'] = '3'
742 784
         }
743 785
       }
744 786
 
745
-      const data = {};
746
-      data["weight_after"] = this.form.weight_after
787
+      const data = {}
788
+      data['weight_after'] = this.form.weight_after
747 789
         ? parseFloat(this.form.weight_after)
748
-        : 0;
749
-      data["weight_loss"] = this.form.weight_loss
790
+        : 0
791
+      data['weight_loss'] = this.form.weight_loss
750 792
         ? parseFloat(this.form.weight_loss)
751
-        : 0;
752
-      data["temperature"] = this.form.temperature
793
+        : 0
794
+      data['temperature'] = this.form.temperature
753 795
         ? parseFloat(this.form.temperature)
754
-        : 0;
755
-      data["breathing_rate"] = this.form.temperature
796
+        : 0
797
+      data['breathing_rate'] = this.form.temperature
756 798
         ? parseFloat(this.form.breathing_rate)
757
-        : 0;
758
-      data["systolic_blood_pressure"] = this.form.systolic_blood_pressure
799
+        : 0
800
+      data['systolic_blood_pressure'] = this.form.systolic_blood_pressure
759 801
         ? parseFloat(this.form.systolic_blood_pressure)
760
-        : 0;
761
-      data["diastolic_blood_pressure"] = this.form.diastolic_blood_pressure
802
+        : 0
803
+      data['diastolic_blood_pressure'] = this.form.diastolic_blood_pressure
762 804
         ? parseFloat(this.form.diastolic_blood_pressure)
763
-        : 0;
764
-      data["pulse_frequency"] = this.form.pulse_frequency
805
+        : 0
806
+      data['pulse_frequency'] = this.form.pulse_frequency
765 807
         ? parseFloat(this.form.pulse_frequency)
766
-        : 0;
767
-      data["actual_ultrafiltration"] = this.form.actual_ultrafiltration
808
+        : 0
809
+      data['actual_ultrafiltration'] = this.form.actual_ultrafiltration
768 810
         ? parseFloat(this.form.actual_ultrafiltration)
769
-        : 0;
770
-      data["actual_displacement"] = this.form.actual_displacement
811
+        : 0
812
+      data['actual_displacement'] = this.form.actual_displacement
771 813
         ? parseFloat(this.form.actual_displacement)
772
-        : 0;
773
-      data["actual_treatment_hour"] = this.form.actual_treatment_hour
814
+        : 0
815
+      data['actual_treatment_hour'] = this.form.actual_treatment_hour
774 816
         ? parseFloat(this.form.actual_treatment_hour)
775
-        : 0;
776
-      data["actual_treatment_minute"] = this.form.actual_treatment_minute
817
+        : 0
818
+      data['actual_treatment_minute'] = this.form.actual_treatment_minute
777 819
         ? parseFloat(this.form.actual_treatment_minute)
778
-        : 0;
779
-      data["cruor"] = this.form.cruor;
780
-      data["symptom_after_dialysis"] = this.form.symptom_after_dialysis;
781
-      data["dialysis_intakes"] = this.form.dialysis_intakes
820
+        : 0
821
+      data['cruor'] = this.form.cruor
822
+      data['symptom_after_dialysis'] = this.form.symptom_after_dialysis
823
+      data['dialysis_intakes'] = this.form.dialysis_intakes
782 824
         ? parseFloat(this.form.dialysis_intakes)
783
-        : 0;
784
-      data["internal_fistula"] = this.form.internal_fistula;
785
-      data["blood_access_part_id"] = this.form.blood_access_part_id
825
+        : 0
826
+      data['internal_fistula'] = this.form.internal_fistula
827
+      data['blood_access_part_id'] = this.form.blood_access_part_id
786 828
         ? parseFloat(this.form.blood_access_part_id)
787
-        : 0;
788
-      data["blood_access_part_opera_id"] = this.form.blood_access_part_opera_id
829
+        : 0
830
+      data['blood_access_part_opera_id'] = this.form.blood_access_part_opera_id
789 831
         ? parseFloat(this.form.blood_access_part_opera_id)
790
-        : 0;
791
-      data["catheter"] = this.form.catheter;
792
-      data["complication"] = this.form.complication;
793
-      data["puncture_point_oozing_blood"] = this.form
832
+        : 0
833
+      data['catheter'] = this.form.catheter
834
+      data['complication'] = this.form.complication
835
+      data['puncture_point_oozing_blood'] = this.form
794 836
         .puncture_point_oozing_blood
795 837
         ? parseFloat(this.form.puncture_point_oozing_blood)
796
-        : 0;
797
-      data["puncture_point_haematoma"] = this.form.puncture_point_haematoma
838
+        : 0
839
+      data['puncture_point_haematoma'] = this.form.puncture_point_haematoma
798 840
         ? parseFloat(this.form.puncture_point_haematoma)
799
-        : 0;
800
-      data["internal_fistula_tremor_ac"] = this.form.internal_fistula_tremor_ac
841
+        : 0
842
+      data['internal_fistula_tremor_ac'] = this.form.internal_fistula_tremor_ac
801 843
         ? parseFloat(this.form.internal_fistula_tremor_ac)
802
-        : 0;
803
-      data["patient_gose"] = this.form.patient_gose
844
+        : 0
845
+      data['patient_gose'] = this.form.patient_gose
804 846
         ? parseFloat(this.form.patient_gose)
805
-        : 0;
806
-      data["inpatient_department"] = this.form.inpatient_department;
807
-      data["observation_content"] = this.form.observation_content;
808
-      data["observation_content_other"] = this.form.observation_content_other;
809
-      data["remark"] = this.form.remark;
810
-      data["dialysis_order_id"] = this.form.dialysis_order_id
847
+        : 0
848
+      data['inpatient_department'] = this.form.inpatient_department
849
+      data['observation_content'] = this.form.observation_content
850
+      data['observation_content_other'] = this.form.observation_content_other
851
+      data['remark'] = this.form.remark
852
+      data['dialysis_order_id'] = this.form.dialysis_order_id
811 853
         ? parseFloat(this.form.dialysis_order_id)
812
-        : 0;
813
-      data["dialysis_process"] = this.form.dialysis_process
854
+        : 0
855
+      data['dialysis_process'] = this.form.dialysis_process
814 856
         ? parseFloat(this.form.dialysis_process)
815
-        : 0;
816
-      data["in_advance_minute"] = this.form.in_advance_minute
857
+        : 0
858
+      data['in_advance_minute'] = this.form.in_advance_minute
817 859
         ? parseFloat(this.form.in_advance_minute)
818
-        : 0;
819
-      data["in_advance_reason_other"] = this.form.in_advance_reason_other;
820
-      data["in_advance_reason"] = this.form.in_advance_reason;
821
-      data["hemostasis_minute"] = this.form.hemostasis_minute
860
+        : 0
861
+      data['in_advance_reason_other'] = this.form.in_advance_reason_other
862
+      data['in_advance_reason'] = this.form.in_advance_reason
863
+      data['hemostasis_minute'] = this.form.hemostasis_minute
822 864
         ? parseFloat(this.form.hemostasis_minute)
823
-        : 0;
824
-      data["hemostasis_opera"] = this.form.hemostasis_opera
865
+        : 0
866
+      data['hemostasis_opera'] = this.form.hemostasis_opera
825 867
         ? parseFloat(this.form.hemostasis_opera)
826
-        : 0;
827
-      data["tremor_noise"] = this.form.tremor_noise
868
+        : 0
869
+      data['tremor_noise'] = this.form.tremor_noise
828 870
         ? parseFloat(this.form.tremor_noise)
829
-        : 0;
830
-      data["disequilibrium_syndrome"] = this.form.disequilibrium_syndrome
871
+        : 0
872
+      data['disequilibrium_syndrome'] = this.form.disequilibrium_syndrome
831 873
         ? parseFloat(this.form.disequilibrium_syndrome)
832
-        : 0;
874
+        : 0
833 875
       data[
834
-        "disequilibrium_syndrome_option"
835
-      ] = this.form.disequilibrium_syndrome_option;
836
-      data["arterial_tube"] = this.form.arterial_tube
876
+        'disequilibrium_syndrome_option'
877
+      ] = this.form.disequilibrium_syndrome_option
878
+      data['arterial_tube'] = this.form.arterial_tube
837 879
         ? parseFloat(this.form.arterial_tube)
838
-        : 0;
839
-      data["intravenous_tube"] = this.form.intravenous_tube
880
+        : 0
881
+      data['intravenous_tube'] = this.form.intravenous_tube
840 882
         ? parseFloat(this.form.intravenous_tube)
841
-        : 0;
842
-      data["dialysis_intakes_unit"] = this.form.dialysis_intakes_unit;
883
+        : 0
884
+      data['dialysis_intakes_unit'] = this.form.dialysis_intakes_unit
843 885
 
844
-      data["dialyzer"] = this.form.dialyzer
886
+      data['dialyzer'] = this.form.dialyzer
845 887
         ? parseFloat(this.form.dialyzer)
846
-        : 0;
847
-
848
-      data["is_eat"] = this.form.is_eat ? parseFloat(this.form.is_eat) : 0;
849
-      data["cvc_a"] = this.form.cvc_a ? parseFloat(this.form.cvc_a) : 0;
850
-      data["cvc_v"] = this.form.cvc_v ? parseFloat(this.form.cvc_v) : 0;
851
-      console.log("data", data);
888
+        : 0
889
+
890
+      data['is_eat'] = this.form.is_eat ? parseFloat(this.form.is_eat) : 0
891
+      data['cvc_a'] = this.form.cvc_a ? parseFloat(this.form.cvc_a) : 0
892
+      data['cvc_v'] = this.form.cvc_v ? parseFloat(this.form.cvc_v) : 0
893
+      data['return_blood'] = this.form.return_blood ? parseFloat(this.form.return_blood) : 0
894
+      data['rehydration_volume'] = this.form.rehydration_volume ? parseFloat(this.form.rehydration_volume) : 0
895
+      data['dialysis_during'] = this.form.dialysis_during ? parseFloat(this.form.dialysis_during) : 0
896
+      data['stroke_volume'] = this.form.stroke_volume ? parseFloat(this.form.stroke_volume) : 0
897
+      console.log('data', data)
852 898
       postAssessmentAfterDislysis(ParamsQuery, data)
853 899
         .then(response => {
854
-          this.loading = false;
900
+          this.loading = false
855 901
           if (response.data.state == 0) {
856
-            this.$message.error(response.data.msg);
857
-            return false;
902
+            this.$message.error(response.data.msg)
903
+            return false
858 904
           } else {
859 905
             this.$notify({
860
-              title: "成功",
861
-              message: "提交成功",
862
-              type: "success",
906
+              title: '成功',
907
+              message: '提交成功',
908
+              type: 'success',
863 909
               duration: 2000
864
-            });
910
+            })
865 911
 
866
-            var assement = response.data.data.AssessmentAfterDislysis;
912
+            var assement = response.data.data.AssessmentAfterDislysis
867 913
 
868
-            var assessment_after_dislysis = this.assessment_after_dislysis;
914
+            var assessment_after_dislysis = this.assessment_after_dislysis
869 915
 
870 916
             for (var index in assement) {
871 917
               // assessment_after_dislysis[index] = assement[index];
872
-              this.$set(assessment_after_dislysis, index, assement[index]);
918
+              this.$set(assessment_after_dislysis, index, assement[index])
873 919
             }
874
-            this.hide();
920
+            this.hide()
875 921
           }
876 922
         })
877 923
         .catch(v => {
878
-          this.loading = false;
879
-        });
924
+          this.loading = false
925
+        })
880 926
     },
881 927
     showDialog: function(val) {
882
-      this.InnerDialogProps.visibility = true;
928
+      this.InnerDialogProps.visibility = true
883 929
       switch (val) {
884
-        case "1":
885
-          this.InnerDialogProps.values = this.cruorOptions;
886
-          this.InnerDialogProps.titles = "凝血";
887
-          this.InnerDialogProps.type = "cruor";
888
-          this.InnerDialogProps.selected = this.form.cruor;
889
-          this.InnerDialogProps.isShowTextArea = false;
890
-          break;
891
-        case "2":
892
-          this.InnerDialogProps.values = this.symptomsOptions;
893
-          this.InnerDialogProps.titles = "透后症状";
894
-          this.InnerDialogProps.type = "symptom_after_dialysis";
895
-          this.InnerDialogProps.selected = this.form.symptom_after_dialysis;
896
-          this.InnerDialogProps.isShowTextArea = false;
897
-          break;
898
-        case "3":
899
-          this.InnerDialogProps.values = this.internalFistulaOptions;
900
-          this.InnerDialogProps.titles = "内瘘";
901
-          this.InnerDialogProps.type = "internal_fistula";
902
-          this.InnerDialogProps.selected = this.form.internal_fistula;
903
-          this.InnerDialogProps.isShowTextArea = false;
904
-          break;
905
-        case "4":
906
-          this.InnerDialogProps.values = this.catheterOptions;
907
-          this.InnerDialogProps.titles = "导管";
908
-          this.InnerDialogProps.type = "catheter";
909
-          this.InnerDialogProps.selected = this.form.catheter;
910
-          this.InnerDialogProps.isShowTextArea = false;
911
-          break;
912
-        case "5":
913
-          this.InnerDialogProps.values = this.complicationOptions;
914
-          this.InnerDialogProps.titles = "并发症";
915
-          this.InnerDialogProps.type = "complication";
916
-          this.InnerDialogProps.selected = this.form.complication;
917
-          this.InnerDialogProps.isShowTextArea = false;
918
-          break;
919
-        case "6":
920
-          this.InnerDialogProps.values = this.observationContentOptions;
921
-          this.InnerDialogProps.titles = "交待病房护士/患者/陪人观察内容";
922
-          this.InnerDialogProps.type = "observation_content";
923
-          this.InnerDialogProps.selected = this.form.observation_content;
924
-          this.InnerDialogProps.isShowTextArea = false;
925
-          break;
926
-        case "7":
927
-          this.InnerDialogProps.values = this.$store.getters.in_advance_reason;
928
-          this.InnerDialogProps.titles = "透析过程提前原因";
929
-          this.InnerDialogProps.type = "in_advance_reason";
930
-          this.InnerDialogProps.selected = this.form.in_advance_reason;
931
-          this.InnerDialogProps.isShowTextArea = false;
932
-          break;
933
-
934
-        case "8":
935
-          this.InnerDialogProps.values = this.$store.getters.disequilibrium_syndrome_option;
936
-          this.InnerDialogProps.titles = "失衡综合症症状";
937
-          this.InnerDialogProps.type = "disequilibrium_syndrome_option";
938
-          this.InnerDialogProps.selected = this.form.disequilibrium_syndrome_option;
939
-          this.InnerDialogProps.isShowTextArea = false;
940
-          break;
930
+        case '1':
931
+          this.InnerDialogProps.values = this.cruorOptions
932
+          this.InnerDialogProps.titles = '凝血'
933
+          this.InnerDialogProps.type = 'cruor'
934
+          this.InnerDialogProps.selected = this.form.cruor
935
+          this.InnerDialogProps.isShowTextArea = false
936
+          break
937
+        case '2':
938
+          this.InnerDialogProps.values = this.symptomsOptions
939
+          this.InnerDialogProps.titles = '透后症状'
940
+          this.InnerDialogProps.type = 'symptom_after_dialysis'
941
+          this.InnerDialogProps.selected = this.form.symptom_after_dialysis
942
+          this.InnerDialogProps.isShowTextArea = false
943
+          break
944
+        case '3':
945
+          this.InnerDialogProps.values = this.internalFistulaOptions
946
+          this.InnerDialogProps.titles = '内瘘'
947
+          this.InnerDialogProps.type = 'internal_fistula'
948
+          this.InnerDialogProps.selected = this.form.internal_fistula
949
+          this.InnerDialogProps.isShowTextArea = false
950
+          break
951
+        case '4':
952
+          this.InnerDialogProps.values = this.catheterOptions
953
+          this.InnerDialogProps.titles = '导管'
954
+          this.InnerDialogProps.type = 'catheter'
955
+          this.InnerDialogProps.selected = this.form.catheter
956
+          this.InnerDialogProps.isShowTextArea = false
957
+          break
958
+        case '5':
959
+          this.InnerDialogProps.values = this.complicationOptions
960
+          this.InnerDialogProps.titles = '并发症'
961
+          this.InnerDialogProps.type = 'complication'
962
+          this.InnerDialogProps.selected = this.form.complication
963
+          this.InnerDialogProps.isShowTextArea = false
964
+          break
965
+        case '6':
966
+          this.InnerDialogProps.values = this.observationContentOptions
967
+          this.InnerDialogProps.titles = '交待病房护士/患者/陪人观察内容'
968
+          this.InnerDialogProps.type = 'observation_content'
969
+          this.InnerDialogProps.selected = this.form.observation_content
970
+          this.InnerDialogProps.isShowTextArea = false
971
+          break
972
+        case '7':
973
+          this.InnerDialogProps.values = this.$store.getters.in_advance_reason
974
+          this.InnerDialogProps.titles = '透析过程提前原因'
975
+          this.InnerDialogProps.type = 'in_advance_reason'
976
+          this.InnerDialogProps.selected = this.form.in_advance_reason
977
+          this.InnerDialogProps.isShowTextArea = false
978
+          break
979
+
980
+        case '8':
981
+          this.InnerDialogProps.values = this.$store.getters.disequilibrium_syndrome_option
982
+          this.InnerDialogProps.titles = '失衡综合症症状'
983
+          this.InnerDialogProps.type = 'disequilibrium_syndrome_option'
984
+          this.InnerDialogProps.selected = this.form.disequilibrium_syndrome_option
985
+          this.InnerDialogProps.isShowTextArea = false
986
+          break
941 987
       }
942 988
     },
943 989
     selectActualTreatmentHour(val) {
944
-      var valTime = val.split(":");
945
-      this.form.actual_treatment_hour = valTime[0];
946
-      this.form.actual_treatment_minute = valTime[1];
990
+      var valTime = val.split(':')
991
+      this.form.actual_treatment_hour = valTime[0]
992
+      this.form.actual_treatment_minute = valTime[1]
947 993
     },
948 994
     DialogComfirm: function(val) {
949
-      this.InnerDialogProps.visibility = false;
995
+      this.InnerDialogProps.visibility = false
950 996
       switch (val.type) {
951
-        case "cruor":
952
-          this.form.cruor = val.value.join(",");
953
-          break;
954
-        case "symptom_after_dialysis":
955
-          this.form.symptom_after_dialysis = val.value.join(",");
956
-          break;
957
-        case "internal_fistula":
958
-          this.form.internal_fistula = val.value.join(",");
959
-          break;
960
-        case "catheter":
961
-          this.form.catheter = val.value.join(",");
962
-          break;
963
-        case "complication":
964
-          this.form.complication = val.value.join(",");
965
-          break;
966
-        case "observation_content":
967
-          this.form.observation_content = val.value.join(",");
968
-          break;
969
-        case "in_advance_reason":
970
-          this.form.in_advance_reason = val.value.join(",");
971
-          break;
972
-        case "disequilibrium_syndrome_option":
973
-          this.form.disequilibrium_syndrome_option = val.value.join(",");
974
-          break;
997
+        case 'cruor':
998
+          this.form.cruor = val.value.join(',')
999
+          break
1000
+        case 'symptom_after_dialysis':
1001
+          this.form.symptom_after_dialysis = val.value.join(',')
1002
+          break
1003
+        case 'internal_fistula':
1004
+          this.form.internal_fistula = val.value.join(',')
1005
+          break
1006
+        case 'catheter':
1007
+          this.form.catheter = val.value.join(',')
1008
+          break
1009
+        case 'complication':
1010
+          this.form.complication = val.value.join(',')
1011
+          break
1012
+        case 'observation_content':
1013
+          this.form.observation_content = val.value.join(',')
1014
+          break
1015
+        case 'in_advance_reason':
1016
+          this.form.in_advance_reason = val.value.join(',')
1017
+          break
1018
+        case 'disequilibrium_syndrome_option':
1019
+          this.form.disequilibrium_syndrome_option = val.value.join(',')
1020
+          break
975 1021
 
976 1022
         default:
977
-          break;
1023
+          break
978 1024
       }
979 1025
       // console.log(val);
980 1026
     },
981 1027
     DialogCancle: function(val) {
982
-      this.InnerDialogProps.visibility = false;
1028
+      this.InnerDialogProps.visibility = false
983 1029
     },
984 1030
 
985
-    //数据开始
1031
+    // 数据开始
986 1032
     show(predialysis) {
987
-      this.isVisibility = true;
988
-      this.predialysis = predialysis;
989
-      this.form.observation_content = predialysis.observation_content;
990
-      this.form.inpatient_department = predialysis.inpatient_department;
1033
+      this.isVisibility = true
1034
+      this.predialysis = predialysis
1035
+      this.form.observation_content = predialysis.observation_content
1036
+      this.form.inpatient_department = predialysis.inpatient_department
991 1037
       this.form.observation_content_other =
992
-        predialysis.observation_content_other;
1038
+        predialysis.observation_content_other
993 1039
       // console.log("透后", predialysis);
994 1040
 
995
-      this.getPermission();
1041
+      this.getPermission()
996 1042
     },
997 1043
 
998 1044
     hide() {
999
-      this.isVisibility = false;
1045
+      this.isVisibility = false
1000 1046
     },
1001 1047
     isShow(name) {
1002
-      var filedList = store.getters.xt_user.fileds;
1048
+      var filedList = store.getters.xt_user.fileds
1003 1049
 
1004 1050
       for (let i = 0; i < filedList.length; i++) {
1005 1051
         if (
@@ -1007,102 +1053,91 @@ export default {
1007 1053
           filedList[i].filed_name_cn == name &&
1008 1054
           filedList[i].is_show == 1
1009 1055
         ) {
1010
-          return true;
1056
+          return true
1011 1057
         }
1012 1058
       }
1013
-      return false;
1059
+      return false
1014 1060
     },
1015 1061
     setRecords(records) {
1016 1062
       for (var index in records) {
1017
-        this.$set(this.assessment_after_dislysis, index, records[index]);
1063
+        this.$set(this.assessment_after_dislysis, index, records[index])
1018 1064
       }
1019 1065
       this.actualTreatmentHourShow = new Date(
1020 1066
         2018,
1021 1067
         1,
1022 1068
         1,
1023
-        this.assessment_after_dislysis["actual_treatment_hour"],
1024
-        this.assessment_after_dislysis["actual_treatment_minute"]
1025
-      );
1069
+        this.assessment_after_dislysis['actual_treatment_hour'],
1070
+        this.assessment_after_dislysis['actual_treatment_minute']
1071
+      )
1026 1072
     },
1027 1073
     getPermission() {
1028 1074
       request
1029
-        .get("/api/func_per/get", {
1075
+        .get('/api/func_per/get', {
1030 1076
           params: {
1031
-            create_url: "/api/dialysis/assessmentafterdislysis?mode=1",
1032
-            modify_url: "/api/dialysis/assessmentafterdislysis?mode=2",
1033
-            modify_other_url: "/api/dialysis/assessmentafterdislysis?mode=3",
1077
+            create_url: '/api/dialysis/assessmentafterdislysis?mode=1',
1078
+            modify_url: '/api/dialysis/assessmentafterdislysis?mode=2',
1079
+            modify_other_url: '/api/dialysis/assessmentafterdislysis?mode=3',
1034 1080
             module: 8
1035 1081
           }
1036 1082
         })
1037 1083
         .then(res => {
1038
-          console.log(res);
1084
+          console.log(res)
1039 1085
           // console.log("透后", this.predialysis);
1040 1086
           if (res.data.state == 0) {
1041
-            this.hasPermission = false;
1087
+            this.hasPermission = false
1042 1088
           } else if (res.data.state == 1) {
1043
-            if (this.predialysis.id != "" && this.predialysis.creater != 0) {
1044
-              //有数据
1089
+            if (this.predialysis.id != '' && this.predialysis.creater != 0) {
1090
+              // 有数据
1045 1091
               if (
1046 1092
                 this.predialysis.creater == this.$store.getters.xt_user.user.id
1047 1093
               ) {
1048
-                //创建人是自己
1094
+                // 创建人是自己
1049 1095
                 if (res.data.data.is_has_modify == false) {
1050
-                  this.hasPermission = false;
1051
-                  this.showTxt = "你没有修改透后评估权限";
1096
+                  this.hasPermission = false
1097
+                  this.showTxt = '你没有修改透后评估权限'
1052 1098
                 }
1053 1099
               } else {
1054
-                //创建人不是自己
1100
+                // 创建人不是自己
1055 1101
                 if (res.data.data.is_has_modify_other == false) {
1056
-                  this.hasPermission = false;
1057
-                  this.showTxt = "你没有修改他人透后评估权限";
1102
+                  this.hasPermission = false
1103
+                  this.showTxt = '你没有修改他人透后评估权限'
1058 1104
                 }
1059 1105
               }
1060 1106
             } else if (
1061
-              this.predialysis.id == "" ||
1107
+              this.predialysis.id == '' ||
1062 1108
               this.predialysis.creater == 0
1063 1109
             ) {
1064 1110
               if (res.data.data.is_has_create == false) {
1065
-                this.hasPermission = false;
1066
-                this.showTxt = "你没有新增透后评估权限";
1111
+                this.hasPermission = false
1112
+                this.showTxt = '你没有新增透后评估权限'
1067 1113
               }
1068 1114
             }
1069 1115
           }
1070
-        });
1116
+        })
1071 1117
     }
1072 1118
   },
1073 1119
   created() {
1074 1120
     // console.log("this.form", this.form);
1075
-    this.cruorOptions = getDataConfig("hemodialysis", "cruor");
1076
-    this.symptomsOptions = getDataConfig("hemodialysis", "symptoms");
1077
-    this.internalFistulaOptions = getDataConfig(
1078
-      "hemodialysis",
1079
-      "internal_fistula"
1080
-    );
1081
-    this.vascularAccessOptions = getDataConfig(
1082
-      "hemodialysis",
1083
-      "vascular_access"
1084
-    );
1085
-    this.vascularAccessDescOptions = getDataConfig(
1086
-      "hemodialysis",
1087
-      "vascular_access_desc"
1088
-    );
1089
-    this.catheterOptions = getDataConfig("hemodialysis", "catheter");
1090
-    this.complicationOptions = getDataConfig("hemodialysis", "complication");
1091
-    this.internalFistulaTremorAcOptions = this.$store.getters.internal_fistula_tremor_ac;
1092
-    this.patientGoseOptions = this.$store.getters.patient_gose;
1093
-    this.observationContentOptions = this.$store.getters.observation_content;
1094
-    console.log("----", this.$store.getters.observation_content);
1095
-    this.template_id = this.$store.getters.xt_user.template_info.template_id;
1096
-
1097
-    this.channels = this.$store.getters.channels;
1098
-
1099
-    var date = this.$route.query && this.$route.query.date;
1100
-    this.record_date = uParseTime(date, "{y}-{m}-{d}");
1121
+    this.cruorOptions = getDataConfig('hemodialysis', 'cruor')
1122
+    this.symptomsOptions = getDataConfig('hemodialysis', 'symptoms')
1123
+    this.internalFistulaOptions = getDataConfig('hemodialysis', 'internal_fistula')
1124
+    this.vascularAccessOptions = getDataConfig('hemodialysis', 'vascular_access')
1125
+    this.vascularAccessDescOptions = getDataConfig('hemodialysis', 'vascular_access_desc')
1126
+    this.catheterOptions = getDataConfig('hemodialysis', 'catheter')
1127
+    this.complicationOptions = getDataConfig('hemodialysis', 'complication')
1128
+    this.internalFistulaTremorAcOptions = this.$store.getters.internal_fistula_tremor_ac
1129
+    this.patientGoseOptions = this.$store.getters.patient_gose
1130
+    this.observationContentOptions = this.$store.getters.observation_content
1131
+    console.log('----', this.$store.getters.observation_content)
1132
+    this.template_id = this.$store.getters.xt_user.template_info.template_id
1133
+    this.channels = this.$store.getters.channels
1134
+    var date = this.$route.query && this.$route.query.date
1135
+    this.record_date = uParseTime(date, '{y}-{m}-{d}')
1101 1136
   },
1102 1137
   components: {
1103 1138
     MultiSelectBox
1104 1139
   }
1105
-};
1140
+}
1106 1141
 </script>
1107 1142
 
1108 1143
 <style scoped>

+ 12 - 0
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue View File

@@ -98,6 +98,15 @@
98 98
             </el-form-item>
99 99
           </el-col>
100 100
 
101
+          <el-col :span="8">
102
+            <el-form-item label="体液过多症状: " v-if="isShow('体液过多症状')">
103
+              <el-select v-model="assessmentBeforeDislysis.humor_excessive_symptom">
104
+                <el-option :key="0" label="请选择" :value="0"></el-option>
105
+                <el-option v-for="item in humor_excessive_symptom_array" :label="item.name" :value="item.id"
106
+                           :key="item.id"></el-option>
107
+              </el-select>
108
+            </el-form-item>
109
+          </el-col>
101 110
 
102 111
           <el-col :span="8">
103 112
             <el-form-item label="血管通路: " v-if="isShow('血管通路')">
@@ -536,6 +545,7 @@
536 545
         hemorrhage: [],
537 546
         blood_access_part: [],
538 547
         blood_access_part_opera: [],
548
+        humor_excessive_symptom_array: [],
539 549
         internal_fistula: [],
540 550
         internal_fistula_skin: [],
541 551
         puncture_method: [],
@@ -557,6 +567,7 @@
557 567
           catheter: '',
558 568
           complication: '',
559 569
           remark: '',
570
+          humor_excessive_symptom: '',
560 571
           blood_access_part_id: '',
561 572
           blood_access_part_opera_id: '',
562 573
           internal_fistula: '',
@@ -943,6 +954,7 @@
943 954
       this.puncture_ways = getDataConfig('hemodialysis', 'puncture_method')
944 955
       this.blood_access_part = getDataConfig('hemodialysis', 'vascular_access')
945 956
       this.blood_access_part_opera = getDataConfig('hemodialysis', 'vascular_access_desc')
957
+      this.humor_excessive_symptom_array = getDataConfig('hemodialysis', 'humor_excessive_symptom')
946 958
       // console.log("血管通路部位",this.blood_access_part_opera)
947 959
       this.internal_fistula = getDataConfig('hemodialysis', 'internal_fistula')
948 960
       this.internal_fistula_skin = getDataConfig('hemodialysis', 'internal_fistula_skin')

+ 19 - 79
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

@@ -97,83 +97,31 @@
97 97
 
98 98
           <el-col :span="8" v-if="isShows('抗凝剂')">
99 99
             <el-form-item label="抗凝剂:">
100
-              <el-select
101
-                v-model="dialysisPrescription.anticoagulant"
102
-                placeholder="请选择"
103
-                style="width:100%;"
104
-                @change="changeThisAnticoagulant"
105
-              >
100
+              <el-select v-model="dialysisPrescription.anticoagulant" placeholder="请选择" style="width:100%;"  @change="changeThisAnticoagulant" >
106 101
                 <el-option :key="0" label="请选择" :value="0"></el-option>
107
-
108
-                <el-option
109
-                  v-for="(item, index) in anticoagulantsConfit"
110
-                  :label="item.name"
111
-                  :key="index + 1"
112
-                  :value="item.id"
113
-                ></el-option>
102
+                <el-option v-for="(item, index) in anticoagulantsConfit" :label="item.name" :key="index + 1" :value="item.id" ></el-option>
114 103
               </el-select>
115 104
             </el-form-item>
116 105
           </el-col>
117 106
 
118
-          <el-col
119
-            :span="8"
120
-            v-if="anticoagulant.shouji != -1 && isShows('首剂')"
121
-          >
107
+          <el-col :span="8" v-if="anticoagulant.shouji != -1 && isShows('首剂')" >
122 108
             <el-form-item :label="'首剂(' + anticoagulant.shouji_unit + ') : '">
123
-              <el-input
124
-                type="number"
125
-                v-if="dialysisPrescription.anticoagulant != 1"
126
-                v-model="dialysisPrescription.anticoagulant_shouji"
127
-              ></el-input>
128
-              <el-input
129
-                type="number"
130
-                disabled
131
-                v-if="dialysisPrescription.anticoagulant == 1"
132
-                v-model="dialysisPrescription.no_anticoagulant_shouji"
133
-              ></el-input>
109
+              <el-input type="number"  v-if="dialysisPrescription.anticoagulant != 1" v-model="dialysisPrescription.anticoagulant_shouji" ></el-input>
110
+              <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1" v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
134 111
             </el-form-item>
135 112
           </el-col>
136 113
 
137
-          <el-col
138
-            :span="8"
139
-            v-if="anticoagulant.weichi != -1 && isShows('维持')"
140
-          >
141
-            <el-form-item
142
-              :label="'维持(' + anticoagulant.weichi_unit + ') : '"
143
-              v-if="anticoagulant.weichi != -1"
144
-            >
145
-              <el-input
146
-                type="number"
147
-                v-if="dialysisPrescription.anticoagulant != 1"
148
-                v-model="dialysisPrescription.anticoagulant_weichi"
149
-              ></el-input>
150
-              <el-input
151
-                type="number"
152
-                disabled
153
-                v-if="dialysisPrescription.anticoagulant == 1"
154
-                v-model="dialysisPrescription.no_anticoagulant_weichi"
155
-              ></el-input>
114
+          <el-col :span="8" v-if="anticoagulant.weichi != -1 && isShows('维持')" >
115
+            <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '" v-if="anticoagulant.weichi != -1" >
116
+              <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1" v-model="dialysisPrescription.anticoagulant_weichi" ></el-input>
117
+              <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1" v-model="dialysisPrescription.no_anticoagulant_weichi" ></el-input>
156 118
             </el-form-item>
157 119
           </el-col>
158 120
 
159
-          <el-col
160
-            :span="8"
161
-            v-if="anticoagulant.zongliang != -1 && isShows('总量')"
162
-          >
163
-            <el-form-item
164
-              :label="'总量(' + anticoagulant.zongliang_unit + ') : '"
165
-            >
166
-              <el-input
167
-                type="number"
168
-                v-if="dialysisPrescription.anticoagulant != 1"
169
-                v-model="dialysisPrescription.anticoagulant_zongliang"
170
-              ></el-input>
171
-              <el-input
172
-                type="number"
173
-                disabled
174
-                v-if="dialysisPrescription.anticoagulant == 1"
175
-                v-model="dialysisPrescription.no_anticoagulant_zongliang"
176
-              ></el-input>
121
+          <el-col :span="8" v-if="anticoagulant.zongliang != -1 && isShows('总量')" >
122
+            <el-form-item :label="'总量(' + anticoagulant.zongliang_unit + ') : '" >
123
+              <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1" v-model="dialysisPrescription.anticoagulant_zongliang" ></el-input>
124
+              <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1" v-model="dialysisPrescription.no_anticoagulant_zongliang" ></el-input>
177 125
             </el-form-item>
178 126
           </el-col>
179 127
 
@@ -1722,29 +1670,21 @@ export default {
1722 1670
       this.isVisibility = false
1723 1671
     },
1724 1672
     changeThisAnticoagulant: function(val) {
1725
-      // console.log("val", val);
1726
-      // debugger;
1727
-      // var thismode = parseInt(val);
1728 1673
       var thismode = val
1729 1674
       if (isNaN(thismode) || thismode <= 0) {
1730 1675
         return false
1731 1676
       }
1732
-
1733
-      // if (
1734
-      // typeof this.anticoagulantsConfit[thismode] === "undefined" ||
1735
-      //  this.anticoagulantsConfit[thismode] == null
1736
-      // ) {
1737
-      //   return false;
1738
-      // }
1739
-
1740
-      if (val < 2) {
1677
+      if (val <= 2) {
1741 1678
         this.anticoagulant = this.anticoagulantsConfit[thismode - 1]
1742 1679
       }
1743 1680
       if (val > 2) {
1744 1681
         this.anticoagulant = this.anticoagulantsConfit[thismode - 2]
1745 1682
       }
1746
-
1747
-      // console.log("fffff", this.anticoagulant);
1683
+      if (this.$store.getters.xt_user.template_info.template_id == 13 && val == 2) {
1684
+        this.anticoagulant.shouji_unit = 'mg'
1685
+        this.anticoagulant.weichi_unit = 'mg/h'
1686
+        this.anticoagulant.zongliang_unit = 'mg'
1687
+      }
1748 1688
     },
1749 1689
     handleCommit: function() {
1750 1690
       if (this.dialysisPrescription.anticoagulant == '低分子肝素') {

+ 4 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderThirteen.vue View File

@@ -111,7 +111,7 @@
111 111
             <span v-if="prescription.anticoagulant == '枸橼酸钠'">mg</span>
112 112
             <span v-if="prescription.anticoagulant == '阿加曲班'">mg</span>
113 113
             <span v-if="prescription.anticoagulant == '低分子肝素'">iu</span>
114
-            <span v-if="prescription.anticoagulant == '普通肝素'">iu</span>
114
+            <span v-if="prescription.anticoagulant == '普通肝素'">mg</span>
115 115
             <span v-if="prescription.anticoagulant == '无肝素'">mg</span>
116 116
             <span v-if="prescription.anticoagulant == '低分子肝素钙'">iu</span>
117 117
             <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu</span>&nbsp; 
@@ -124,7 +124,7 @@
124 124
             <span v-if="prescription.anticoagulant == '枸橼酸钠'">ml/h</span>
125 125
             <span v-if="prescription.anticoagulant == '阿加曲班'">mg/h</span>
126 126
             <span v-if="prescription.anticoagulant == '低分子肝素'">iu/h</span>
127
-            <span v-if="prescription.anticoagulant == '普通肝素'">iu/h</span>
127
+            <span v-if="prescription.anticoagulant == '普通肝素'">mg/h</span>
128 128
             <span v-if="prescription.anticoagulant == '无肝素'">mg/h</span>
129 129
             <span v-if="prescription.anticoagulant == '低分子肝素钙'">iu/h</span>
130 130
             <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu/h</span>&nbsp; 
@@ -137,7 +137,7 @@
137 137
             <span v-if="prescription.anticoagulant == '枸橼酸钠'">mg</span>
138 138
             <span v-if="prescription.anticoagulant == '阿加曲班'">mg</span>
139 139
             <span v-if="prescription.anticoagulant == '低分子肝素'">iu</span>
140
-            <span v-if="prescription.anticoagulant == '普通肝素'">iu</span>
140
+            <span v-if="prescription.anticoagulant == '普通肝素'">mg</span>
141 141
             <span v-if="prescription.anticoagulant == '无肝素'">mg</span>
142 142
             <span v-if="prescription.anticoagulant == '低分子肝素钙'">iu</span>
143 143
             <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu</span>
@@ -382,7 +382,7 @@
382 382
             <span style="display: inline-block;width:100px;text-align: left;">
383 383
               &nbsp;
384 384
               <span v-if="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:prescription.creater)) == ''"> {{ getAdminUser(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:prescription.creater)) }} </span>
385
-              <img style="height:20px;" :src="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:prescription.creater))" alt="" srcset="" v-else />
385
+              <img style="height:30px;" :src="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:prescription.creater))" alt="" srcset="" v-else />
386 386
               <!-- <span v-if="doctorForm.url === ''">{{ doctorForm.doctor }}</span>
387 387
               <span v-if="doctorForm.url !== ''">
388 388
                 <img class="es-img" style="height:30px;" :src="doctorForm.url" />