28169 1 gadu atpakaļ
vecāks
revīzija
5bcdfc014f

+ 32 - 4
src/xt_pages/dialysis/details/consumable/dialysisParameter.vue Parādīt failu

@@ -786,6 +786,7 @@
786 786
                  list[i].dialysis_dialyszers_arr = []
787 787
                  list[i].dialyzer_perfusion_apparatus_arr = []
788 788
                  list[i].dialysis_irrigation_arr = []
789
+                 list[i].dialysis_strainer_arr =[]
789 790
                  if(list[i].dialysis_solution.dialysis_dialyszers!=""){
790 791
                    list[i].dialysis_dialyszers_arr = list[i].dialysis_solution.dialysis_dialyszers.split(",")
791 792
                  }
@@ -795,6 +796,9 @@
795 796
                  if(list[i].dialysis_solution.dialysis_irrigation!=""){
796 797
                    list[i].dialysis_irrigation_arr = list[i].dialysis_solution.dialysis_irrigation.split(",")
797 798
                  }
799
+                 if(list[i].dialysis_solution.dialysis_strainer!=""){
800
+                    list[i].dialysis_strainer_arr = list[i].dialysis_solution.dialysis_strainer.split(",")
801
+                 }
798 802
 
799 803
                 
800 804
                  if(list[i].dialysis_solution.anticoagulant == 1){
@@ -873,6 +877,8 @@
873 877
             var dialysisDialyszersArr = []
874 878
             var dialyzerPerfusionApparaArr = []
875 879
             var dialysisIrrigationArr = []
880
+
881
+            var dialysisStrainerArr = []
876 882
             for(let i=0;i<list.length;i++){
877 883
              for(let j=0;j<list[i].dialysis_dialyszers_arr.length;j++){
878 884
                dialysisDialyszersArr.push(list[i].dialysis_dialyszers_arr[j])  
@@ -883,10 +889,14 @@
883 889
              for(let y=0;y<list[i].dialysis_irrigation_arr.length;y++){
884 890
               dialysisIrrigationArr.push(list[i].dialysis_irrigation_arr[y])
885 891
              }
892
+             for(let p=0;p<list[i].dialysis_strainer_arr.length;p++){
893
+              dialysisStrainerArr.push(list[i].dialysis_strainer_arr[p])
894
+             }
886 895
             }
887 896
            let obj = {}
888 897
            let objOne = {}
889 898
            let objTwo = {}
899
+           let objThree = {}
890 900
            for(let i = 0 ; i < dialysisDialyszersArr.length; i++){
891 901
             if(obj[dialysisDialyszersArr[i]]){
892 902
                obj[dialysisDialyszersArr[i]] +=1
@@ -929,15 +939,33 @@
929 939
              }   
930 940
            }
931 941
 
932
-           for (let i in objTwo) {
942
+           for (let i in objThree) {
933 943
               let a = {};
934
-              a[i] = objTwo[i];
935
-              a.name = "灌流器"
936
-              a.count = objTwo[i]
944
+              a[i] = objThree[i];
945
+              a.name = "滤过器"
946
+              a.count = objThree[i]
937 947
               a.specification_name = i
938 948
               Arr.push(a);
939 949
             }
940 950
 
951
+            for(let i=0;i<dialysisStrainerArr.length;i++){
952
+            if(objThree[dialysisStrainerArr[i]]){
953
+              objThree[dialysisStrainerArr[i]] +=1
954
+             }else{
955
+              objThree[dialysisStrainerArr[i]] = 1
956
+             }   
957
+           }
958
+
959
+           for (let i in objThree) {
960
+              let a = {};
961
+              a[i] = objThree[i];
962
+              a.name = "滤过器"
963
+              a.count = objThree[i]
964
+              a.specification_name = i
965
+              Arr.push(a);
966
+            }
967
+
968
+
941 969
             if(Arr.length >0){
942 970
               for(let i=0;i<Arr.length;i++){
943 971
                  this.tableList.push(Arr[i])

+ 36 - 0
src/xt_pages/dialysis/details/consumable/dialysisParameterCountPrint.vue Parādīt failu

@@ -141,6 +141,7 @@
141 141
                  list[i].dialysis_dialyszers_arr = []
142 142
                  list[i].dialyzer_perfusion_apparatus_arr = []
143 143
                  list[i].dialysis_irrigation_arr = []
144
+                 list[i].dialysis_strainer_arr =[]
144 145
                  if(list[i].dialysis_solution.dialysis_dialyszers!=""){
145 146
                    list[i].dialysis_dialyszers_arr = list[i].dialysis_solution.dialysis_dialyszers.split(",")
146 147
                  }
@@ -150,6 +151,9 @@
150 151
                  if(list[i].dialysis_solution.dialysis_irrigation!=""){
151 152
                    list[i].dialysis_irrigation_arr = list[i].dialysis_solution.dialysis_irrigation.split(",")
152 153
                  }
154
+                 if(list[i].dialysis_solution.dialysis_strainer!=""){
155
+                    list[i].dialysis_strainer_arr = list[i].dialysis_solution.dialysis_strainer.split(",")
156
+                 }
153 157
 
154 158
                  if(list[i].dialysis_solution.anticoagulant == 1){
155 159
                     anticoagulantList.push(list[i].dialysis_solution)
@@ -227,6 +231,7 @@
227 231
             var dialysisDialyszersArr = []
228 232
             var dialyzerPerfusionApparaArr = []
229 233
             var dialysisIrrigationArr = []
234
+            var dialysisStrainerArr = []
230 235
             for(let i=0;i<list.length;i++){
231 236
              for(let j=0;j<list[i].dialysis_dialyszers_arr.length;j++){
232 237
               
@@ -238,6 +243,9 @@
238 243
              for(let y=0;y<list[i].dialysis_irrigation_arr.length;y++){
239 244
               dialysisIrrigationArr.push(list[i].dialysis_irrigation_arr[y])
240 245
              }
246
+             for(let p=0;p<list[i].dialysis_strainer_arr.length;p++){
247
+              dialysisStrainerArr.push(list[i].dialysis_strainer_arr[p])
248
+             }
241 249
             }
242 250
             console.log("透析器",dialysisDialyszersArr)
243 251
             console.log("透析器/灌流器",dialyzerPerfusionApparaArr)
@@ -246,6 +254,7 @@
246 254
            let obj = {}
247 255
            let objOne = {}
248 256
            let objTwo = {}
257
+           let objThree = {}
249 258
            for(let i = 0 ; i < dialysisDialyszersArr.length; i++){
250 259
             if(obj[dialysisDialyszersArr[i]]){
251 260
                obj[dialysisDialyszersArr[i]] +=1
@@ -297,6 +306,33 @@
297 306
               Arr.push(a);
298 307
             }
299 308
             console.log("newa",Arr)
309
+
310
+
311
+            for (let i in objThree) {
312
+              let a = {};
313
+              a[i] = objThree[i];
314
+              a.name = "滤过器"
315
+              a.count = objThree[i]
316
+              a.specification_name = i
317
+              Arr.push(a);
318
+            }
319
+
320
+            for(let i=0;i<dialysisStrainerArr.length;i++){
321
+            if(objThree[dialysisStrainerArr[i]]){
322
+              objThree[dialysisStrainerArr[i]] +=1
323
+             }else{
324
+              objThree[dialysisStrainerArr[i]] = 1
325
+             }   
326
+           }
327
+
328
+           for (let i in objThree) {
329
+              let a = {};
330
+              a[i] = objThree[i];
331
+              a.name = "滤过器"
332
+              a.count = objThree[i]
333
+              a.specification_name = i
334
+              Arr.push(a);
335
+            }
300 336
            
301 337
          
302 338
             if(Arr.length >0){