2 Commits 44af83c1fe ... 73df4ab9e1

Autor SHA1 Mensagem Data
  yq1 73df4ab9e1 Merge remote-tracking branch 'origin/20230223_pad_vue_new_branch' into 20230223_pad_vue_new_branch 3 meses atrás
  yq1 bb149bc321 25 3月27日 打印单 3 meses atrás
1 arquivos alterados com 62 adições e 49 exclusões
  1. 62 49
      src/pages/main/template/DialysisPrintOrdereightyone.vue

+ 62 - 49
src/pages/main/template/DialysisPrintOrdereightyone.vue Ver arquivo

344
                   <div class="inline_block" style="flex: 1">
344
                   <div class="inline_block" style="flex: 1">
345
                     上次透后体重:
345
                     上次透后体重:
346
                     <div class="under_line" style="width: 50px; text-align: center">
346
                     <div class="under_line" style="width: 50px; text-align: center">
347
-                      <span
348
-                        v-if="lastWeight != null && lastWeight.weight_after > 0">{{ lastWeight.weight_after ? lastWeight.weight_after : "未称重" }}</span>
349
-                      <span
350
-                        v-if="lastWeight != null && lastWeight.weight_after <= 0">{{ afterdialysis.last_after_weight ? afterdialysis.last_after_weight : "未称重" }}</span>
347
+                      <span v-if="lastWeight != null && lastWeight.weight_after > 0">{{ lastWeight.weight_after ?
348
+                        lastWeight.weight_after : "未称重" }}</span>
349
+                      <span v-if="lastWeight != null && lastWeight.weight_after <= 0">{{ afterdialysis.last_after_weight
350
+                        ? afterdialysis.last_after_weight : "未称重" }}</span>
351
                     </div>
351
                     </div>
352
                     kg
352
                     kg
353
                   </div>
353
                   </div>
371
                     <div class="under_line" style="width: 70px; text-align: center">
371
                     <div class="under_line" style="width: 70px; text-align: center">
372
                       <span>
372
                       <span>
373
                         <span v-if="lastWeight.weight_after > 0">{{ (predialysis.weight_before -
373
                         <span v-if="lastWeight.weight_after > 0">{{ (predialysis.weight_before -
374
-                          predialysis.additional_weight - lastWeight.weight_after).toFixed(2)}}</span>
374
+                          predialysis.additional_weight - lastWeight.weight_after).toFixed(2) }}</span>
375
                         <span v-if="lastWeight.weight_after <= 0 && afterdialysis.last_after_weight > 0">{{
375
                         <span v-if="lastWeight.weight_after <= 0 && afterdialysis.last_after_weight > 0">{{
376
                           (predialysis.weight_before - predialysis.additional_weight
376
                           (predialysis.weight_before - predialysis.additional_weight
377
-                          -afterdialysis.last_after_weight).toFixed(2)}}</span>
377
+                            - afterdialysis.last_after_weight).toFixed(2) }}</span>
378
                         <span v-if="lastWeight.weight_after <= 0 && afterdialysis.last_after_weight == 0">/</span>
378
                         <span v-if="lastWeight.weight_after <= 0 && afterdialysis.last_after_weight == 0">/</span>
379
                       </span>
379
                       </span>
380
                     </div>
380
                     </div>
443
                     抗凝剂:
443
                     抗凝剂:
444
                     <div class="under_line" style="width: 60%; text-align: center">
444
                     <div class="under_line" style="width: 60%; text-align: center">
445
                       <span v-if="prescription.anticoagulant_name == '低分子肝素钙'">低分子量肝素钙</span>
445
                       <span v-if="prescription.anticoagulant_name == '低分子肝素钙'">低分子量肝素钙</span>
446
-                      <span v-if="prescription.anticoagulant_name != '低分子肝素钙'">{{ prescription.anticoagulant_name }}</span>
446
+                      <span v-if="prescription.anticoagulant_name != '低分子肝素钙'">{{ prescription.anticoagulant_name
447
+                        }}</span>
447
                     </div>
448
                     </div>
448
                   </div>
449
                   </div>
449
                   <div class="inline_block" style="flex: 1;" v-if="prescription.anticoagulant != 5">
