|
@@ -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
|
},
|