Przeglądaj źródła

Merge branch '20200710_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20200710_pc_vue_new_branch

XMLWAN 4 lat temu
rodzic
commit
886e22e785

+ 1 - 1
src/xt_pages/dialysis/PatientBox.vue Wyświetl plik

@@ -590,7 +590,7 @@ export default {
590 590
       this.patient_id = schedual.patient_id
591 591
       this.getScheduleDetail()
592 592
       this.getLongAdvice()
593
-      this.$refs.prescription.show(this.prescription);
593
+      this.$refs.prescription.show(this.prescription,schedual);
594 594
       
595 595
     },
596 596
     open1(schedual){

+ 29 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_nine.vue Wyświetl plik

@@ -1626,7 +1626,15 @@
1626 1626
                                   "
1627 1627
                                   showValue="低血压"
1628 1628
                                 ></label-box>
1629
-                                <label-box showValue="发热"></label-box>
1629
+                                <label-box
1630
+                                  :isChecked="
1631
+                                    record.assessment_after_dislysis.complication.indexOf(
1632
+                                      '发热'
1633
+                                    ) > -1
1634
+                                      ? true
1635
+                                      : false
1636
+                                  "
1637
+                                 showValue="发热"></label-box>
1630 1638
                                 <label-box
1631 1639
                                   :isChecked="
1632 1640
                                     record.assessment_after_dislysis.complication.indexOf(
@@ -1662,7 +1670,7 @@
1662 1670
                             <td width="40">其他:</td>
1663 1671
                             <td width="">
1664 1672
                               <div class="under-line">
1665
-                                &nbsp;
1673
+                                &nbsp;{{ record.assessment_after_dislysis.complication ? getComplication(record.assessment_after_dislysis.complication) : '' }}
1666 1674
                               </div>
1667 1675
                             </td>
1668 1676
                           </tr>
@@ -2577,6 +2585,25 @@ export default {
2577 2585
           console.log('weight', weight)
2578 2586
         }
2579 2587
       })
2588
+    },
2589
+    getComplication(complication){
2590
+      if(complication.indexOf(',') == -1){
2591
+        let str = complication
2592
+        if(['无','头晕','头痛','呕吐','低血压','发热','抽搐','高血压','心律失常'].indexOf(str) == -1){
2593
+          return str
2594
+        }
2595
+      }else if(complication.indexOf(',') > -1){
2596
+        let str = complication
2597
+        if(['无','头晕','头痛','呕吐','低血压','发热','抽搐','高血压','心律失常'].indexOf(str) == -1){
2598
+          let newStr = ''
2599
+          str.split(',').map(item => {
2600
+            if(['无','头晕','头痛','呕吐','低血压','发热','抽搐','高血压','心律失常'].indexOf(item) == -1){
2601
+              newStr += item + ','
2602
+            }
2603
+          })
2604
+          return newStr.substring(0, newStr.length - 1)
2605
+        }
2606
+      }
2580 2607
     }
2581 2608
   }
2582 2609
 }

+ 4 - 3
src/xt_pages/dialysis/details/DialysisPrescription.vue Wyświetl plik

@@ -79,8 +79,8 @@
79 79
           <span class="content">{{
80 80
             target_ultrafiltration != "0" ? target_ultrafiltration : ""
81 81
           }}</span>
82
-          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20" class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
83
-          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
82
+          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21" class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
83
+          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
84 84
         </li>
85 85
         <li v-if="isShow('葡萄糖')">
86 86
           <label>葡萄糖 : </label>
@@ -252,7 +252,8 @@
252 252
           <span class="content">{{
253 253
             displace_liqui != "0" ? displace_liqui : ""
254 254
           }}</span>
255
-          <span class="unit">{{ displace_liqui != "0" ? "L" : "" }}</span>
255
+          <span v-if="this.$store.getters.xt_user.template_info.template_id != 21" class="unit">{{ displace_liqui != "0" ? "L" : "" }}</span>
256
+          <span v-if="this.$store.getters.xt_user.template_info.template_id == 21" class="unit">{{ displace_liqui != "0" ? "ml" : "" }}</span>
256 257
         </li>
257 258
 
258 259
         <li v-if="isShow('血管通路')">

+ 2 - 2
src/xt_pages/dialysis/details/assessmentAfter.vue Wyświetl plik

