Browse Source

hah阿凡达

28169 2 months ago
parent
commit
541e993236

+ 49 - 3
src/xt_pages/dialysis/details/consumable/dialysisGood.vue View File

@@ -964,7 +964,7 @@
964 964
             var sodiumArr = []
965 965
             var calciumArr = []
966 966
             var glucoseArr = []
967
-            console.log("rowlist233223323223w",this.rowList)
967
+          
968 968
             if(list!=null && list.length>0){
969 969
               for(let i=0;i<list.length;i++){
970 970
                  list[i].dialysis_dialyszers_arr = []
@@ -972,6 +972,7 @@
972 972
                  list[i].dialysis_irrigation_arr = []
973 973
                  list[i].puncture_needle_arr = []
974 974
                  list[i].dialysis_strainer_arr = []
975
+
975 976
                  
976 977
                  if(list[i].dialysis_prescription.dialysis_dialyszers!=""){
977 978
                   if(list[i].dialysis_prescription.dialysis_dialyszers!=""){
@@ -1054,6 +1055,7 @@
1054 1055
               }
1055 1056
             }
1056 1057
 
1058
+
1057 1059
             console.log("glucoseArr",glucoseArr)
1058 1060
             if(kaliumArr!=null && kaliumArr.length > 0){
1059 1061
               let dataInfo = {}
@@ -1319,6 +1321,8 @@
1319 1321
               Arr.push(a);
1320 1322
             }
1321 1323
 
1324
+        
1325
+
1322 1326
        
1323 1327
            
1324 1328
 
@@ -1376,7 +1380,12 @@
1376 1380
             //  console.log("list23233223232wode",list)
1377 1381
             this.startHisDialogVisible = true
1378 1382
              var projectList = []
1383
+             console.log("rowlist233223323223w",this.rowList)
1384
+             var dialysis_soluton_calcium = []
1379 1385
              for(let i=0;i<list.length;i++){
1386
+               list[i].calcium_name = ""
1387
+               list[i].calcium_name = "钙" + list[i].dialysis_solution.calcium
1388
+               dialysis_soluton_calcium.push(list[i].calcium_name)
1380 1389
                 if(list[i].his_prescription_template.his_prescription_info!=null && list[i].his_prescription_template.his_prescription_info.length>0){
1381 1390
                     for(let j=0;j<list[i].his_prescription_template.his_prescription_info.length;j++){
1382 1391
                       for(let z=0;z<list[i].his_prescription_template.his_prescription_info[j].project.length;z++){
@@ -1385,7 +1394,44 @@
1385 1394
                      }
1386 1395
                 }
1387 1396
              }
1388
-            console.log("projectList",projectList)
1397
+            console.log("dialysis_soluton_calcium",dialysis_soluton_calcium)
1398
+             this.tableList = []
1399
+            if(dialysis_soluton_calcium!=null && dialysis_soluton_calcium.length>0){
1400
+                
1401
+                let dataInfo = {}
1402
+                dialysis_soluton_calcium.forEach((item, index) => {
1403
+                if (!dataInfo[item]) {
1404
+                  dataInfo[item] = {
1405
+                    good_name:item,
1406
+                    specification_name:item,
1407
+                    child: [],
1408
+                    count:0,
1409
+                  }
1410
+                }
1411
+              })
1412
+              let newArrList = Object.values(dataInfo)
1413
+              console.log("newArr================",newArrList)
1414
+              for(let i=0;i<newArrList.length;i++){
1415
+                for(let j=0;j<dialysis_soluton_calcium.length;j++){
1416
+                   if(newArrList[i].good_name == dialysis_soluton_calcium[j]){
1417
+                    newArrList[i].child.push(dialysis_soluton_calcium[j])
1418
+                   }
1419
+                }
1420
+              }
1421
+              console.log("newArr------------",newArrList)
1422
+
1423
+              for(let i=0;i<newArrList.length;i++){
1424
+                 newArrList[i].count = newArrList[i].child.length
1425
+              }
1426
+              if(this.org_id == 0 || this.org_id == 10610){
1427
+                this.tableList.push(...newArrList)
1428
+              }else{
1429
+                this.tableList = []
1430
+              }
1431
+             
1432
+            }
1433
+           
1434
+            console.log("this.-------------",this.tableList)
1389 1435
 
1390 1436
              if(projectList!=null && projectList.length > 0){
1391 1437
                for(let i=0;i<projectList.length;i++){
@@ -1423,7 +1469,7 @@
1423 1469
               }
1424 1470
             }
1425 1471
             console.log("newArr32323233223wo",newArr)
1426
-            this.tableList = newArr
1472
+            this.tableList.push(...newArr)
1427 1473
           }
1428 1474
         })
