2 Revīzijas 44af83c1fe ... 73df4ab9e1

Autors SHA1 Ziņojums Datums
  yq1 73df4ab9e1 Merge remote-tracking branch 'origin/20230223_pad_vue_new_branch' into 20230223_pad_vue_new_branch 3 mēnešus atpakaļ
  yq1 bb149bc321 25 3月27日 打印单 3 mēnešus atpakaļ
1 mainītis faili ar 62 papildinājumiem un 49 dzēšanām
  1. 62 49
      src/pages/main/template/DialysisPrintOrdereightyone.vue

+ 62 - 49
src/pages/main/template/DialysisPrintOrdereightyone.vue Parādīt failu

@@ -344,10 +344,10 @@
344 344
                   <div class="inline_block" style="flex: 1">
345 345
                     上次透后体重:
346 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 351
                     </div>
352 352
                     kg
353 353
                   </div>
@@ -371,10 +371,10 @@
371 371
                     <div class="under_line" style="width: 70px; text-align: center">
372 372
                       <span>
373 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 375
                         <span v-if="lastWeight.weight_after <= 0 && afterdialysis.last_after_weight > 0">{{
376 376
                           (predialysis.weight_before - predialysis.additional_weight
377
-                          -afterdialysis.last_after_weight).toFixed(2)}}</span>
377
+                            - afterdialysis.last_after_weight).toFixed(2) }}</span>
378 378
                         <span v-if="lastWeight.weight_after <= 0 && afterdialysis.last_after_weight == 0">/</span>
379 379
                       </span>
380 380
                     </div>
@@ -443,7 +443,8 @@
443 443
                     抗凝剂:
444 444
                     <div class="under_line" style="width: 60%; text-align: center">
445 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 448
                     </div>
448 449
                   </div>
449 450
                   <div class="inline_block" style="flex: 1;" v-if="prescription.anticoagulant != 5">
@@ -664,10 +665,12 @@
664 665
                       <td height="35px" colspan="2" class="advice-name" style="padding-left:7px;">
665 666
                         <span v-if="advice.parent_id > 0">---></span>
666 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 670
                         <span v-if="advice.prescribing_number">*
669 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 674
                         <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
672 675
                         <span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
673 676
                         <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span>
@@ -679,16 +682,16 @@
679 682
                         </td> -->
680 683
                       <!-- <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td> -->
681 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 687
                         <img style="height:30px;" :src="setAdminUserES(advice.advice_doctor)" alt="" srcset="" v-else>
685 688
                       </td>
686 689
                       <td height="35px">
687 690
                         <span v-if="advice.execution_time">{{ getTime(advice.execution_time, '{h}:{i}') }}</span>
688 691
                       </td>
689 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 695
                         <img style="height:30px;" :src="setAdminUserES(advice.execution_staff)" alt="" srcset="" v-else>
693 696
                       </td>
694 697
                     </tr>
@@ -983,39 +986,49 @@
983 986
                     <span> 核对护士:</span>
984 987
                     <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder == null">
985 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 994
                     </div>
990 995
                     <div class="under_line" style="width: 80px;text-align: center"
991 996
                       v-if="dialysisOrder != null && dialysisOrder.start_nurse == check.modifier">
992 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 1003
                     </div>
997 1004
                     <div class="under_line" style="width: 80px;text-align: center"
998 1005
                       v-if="dialysisOrder != null && dialysisOrder.start_nurse == check.creater">
999 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 1012
                     </div>
1004 1013
                     <div class="under_line" style="width: 80px;text-align: center"
1005 1014
                       v-if="dialysisOrder != null && dialysisOrder.start_nurse != check.creater && dialysisOrder.start_nurse != check.modifier">
1006 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 1021
                     </div>
1011 1022
                   </div>
1012 1023
                   <div class="inline_block" style="flex:1;">
1013 1024
                     下机护士:
1014 1025
                     <div class="under_line" style="width: 80px;text-align: center">
1015 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 1032
                     </div>
1020 1033
                   </div>
1021 1034
                   <div class="inline_block" style="flex: 1">