450
                   <div class="inline_block" style="flex: 1;" v-if="prescription.anticoagulant != 5">
664
                       <td height="35px" colspan="2" class="advice-name" style="padding-left:7px;">
665
                       <td height="35px" colspan="2" class="advice-name" style="padding-left:7px;">
665
                         <span v-if="advice.parent_id > 0">---></span>
666
                         <span v-if="advice.parent_id > 0">---></span>
666
                         <span>{{ advice.advice_name }}</span>
667
                         <span>{{ advice.advice_name }}</span>
667
-                        <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
668
+                        <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit
669
+                          }})</span>
668
                         <span v-if="advice.prescribing_number">*
670
                         <span v-if="advice.prescribing_number">*
669
                           {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</span>
671
                           {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</span>
670
-                        <span v-if="advice.single_dose != 0"> {{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
672
+                        <span v-if="advice.single_dose != 0"> {{ advice.single_dose }}{{ advice.single_dose_unit
673
+                          }}</span>
671
                         <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
674
                         <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
672
                         <span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
675
                         <span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
673
                         <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span>
676
                         <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span>
679
                         </td> -->
682
                         </td> -->
680
                       <!-- <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td> -->
683
                       <!-- <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td> -->
681
                       <td height="35px">
684
                       <td height="35px">
682
-                        <span
683
-                          v-if="setAdminUserES(advice.advice_doctor) == ''">{{ getAdminUser(advice.advice_doctor) }}</span>
685
+                        <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{ getAdminUser(advice.advice_doctor)
686
+                          }}</span>
684
                         <img style="height:30px;" :src="setAdminUserES(advice.advice_doctor)" alt="" srcset="" v-else>
687
                         <img style="height:30px;" :src="setAdminUserES(advice.advice_doctor)" alt="" srcset="" v-else>
685
                       </td>
688
                       </td>
686
                       <td height="35px">
689
                       <td height="35px">
687
                         <span v-if="advice.execution_time">{{ getTime(advice.execution_time, '{h}:{i}') }}</span>
690
                         <span v-if="advice.execution_time">{{ getTime(advice.execution_time, '{h}:{i}') }}</span>
688
                       </td>
691
                       </td>
689
                       <td height="35px">
692
                       <td height="35px">
690
-                        <span
691
-                          v-if="setAdminUserES(advice.execution_staff) == ''">{{ getAdminUser(advice.execution_staff) }}</span>
693
+                        <span v-if="setAdminUserES(advice.execution_staff) == ''">{{
694
+                          getAdminUser(advice.execution_staff) }}</span>
692
                         <img style="height:30px;" :src="setAdminUserES(advice.execution_staff)" alt="" srcset="" v-else>
695
                         <img style="height:30px;" :src="setAdminUserES(advice.execution_staff)" alt="" srcset="" v-else>
693
                       </td>
696
                       </td>
694
                     </tr>
697
                     </tr>
983
                     <span> 核对护士:</span>
986
                     <span> 核对护士:</span>
984
                     <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder == null">
987
                     <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder == null">
985
                       <span style="height:30px;display: inline-block"
988
                       <span style="height:30px;display: inline-block"
986
-                        v-if="setAdminUserES(check == null ? 0 : check.creater) == ''">{{ getAdminUser(check == null ? 0 : check.creater) }}</span>
987
-                      <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.creater)" alt="" srcset=""
988
-                        v-else>
989
+                        v-if="setAdminUserES(check == null ? 0 : check.creater) == ''">{{ getAdminUser(check == null ? 0
990
+                        :
991
+                        check.creater) }}</span>
992
+                      <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.creater)" alt=""
993
+                        srcset="" v-else>
989
                     </div>
994
                     </div>
990
                     <div class="under_line" style="width: 80px;text-align: center"
995
                     <div class="under_line" style="width: 80px;text-align: center"
991
                       v-if="dialysisOrder != null && dialysisOrder.start_nurse == check.modifier">
996
                       v-if="dialysisOrder != null && dialysisOrder.start_nurse == check.modifier">
992
                       <span style="height:30px;display: inline-block"
997
                       <span style="height:30px;display: inline-block"
993
-                        v-if="setAdminUserES(check == null ? 0 : check.creater) == ''">{{ getAdminUser(check == null ? 0 : check.creater) }}</span>
994
-                      <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.creater)" alt="" srcset=""
995
-                        v-else>
998
+                        v-if="setAdminUserES(check == null ? 0 : check.creater) == ''">{{ getAdminUser(check == null ? 0
999
+                        :
1000
+                        check.creater) }}</span>
1001
+                      <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.creater)" alt=""
1002
+                        srcset="" v-else>
996
                     </div>