@@ -17,8 +17,8 @@
17 17
           <span class="content" v-if="actual_ultrafiltration != '0'">{{
18 18
             actual_ultrafiltration
19 19
           }}</span>
20
-          <span class="unit" v-if=" actual_ultrafiltration != '0' && (this.$store.getters.xt_user.template_info.template_id == 6 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 20) " >ml</span>
21
-          <span class="unit" v-if=" actual_ultrafiltration != '0' && this.$store.getters.xt_user.template_info.template_id != 6 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 20" >L</span>
20
+          <span class="unit" v-if=" actual_ultrafiltration != '0' && (this.$store.getters.xt_user.template_info.template_id == 6 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21) " >ml</span>
21
+          <span class="unit" v-if=" actual_ultrafiltration != '0' && this.$store.getters.xt_user.template_info.template_id != 6 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21" >L</span>
22 22
         </li>
23 23
         <li v-if="isShow('导管')">
24 24
           <label>导管 : </label>

+ 1 - 1
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue Wyświetl plik

@@ -28,7 +28,7 @@
28 28
           <el-col :span="8" v-if="isShow('实际超滤量')">
29 29
             <el-form-item
30 30
               label="实际超滤量(ml): "
31
-              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20"  >
31
+              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21"  >
32 32
               <el-input v-model="form.actual_ultrafiltration"></el-input>
33 33
             </el-form-item>
34 34
             <el-form-item label="实际超滤量(L): " v-else>

+ 10 - 3
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Wyświetl plik

@@ -66,7 +66,7 @@
66 66
           </el-col>
67 67
 
68 68
           <el-col :span="8"
69
-                  v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20)">
69
+                  v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21)">
70 70
             <el-form-item label="目标超滤量(ml):">
71 71
               <el-input
72 72
                 type="number"
@@ -76,7 +76,7 @@
76 76
           </el-col>
77 77
 
78 78
           <el-col :span="8"
79
-                  v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20">
79
+                  v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21">
80 80
             <el-form-item label="目标超滤量(L):">
81 81
               <el-input
82 82
                 type="number"
@@ -376,7 +376,14 @@
376 376
             </el-form-item>
377 377
           </el-col>
378 378
 
379
-          <el-col :span="8" v-if="isShows('置换液总量')" v-show="totalShow">
379
+          <el-col :span="8" v-if="isShows('置换液总量') && (this.$store.getters.xt_user.template_info.template_id == 21)" v-show="totalShow">
380
+            <el-form-item label="置换液总量(ml)">
381
+              <el-input
382
+                v-model="dialysisPrescription.displace_liqui_value"
383
+              ></el-input>
384
+            </el-form-item>
385
+          </el-col>
386
+          <el-col :span="8" v-if="isShows('置换液总量') && this.$store.getters.xt_user.template_info.template_id != 21" v-show="totalShow">
380 387
             <el-form-item label="置换液总量(L)">
381 388
               <el-input
382 389
                 v-model="dialysisPrescription.displace_liqui_value"

+ 10 - 8
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue Wyświetl plik

@@ -150,7 +150,8 @@
150 150
                   template_id == 17 ||
151 151
                   template_id == 18 ||
152 152
                   template_id == 19 ||
153
-                  template_id == 20)
153
+                  template_id == 20 ||
154
+                  template_id == 21)
154 155
             "
155 156
           >
156 157
             <template slot-scope="scope">
@@ -176,7 +177,8 @@
176 177
                 template_id != 17 &&
177 178
                 template_id != 18 &&
178 179
                 template_id != 19 &&
179
-                template_id != 20
180
+                template_id != 20 &&
181
+                template_id != 21
180 182
             "
181 183
           >
182 184
             <template slot-scope="scope">
@@ -313,7 +315,7 @@
313 315
             align="center"
314 316
             label="超滤率(ml/h)"
315 317
             width="100"
316
-            v-if="isShow('超滤率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20) "
318
+            v-if="isShow('超滤率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21) "
317 319
           >
318 320
             <template slot-scope="scope">
319 321
               {{ scope.row.ultrafiltration_rate ? scope.row.ultrafiltration_rate : ""  }}
@@ -324,7 +326,7 @@
324 326
             align="center"
325 327
             label="超滤率(L/h)"