1429 1475
       },

+ 41 - 2
src/xt_pages/dialysis/details/consumable/dialysisGoodCountPrint.vue View File

@@ -913,7 +913,12 @@
913 913
              console.log("list23233223232wode",list)
914 914
             this.startHisDialogVisible = true
915 915
              var projectList = []
916
+             var dialysis_soluton_calcium = []
917
+           
916 918
              for(let i=0;i<list.length;i++){
919
+              list[i].calcium_name = ""
920
+              list[i].calcium_name = "钙" + list[i].dialysis_solution.calcium
921
+              dialysis_soluton_calcium.push(list[i].calcium_name)
917 922
                 if(list[i].his_prescription_template.his_prescription_info!=null && list[i].his_prescription_template.his_prescription_info.length>0){
918 923
                     for(let j=0;j<list[i].his_prescription_template.his_prescription_info.length;j++){
919 924
                       for(let z=0;z<list[i].his_prescription_template.his_prescription_info[j].project.length;z++){
@@ -923,7 +928,41 @@
923 928
                 }
924 929
              }
925 930
              console.log("projectList",projectList)
926
-             
931
+             this.tableList = []
932
+             if(dialysis_soluton_calcium!=null && dialysis_soluton_calcium.length>0){
933
+                
934
+                let dataInfo = {}
935
+                dialysis_soluton_calcium.forEach((item, index) => {
936
+                if (!dataInfo[item]) {
937
+                  dataInfo[item] = {
938
+                    good_name:item,
939
+                    specification_name:item,
940
+                    child: [],
941
+                    count:0,
942
+                  }
943
+                }
944
+              })
945
+              let newArrList = Object.values(dataInfo)
946
+              console.log("newArr================",newArrList)
947
+              for(let i=0;i<newArrList.length;i++){
948
+                for(let j=0;j<dialysis_soluton_calcium.length;j++){
949
+                   if(newArrList[i].good_name == dialysis_soluton_calcium[j]){
950
+                    newArrList[i].child.push(dialysis_soluton_calcium[j])
951
+                   }
952
+                }
953
+              }
954
+              console.log("newArr------------",newArrList)
955
+
956
+              for(let i=0;i<newArrList.length;i++){
957
+                 newArrList[i].count = newArrList[i].child.length
958
+              }
959
+              
960
+              if(this.org_id == 0 || this.org_id == 10610){
961
+                this.tableList.push(...newArrList)
962
+              }else{
963
+                this.tableList = []
964
+              }
965
+            }
927 966
              if(projectList!=null && projectList.length > 0){
928 967
                for(let i=0;i<projectList.length;i++){
929 968
                  projectList[i].good_id = 0
@@ -960,7 +999,7 @@
960 999
               }
961 1000
             }
962 1001
             console.log("newArr32323233223wo",newArr)
963
-            this.tableList = newArr
1002
+            this.tableList.push(...newArr)
964 1003
           }
965 1004
         })
966 1005
       },

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

@@ -2821,7 +2821,7 @@ mu
2821 2821
          }
2822 2822
         }
2823 2823
         //古镇乐生
