|
@@ -80,19 +80,19 @@
|
80
|
80
|
<div class="inline_block" v-if="org_id!=10510">
|
81
|
81
|
病区:
|
82
|
82
|
<div class="under_line" style="width: 70px; text-align: left">
|
83
|
|
- {{ record.device_zone.name}}
|
|
83
|
+ {{record.device_zone&&record.device_zone.name}}
|
84
|
84
|
</div>
|
85
|
85
|
</div>
|
86
|
86
|
<div class="inline_block" v-if="org_id!=10510 && org_id!=10460" style="margin-left: 10px;">
|
87
|
87
|
床号:
|
88
|
88
|
<div class="under_line" style="width: 50px; text-align: center">
|
89
|
|
- {{ record.device_number.number }}
|
|
89
|
+ {{ record.device_number&&record.device_number.number }}
|
90
|
90
|
</div>
|
91
|
91
|
</div>
|
92
|
92
|
<div class="inline_block">
|
93
|
93
|
透析号:
|
94
|
94
|
<div class="under_line" style="width: 70px; text-align: center">
|
95
|
|
- {{ record.patient.dialysis_no }}
|
|
95
|
+ {{record.patient&& record.patient.dialysis_no }}
|
96
|
96
|
</div>
|
97
|
97
|
</div>
|
98
|
98
|
</div>
|
|
@@ -111,7 +111,7 @@
|
111
|
111
|
white-space: unset;
|
112
|
112
|
"
|
113
|
113
|
>
|
114
|
|
- {{ record.patient.diagnose }}
|
|
114
|
+ {{record.patient&& record.patient.diagnose }}
|
115
|
115
|
</div>
|
116
|
116
|
</div>
|
117
|
117
|
<div class="inline_block" style="flex: 1.5">
|
|
@@ -407,6 +407,12 @@
|
407
|
407
|
<span>
|
408
|
408
|
{{
|
409
|
409
|
|
|
410
|
+ record.assessment_before_dislysis &&
|
|
411
|
+ record.assessment_before_dislysis.puncture_needle_direction
|
|
412
|
+ ? record.assessment_before_dislysis
|
|
413
|
+ .puncture_needle_direction
|
|
414
|
+ : "/"
|
|
415
|
+
|
410
|
416
|
}}
|
411
|
417
|
</span>
|
412
|
418
|
|
|
@@ -775,18 +781,16 @@
|
775
|
781
|
class="under_line"
|
776
|
782
|
style="width: 100px; text-align: center"
|
777
|
783
|
>
|
778
|
|
- {{
|
779
|
|
- record.prescription &&
|
780
|
|
- record.prescription.dialyzer_perfusion_apparatus
|
781
|
|
- ? record.prescription.dialyzer_perfusion_apparatus
|
782
|
|
- : ""
|
783
|
|
- }}
|
|
784
|
+
|
784
|
785
|
{{
|
785
|
786
|
record.prescription &&
|
786
|
787
|
record.prescription.dialysis_dialyszers
|
787
|
788
|
? record.prescription.dialysis_dialyszers
|
788
|
|
- : "/"
|
|
789
|
+ : ""
|
789
|
790
|
}}
|
|
791
|
+
|
|
792
|
+
|
|
793
|
+
|
790
|
794
|
</div>
|
791
|
795
|
</div>
|
792
|
796
|
<div class="inline_block" style="flex:1">
|
|
@@ -804,23 +808,20 @@
|
804
|
808
|
</div>
|
805
|
809
|
</div>
|
806
|
810
|
|
807
|
|
- <div class="inline_block" style="flex: 1">
|
808
|
|
- 透析机号:
|
|
811
|
+ <div class="inline_block" style="flex:1">
|
|
812
|
+ 滤过器:
|
809
|
813
|
<div
|
810
|
814
|
class="under_line"
|
811
|
|
- style="width: 50px; text-align: center"
|
|
815
|
+ style="width: 70px; text-align: center"
|
812
|
816
|
>
|
813
|
|
- {{
|
814
|
|
- record.dialysis_order &&
|
815
|
|
- record.dialysis_order.device_number &&
|
816
|
|
- record.dialysis_order.device_number.number.length >
|
817
|
|
- 0
|
818
|
|
- ? record.dialysis_order.device_number.number
|
819
|
|
- : record.device_number.number
|
820
|
|
- }}
|
|
817
|
+ {{
|
|
818
|
+ record.prescription.dialysis_strainer?record.prescription.dialysis_strainer:"/"
|
|
819
|
+ }}
|
821
|
820
|
</div>
|
822
|
821
|
</div>
|
823
|
822
|
|
|
823
|
+
|
|
824
|
+
|
824
|
825
|
<!-- <div class="inline_block" style="flex: 1">
|
825
|
826
|
透析机型:
|
826
|
827
|
<div
|
|
@@ -936,8 +937,25 @@
|
936
|
937
|
</div>
|
937
|
938
|
kg
|
938
|
939
|
</div>
|
939
|
|
- <div class="inline_block" style="flex: 1" >
|
940
|
|
- 目标超滤量:
|
|
940
|
+ <div class="inline_block" style="flex: 1" v-if="org_id ==10597">
|
|
941
|
+ 处方超滤量:
|
|
942
|
+ <div
|
|
943
|
+ class="under_line"
|
|
944
|
+ style="width: 60px; text-align: center"
|
|
945
|
+ >
|
|
946
|
+ {{
|
|
947
|
+ record.prescription &&
|
|
948
|
+ record.prescription.prescription_water
|
|
949
|
+ ? record.prescription.prescription_water
|
|
950
|
+ : "/"
|
|
951
|
+ }}
|
|
952
|
+ </div>
|
|
953
|
+ <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471 || org_id==10460">ml</span>
|
|
954
|
+ <span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471 && org_id!=10460">L</span>
|
|
955
|
+ </div>
|
|
956
|
+
|
|
957
|
+ <div class="inline_block" style="flex: 1" v-if="org_id ==10599">
|
|
958
|
+ 目标超滤量:
|
941
|
959
|
<div
|
942
|
960
|
class="under_line"
|
943
|
961
|
style="width: 60px; text-align: center"
|
|
@@ -1189,7 +1207,24 @@
|
1189
|
1207
|
<span v-if="record.prescription.anticoagulant == 1"
|
1190
|
1208
|
>mg</span
|
1191
|
1209
|
>
|
1192
|
|
- </div>
|
|
1210
|
+ </div>
|
|
1211
|
+
|
|
1212
|
+ <div class="inline_block" style="flex: 1">
|
|
1213
|
+ 透析机号:
|
|
1214
|
+ <div
|
|
1215
|
+ class="under_line"
|
|
1216
|
+ style="width: 50px; text-align: center"
|
|
1217
|
+ >
|
|
1218
|
+ {{
|
|
1219
|
+ record.dialysis_order &&
|
|
1220
|
+ record.dialysis_order.device_number &&
|
|
1221
|
+ record.dialysis_order.device_number.number.length >
|
|
1222
|
+ 0
|
|
1223
|
+ ? record.dialysis_order.device_number.number
|
|
1224
|
+ : record.device_number.number
|
|
1225
|
+ }}
|
|
1226
|
+ </div>
|
|
1227
|
+ </div>
|
1193
|
1228
|
</div>
|
1194
|
1229
|
</td>
|
1195
|
1230
|
</tr>
|
|
@@ -1352,14 +1387,6 @@
|
1352
|
1387
|
"
|
1353
|
1388
|
>【开始透析】</template
|
1354
|
1389
|
>
|
1355
|
|
- <!-- <template
|
1356
|
|
- v-if="
|
1357
|
|
- record.dialysis_order &&
|
1358
|
|
- monitor_record.operate_time ==
|
1359
|
|
- record.dialysis_order.end_time
|
1360
|
|
- "
|
1361
|
|
- >【结束透析】</template
|
1362
|
|
- > -->
|
1363
|
1390
|
{{ monitor_record.end }}
|
1364
|
1391
|
{{ monitor_record.symptom }} {{
|
1365
|
1392
|
monitor_record.dispose
|
|
@@ -1412,7 +1439,8 @@
|
1412
|
1439
|
</table>
|
1413
|
1440
|
</td>
|
1414
|
1441
|
</tr>
|
1415
|
|
- <tr >
|
|
1442
|
+
|
|
1443
|
+ <tr>
|
1416
|
1444
|
<td style="padding: 0; position: relative" colspan="2">
|
1417
|
1445
|
<table class="inside_table">
|
1418
|
1446
|
<tbody>
|
|
@@ -1431,97 +1459,89 @@
|
1431
|
1459
|
医嘱内容
|
1432
|
1460
|
</td>
|
1433
|
1461
|
</tr>
|
1434
|
|
-
|
|
1462
|
+
|
1435
|
1463
|
<tr style="line-height: 35px; padding: 8px 5px">
|
1436
|
1464
|
<td style="font-size: 16px" width="10%">时间</td>
|
1437
|
1465
|
<td style="font-size: 16px" colspan="2" width="45%">
|
1438
|
1466
|
医嘱内容
|
1439
|
1467
|
</td>
|
1440
|
1468
|
<td style="font-size: 16px" width="10%">医生签名</td>
|
1441
|
|
- <!-- <td style="font-size: 16px" width="10%">核对人签名</td> -->
|
1442
|
|
- <td style="font-size: 16px" width="10%">时间</td>
|
|
1469
|
+
|
1443
|
1470
|
<td style="font-size: 16px" width="10%">
|
1444
|
1471
|
执行人签名
|
1445
|
1472
|
</td>
|
1446
|
|
-
|
1447
|
|
- <td style="font-size: 16px" width="10%" v-if="org_id == 10375 || org_id == 0 || org_id ==10206">核对护士</td>
|
|
1473
|
+ <td style="font-size: 16px" width="10%">时间</td>
|
|
1474
|
+ <td style="font-size: 16px" width="10%">核对护士</td>
|
1448
|
1475
|
</tr>
|
1449
|
|
- <!-- <template v-for="group in doctor_advices" > -->
|
|
1476
|
+
|
|
1477
|
+
|
1450
|
1478
|
<template v-if="record.advices">
|
1451
|
1479
|
<tr
|
1452
|
1480
|
v-for="(advice, advice_index) in record.advices"
|
1453
|
1481
|
:key="advice_index"
|
1454
|
1482
|
>
|
1455
|
1483
|
<td height="35px">
|
1456
|
|
- <span v-if="advice[0].start_time">
|
1457
|
|
- {{ getTime(advice[0].start_time, "{h}:{i}") }}
|
|
1484
|
+ <span v-if="advice.start_time">
|
|
1485
|
+ {{ getTime(advice.start_time, "{h}:{i}") }}
|
1458
|
1486
|
</span>
|
1459
|
1487
|
</td>
|
|
1488
|
+
|
1460
|
1489
|
<td
|
1461
|
1490
|
height="35px"
|
1462
|
1491
|
colspan="2"
|
1463
|
1492
|
class="advice-name"
|
1464
|
1493
|
style="padding-left: 7px"
|
1465
|
1494
|
>
|
1466
|
|
- <span v-if="advice[0].parent_id > 0">---></span>
|
1467
|
|
- <span>{{ advice[0].advice_name }}</span>
|
|
1495
|
+ <span v-if="advice.parent_id > 0">---></span>
|
|
1496
|
+ <span>{{ advice.advice_name }}</span>
|
|
1497
|
+
|
1468
|
1498
|
<span
|
1469
|
1499
|
v-if="
|
1470
|
|
- advice[0] &&
|
1471
|
|
- advice[0].advice_desc != undefined
|
|
1500
|
+ advice &&
|
|
1501
|
+ advice.advice_desc != undefined
|
1472
|
1502
|
"
|
1473
|
1503
|
>
|
|
1504
|
+
|
1474
|
1505
|
</span>
|
1475
|
1506
|
|
1476
|
|
- <span v-if="advice[0].prescribing_number"
|
1477
|
|
- > {{ advice[0].prescribing_number
|
1478
|
|
- }}{{ advice[0].prescribing_number_unit }}</span
|
|
1507
|
+ <span v-if="advice.prescribing_number"
|
|
1508
|
+ > {{ advice.prescribing_number
|
|
1509
|
+ }}{{ advice.prescribing_number_unit }}</span
|
1479
|
1510
|
>
|
1480
|
|
- <span v-if="advice[0].single_dose != 0">
|
1481
|
|
- {{ advice[0].single_dose
|
1482
|
|
- }}{{ advice[0].single_dose_unit }}</span
|
|
1511
|
+ <span v-if="advice.single_dose != 0">
|
|
1512
|
+ {{ advice.single_dose
|
|
1513
|
+ }}{{ advice.single_dose_unit }}</span
|
1483
|
1514
|
>
|
1484
|
1515
|
|
1485
|
|
- <span v-if="advice[0].parent_id == 0">{{
|
1486
|
|
- advice[0].delivery_way
|
|
1516
|
+ <span v-if="advice.parent_id == 0">{{
|
|
1517
|
+ advice.delivery_way
|
1487
|
1518
|
}}</span>
|
1488
|
|
- <span v-if="advice[0].parent_id == 0">{{
|
1489
|
|
- advice[0].execution_frequency
|
|
1519
|
+ <span v-if="advice.parent_id == 0">{{
|
|
1520
|
+ advice.execution_frequency
|
1490
|
1521
|
}}</span>
|
1491
|
1522
|
<span
|
1492
|
1523
|
v-if="
|
1493
|
|
- advice[0].parent_id == 0 &&
|
1494
|
|
- advice[0].remark.length > 0
|
|
1524
|
+ advice.parent_id == 0 &&
|
|
1525
|
+ advice.remark.length > 0
|
1495
|
1526
|
"
|
1496
|
|
- >({{ advice[0].remark }})</span
|
1497
|
|
- ><br/>
|
1498
|
|
- <template v-if="advice[0].children.length>0">
|
1499
|
|
- <span v-if="advice[0].children.length>0">{{ advice[0].children[0].advice_name }}</span>
|
1500
|
|
- <span v-if="advice[0].children[0].prescribing_number"
|
1501
|
|
- > {{ advice[0].children[0].prescribing_number
|
1502
|
|
- }}{{ advice[0].children[0].prescribing_number_unit }}</span
|
1503
|
|
- >
|
1504
|
|
- <span v-if="advice[0].children[0].single_dose != 0">
|
1505
|
|
- {{ advice[0].children[0].single_dose
|
1506
|
|
- }}{{ advice[0].children[0].single_dose_unit }}</span
|
|
1527
|
+ >({{ advice.remark }})</span
|
1507
|
1528
|
>
|
1508
|
|
- </template>
|
1509
|
1529
|
</td>
|
1510
|
1530
|
|
1511
|
1531
|
<td height="35px">
|
1512
|
1532
|
<span
|
1513
|
1533
|
v-if="
|
1514
|
|
- setAdminUserES(advice[0], 'advice_doctor') ==
|
|
1534
|
+ setAdminUserES(advice, 'advice_doctor') ==
|
1515
|
1535
|
''
|
1516
|
1536
|
"
|
1517
|
1537
|
>{{
|
1518
|
|
- getAdminUser(advice[0], "advice_doctor")
|
|
1538
|
+ getAdminUser(advice, "advice_doctor")
|
1519
|
1539
|
}}</span
|
1520
|
1540
|
>
|
1521
|
1541
|
<img
|
1522
|
1542
|
class="es-img"
|
1523
|
1543
|
:src="
|
1524
|
|
- setAdminUserES(advice[0], 'advice_doctor')
|
|
1544
|
+ setAdminUserES(advice, 'advice_doctor')
|
1525
|
1545
|
"
|
1526
|
1546
|
alt=""
|
1527
|
1547
|
srcset=""
|
|
@@ -1530,28 +1550,21 @@
|
1530
|
1550
|
/>
|
1531
|
1551
|
</td>
|
1532
|
1552
|
|
1533
|
|
- <td height="35px">
|
1534
|
|
- <span v-if="advice[0].execution_time">{{
|
1535
|
|
- getTime(advice[0].execution_time, " {h}:{i}")
|
1536
|
|
- }}</span>
|
1537
|
|
- </td>
|
1538
|
|
-
|
1539
|
1553
|
<td height="35px">
|
1540
|
1554
|
<span
|
1541
|
1555
|
v-if="
|
1542
|
1556
|
setAdminUserES(
|
1543
|
|
- advice[0],
|
1544
|
|
- 'execution_staff'
|
|
1557
|
+ advice,'execution_staff'
|
1545
|
1558
|
) == ''
|
1546
|
1559
|
"
|
1547
|
1560
|
>{{
|
1548
|
|
- getAdminUser(advice[0], "execution_staff")
|
|
1561
|
+ getAdminUser(advice, "execution_staff")
|
1549
|
1562
|
}}</span
|
1550
|
1563
|
>
|
1551
|
1564
|
<img
|
1552
|
1565
|
class="es-img"
|
1553
|
1566
|
:src="
|
1554
|
|
- setAdminUserES(advice[0], 'execution_staff')
|
|
1567
|
+ setAdminUserES(advice, 'execution_staff')
|
1555
|
1568
|
"
|
1556
|
1569
|
alt=""
|
1557
|
1570
|
srcset=""
|
|
@@ -1559,23 +1572,27 @@
|
1559
|
1572
|
style="height: 40px"
|
1560
|
1573
|
/>
|
1561
|
1574
|
</td>
|
1562
|
|
-
|
1563
|
|
- <td height="35px" v-if="org_id == 10375 || org_id ==0||org_id ==10206">
|
|
1575
|
+ <td height="35px">
|
|
1576
|
+ <span v-if="advice.execution_time">{{
|
|
1577
|
+ getTime(advice.execution_time, " {h}:{i}")
|
|
1578
|
+ }}</span>
|
|
1579
|
+ </td>
|
|
1580
|
+ <td height="35px">
|
1564
|
1581
|
<span
|
1565
|
1582
|
v-if="
|
1566
|
1583
|
setAdminUserES(
|
1567
|
|
- advice[0],
|
|
1584
|
+ advice,
|
1568
|
1585
|
'checker'
|
1569
|
1586
|
) == ''
|
1570
|
1587
|
"
|
1571
|
1588
|
>{{
|
1572
|
|
- getAdminUser(advice[0], "checker")
|
|
1589
|
+ getAdminUser(advice, "checker")
|
1573
|
1590
|
}}</span
|
1574
|
1591
|
>
|
1575
|
1592
|
<img
|
1576
|
1593
|
class="es-img"
|
1577
|
1594
|
:src="
|
1578
|
|
- setAdminUserES(advice[0], 'checker')
|
|
1595
|
+ setAdminUserES(advice, 'checker')
|
1579
|
1596
|
"
|
1580
|
1597
|
alt=""
|
1581
|
1598
|
srcset=""
|
|
@@ -1589,6 +1606,8 @@
|
1589
|
1606
|
</table>
|
1590
|
1607
|
</td>
|
1591
|
1608
|
</tr>
|
|
1609
|
+
|
|
1610
|
+
|
1592
|
1611
|
</tbody>
|
1593
|
1612
|
</table>
|
1594
|
1613
|
</div>
|
|
@@ -1999,7 +2018,7 @@
|
1999
|
2018
|
>
|
2000
|
2019
|
|
2001
|
2020
|
<span v-if="org_id!=10460">
|
2002
|
|
- 透析中入量 (L):
|
|
2021
|
+ 透析中入量:
|
2003
|
2022
|
</span>
|
2004
|
2023
|
<div
|
2005
|
2024
|
class="under_line"
|
|
@@ -2611,157 +2630,123 @@ export default {
|
2611
|
2630
|
|
2612
|
2631
|
}
|
2613
|
2632
|
}
|
2614
|
|
- for (const recordIndex in this.records) {
|
2615
|
|
- var dlegh = 0;
|
2616
|
|
- if (
|
2617
|
|
- this.records[recordIndex].monitor_records &&
|
2618
|
|
- this.records[recordIndex].monitor_records.length < 6
|
2619
|
|
- ) {
|
2620
|
|
- dlegh = 6 - this.records[recordIndex].monitor_records.length;
|
2621
|
|
- } else {
|
2622
|
|
- dlegh = 0;
|
2623
|
|
- }
|
2624
|
|
- if (dlegh > 0) {
|
2625
|
|
- if (
|
2626
|
|
- typeof this.records[recordIndex].monitor_records ===
|
2627
|
|
- "undefined" ||
|
2628
|
|
- this.records[recordIndex].monitor_records == null
|
2629
|
|
- ) {
|
2630
|
|
- this.records[recordIndex].monitor_records = [];
|
2631
|
|
- }
|
2632
|
|
- for (let index = 0; index < dlegh; index++) {
|
2633
|
|
- this.records[recordIndex].monitor_records.push([]);
|
2634
|
|
- }
|
2635
|
|
- }
|
2636
|
|
-
|
2637
|
|
- this.records[recordIndex].isShowZero = false;
|
2638
|
|
- if (this.records[recordIndex].patient.user_org_id == 9535) {
|
2639
|
|
- this.records[recordIndex].isShowZero = true;
|
2640
|
|
- }
|
2641
|
|
-
|
2642
|
|
- var delghTwo = 0;
|
2643
|
|
- if (
|
2644
|
|
- this.records[recordIndex].advices &&
|
2645
|
|
- this.records[recordIndex].advices.length < 12
|
2646
|
|
- ) {
|
2647
|
|
- delghTwo = 12 - this.records[recordIndex].advices.length;
|
2648
|
|
- } else {
|
2649
|
|
- delghTwo = 0;
|
2650
|
|
- }
|
2651
|
|
-
|
2652
|
|
- if (delghTwo > 0) {
|
2653
|
|
- if (
|
2654
|
|
- typeof this.records[recordIndex].advices === "undefined" ||
|
2655
|
|
- this.records[recordIndex].advices == null
|
2656
|
|
- ) {
|
2657
|
|
- this.records[recordIndex].advices = [];
|
2658
|
|
- }
|
2659
|
|
- for (let index = 0; index < delghTwo; index++) {
|
2660
|
|
- this.records[recordIndex].advices.push([]);
|
2661
|
|
- }
|
2662
|
|
- }
|
|
2633
|
+ // for (const recordIndex in this.records) {
|
|
2634
|
+ // var dlegh = 0;
|
|
2635
|
+ // if (
|
|
2636
|
+ // this.records[recordIndex].monitor_records &&
|
|
2637
|
+ // this.records[recordIndex].monitor_records.length < 6
|
|
2638
|
+ // ) {
|
|
2639
|
+ // dlegh = 6 - this.records[recordIndex].monitor_records.length;
|
|
2640
|
+ // } else {
|
|
2641
|
+ // dlegh = 0;
|
|
2642
|
+ // }
|
|
2643
|
+ // if (dlegh > 0) {
|
|
2644
|
+ // if (
|
|
2645
|
+ // typeof this.records[recordIndex].monitor_records ===
|
|
2646
|
+ // "undefined" ||
|
|
2647
|
+ // this.records[recordIndex].monitor_records == null
|
|
2648
|
+ // ) {
|
|
2649
|
+ // this.records[recordIndex].monitor_records = [];
|
|
2650
|
+ // }
|
|
2651
|
+ // for (let index = 0; index < dlegh; index++) {
|
|
2652
|
+ // this.records[recordIndex].monitor_records.push([]);
|
|
2653
|
+ // }
|
|
2654
|
+ // }
|
|
2655
|
+
|
|
2656
|
+ // this.records[recordIndex].isShowZero = false;
|
|
2657
|
+ // if (this.records[recordIndex].patient.user_org_id == 9535) {
|
|
2658
|
+ // this.records[recordIndex].isShowZero = true;
|
|
2659
|
+ // }
|
|
2660
|
+
|
|
2661
|
+ // // var delghTwo = 0;
|
|
2662
|
+ // // if (
|
|
2663
|
+ // // this.records[recordIndex].advices &&
|
|
2664
|
+ // // this.records[recordIndex].advices.length < 12
|
|
2665
|
+ // // ) {
|
|
2666
|
+ // // delghTwo = 12 - this.records[recordIndex].advices.length;
|
|
2667
|
+ // // } else {
|
|
2668
|
+ // // delghTwo = 0;
|
|
2669
|
+ // // }
|
|
2670
|
+
|
|
2671
|
+ // // if (delghTwo > 0) {
|
|
2672
|
+ // // if (
|
|
2673
|
+ // // typeof this.records[recordIndex].advices === "undefined" ||
|
|
2674
|
+ // // this.records[recordIndex].advices == null
|
|
2675
|
+ // // ) {
|
|
2676
|
+ // // this.records[recordIndex].advices = [];
|
|
2677
|
+ // // }
|
|
2678
|
+ // // for (let index = 0; index < delghTwo; index++) {
|
|
2679
|
+ // // this.records[recordIndex].advices.push([]);
|
|
2680
|
+ // // }
|
|
2681
|
+ // // }
|
2663
|
2682
|
|
2664
|
2683
|
|
2665
|
2684
|
|
2666
|
|
- if(this.org_id == 10206){
|
2667
|
|
- console.log("this.records[recordIndex].his_project", this.records[recordIndex].his_project)
|
2668
|
|
- var delghThree = 0
|
2669
|
|
- let his_project = []
|
2670
|
|
- this.records[recordIndex].his_project.map(item => {
|
2671
|
|
- // if(item.type == 2){
|
2672
|
|
- // his_project.push(item)
|
2673
|
|
- // }
|
2674
|
|
- his_project.push(item)
|
2675
|
|
-
|
2676
|
|
- })
|
2677
|
|
- this.records[recordIndex].his_project = his_project
|
2678
|
|
- var delghThree = 0
|
2679
|
|
- if (
|
2680
|
|
- this.records[recordIndex].his_advices &&
|
2681
|
|
- this.records[recordIndex].his_advices.length + this.records[recordIndex].his_project.length < 6
|
2682
|
|
- ) {
|
2683
|
|
- delghThree = 6 - (this.records[recordIndex].his_advices.length + this.records[recordIndex].his_project.length)
|
2684
|
|
- } else {
|
2685
|
|
- delghThree = 0
|
2686
|
|
- }
|
2687
|
|
-
|
2688
|
|
- if (delghThree > 0) {
|
2689
|
|
- if (
|
2690
|
|
- typeof this.records[recordIndex].his_project === 'undefined' ||
|
2691
|
|
- this.records[recordIndex].his_project == null
|
2692
|
|
- ) {
|
2693
|
|
- this.records[recordIndex].his_project = []
|
2694
|
|
- }
|
2695
|
|
- for (let index = 0; index < delghThree; index++) {
|
2696
|
|
- this.records[recordIndex].his_project.push([])
|
2697
|
|
- }
|
2698
|
|
- }
|
2699
|
|
- }
|
2700
|
|
-
|
2701
|
|
-
|
2702
|
|
- var childMap = {};
|
2703
|
|
- for (const index in this.records[recordIndex].advices) {
|
2704
|
|
- if (this.records[recordIndex].advices[index].parent_id == 0) {
|
2705
|
|
- continue;
|
2706
|
|
- }
|
2707
|
|
- if (
|
2708
|
|
- !(
|
2709
|
|
- this.records[recordIndex].advices[index].parent_id in childMap
|
2710
|
|
- )
|
2711
|
|
- ) {
|
2712
|
|
- childMap[this.records[recordIndex].advices[index].parent_id] =
|
2713
|
|
- [];
|
2714
|
|
- }
|
2715
|
|
- childMap[this.records[recordIndex].advices[index].parent_id].push(
|
2716
|
|
- this.records[recordIndex].advices[index]
|
2717
|
|
- );
|
2718
|
|
- }
|
2719
|
|
-
|
2720
|
|
- var advices = [];
|
2721
|
|
- for (const index in this.records[recordIndex].advices) {
|
2722
|
|
- if (this.records[recordIndex].advices[index].parent_id > 0) {
|
2723
|
|
- continue;
|
2724
|
|
- }
|
2725
|
|
- var item = this.records[recordIndex].advices[index];
|
2726
|
|
- if (item.id in childMap) {
|
2727
|
|
- item.children = childMap[item.id];
|
2728
|
|
- } else {
|
2729
|
|
- item.children = [];
|
2730
|
|
- }
|
2731
|
|
- advices.push(item);
|
2732
|
|
- }
|
2733
|
|
-
|
2734
|
|
- var leftAdvice = [];
|
2735
|
|
- var rightAdvice = [];
|
2736
|
|
- var adlen = advices.length;
|
2737
|
|
-
|
2738
|
|
- var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
|
2739
|
|
- for (var i = 0; i < halfLen; i++) {
|
2740
|
|
- leftAdvice.push(advices[i]);
|
2741
|
|
- var rightIndex = i + halfLen;
|
2742
|
|
- rightAdvice.push(
|
2743
|
|
- rightIndex in advices ? advices[i + halfLen] : []
|
2744
|
|
- );
|
2745
|
|
- }
|
2746
|
|
- if (halfLen < 6) {
|
2747
|
|
- var nl = 6 - leftAdvice.length;
|
2748
|
|
- for (let index = 0; index < nl; index++) {
|
2749
|
|
- leftAdvice.push([]);
|
2750
|
|
- }
|
2751
|
|
- var nl = 6 - rightAdvice.length;
|
2752
|
|
- for (let index = 0; index < nl; index++) {
|
2753
|
|
- rightAdvice.push([]);
|
2754
|
|
- }
|
2755
|
|
- }
|
|
2685
|
+
|
2756
|
2686
|
|
2757
|
|
- this.records[recordIndex].advices = [];
|
2758
|
|
- for (var i = 0; i < halfLen; i++) {
|
2759
|
|
- var item = [];
|
2760
|
|
- item.push(leftAdvice[i]);
|
2761
|
|
- item.push(rightAdvice[i]);
|
2762
|
|
- this.records[recordIndex].advices.push(item);
|
2763
|
|
- }
|
2764
|
|
- }
|
|
2687
|
+ // var childMap = {};
|
|
2688
|
+ // for (const index in this.records[recordIndex].advices) {
|
|
2689
|
+ // if (this.records[recordIndex].advices[index].parent_id == 0) {
|
|
2690
|
+ // continue;
|
|
2691
|
+ // }
|
|
2692
|
+ // if (
|
|
2693
|
+ // !(
|
|
2694
|
+ // this.records[recordIndex].advices[index].parent_id in childMap
|
|
2695
|
+ // )
|
|
2696
|
+ // ) {
|
|
2697
|
+ // childMap[this.records[recordIndex].advices[index].parent_id] =
|
|
2698
|
+ // [];
|
|
2699
|
+ // }
|
|
2700
|
+ // childMap[this.records[recordIndex].advices[index].parent_id].push(
|
|
2701
|
+ // this.records[recordIndex].advices[index]
|
|
2702
|
+ // );
|
|
2703
|
+ // }
|
|
2704
|
+
|
|
2705
|
+ // var advices = [];
|
|
2706
|
+ // for (const index in this.records[recordIndex].advices) {
|
|
2707
|
+ // if (this.records[recordIndex].advices[index].parent_id > 0) {
|
|
2708
|
+ // continue;
|
|
2709
|
+ // }
|
|
2710
|
+ // var item = this.records[recordIndex].advices[index];
|
|
2711
|
+ // if (item.id in childMap) {
|
|
2712
|
+ // item.children = childMap[item.id];
|
|
2713
|
+ // } else {
|
|
2714
|
+ // item.children = [];
|
|
2715
|
+ // }
|
|
2716
|
+ // advices.push(item);
|
|
2717
|
+ // }
|
|
2718
|
+
|
|
2719
|
+ // var leftAdvice = [];
|
|
2720
|
+ // var rightAdvice = [];
|
|
2721
|
+ // var adlen = advices.length;
|
|
2722
|
+
|
|
2723
|
+ // var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
|
|
2724
|
+ // for (var i = 0; i < halfLen; i++) {
|
|
2725
|
+ // leftAdvice.push(advices[i]);
|
|
2726
|
+ // var rightIndex = i + halfLen;
|
|
2727
|
+ // rightAdvice.push(
|
|
2728
|
+ // rightIndex in advices ? advices[i + halfLen] : []
|
|
2729
|
+ // );
|
|
2730
|
+ // }
|
|
2731
|
+ // if (halfLen < 6) {
|
|
2732
|
+ // var nl = 6 - leftAdvice.length;
|
|
2733
|
+ // for (let index = 0; index < nl; index++) {
|
|
2734
|
+ // leftAdvice.push([]);
|
|
2735
|
+ // }
|
|
2736
|
+ // var nl = 6 - rightAdvice.length;
|
|
2737
|
+ // for (let index = 0; index < nl; index++) {
|
|
2738
|
+ // rightAdvice.push([]);
|
|
2739
|
+ // }
|
|
2740
|
+ // }
|
|
2741
|
+
|
|
2742
|
+ // this.records[recordIndex].advices = [];
|
|
2743
|
+ // for (var i = 0; i < halfLen; i++) {
|
|
2744
|
+ // var item = [];
|
|
2745
|
+ // item.push(leftAdvice[i]);
|
|
2746
|
+ // item.push(rightAdvice[i]);
|
|
2747
|
+ // this.records[recordIndex].advices.push(item);
|
|
2748
|
+ // }
|
|
2749
|
+ // }
|
2765
|
2750
|
console.log("数据我哦我我", this.records);
|
2766
|
2751
|
// this.records.forEach(o => {
|
2767
|
2752
|
// console.log(o,'jj')
|