326 328
             width="100"
327
-            v-if="isShow('超滤率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20"
329
+            v-if="isShow('超滤率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21"
328 330
           >
329 331
             <template slot-scope="scope">
330 332
               {{ scope.row.ultrafiltration_rate ? scope.row.ultrafiltration_rate : ""  }}
@@ -465,12 +467,12 @@
465 467
             </el-form-item>
466 468
           </el-col>
467 469
 
468
-          <el-col :span="8" v-if="isShow('超滤率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20) ">
470
+          <el-col :span="8" v-if="isShow('超滤率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21) ">
469 471
             <el-form-item label="超滤率(ml/h)">
470 472
               <el-input v-model="form.ultrafiltration_rate"></el-input>
471 473
             </el-form-item>
472 474
           </el-col>
473
-          <el-col :span="8" v-if="isShow('超滤率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20">
475
+          <el-col :span="8" v-if="isShow('超滤率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21">
474 476
             <el-form-item label="超滤率(L/h)">
475 477
               <el-input v-model="form.ultrafiltration_rate"></el-input>
476 478
             </el-form-item>
@@ -478,7 +480,7 @@
478 480
 
479 481
           <el-col
480 482
             :span="8"
481
-            v-if=" isShow('超滤量') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20) " >
483
+            v-if=" isShow('超滤量') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21) " >
482 484
             <el-form-item label="超滤量(ml):">
483 485
               <el-input v-model="form.ultrafiltration_volume"></el-input>
484 486
             </el-form-item>
@@ -486,7 +488,7 @@
486 488
 
487 489
           <el-col
488 490
             :span="8"
489
-            v-if=" isShow('超滤量') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20" >
491
+            v-if=" isShow('超滤量') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21" >
490 492
             <el-form-item label="超滤量(L):">
491 493
               <el-input v-model="form.ultrafiltration_volume"></el-input>
492 494
             </el-form-item>

+ 4 - 4
src/xt_pages/dialysis/details/dialysisMonitoring.vue Wyświetl plik

@@ -14,8 +14,8 @@
14 14
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
15 15
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
16 16
           <th v-if="isShow('跨膜压')" width="76px">跨膜压({{monitores[0]&&monitores[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
17
-          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20)" width="76px" > 超滤量(ml)</th>
18
-          <th v-if=" isShow('超滤量') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20"  width="76px"> 超滤量(L) </th>
17
+          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21)" width="76px" > 超滤量(ml)</th>
18
+          <th v-if=" isShow('超滤量') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21"  width="76px"> 超滤量(L) </th>
19 19
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
20 20
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
21 21
           <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20) " width="92px" > 置换率(ml/min) </th>
@@ -26,8 +26,8 @@
26 26
           <th v-if="isShow('电导度')" width="92px">电导度(mS/m)</th>
27 27
           <th v-if="isShow('置换液流量')" width="92px">置换液流量(ml/h)</th>
28 28
           <th v-if="isShow('透析液流量')" width="92px">透析液流量(ml/h)</th>
29
-          <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20)" width="50px"> 超滤率 <br />(ml/h) </th>
30
-          <th v-if="isShow('超滤率') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20" width="50px"> 超滤率 <br />(L/h) </th>
29
+          <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21)" width="50px"> 超滤率 <br />(ml/h) </th>
30
+          <th v-if="isShow('超滤率') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21" width="50px"> 超滤率 <br />(L/h) </th>
31 31
           <th v-if="isShow('肝素用量余量')" width="92px">肝素用量余量(ml)</th>
32 32
           <th v-if="isShow('病情变化')" width="92px">病情变化</th>
33 33
           <th v-if="isShow('处理')" width="92px">处理</th>

+ 19 - 1
src/xt_pages/dialysis/details/index.vue Wyświetl plik

@@ -79,6 +79,9 @@
79 79
                 >
80 80
                 <template slot-scope="scope">
81 81
                   {{ scope.row.patient.name }}
82
+                  <span v-if="scope.row.assessment_before_dislysis && patientStateVal == 1">
83
+                    ({{ getTime(scope.row.assessment_before_dislysis.created_time) }})
84
+                  </span>
82 85
                 </template>
83 86
               </el-table-column>
84 87
               <el-table-column
@@ -156,6 +159,9 @@
156 159
                 >