2824
-        if(this.$store.getters.xt_user.template_info.org_id==10727 || this.$store.getters.xt_user.template_info.org_id==10731){
2824
+        if(this.$store.getters.xt_user.template_info.org_id==10727){
2825 2825
           if(this.predialysis!=undefined){
2826 2826
             if(this.dialysisPrescription.target_ultrafiltration==0 || this.dialysisPrescription.target_ultrafiltration==""){
2827 2827
               this.dialysisPrescription.target_ultrafiltration = ((this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(0))*1000
@@ -3339,7 +3339,7 @@ mu
3339 3339
         this.pre = pre
3340 3340
         // console.log("pre1", pre);
3341 3341
         this.getPermission()
3342
-        if(this.$store.getters.xt_user.template_info.org_id==10164 || this.$store.getters.xt_user.template_info.org_id==10721 || this.$store.getters.xt_user.template_info.org_id==10635 || this.$store.getters.xt_user.template_info.org_id==0 || this.$store.getters.xt_user.template_info.org_id == 10726 || this.$store.getters.xt_user.template_info.org_id == 10727  || this.$store.getters.xt_user.template_info.org_id == 10731 || this.$store.getters.xt_user.template_info.org_id == 10735 || this.$store.getters.xt_user.template_info.org_id == 10740 || this.$store.getters.xt_user.template_info.org_id == 10742|| this.$store.getters.xt_user.template_info.org_id == 10745){
3342
+        if(this.$store.getters.xt_user.template_info.org_id==10164 || this.$store.getters.xt_user.template_info.org_id==10721 || this.$store.getters.xt_user.template_info.org_id==10635 || this.$store.getters.xt_user.template_info.org_id==0 || this.$store.getters.xt_user.template_info.org_id == 10726 || this.$store.getters.xt_user.template_info.org_id == 10727  || this.$store.getters.xt_user.template_info.org_id == 10735 || this.$store.getters.xt_user.template_info.org_id == 10740 || this.$store.getters.xt_user.template_info.org_id == 10742|| this.$store.getters.xt_user.template_info.org_id == 10745){
3343 3343
           this.getPatientBefor()
3344 3344
         }
3345 3345
 
@@ -3494,7 +3494,7 @@ mu
3494 3494
 
3495 3495
 
3496 3496
         //古镇乐生
3497
-         if(this.$store.getters.xt_user.template_info.org_id==10727 || this.$store.getters.xt_user.template_info.org_id==10731){
3497
+         if(this.$store.getters.xt_user.template_info.org_id==10727){
3498 3498
           if(this.predialysis!=undefined){
3499 3499
             if(this.dialysisPrescription.target_ultrafiltration==0 || this.dialysisPrescription.target_ultrafiltration==""){
3500 3500
               this.dialysisPrescription.target_ultrafiltration = ((this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(0))*1000
@@ -5190,7 +5190,7 @@ mu
5190 5190
           var prescription = response.data.data.prescription
5191 5191
           if(patientBefor!=undefined){
5192 5192
 
5193
-            if(this.$store.getters.xt_user.template_info.org_id == 10727  || this.$store.getters.xt_user.template_info.org_id == 10731 ||this.$store.getters.xt_user.template_info.org_id == 10740 ||this.$store.getters.xt_user.template_info.org_id == 10742||this.$store.getters.xt_user.template_info.org_id == 10745 ){
5193
+            if(this.$store.getters.xt_user.template_info.org_id == 10727  ||this.$store.getters.xt_user.template_info.org_id == 10740 ||this.$store.getters.xt_user.template_info.org_id == 10742||this.$store.getters.xt_user.template_info.org_id == 10745 ){
5194 5194
               if(this.dialysisPrescription.target_ultrafiltration==0 || this.dialysisPrescription.target_ultrafiltration==""){
5195 5195
               
5196 5196
                  this.dialysisPrescription.target_ultrafiltration = ((patientBefor.weight_before - patientBefor.dry_weight - patientBefor.additional_weight).toFixed(0))*1000

+ 3 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

@@ -5611,7 +5611,7 @@ export default {
5611 5611
                   this.projects[i].project_team = this.projects[i].project.project_name
5612 5612
                   this.projects[i].advice_name = this.projects[i].project.project_name
5613 5613
                   this.projects[i].start_time = this.projects[i].start_time
5614
-                  this.projects[i].single_dose = this.projects[i].single_dose
5614
+                  this.projects[i].single_dose = this.projects[i].count
5615 5615
                   this.projects[i].single_dose_unit = this.projects[i].unit
5616 5616
                   this.projects[i].execution_time = this.projects[i].execution_time
5617 5617
                   this.projects[i].execution_staff= this.projects[i].execution_staff
@@ -5736,9 +5736,9 @@ export default {
5736 5736
         }
5737 5737
 
5738 5738
 
5739
-        if (this.doctor_advices.length + this.projectsOne.length <= 6) {
5739
+        if (this.doctor_advices.length + this.projectsOne.length <= 8) {
5740 5740
             var nl = 6 - (this.doctor_advices.length + this.projectsOne.length);
5741
-            this.print_length = 6;
5741
+            this.print_length = 8;
5742 5742
 
5743 5743
             for (let index = 0; index < nl; index++) {
5744 5744
               if (

+ 3 - 1
src/xt_pages/stock/detail/print.vue View File

@@ -182,6 +182,7 @@
182 182
           type: this.$route.query.type,
183 183
           limit:this.$route.query.limit,
184 184
           page:this.$route.query.page,
185
+          good_id:this.good_id,
185 186
         },
186 187
         totalPrice: 0,
187 188
         stockDatas: [],
@@ -195,7 +196,8 @@
195 196
         informationList:[],
196 197
         wareOutList:[],
197 198
         manufacturerList:[],
198
-        dealerList:[]
199
+        dealerList:[],
200
+        good_id:0,
199 201
       }
200 202
     },
201 203
     methods: {

+ 1 - 0
src/xt_pages/stock/detail/stockInDetail.vue View File

@@ -769,6 +769,7 @@ export default {
769 769
           limit:this.limit,
770 770
           page:this.page,
771 771
           keywords:this.$router.keywords,
772
+          good_id:this.good_id,
772 773
         }
773 774
       });
774 775
       }