Browse Source

11月14日 库存扣减更新

XMLWAN 3 years ago
parent
commit
a14460521e

+ 1 - 1
src/xt_pages/dialysis/PatientBox.vue View File

@@ -410,7 +410,7 @@ export default {
410 410
                  prescription.body_fluid = 0
411 411
              }
412 412
           }
413
-          console.log("透析处方",prescription)
413
+          console.log("透析处方323332323223323223",prescription)
414 414
           var solution = resp.data.solution; // 透析方案
415 415
           var receiver_treatment_access = resp.data.receiver_treatment_access; // 接诊评估
416 416
           console.log("receiver_treatment_access",receiver_treatment_access)

+ 4 - 6
src/xt_pages/dialysis/details/DialysisPrescription.vue View File

@@ -431,6 +431,7 @@ export default {
431 431
   },
432 432
   computed: {
433 433
     note: function () {
434
+      // console.log("世界人民呃232323223232323323223",this.prescription)
434 435
       return this.getValueStr('remark', 'remark')
435 436
     },
436 437
     target_ultrafiltration: function() {
@@ -713,7 +714,7 @@ export default {
713 714
   
714 715
   },
715 716
   created() {
716
-    console.log("中国出口233232323233223",this.prescription)
717
+   
717 718
     var perfusion_apparatus = this.$store.getters.perfusion_apparatus
718 719
     var map = {}
719 720
     for (let index = 0; index < perfusion_apparatus.length; index++) {
@@ -734,6 +735,7 @@ export default {
734 735
   },
735 736
   methods: {
736 737
     getValueStr(pkey, skey) {
738
+      
737 739
       if (
738 740
         (this.prescription == null || this.prescription.id == '') &&
739 741
         (this.solution == null || this.solution.id == '')
@@ -776,12 +778,8 @@ export default {
776 778
        }
777 779
        return name
778 780
     }
779
-  },
780
-  watch:{
781
-     prescription:function(){
782
-     console.log("中国出口233232323233223",this.prescription)
783
-   }
784 781
   }
782
+  
785 783
 }
786 784
 </script>
787 785
 

+ 10 - 45
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

@@ -980,12 +980,12 @@
980 980
       schedual: {
981 981
         type: Object
982 982
       },
983
-      is_open: {
984
-        type: Number,
985
-        default: () => {
986
-          return 0
987
-        }
988
-      },
983
+      // is_open: {
984
+      //   type: Number,
985
+      //   default: () => {
986
+      //     return 0
987
+      //   }
988
+      // },
989 989
       waitUploadAdvices: {
990 990
         type: Array,
991 991
         default: () => {
@@ -1384,41 +1384,7 @@
1384 1384
         this.InnerDialogProps.visibility = true
1385 1385
         switch (val) {
1386 1386
           case '5': // 透析器/灌流器
1387
-            // var arr = this.dialysisPrescription.dialyzer_perfusion_apparatus
1388
-            // console.log("arr333333",arr)
1389
-            // var newArr =  arr.split(",")
1390
-            // console.log("透析器/灌流器",newArr)
1391
-            // var Arr = []
1392
-            // for(let i=0;i<newArr.length;i++){
1393
-            //   for(let j=0;j<this.dialyzerPerfusionApparatus.length;j++){
1394
-            //      var newarr = newArr[i].toUpperCase()
1395
-
1396
-            //      var dialy = this.dialyzerPerfusionApparatus[j].name.toUpperCase()
1397
-
1398
-            //      if(newarr == dialy){
1399
-            //         Arr.push(this.dialyzerPerfusionApparatus[j].name)
1400
-            //      }
1401
-            //   }
1402
-            // }
1403
-            // var arrtwo = Arr.join(",")
1404
-            // console.log("Arr",arrtwo)
1405
-            //  var arr = this.dialysisPrescription.dialyzer_perfusion_apparatus
1406
-            //  var newArr =  arr.split(",")
1407
-            // console.log("透析器/灌流器",newArr)
1408
-            // var Arr = []
1409
-            // for(let i=0;i<newArr.length;i++){
1410
-            //   for(let j=0;j<this.dialyzerPerfusionApparatus.length;j++){
1411
-            //      var newarr = newArr[i].toUpperCase()
1412
-            //
1413
-            //      var dialy = this.dialyzerPerfusionApparatus[j].name.toUpperCase()
1414
-            //
1415
-            //      if(newarr == dialy){
1416
-            //         Arr.push(this.dialyzerPerfusionApparatus[j].name)
1417
-            //      }
1418
-            //   }
1419
-            // }
1420
-            // var arrtwo = Arr.join(",")
1421
-            // console.log("Arr",arrtwo)
1387
+
1422 1388
             this.InnerDialogProps.values = this.dialyzerPerfusionApparatus
1423 1389
             this.InnerDialogProps.titles = '透析器/灌流器'
1424 1390
             this.InnerDialogProps.type = 'dialyzer_perfusion_apparatus'
@@ -1958,6 +1924,7 @@
1958 1924
       },
1959 1925
       show(pre, schedual, last, his_is_open) {
1960 1926
         console.log('pre222222', this.predialysis)
1927
+        console.log("his_is_opne",his_is_open)
1961 1928
         if (pre != undefined) {
1962 1929
           if (pre.oxygen_uptake == 1) {
1963 1930
             this.oxygenShow = true
@@ -2070,6 +2037,7 @@
2070 2037
         this.dialysisPrescription.mode_id = this.$route.query.mode_id ? this.$route.query.mode_id : this.mode_id
2071 2038
         if (pre.id > 0) {
2072 2039
           this.dialysisPrescription.mode_id = pre.mode_id
2040
+          
2073 2041
         }
2074 2042
         console.log('this.dialysisPrescription.mode_id', this.dialysisPrescription.mode_id)
2075 2043
         console.log('this.schedual', schedual.mode_id)
@@ -2125,6 +2093,7 @@
2125 2093
             this.dialysisPrescription.tubing_hemodialysis = last.tubing_hemodialysis
2126 2094
             this.dialysisPrescription.package = last.package
2127 2095
             this.dialysisPrescription.a_liquid = last.a_liquid
2096
+            this.dialysisPrescription.target_ultrafiltration = last.target_ultrafiltration
2128 2097
 
2129 2098
             weight_before = 0
2130 2099
 
@@ -2206,10 +2175,6 @@
2206 2175
           this.anticoagulant.weichi_unit = 'ml'
2207 2176
           this.anticoagulant.zongliang_unit = 'ml'
2208 2177
         }
2209
-
2210
-        console.log('首季9999', this.dialysisPrescription.anticoagulant_zongliang)
2211
-        console.log("收集",this.dialysisPrescription.anticoagulant_shouji)
2212
-        console.log("weichi",this.dialysisPrescription.anticoagulant_weichi)
2213 2178
         if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
2214 2179
           this.dialysisPrescription.anticoagulant_zongliang = ""
2215 2180
           this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) +  parseInt(this.dialysisPrescription.anticoagulant_weichi)

+ 8 - 8
src/xt_pages/dialysis/details/index.vue View File

@@ -994,7 +994,7 @@ export default {
994 994
                prescription.plasma_separator  = ""
995 995
             }
996 996
           }
997
-
997
+        
998 998
           var solution = resp.data.solution // 透析方案
999 999
           console.log("透析方案22223333333333",solution)
1000 1000
           var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
@@ -1339,13 +1339,13 @@ export default {
1339 1339
         var resp = rs.data
1340 1340
         if (resp.state == 1) {
1341 1341
           var schedules = resp.data.schedules
1342
-          console.log("恭喜发慈爱2323232323323323223322332",schedules,this.prescription.patient_id)
1343
-          for(let i=0;i<schedules.length;i++){
1344
-            if(this.prescription.patient_id == schedules[i].patient_id){
1345
-               this.prescription = schedules[i].prescription
1346
-            }
1347
-          }
1348
-          console.log("hh2332223323232",this.prescription)
1342
+         
1343
+          // for(let i=0;i<schedules.length;i++){
1344
+          //   if(this.prescription.patient_id == schedules[i].patient_id){
1345
+          //      this.prescription = schedules[i].prescription
1346
+          //   }
1347
+          // }
1348
+          // console.log("hh2332223323232",this.prescription)
1349 1349
           this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
1350 1350
           const patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
1351 1351
           if (this.activeName == 'first') {