Przeglądaj źródła

11月20日,打印单

yq1 2 dni temu
rodzic
commit
10862e3f90

+ 53 - 94
src/pages/main/template/DialysisPrintOrderSeventyeight.vue Wyświetl plik

@@ -1477,102 +1477,61 @@ export default {
1477 1477
             }
1478 1478
           })
1479 1479
         }
1480
-        if(this.monitors.length >0){
1481
-          for(let i in this.monitors){
1482
-            if(this.monitors[i].blood_flow_volume ==0 && this.dialysisOrder.end_time > this.monitors[i].operate_time){
1483
-              const obj55 = '监测第'+((i*1)+1)+'行血流量'
1484
-              monearr.push(obj55)
1485
-            } if((this.monitors[i].venous_pressure ==0 ||
1486
-                this.monitors[i].transmembrane_pressure ==0 ) && this.dialysisOrder.end_time > this.monitors[i].operate_time
1487
-            ){
1488
-              const obj56 = '监测第'+((i*1)+1)+'行静脉压/跨膜压'
1489
-              monearr.push(obj56)
1490
-            } if(this.monitors[i].ultrafiltration_rate ==0 && this.dialysisOrder.end_time > this.monitors[i].operate_time){
1491
-              const obj57 = '监测第'+((i*1)+1)+'行超滤率'
1492
-              monearr.push(obj57)
1493
-            } if(this.monitors[i].ultrafiltration_volume == 0 && i !=0 && 
1494
-                this.dialysisOrder.end_time > this.monitors[i].operate_time
1495
-            ){
1496
-              const obj53 = '监测第'+((i*1)+1)+'行超滤量'
1497
-              monearr.push(obj53)
1498
-            } if(this.monitors[i].replacement_rate ==0 && this.prescription.mode =='HDF'&& 
1499
-                this.dialysisOrder.end_time > this.monitors[i].operate_time
1500
-            ){
1501
-              const obj58 = '监测第'+((i*1)+1)+'行置换率'
1502
-              monearr.push(obj58)
1503
-            } if(this.monitors[i].displacement_quantity == 0 && this.prescription.mode =='HDF'&& i !=0
1504
-                && this.dialysisOrder.end_time > this.monitors[i].operate_time
1505
-            ){
1506
-              const obj54 = '监测第'+((i*1)+1)+'行置换量'
1507
-              monearr.push(obj54)
1508
-            } if(this.monitors[i].sodium_concentration ==0 && 
1509
-                this.dialysisOrder.end_time > this.monitors[i].operate_time
1510
-            ){
1511
-              // this.monitors[i].temperature == 0
1512
-              const obj59 = '监测第'+((i*1)+1)+'行钠浓度/温度'
1513
-              monearr.push(obj59)
1514
-            } if(this.monitors[i].pulse_frequency ==0  && 
1515
-                this.dialysisOrder.end_time > this.monitors[i].operate_time
1516
-            ){
1517
-              const obj60 = '监测第'+((i*1)+1)+'行脉搏'
1518
-              monearr.push(obj60)
1519
-            } if(this.monitors[i].breathing_rate ==0 && 
1520
-              this.dialysisOrder.end_time > this.monitors[i].operate_time
1521
-            ){
1522
-              const obj61 = '监测第'+((i*1)+1)+'行呼吸'
1523
-              monearr.push(obj61)
1524
-            } if((this.monitors[i].systolic_blood_pressure ==0 ||
1525
-                  this.monitors.diastolic_blood_pressure==0) && 
1526
-                  this.dialysisOrder.end_time > this.monitors[i].operate_time
1527
-            ){
1528
-              const obj62 = '监测第'+((i*1)+1)+'行血压'
1529
-              monearr.push(obj62)
1530
-            }
1480
+        if(this.dialysisOrder != undefined && this.dialysisOrder.end_time !=0){
1481
+          if(this.monitors.length >0){
1482
+            for(let i in this.monitors){
1483
+              if(this.monitors[i].blood_flow_volume ==0 && this.dialysisOrder.end_time >= this.monitors[i].operate_time){
1484
+                const obj55 = '监测第'+((i*1)+1)+'行血流量'
1485
+                checkDate.push(obj55)
1486
+              } if((this.monitors[i].venous_pressure ==0 ||
1487
+                  this.monitors[i].transmembrane_pressure ==0 ) && this.dialysisOrder.end_time >= this.monitors[i].operate_time
1488
+              ){
1489
+                const obj56 = '监测第'+((i*1)+1)+'行静脉压/跨膜压'
1490
+                checkDate.push(obj56)
1491
+              } if(this.monitors[i].ultrafiltration_rate ==0 && this.dialysisOrder.end_time >= this.monitors[i].operate_time){
1492
+                const obj57 = '监测第'+((i*1)+1)+'行超滤率'
1493
+                checkDate.push(obj57)
1494
+              } if(this.monitors[i].ultrafiltration_volume == 0 && i !=0 && 
1495
+                  this.dialysisOrder.end_time >= this.monitors[i].operate_time
1496
+              ){
1497
+                const obj53 = '监测第'+((i*1)+1)+'行超滤量'
1498
+                checkDate.push(obj53)
1499
+              } if(this.monitors[i].replacement_rate ==0 && this.prescription.mode =='HDF'&& 
1500
+                  this.dialysisOrder.end_time >= this.monitors[i].operate_time
1501
+              ){
1502
+                const obj58 = '监测第'+((i*1)+1)+'行置换率'
1503
+                checkDate.push(obj58)
1504
+              } if(this.monitors[i].displacement_quantity == 0 && this.prescription.mode =='HDF'&& i !=0
1505
+                  && this.dialysisOrder.end_time >= this.monitors[i].operate_time
1506
+              ){
1507
+                const obj54 = '监测第'+((i*1)+1)+'行置换量'
1508
+                checkDate.push(obj54)
1509
+              } if(this.monitors[i].sodium_concentration ==0 && 
1510
+                  this.dialysisOrder.end_time >= this.monitors[i].operate_time
1511
+              ){
1512
+                // this.monitors[i].temperature == 0
1513
+                const obj59 = '监测第'+((i*1)+1)+'行钠浓度/温度'
1514
+                checkDate.push(obj59)
1515
+              } if(this.monitors[i].pulse_frequency ==0  && 
1516
+                  this.dialysisOrder.end_time >= this.monitors[i].operate_time
1517
+              ){
1518
+                const obj60 = '监测第'+((i*1)+1)+'行脉搏'
1519
+                checkDate.push(obj60)
1520
+              } if(this.monitors[i].breathing_rate ==0 && 
1521
+                this.dialysisOrder.end_time >= this.monitors[i].operate_time
1522
+              ){
1523
+                const obj61 = '监测第'+((i*1)+1)+'行呼吸'
1524
+                checkDate.push(obj61)
1525
+              } if((this.monitors[i].systolic_blood_pressure ==0 ||
1526
+                    this.monitors.diastolic_blood_pressure==0) && 
1527
+                    this.dialysisOrder.end_time > this.monitors[i].operate_time
1528
+              ){
1529
+                const obj62 = '监测第'+((i*1)+1)+'行血压'
1530
+                checkDate.push(obj62)
1531
+              }
1531 1532
 
1533
+            }
1532 1534
           }
1533
-          // for(let i in this.monitors){
1534
-          // if(this.monitors[i].blood_flow_volume ==0){
1535
-          // const obj55 = '监测第'+((i*1)+1)+'行血流量'
1536
-          // monearr.push(obj55)
1537
-          // } if(this.monitors[i].venous_pressure ==0 ||
1538
-          // this.monitors[i].transmembrane_pressure ==0
1539
-          // ){
1540
-          // const obj56 = '监测第'+((i*1)+1)+'行静脉压/跨膜压'
1541
-          // monearr.push(obj56)
1542
-          // } if(this.monitors[i].ultrafiltration_rate ==0){
1543
-          // const obj57 = '监测第'+((i*1)+1)+'行超滤率'
1544
-          // monearr.push(obj57)
1545
-          // } if(this.monitors[i].ultrafiltration_volume == 0 && i !=0){
1546
-          // const obj53 = '监测第'+((i*1)+1)+'行超滤量'
1547
-          // monearr.push(obj53)
1548
-          // } if(this.monitors[i].replacement_rate ==0 && this.prescription.mode =='HDF'
1549
-          // ){
1550
-          // const obj58 = '监测第'+((i*1)+1)+'行置换率'
1551
-          // monearr.push(obj58)
1552
-          // } if(this.monitors[i].displacement_quantity == 0 && this.prescription.mode =='HDF'&& i !=0){
1553
-          // const obj54 = '监测第'+((i*1)+1)+'行置换量'
1554
-          // monearr.push(obj54)
1555
-          // }  if(this.monitors[i].sodium_concentration ==0 ){
1556
-          // // this.monitors[i].temperature == 0
1557
-          // const obj59 = '监测第'+((i*1)+1)+'行钠浓度/温度'
1558
-          // monearr.push(obj59)
1559
-          // } if(this.monitors[i].pulse_frequency ==0){
1560
-          // const obj60 = '监测第'+((i*1)+1)+'行脉搏'
1561
-          // monearr.push(obj60)
1562
-          // } if(this.monitors[i].breathing_rate ==0){
1563
-          // const obj61 = '监测第'+((i*1)+1)+'行呼吸'
1564
-          // monearr.push(obj61)
1565
-          // } if(this.monitors[i].systolic_blood_pressure ==0 ||
1566
-          // this.monitors.diastolic_blood_pressure==0){
1567
-          // const obj62 = '监测第'+((i*1)+1)+'行血压'
1568
-          // monearr.push(obj62)
1569
-          // }
1570
-
1571
-          // }
1572
-        }
1573
-        if(monearr.length>0){
1574
-          checkDate =checkDate.concat(monearr)
1575
-          console.log('1111',checkDate.concat(monearr));
1576 1535
         }
1577 1536
 
1578 1537
         this.getcheckData(checkDate)