Selaa lähdekoodia

库存显示展示

XMLWAN 2 vuotta sitten
vanhempi
commit
3807fca593
1 muutettua tiedostoa jossa 13 lisäystä ja 1 poistoa
  1. 13 1
      src/xt_pages/dialysis/batch_print/batch_print_order_six.vue

+ 13 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue Näytä tiedosto

2997
         var resp = rs.data;
2997
         var resp = rs.data;
2998
         if (resp.state == 1) {
2998
         if (resp.state == 1) {
2999
           this.records = this.records.concat(resp.data.schedules);
2999
           this.records = this.records.concat(resp.data.schedules);
3000
-
3000
+          var tempmonitorflag = true;
3001
+          for(let i=0;i<this.records.length;i++){
3002
+            for(let j=0;j<this.records[i].monitor_records.length;j++){
3003
+              this.records[i].monitor_records[j].end = ""
3004
+              if (this.records[i].dialysis_order &&this.records[i].monitor_records[j].operate_time ==  this.records[i].dialysis_order.end_time) {
3005
+              this.records[i].monitor_records[j].end = "【结束透析】";
3006
+              tempmonitorflag = false;
3007
+            }
3008
+            if (tempmonitorflag && j == this.records[i].monitor_records.length - 1) {
3009
+              this.records[i].monitor_records[j].end = "【结束透析】";
3010
+            }
3011
+            }
3012
+          }
3001
           for (const recordIndex in this.records) {
3013
           for (const recordIndex in this.records) {
3002
             var dlegh = 0;
3014
             var dlegh = 0;
3003
             if (
3015
             if (