157 160
                 <template slot-scope="scope">
158 161
                   {{ scope.row.patient.name }}
162
+                  <span v-if="scope.row.assessment_before_dislysis && patientStateVal == 1">
163
+                    ({{ getTime(scope.row.assessment_before_dislysis.created_time) }})
164
+                  </span>
159 165
                 </template>
160 166
               </el-table-column>
161 167
               <el-table-column
@@ -1462,8 +1468,20 @@ export default {
1462 1468
       return function(a,b){
1463 1469
         var value1 = a[property];
1464 1470
         var value2 = b[property];
1465
-        return value1 - value2;
1471
+        return value2 - value1;
1466 1472
       }
1473
+    },
1474
+    getTime(date){
1475
+      date = new Date(date * 1000)
1476
+      var Y = date.getFullYear() + '-';
1477
+      var M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1);
1478
+      var D = (date.getDate() < 10 ? '0'+date.getDate() : date.getDate());
1479
+      var h = (date.getHours() < 10 ? '0'+date.getHours() : date.getHours());
1480
+      var m = (date.getMinutes() < 10 ? '0'+date.getMinutes() : date.getMinutes());
1481
+      var s = (date.getSeconds() < 10 ? '0'+date.getSeconds() : date.getSeconds());
1482
+      
1483
+      let strDate = h  + ':' + m;
1484
+      return strDate;
1467 1485
     }
1468 1486
   }
1469 1487
 }

+ 21 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderNine.vue Wyświetl plik

@@ -1043,7 +1043,7 @@
1043 1043
                       <label-box :isChecked="afterdialysis.complication.indexOf('头痛') > -1 ? true : false" showValue="头痛"></label-box>
1044 1044
                       <label-box :isChecked="afterdialysis.complication.indexOf('呕吐') > -1 ? true : false" showValue="呕吐"></label-box>
1045 1045
                       <label-box :isChecked="afterdialysis.complication.indexOf('低血压') > -1 ? true : false" showValue="低血压"></label-box>
1046
-                      <label-box showValue="发热"></label-box>
1046
+                      <label-box :isChecked="afterdialysis.complication.indexOf('发热') > -1 ? true : false" showValue="发热"></label-box>
1047 1047
                       <label-box :isChecked="afterdialysis.complication.indexOf('抽搐') > -1 ? true : false" showValue="抽搐"></label-box>
1048 1048
                       <label-box :isChecked="afterdialysis.complication.indexOf('高血压') > -1 ? true : false" showValue="高血压"></label-box>
1049 1049
                       <label-box :isChecked="afterdialysis.complication.indexOf('心律失常') > -1 ? true : false" showValue="心律失常"></label-box>
@@ -1080,7 +1080,7 @@
1080 1080
                   <td width="40">其他:</td>
1081 1081
                   <td width="">
1082 1082
                     <div class="under-line">
1083
-                      &nbsp;
1083
+                      &nbsp;{{ afterdialysis.complication ? getComplication(afterdialysis.complication) : '' }}
1084 1084
                     </div>
1085 1085
                   </td>
1086 1086
                 </tr>
@@ -1735,6 +1735,25 @@ export default {
1735 1735
       }
1736 1736
   },
1737 1737
     methods: {
1738
+      getComplication(complication){
1739
+        if(complication.indexOf(',') == -1){
1740
+          let str = complication
1741
+          if(['无','头晕','头痛','呕吐','低血压','发热','抽搐','高血压','心律失常'].indexOf(str) == -1){
1742
+            return str
1743
+          }
1744
+        }else if(complication.indexOf(',') > -1){
1745
+          let str = complication
1746
+          if(['无','头晕','头痛','呕吐','低血压','发热','抽搐','高血压','心律失常'].indexOf(str) == -1){
1747
+            let newStr = ''
1748
+            str.split(',').map(item => {
1749
+              if(['无','头晕','头痛','呕吐','低血压','发热','抽搐','高血压','心律失常'].indexOf(item) == -1){
1750
+                newStr += item + ','
1751
+              }
1752
+            })
1753
+            return newStr.substring(0, newStr.length - 1)
1754
+          }
1755
+        }
1756
+      },
1738 1757
       getAdminUser(id) {
1739 1758
         if (id == 0) {
1740 1759
           return ''