1003
                     </div>
997
                     <div class="under_line" style="width: 80px;text-align: center"
1004
                     <div class="under_line" style="width: 80px;text-align: center"
998
                       v-if="dialysisOrder != null && dialysisOrder.start_nurse == check.creater">
1005
                       v-if="dialysisOrder != null && dialysisOrder.start_nurse == check.creater">
999
                       <span style="height:30px;display: inline-block"
1006
                       <span style="height:30px;display: inline-block"
1000
-                        v-if="setAdminUserES(check == null ? 0 : check.modifier) == ''">{{ getAdminUser(check == null ? 0 : check.modifier) }}</span>
1001
-                      <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.modifier)" alt="" srcset=""
1002
-                        v-else>
1007
+                        v-if="setAdminUserES(check == null ? 0 : check.modifier) == ''">{{ getAdminUser(check == null ?
1008
+                        0 :
1009
+                        check.modifier) }}</span>
1010
+                      <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.modifier)" alt=""
1011
+                        srcset="" v-else>
1003
                     </div>
1012
                     </div>
1004
                     <div class="under_line" style="width: 80px;text-align: center"
1013
                     <div class="under_line" style="width: 80px;text-align: center"
1005
                       v-if="dialysisOrder != null && dialysisOrder.start_nurse != check.creater && dialysisOrder.start_nurse != check.modifier">
1014
                       v-if="dialysisOrder != null && dialysisOrder.start_nurse != check.creater && dialysisOrder.start_nurse != check.modifier">
1006
                       <span style="height:30px;display: inline-block"
1015
                       <span style="height:30px;display: inline-block"
1007
-                        v-if="setAdminUserES(check == null ? 0 : check.creater) == ''">{{ getAdminUser(check == null ? 0 : check.creater) }}</span>
1008
-                      <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.creater)" alt="" srcset=""
1009
-                        v-else>
1016
+                        v-if="setAdminUserES(check == null ? 0 : check.creater) == ''">{{ getAdminUser(check == null ? 0
1017
+                        :
1018
+                        check.creater) }}</span>
1019
+                      <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.creater)" alt=""
1020
+                        srcset="" v-else>
1010
                     </div>
1021
                     </div>
1011
                   </div>
1022
                   </div>
1012
                   <div class="inline_block" style="flex:1;">
1023
                   <div class="inline_block" style="flex:1;">
1013
                     下机护士:
1024
                     下机护士:
1014
                     <div class="under_line" style="width: 80px;text-align: center">
1025
                     <div class="under_line" style="width: 80px;text-align: center">
1015
                       <span style="height:30px;display: inline-block"
1026
                       <span style="height:30px;display: inline-block"
1016
-                        v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse) == ''">{{ getAdminUser(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse) }}</span>
1017
-                      <img style="height:30px;" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse)"
1018
-                        alt="" srcset="" v-else>
1027
+                        v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse) == ''">{{
1028
+                          getAdminUser(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse) }}</span>
1029
+                      <img style="height:30px;"
1030
+                        :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse)" alt="" srcset=""
1031
+                        v-else>
1019
                     </div>
1032
                     </div>
1020
                   </div>
1033
                   </div>
1021
                   <div class="inline_block" style="flex: 1">
1034
                   <div class="inline_block" style="flex: 1">
