Browse Source

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 1 month ago
parent
commit
b08a7d59ef

+ 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

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

@@ -4262,7 +4262,7 @@ export default {
4262 4262
         }
4263 4263
 
4264 4264
 
4265
-        console.log("RESWOOWOWWOOW", response.data.data.doctorAdevieInfo)
4265
+        console.log("RESWOOWOWWOOW",response.data.data.doctorAdevieInfo)
4266 4266
 
4267 4267
         //华池
4268 4268
         if (this.org_id == 10440) {
@@ -4308,7 +4308,7 @@ export default {
4308 4308
           this.projects = projects;
4309 4309
 
4310 4310
 
4311
-          // console.log("this.projects=========================================", this.projects);
4311
+        // console.log("this.projects=========================================", this.projects);
4312 4312
 
4313 4313
 
4314 4314
 
@@ -4467,8 +4467,8 @@ export default {
4467 4467
 
4468 4468
 
4469 4469
         if (this.doctor_advices.length + this.projectsOne.length <= 6) {
4470
-          var nl = 6 - (this.doctor_advices.length + this.projectsOne.length);
4471
-          this.print_length = 6;
4470
+            var nl = 6 - (this.doctor_advices.length + this.projectsOne.length);
4471
+            this.print_length = 6;
4472 4472
 
4473 4473
           for (let index = 0; index < nl; index++) {
4474 4474
             if (
@@ -4772,7 +4772,6 @@ export default {
4772 4772
 .inline_block {
4773 4773
   display: inline-block;
4774 4774
 }
4775
-
4776 4775
 .under_line_two {
4777 4776
   display: inline-block;
4778 4777
   border-bottom: 1px solid #999;
@@ -4841,8 +4840,7 @@ export default {
4841 4840
 
4842 4841
 .print_page_main_content .proj_table .inside_table {
4843 4842
   width: 100%;
4844
-  border: hidden;
4845
-  /* 解决边框冲突 */
4843
+  border: hidden; /* 解决边框冲突 */
4846 4844
   border-collapse: collapse;
4847 4845
 }
4848 4846
 
@@ -4879,35 +4877,28 @@ export default {
4879 4877
 .margin-bottom-300 {
4880 4878
   margin-bottom: 450px;
4881 4879
 }
4882
-
4883 4880
 .margin-bottom-600 {
4884 4881
   margin-bottom: 600px;
4885 4882
 }
4886
-
4887 4883
 .margin-bottom-900 {
4888 4884
   margin-bottom: 900px;
4889 4885
 }
4890
-
4891 4886
 .print-yema {
4892 4887
   position: absolute;
4893 4888
   left: 50%;
4894 4889
 }
4895
-
4896 4890
 .print-yema2 {
4897 4891
   position: absolute;
4898 4892
   left: 50%;
4899 4893
 }
4900
-
4901 4894
 .print-yema3 {
4902 4895
   position: absolute;
4903 4896
   left: 50%;
4904 4897
 }
4905
-
4906 4898
 .print-yema4 {
4907 4899
   position: absolute;
4908 4900
   left: 50%;
4909 4901
 }
4910
-
4911 4902
 .check_box_panel .did_checke::after {
4912 4903
   font-size: 8px;
4913 4904
   margin-left: 2px;

+ 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
       }