Browse Source

库存显示展示

XMLWAN 2 years ago
parent
commit
3807fca593
1 changed files with 13 additions and 1 deletions
  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 View File

@@ -2997,7 +2997,19 @@ export default {
2997 2997
         var resp = rs.data;
2998 2998
         if (resp.state == 1) {
2999 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 3013
           for (const recordIndex in this.records) {
3002 3014
             var dlegh = 0;
3003 3015
             if (