|
@@ -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){
|