@@ -1438,50 +1451,50 @@ export default {
1438 1451
         for (let i in this.monitors) {
1439 1452
           if (this.monitors[i].operate_time != null) {
1440 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 1457
               const obj55 = '监测第' + ((i * 1) + 1) + '行血流量'
1445
-              monearr.push(obj55)
1458
+              checkDate.push(obj55)
1446 1459
             } if (this.monitors[i].venous_pressure == 0 ||
1447 1460
               this.monitors[i].venous_pressure < 20 ||
1448 1461
               this.monitors[i].venous_pressure > 150
1449 1462
             ) {
1450 1463
               const obj56 = '监测第' + ((i * 1) + 1) + '行静脉压'
1451
-              monearr.push(obj56)
1464
+              checkDate.push(obj56)
1452 1465
             } if (this.monitors[i].ultrafiltration_rate == 0) {
1453 1466
               const obj57 = '监测第' + ((i * 1) + 1) + '行超滤率'
1454
-              monearr.push(obj57)
1467
+              checkDate.push(obj57)
1455 1468
             } if (this.monitors[i].ultrafiltration_volume == 0 && i != 0) {
1456 1469
               const obj53 = '监测第' + ((i * 1) + 1) + '行超滤量'
1457
-              monearr.push(obj53)
1470
+              checkDate.push(obj53)
1458 1471
             } if (this.monitors[i].replacement_rate == 0 && this.prescription.mode == 'HDF'
1459 1472
             ) {
1460 1473
               const obj58 = '监测第' + ((i * 1) + 1) + '行置换率'
1461
-              monearr.push(obj58)
1474
+              checkDate.push(obj58)
1462 1475
             }
1463 1476
             // if(this.monitors[i].displacement_quantity == 0 && this.prescription.mode =='HDF'&& i !=0){
1464 1477
             //   const obj54 = '监测第'+((i*1)+1)+'行置换量'
1465 1478
             //   monearr.push(obj54)
1466 1479
             // }
1467 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 1483
               // this.monitors[i].temperature == 0
1471 1484
               const obj59 = '监测第' + ((i * 1) + 1) + '行钠浓度'
1472
-              monearr.push(obj59)
1485
+              checkDate.push(obj59)
1473 1486
             } if (this.monitors[i].pulse_frequency == 0 ||
1474 1487
               this.monitors[i].pulse_frequency < 60 ||
1475 1488
               this.monitors[i].pulse_frequency > 100
1476 1489
             ) {
1477 1490
               const obj60 = '监测第' + ((i * 1) + 1) + '行脉搏'
1478
-              monearr.push(obj60)
1491
+              checkDate.push(obj60)
1479 1492
             } if (this.monitors[i].breathing_rate == 0 ||
1480 1493
               this.monitors[i].breathing_rate < 12 ||
1481 1494
               this.monitors[i].breathing_rate > 20
1482 1495
             ) {
1483 1496
               const obj61 = '监测第' + ((i * 1) + 1) + '行呼吸'
1484
-              monearr.push(obj61)
1497
+              checkDate.push(obj61)
1485 1498
             } if (this.monitors[i].systolic_blood_pressure == 0 ||
1486 1499
               this.monitors[i].systolic_blood_pressure < 90 ||
1487 1500
               this.monitors[i].systolic_blood_pressure > 180 ||
@@ -1490,27 +1503,27 @@ export default {
1490 1503
               this.monitors[i].diastolic_blood_pressure > 120
1491 1504
             ) {
1492 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 1511
               const obj51 = '监测第' + ((i * 1) + 1) + '行温度'
1499
-              monearr.push(obj51)
1512
+              checkDate.push(obj51)
1500 1513
             } if (this.monitors[i].transmembrane_pressure == 0 ||
1501 1514
               this.monitors[i].transmembrane_pressure < 20 ||
1502 1515
               this.monitors[i].transmembrane_pressure > 300
1503 1516
             ) {
1504 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 1527
       this.getcheckData(checkDate)
1515 1528
     },
1516 1529
     getDisplaceLiquiPart: function (val) {