XMLWAN преди 4 години
родител
ревизия
535025c2b5
променени са 3 файла, в които са добавени 39 реда и са изтрити 15 реда
  1. 2 2
      config/prod.env.js
  2. 27 0
      src/pages/advice/DialysisAdviceTable.vue
  3. 10 13
      src/pages/main/dialog/MonitDialog.vue

+ 2 - 2
config/prod.env.js Целия файл

@@ -1,8 +1,8 @@
1 1
 "use strict";
2 2
 module.exports = {
3 3
   NODE_ENV: '"production"',
4
-  BASE_API: '"http://new_mobile.xt.api.sgjyun.com"'
5
-  //BASE_API: '"https://api.xt.kuyicloud.com"'
4
+  //BASE_API: '"http://new_mobile.xt.api.sgjyun.com"'
5
+  BASE_API: '"https://api.xt.kuyicloud.com"'
6 6
   // BASE_API:'"http://localhost:9529"',
7 7
   // BASE_API: '"http://api.xt.test.sgjyun.com"'
8 8
   // http://api.xt.test.sgjyun.com

+ 27 - 0
src/pages/advice/DialysisAdviceTable.vue Целия файл

@@ -440,6 +440,33 @@ export default {
440 440
         if (resp.state == 1) {
441 441
           this.admin_user = resp.data.adminUser;
442 442
           var schedules = resp.data.scheduals;
443
+          console.log("scheduals", schedules);
444
+          for (let i = 0; i < schedules.length; i++) {
445
+            schedules[i].dialysis_no = parseInt(
446
+              schedules[i].patient.dialysis_no
447
+            );
448
+          }
449
+          // console.log("schedules", schedules);
450
+          var arr = [];
451
+          for (let j = 0; j < schedules.length; j++) {
452
+            arr.push(schedules[j].dialysis_no);
453
+          }
454
+          arr.sort();
455
+          // console.log("arr", arr);
456
+          var arrTwo = [];
457
+          for (let i = 0; i < arr.length; i++) {
458
+            for (let j = 0; j < schedules.length; j++) {
459
+              if (arr[i] == schedules[j].dialysis_no) {
460
+                arrTwo.push(schedules[j]);
461
+              }
462
+            }
463
+          }
464
+          console.log("arrTwo", arrTwo);
465
+          // var arrthree = [];
466
+          // for (let i = 0; i < arrTwo.length; i++) {
467
+          //  arrthree.push(arrTwo[i].doctor_advice);
468
+          // }
469
+          schedules = arrTwo;
443 470
           var zoneMap = {};
444 471
           var scheduleMap = {};
445 472
           for (let index = 0; index < schedules.length; index++) {

+ 10 - 13
src/pages/main/dialog/MonitDialog.vue Целия файл

@@ -26,8 +26,8 @@
26 26
                 <th v-if="isShow('血流量')" width="70px">血流量(ml/min)</th>
27 27
                 <th width="76px">静脉压/动脉压(mmHg)</th>
28 28
                 <th v-if="isShow('跨膜压')" width="70px">跨膜压(mmHg)</th>
29
-                <th v-if="isShow('超滤量') && (template_id ==6 || template_id == 10 || template_id == 11)" width="60px">超滤量(ml)</th>
30
-                <th v-if="isShow('超滤量') && template_id !=6 && template_id !=10 && template_id !=11" width="60px">超滤量(L)</th>
29
+                <th v-if="isShow('超滤量') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12)" width="60px">超滤量(ml)</th>
30
+                <th v-if="isShow('超滤量') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12" width="60px">超滤量(L)</th>
31 31
                 <th v-if="isShow('钠浓度')" width="82px">钠浓度(mmol/L)</th>
32 32
                 <th v-if="isShow('透析液温度')" width="82px">透析液温度(℃)</th>
33 33
                 <th v-if="isShow('置换率') && (template_id ==6 || template_id == 10 || template_id == 11)" width="92px">置换率(ml/min)</th>
@@ -206,7 +206,7 @@
206 206
               >转换</button>
207 207
             </div>
208 208
             <div class="cell" v-if="isShow('超滤量')">
209
-              <label v-if="template_id == 6 || template_id == 10 || template_id == 11">超滤量(ml)</label>
209
+              <label v-if="template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12">超滤量(ml)</label>
210 210
               <label v-else>超滤量(L)</label>
211 211
               <input
212 212
                 type="number"
@@ -516,7 +516,7 @@ export default {
516 516
         blood_oxygen_saturation: "",
517 517
         monitoring_nurse: this.$store.getters.user.admin.id, // 监测人
518 518
         creator: 0,
519
-        heparin:"",
519
+        heparin: ""
520 520
       },
521 521
       doctor: this.$store.getters.user.user.user_name,
522 522
       value: 0,
@@ -679,10 +679,7 @@ export default {
679 679
           ? resp.monitor.replacement_rate
680 680
           : "";
681 681
 
682
-        this.form.heparin = resp.monitor.heparin
683
-          ? resp.monitor.heparin
684
-          : "";
685
-
682
+        this.form.heparin = resp.monitor.heparin ? resp.monitor.heparin : "";
686 683
 
687 684
         this.form.displacement_quantity = ""; // this.last_monitor_record.displacement_quantity;
688 685
         this.form.conductivity = "";
@@ -693,7 +690,10 @@ export default {
693 690
         this.form.dispose = ""; // this.last_monitor_record.dispose;
694 691
         this.form.result = ""; // this.last_monitor_record.result;
695 692
         this.form.id = -1;
696
-        console.log(this.form);
693
+        console.log("hheh", resp.monitor);
694
+        this.form.blood_oxygen_saturation = resp.monitor.blood_oxygen_saturation
695
+          ? resp.monitor.blood_oxygen_saturation
696
+          : "";
697 697
       });
698 698
     },
699 699
 
@@ -808,15 +808,12 @@ export default {
808 808
               monitor.displacement_flow_quantity;
809 809
           }
810 810
 
811
-
812 811
           if (monitor.heparin == 0) {
813 812
             this.form.heparin = "";
814 813
           } else {
815 814
             this.form.heparin = monitor.heparin;
816 815
           }
817 816
 
818
-
819
-
820 817
           this.form.ktv = monitor.ktv;
821 818
           this.form.symptom = monitor.symptom;
822 819
           this.form.dispose = monitor.dispose;
@@ -1278,7 +1275,7 @@ export default {
1278 1275
             this.form.result = "";
1279 1276
             this.form.conductivity = "";
1280 1277
             this.form.displacement_flow_quantity = "";
1281
-            this.form.heparin= "";
1278
+            this.form.heparin = "";
1282 1279
 
1283 1280
             // this.last_monitor_record.sodium_concentration =
1284 1281
             //   monitor.sodium_concentration