28169 преди 4 месеца
родител
ревизия
541e993236

+ 49 - 3
src/xt_pages/dialysis/details/consumable/dialysisGood.vue Целия файл

964
             var sodiumArr = []
964
             var sodiumArr = []
965
             var calciumArr = []
965
             var calciumArr = []
966
             var glucoseArr = []
966
             var glucoseArr = []
967
-            console.log("rowlist233223323223w",this.rowList)
967
+          
968
             if(list!=null && list.length>0){
968
             if(list!=null && list.length>0){
969
               for(let i=0;i<list.length;i++){
969
               for(let i=0;i<list.length;i++){
970
                  list[i].dialysis_dialyszers_arr = []
970
                  list[i].dialysis_dialyszers_arr = []
972
                  list[i].dialysis_irrigation_arr = []
972
                  list[i].dialysis_irrigation_arr = []
973
                  list[i].puncture_needle_arr = []
973
                  list[i].puncture_needle_arr = []
974
                  list[i].dialysis_strainer_arr = []
974
                  list[i].dialysis_strainer_arr = []
975
+
975
                  
976
                  
976
                  if(list[i].dialysis_prescription.dialysis_dialyszers!=""){
977
                  if(list[i].dialysis_prescription.dialysis_dialyszers!=""){
977
                   if(list[i].dialysis_prescription.dialysis_dialyszers!=""){
978
                   if(list[i].dialysis_prescription.dialysis_dialyszers!=""){
1054
               }
1055
               }
1055
             }
1056
             }
1056
 
1057
 
1058
+
1057
             console.log("glucoseArr",glucoseArr)
1059
             console.log("glucoseArr",glucoseArr)
1058
             if(kaliumArr!=null && kaliumArr.length > 0){
1060
             if(kaliumArr!=null && kaliumArr.length > 0){
1059
               let dataInfo = {}
1061
               let dataInfo = {}
1319
               Arr.push(a);
1321
               Arr.push(a);
1320
             }
1322
             }
1321
 
1323
 
1324
+        
1325
+
1322
        
1326
        
1323
            
1327
            
1324
 
1328
 
1376
             //  console.log("list23233223232wode",list)
1380
             //  console.log("list23233223232wode",list)
1377
             this.startHisDialogVisible = true
1381
             this.startHisDialogVisible = true
1378
              var projectList = []
1382
              var projectList = []
1383
+             console.log("rowlist233223323223w",this.rowList)
1384
+             var dialysis_soluton_calcium = []
1379
              for(let i=0;i<list.length;i++){
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
                 if(list[i].his_prescription_template.his_prescription_info!=null && list[i].his_prescription_template.his_prescription_info.length>0){
1389
                 if(list[i].his_prescription_template.his_prescription_info!=null && list[i].his_prescription_template.his_prescription_info.length>0){
1381
                     for(let j=0;j<list[i].his_prescription_template.his_prescription_info.length;j++){
1390
                     for(let j=0;j<list[i].his_prescription_template.his_prescription_info.length;j++){
1382
                       for(let z=0;z<list[i].his_prescription_template.his_prescription_info[j].project.length;z++){
1391
                       for(let z=0;z<list[i].his_prescription_template.his_prescription_info[j].project.length;z++){
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
              if(projectList!=null && projectList.length > 0){
1436
              if(projectList!=null && projectList.length > 0){
1391
                for(let i=0;i<projectList.length;i++){
1437
                for(let i=0;i<projectList.length;i++){
1423
               }
1469
               }
1424
             }
1470
             }
1425
             console.log("newArr32323233223wo",newArr)
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 Целия файл

913
              console.log("list23233223232wode",list)
913
              console.log("list23233223232wode",list)
914
             this.startHisDialogVisible = true
914
             this.startHisDialogVisible = true
915
              var projectList = []
915
              var projectList = []
916
+             var dialysis_soluton_calcium = []
917
+           
916
              for(let i=0;i<list.length;i++){
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
                 if(list[i].his_prescription_template.his_prescription_info!=null && list[i].his_prescription_template.his_prescription_info.length>0){
922
                 if(list[i].his_prescription_template.his_prescription_info!=null && list[i].his_prescription_template.his_prescription_info.length>0){
918
                     for(let j=0;j<list[i].his_prescription_template.his_prescription_info.length;j++){
923
                     for(let j=0;j<list[i].his_prescription_template.his_prescription_info.length;j++){
919
                       for(let z=0;z<list[i].his_prescription_template.his_prescription_info[j].project.length;z++){
924
                       for(let z=0;z<list[i].his_prescription_template.his_prescription_info[j].project.length;z++){
923
                 }
928
                 }
924
              }
929
              }
925
              console.log("projectList",projectList)
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
              if(projectList!=null && projectList.length > 0){
966
              if(projectList!=null && projectList.length > 0){
928
                for(let i=0;i<projectList.length;i++){
967
                for(let i=0;i<projectList.length;i++){
929
                  projectList[i].good_id = 0
968
                  projectList[i].good_id = 0
960
               }
999
               }
961
             }
1000
             }
962
             console.log("newArr32323233223wo",newArr)
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 Целия файл

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
           if(this.predialysis!=undefined){
2825
           if(this.predialysis!=undefined){
2826
             if(this.dialysisPrescription.target_ultrafiltration==0 || this.dialysisPrescription.target_ultrafiltration==""){
2826
             if(this.dialysisPrescription.target_ultrafiltration==0 || this.dialysisPrescription.target_ultrafiltration==""){
2827
               this.dialysisPrescription.target_ultrafiltration = ((this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(0))*1000
2827
               this.dialysisPrescription.target_ultrafiltration = ((this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(0))*1000
3339
         this.pre = pre
3339
         this.pre = pre
3340
         // console.log("pre1", pre);
3340
         // console.log("pre1", pre);
3341
         this.getPermission()
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
           this.getPatientBefor()
3343
           this.getPatientBefor()
3344
         }
3344
         }
3345
 
3345
 
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
           if(this.predialysis!=undefined){
3498
           if(this.predialysis!=undefined){
3499
             if(this.dialysisPrescription.target_ultrafiltration==0 || this.dialysisPrescription.target_ultrafiltration==""){
3499
             if(this.dialysisPrescription.target_ultrafiltration==0 || this.dialysisPrescription.target_ultrafiltration==""){
3500
               this.dialysisPrescription.target_ultrafiltration = ((this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(0))*1000
3500
               this.dialysisPrescription.target_ultrafiltration = ((this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(0))*1000
5190
           var prescription = response.data.data.prescription
5190
           var prescription = response.data.data.prescription
5191
           if(patientBefor!=undefined){
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
               if(this.dialysisPrescription.target_ultrafiltration==0 || this.dialysisPrescription.target_ultrafiltration==""){
5194
               if(this.dialysisPrescription.target_ultrafiltration==0 || this.dialysisPrescription.target_ultrafiltration==""){
5195
               
5195
               
5196
                  this.dialysisPrescription.target_ultrafiltration = ((patientBefor.weight_before - patientBefor.dry_weight - patientBefor.additional_weight).toFixed(0))*1000
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 Целия файл

5611
                   this.projects[i].project_team = this.projects[i].project.project_name
5611
                   this.projects[i].project_team = this.projects[i].project.project_name
5612
                   this.projects[i].advice_name = this.projects[i].project.project_name
5612
                   this.projects[i].advice_name = this.projects[i].project.project_name
5613
                   this.projects[i].start_time = this.projects[i].start_time
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
                   this.projects[i].single_dose_unit = this.projects[i].unit
5615
                   this.projects[i].single_dose_unit = this.projects[i].unit
5616
                   this.projects[i].execution_time = this.projects[i].execution_time
5616
                   this.projects[i].execution_time = this.projects[i].execution_time
5617
                   this.projects[i].execution_staff= this.projects[i].execution_staff
5617
                   this.projects[i].execution_staff= this.projects[i].execution_staff
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
             var nl = 6 - (this.doctor_advices.length + this.projectsOne.length);
5740
             var nl = 6 - (this.doctor_advices.length + this.projectsOne.length);
5741
-            this.print_length = 6;
5741
+            this.print_length = 8;
5742
 
5742
 
5743
             for (let index = 0; index < nl; index++) {
5743
             for (let index = 0; index < nl; index++) {
5744
               if (
5744
               if (

+ 3 - 1
src/xt_pages/stock/detail/print.vue Целия файл

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

+ 1 - 0
src/xt_pages/stock/detail/stockInDetail.vue Целия файл

769
           limit:this.limit,
769
           limit:this.limit,
770
           page:this.page,
770
           page:this.page,
771
           keywords:this.$router.keywords,
771
           keywords:this.$router.keywords,
772
+          good_id:this.good_id,
772
         }
773
         }
773
       });
774
       });
774
       }
775
       }