1438
         for (let i in this.monitors) {
1451
         for (let i in this.monitors) {
1439
           if (this.monitors[i].operate_time != null) {
1452
           if (this.monitors[i].operate_time != null) {
1440
             if (this.monitors[i].blood_flow_volume == 0 ||
1453
             if (this.monitors[i].blood_flow_volume == 0 ||
1441
-              this.prescription.blood_flow_volume < 180 ||
1442
-              this.prescription.blood_flow_volume > 300
1454
+              this.monitors[i].blood_flow_volume < 180 ||
1455
+              this.monitors[i].blood_flow_volume > 300
1443
             ) {
1456
             ) {
1444
               const obj55 = '监测第' + ((i * 1) + 1) + '行血流量'
1457
               const obj55 = '监测第' + ((i * 1) + 1) + '行血流量'
1445
-              monearr.push(obj55)
1458
+              checkDate.push(obj55)
1446
             } if (this.monitors[i].venous_pressure == 0 ||
1459
             } if (this.monitors[i].venous_pressure == 0 ||
1447
               this.monitors[i].venous_pressure < 20 ||
1460
               this.monitors[i].venous_pressure < 20 ||
1448
               this.monitors[i].venous_pressure > 150
1461
               this.monitors[i].venous_pressure > 150
1449
             ) {
1462
             ) {
1450
               const obj56 = '监测第' + ((i * 1) + 1) + '行静脉压'
1463
               const obj56 = '监测第' + ((i * 1) + 1) + '行静脉压'
1451
-              monearr.push(obj56)
1464
+              checkDate.push(obj56)
1452
             } if (this.monitors[i].ultrafiltration_rate == 0) {
1465
             } if (this.monitors[i].ultrafiltration_rate == 0) {
1453
               const obj57 = '监测第' + ((i * 1) + 1) + '行超滤率'
1466
               const obj57 = '监测第' + ((i * 1) + 1) + '行超滤率'
1454
-              monearr.push(obj57)
1467
+              checkDate.push(obj57)
1455
             } if (this.monitors[i].ultrafiltration_volume == 0 && i != 0) {
1468
             } if (this.monitors[i].ultrafiltration_volume == 0 && i != 0) {
1456
               const obj53 = '监测第' + ((i * 1) + 1) + '行超滤量'
1469
               const obj53 = '监测第' + ((i * 1) + 1) + '行超滤量'
1457
-              monearr.push(obj53)
1470
+              checkDate.push(obj53)
1458
             } if (this.monitors[i].replacement_rate == 0 && this.prescription.mode == 'HDF'
1471
             } if (this.monitors[i].replacement_rate == 0 && this.prescription.mode == 'HDF'
1459
             ) {
1472
             ) {
1460
               const obj58 = '监测第' + ((i * 1) + 1) + '行置换率'
1473
               const obj58 = '监测第' + ((i * 1) + 1) + '行置换率'
1461
-              monearr.push(obj58)
1474
+              checkDate.push(obj58)
1462
             }
1475
             }
1463
             // if(this.monitors[i].displacement_quantity == 0 && this.prescription.mode =='HDF'&& i !=0){
1476
             // if(this.monitors[i].displacement_quantity == 0 && this.prescription.mode =='HDF'&& i !=0){
1464
             //   const obj54 = '监测第'+((i*1)+1)+'行置换量'
1477
             //   const obj54 = '监测第'+((i*1)+1)+'行置换量'
1465
             //   monearr.push(obj54)
1478
             //   monearr.push(obj54)
1466
             // }
1479
             // }
1467
             if (this.monitors[i].sodium_concentration == 0 ||
1480
             if (this.monitors[i].sodium_concentration == 0 ||
1468
-                this.monitors[i].sodium_concentration != 138
1481
+              this.monitors[i].sodium_concentration != 138
1469
             ) {
1482
             ) {
1470
               // this.monitors[i].temperature == 0
1483
               // this.monitors[i].temperature == 0
1471
               const obj59 = '监测第' + ((i * 1) + 1) + '行钠浓度'
1484
               const obj59 = '监测第' + ((i * 1) + 1) + '行钠浓度'
1472
-              monearr.push(obj59)
1485
+              checkDate.push(obj59)
1473
             } if (this.monitors[i].pulse_frequency == 0 ||
1486
             } if (this.monitors[i].pulse_frequency == 0 ||
1474
               this.monitors[i].pulse_frequency < 60 ||
1487
               this.monitors[i].pulse_frequency < 60 ||
1475
               this.monitors[i].pulse_frequency > 100
1488
               this.monitors[i].pulse_frequency > 100
1476
             ) {
1489
             ) {
1477
               const obj60 = '监测第' + ((i * 1) + 1) + '行脉搏'
1490
               const obj60 = '监测第' + ((i * 1) + 1) + '行脉搏'
1478
-              monearr.push(obj60)
1491
+              checkDate.push(obj60)
1479
             } if (this.monitors[i].breathing_rate == 0 ||
1492
             } if (this.monitors[i].breathing_rate == 0 ||
1480
               this.monitors[i].breathing_rate < 12 ||
1493
               this.monitors[i].breathing_rate < 12 ||
1481
               this.monitors[i].breathing_rate > 20
1494
               this.monitors[i].breathing_rate > 20
1482
             ) {
1495
             ) {
1483
               const obj61 = '监测第' + ((i * 1) + 1) + '行呼吸'
1496
               const obj61 = '监测第' + ((i * 1) + 1) + '行呼吸'
1484
-              monearr.push(obj61)
1497
+              checkDate.push(obj61)
1485
             } if (this.monitors[i].systolic_blood_pressure == 0 ||
1498
             } if (this.monitors[i].systolic_blood_pressure == 0 ||
1486
               this.monitors[i].systolic_blood_pressure < 90 ||
1499
               this.monitors[i].systolic_blood_pressure < 90 ||
1487
               this.monitors[i].systolic_blood_pressure > 180 ||
1500
               this.monitors[i].systolic_blood_pressure > 180 ||
1490
               this.monitors[i].diastolic_blood_pressure > 120
1503
               this.monitors[i].diastolic_blood_pressure > 120
1491
             ) {
1504
             ) {
1492
               const obj62 = '监测第' + ((i * 1) + 1) + '行血压'
1505
               const obj62 = '监测第' + ((i * 1) + 1) + '行血压'
1493
-              monearr.push(obj62)
1494
-            } if (this.monitors[i].temperature == 0||
1495
-                  this.monitors[i].temperature < 36 ||
1496
-                  this.monitors[i].temperature > 37
1506
+              checkDate.push(obj62)
1507
+            } if (this.monitors[i].temperature == 0 ||
1508
+              this.monitors[i].temperature < 36 ||
1509
+              this.monitors[i].temperature > 37
1497
             ) {
1510
             ) {
1498
               const obj51 = '监测第' + ((i * 1) + 1) + '行温度'
1511
               const obj51 = '监测第' + ((i * 1) + 1) + '行温度'
1499
-              monearr.push(obj51)
1512
+              checkDate.push(obj51)
1500
             } if (this.monitors[i].transmembrane_pressure == 0 ||
1513
             } if (this.monitors[i].transmembrane_pressure == 0 ||
1501
               this.monitors[i].transmembrane_pressure < 20 ||
1514
               this.monitors[i].transmembrane_pressure < 20 ||
1502
               this.monitors[i].transmembrane_pressure > 300
1515
               this.monitors[i].transmembrane_pressure > 300
1503
             ) {
1516
             ) {
1504
               const obj52 = '监测第' + ((i * 1) + 1) + '行跨膜压'
1517
               const obj52 = '监测第' + ((i * 1) + 1) + '行跨膜压'
1505
-              monearr.push(obj52)
1518
+              checkDate.push(obj52)
1506
             }
1519
             }
1507
           }
1520
           }
1508
         }
1521
         }
1509
       }
1522
       }
1510
-      if (monearr.length > 0) {
1511
-        checkDate = checkDate.concat(monearr)
1512
-        console.log('1111', checkDate.concat(monearr));
1513
-      }
1523
+      // if (monearr.length > 0) {
1524
+      //   checkDate = checkDate.concat(monearr)
1525
+      //   console.log('1111', checkDate.concat(monearr));
1526
+      // }
1514
       this.getcheckData(checkDate)
1527
       this.getcheckData(checkDate)
1515
     },
1528
     },
1516
     getDisplaceLiquiPart: function (val) {
1529
     getDisplaceLiquiPart: function (val) {