Browse Source

11月20 打印单

yq1 2 days ago
parent
commit
13322d399b
1 changed files with 59 additions and 56 deletions
  1. 59 56
      src/xt_pages/dialysis/template/DialysisPrintOrderSeventyeight.vue

+ 59 - 56
src/xt_pages/dialysis/template/DialysisPrintOrderSeventyeight.vue View File

2035
             }
2035
             }
2036
           })
2036
           })
2037
         }
2037
         }
2038
-        if(this.monitors.length >0){
2039
-
2040
-          for(let i in this.monitors){
2041
-            if(this.monitors[i].blood_flow_volume ==0 && this.dialysisOrder.end_time > this.monitors[i].operate_time){
2042
-              const obj55 = '监测第'+((i*1)+1)+'行血流量'
2043
-              monearr.push(obj55)
2044
-            } if((this.monitors[i].venous_pressure ==0 ||
2045
-                this.monitors[i].transmembrane_pressure ==0 ) && this.dialysisOrder.end_time > this.monitors[i].operate_time
2046
-            ){
2047
-              const obj56 = '监测第'+((i*1)+1)+'行静脉压/跨膜压'
2048
-              monearr.push(obj56)
2049
-            } if(this.monitors[i].ultrafiltration_rate ==0 && this.dialysisOrder.end_time > this.monitors[i].operate_time){
2050
-              const obj57 = '监测第'+((i*1)+1)+'行超滤率'
2051
-              monearr.push(obj57)
2052
-            } if(this.monitors[i].ultrafiltration_volume == 0 && i !=0 && 
2053
-                this.dialysisOrder.end_time > this.monitors[i].operate_time
2054
-            ){
2055
-              const obj53 = '监测第'+((i*1)+1)+'行超滤量'
2056
-              monearr.push(obj53)
2057
-            } if(this.monitors[i].replacement_rate ==0 && this.prescription.mode =='HDF'&& 
2058
-                this.dialysisOrder.end_time > this.monitors[i].operate_time
2059
-            ){
2060
-              const obj58 = '监测第'+((i*1)+1)+'行置换率'
2061
-              monearr.push(obj58)
2062
-            } if(this.monitors[i].displacement_quantity == 0 && this.prescription.mode =='HDF'&& i !=0
2063
-                && this.dialysisOrder.end_time > this.monitors[i].operate_time
2064
-            ){
2065
-              const obj54 = '监测第'+((i*1)+1)+'行置换量'
2066
-              monearr.push(obj54)
2067
-            } if(this.monitors[i].sodium_concentration ==0 && 
2068
-                this.dialysisOrder.end_time > this.monitors[i].operate_time
2069
-            ){
2070
-              // this.monitors[i].temperature == 0
2071
-              const obj59 = '监测第'+((i*1)+1)+'行钠浓度/温度'
2072
-              monearr.push(obj59)
2073
-            } if(this.monitors[i].pulse_frequency ==0  && 
2074
-                this.dialysisOrder.end_time > this.monitors[i].operate_time
2075
-            ){
2076
-              const obj60 = '监测第'+((i*1)+1)+'行脉搏'
2077
-              monearr.push(obj60)
2078
-            } if(this.monitors[i].breathing_rate ==0 && 
2079
-              this.dialysisOrder.end_time > this.monitors[i].operate_time
2080
-            ){
2081
-              const obj61 = '监测第'+((i*1)+1)+'行呼吸'
2082
-              monearr.push(obj61)
2083
-            } if((this.monitors[i].systolic_blood_pressure ==0 ||
2084
-                  this.monitors.diastolic_blood_pressure==0) && 
2085
-                  this.dialysisOrder.end_time > this.monitors[i].operate_time
2086
-            ){
2087
-              const obj62 = '监测第'+((i*1)+1)+'行血压'
2088
-              monearr.push(obj62)
2089
-            }
2038
+        if(this.dialysisOrder !=undefined && this.dialysisOrder.end_time != 0){
2039
+          if(this.monitors.length >0){
2040
+            for(let i in this.monitors){
2041
+              console.log('1111111111',this.dialysisOrder.end_time,this.monitors[i].operate_time);
2042
+              if(this.monitors[i].blood_flow_volume ==0 && this.dialysisOrder.end_time >= this.monitors[i].operate_time){
2043
+                const obj55 = '监测第'+((i*1)+1)+'行血流量'
2044
+                checkDate.push(obj55)
2045
+              } if((this.monitors[i].venous_pressure ==0 ||
2046
+                  this.monitors[i].transmembrane_pressure ==0 ) && this.dialysisOrder.end_time >= this.monitors[i].operate_time
2047
+              ){
2048
+                const obj56 = '监测第'+((i*1)+1)+'行静脉压/跨膜压'
2049
+                checkDate.push(obj56)
2050
+              } if(this.monitors[i].ultrafiltration_rate ==0 && this.dialysisOrder.end_time >= this.monitors[i].operate_time){
2051
+                const obj57 = '监测第'+((i*1)+1)+'行超滤率'
2052
+                checkDate.push(obj57)
2053
+              } if(this.monitors[i].ultrafiltration_volume == 0 && i !=0 && 
2054
+                  this.dialysisOrder.end_time >= this.monitors[i].operate_time
2055
+              ){
2056
+                const obj53 = '监测第'+((i*1)+1)+'行超滤量'
2057
+                checkDate.push(obj53)
2058
+              } if(this.monitors[i].replacement_rate ==0 && this.prescription.mode =='HDF'&& 
2059
+                  this.dialysisOrder.end_time >= this.monitors[i].operate_time
2060
+              ){
2061
+                const obj58 = '监测第'+((i*1)+1)+'行置换率'
2062
+                checkDate.push(obj58)
2063
+              } if(this.monitors[i].displacement_quantity == 0 && this.prescription.mode =='HDF'&& i !=0
2064
+                  && this.dialysisOrder.end_time >= this.monitors[i].operate_time
2065
+              ){
2066
+                const obj54 = '监测第'+((i*1)+1)+'行置换量'
2067
+                checkDate.push(obj54)
2068
+              } if(this.monitors[i].sodium_concentration ==0 && 
2069
+                  this.dialysisOrder.end_time >= this.monitors[i].operate_time
2070
+              ){
2071
+                // this.monitors[i].temperature == 0
2072
+                const obj59 = '监测第'+((i*1)+1)+'行钠浓度/温度'
2073
+                checkDate.push(obj59)
2074
+              } if(this.monitors[i].pulse_frequency ==0  && 
2075
+                  this.monitors[i].operate_time <= this.dialysisOrder.end_time
2076
+              ){
2077
+                const obj60 = '监测第'+((i*1)+1)+'行脉搏'
2078
+                checkDate.push(obj60)
2079
+              } if(this.monitors[i].breathing_rate ==0 && 
2080
+                this.dialysisOrder.end_time >= this.monitors[i].operate_time
2081
+              ){
2082
+                const obj61 = '监测第'+((i*1)+1)+'行呼吸'
2083
+                checkDate.push(obj61)
2084
+              } if((this.monitors[i].systolic_blood_pressure ==0 ||
2085
+                    this.monitors.diastolic_blood_pressure==0) && 
2086
+                    this.dialysisOrder.end_time >= this.monitors[i].operate_time
2087
+              ){
2088
+                const obj62 = '监测第'+((i*1)+1)+'行血压'
2089
+                checkDate.push(obj62)
2090
+              }
2090
 
2091
 
2092
+            }
2091
           }
2093
           }
2092
         }
2094
         }
2093
-        if(monearr.length>0){
2094
-        checkDate =checkDate.concat(monearr)
2095
-          console.log('1111',checkDate.concat(monearr));
2096
-        }
2095
+        
2096
+        // if(monearr.length>0){
2097
+        // checkDate =checkDate.concat(monearr)
2098
+        //   console.log('1111',checkDate.concat(monearr));
2099
+        // }
2097
         console.log('monearr监测',checkDate,monearr);
2100
         console.log('monearr监测',checkDate,monearr);
2098
 
2101
 
2099
         this.getcheckData(checkDate)
2102
         this.getcheckData(checkDate)