|
@@ -2,7 +2,7 @@
|
2
|
2
|
<div>
|
3
|
3
|
<el-button type="primary" @click="checkData">一键核对</el-button>
|
4
|
4
|
<el-button type="primary" @click="toUpload">一键上传</el-button>
|
5
|
|
-
|
|
5
|
+
|
6
|
6
|
<div id="dialysis-print-box-1" ref="pdfContent">
|
7
|
7
|
<div
|
8
|
8
|
id="dialysis-print-box-1-1"
|
|
@@ -395,7 +395,7 @@
|
395
|
395
|
>
|
396
|
396
|
{{ dialysisOrder&&dialysisOrder.puncture_way }}
|
397
|
397
|
</div>
|
398
|
|
-
|
|
398
|
+
|
399
|
399
|
</div>
|
400
|
400
|
<div
|
401
|
401
|
class="inline_block"
|
|
@@ -417,7 +417,7 @@
|
417
|
417
|
: "/"
|
418
|
418
|
}}
|
419
|
419
|
</span>
|
420
|
|
-
|
|
420
|
+
|
421
|
421
|
</div>
|
422
|
422
|
</div>
|
423
|
423
|
<div
|
|
@@ -440,7 +440,7 @@
|
440
|
440
|
: "/"
|
441
|
441
|
}}
|
442
|
442
|
</span>
|
443
|
|
-
|
|
443
|
+
|
444
|
444
|
</div>
|
445
|
445
|
</div>
|
446
|
446
|
</div>
|
|
@@ -853,13 +853,13 @@
|
853
|
853
|
? prescription.replacement_total
|
854
|
854
|
: "/"
|
855
|
855
|
}}
|
856
|
|
- </span>
|
|
856
|
+ </span>
|
857
|
857
|
<span v-if="org_id!=10206"> {{
|
858
|
858
|
prescription.displace_liqui_value
|
859
|
859
|
? prescription.displace_liqui_value
|
860
|
860
|
: "/"
|
861
|
861
|
}}
|
862
|
|
- </span>
|
|
862
|
+ </span>
|
863
|
863
|
</div>
|
864
|
864
|
L
|
865
|
865
|
</div>
|
|
@@ -879,13 +879,13 @@
|
879
|
879
|
? prescription.replacement_total
|
880
|
880
|
: "/"
|
881
|
881
|
}}
|
882
|
|
- </span>
|
|
882
|
+ </span>
|
883
|
883
|
<span v-if="org_id!=10206"> {{
|
884
|
884
|
prescription.displace_liqui_value
|
885
|
885
|
? prescription.displace_liqui_value
|
886
|
886
|
: "/"
|
887
|
887
|
}}
|
888
|
|
- </span>
|
|
888
|
+ </span>
|
889
|
889
|
</div>
|
890
|
890
|
L
|
891
|
891
|
</div>
|
|
@@ -1117,7 +1117,7 @@
|
1117
|
1117
|
kg
|
1118
|
1118
|
</div>
|
1119
|
1119
|
<div class="inline_block" style="flex: 1" v-if="org_id!=10469 && org_id!=0">
|
1120
|
|
- 计划超滤量:
|
|
1120
|
+ 计划超滤量:
|
1121
|
1121
|
<div
|
1122
|
1122
|
class="under_line"
|
1123
|
1123
|
style="width: 100px; text-align: center"
|
|
@@ -1128,13 +1128,13 @@
|
1128
|
1128
|
: "/"
|
1129
|
1129
|
}}
|
1130
|
1130
|
</div>
|
1131
|
|
- <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471 || org_id == 10460">ml</span>
|
|
1131
|
+ <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471 || org_id == 10460">ml</span>
|
1132
|
1132
|
<span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471 && org_id!=10460">L</span>
|
1133
|
1133
|
</div>
|
1134
|
1134
|
|
1135
|
1135
|
|
1136
|
1136
|
<div class="inline_block" style="flex: 1" v-if="org_id == 10469 || org_id == 0">
|
1137
|
|
- 处方脱水量:
|
|
1137
|
+ 处方脱水量:
|
1138
|
1138
|
<div
|
1139
|
1139
|
class="under_line"
|
1140
|
1140
|
style="width: 100px; text-align: center"
|
|
@@ -1199,9 +1199,7 @@
|
1199
|
1199
|
style="width: 50px; text-align: center"
|
1200
|
1200
|
>
|
1201
|
1201
|
{{
|
1202
|
|
- prescription.bicarbonate
|
1203
|
|
- ? prescription.bicarbonate
|
1204
|
|
- : "/"
|
|
1202
|
+ prescription.bicarbonate ? prescription.bicarbonate : "/"
|
1205
|
1203
|
}}
|
1206
|
1204
|
</div>
|
1207
|
1205
|
mmol/L
|
|
@@ -1256,7 +1254,7 @@
|
1256
|
1254
|
: "/"
|
1257
|
1255
|
}}
|
1258
|
1256
|
</div>
|
1259
|
|
-
|
|
1257
|
+
|
1260
|
1258
|
<span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471 && org_id!=10460">
|
1261
|
1259
|
<span v-if="prescription.anticoagulant == 4">mg</span>
|
1262
|
1260
|
<span v-if="prescription.anticoagulant == 3">iu</span>
|
|
@@ -1276,7 +1274,7 @@
|
1276
|
1274
|
<span v-if="prescription.anticoagulant == 10">iu</span>
|
1277
|
1275
|
<span v-if="prescription.anticoagulant == 11">iu</span>
|
1278
|
1276
|
<span v-if="prescription.anticoagulant == 13">iu</span>
|
1279
|
|
-
|
|
1277
|
+
|
1280
|
1278
|
</span>
|
1281
|
1279
|
</div>
|
1282
|
1280
|
<div class="inline_block" style="margin-left: 20px">
|
|
@@ -1413,8 +1411,7 @@
|
1413
|
1411
|
</div>
|
1414
|
1412
|
</div>
|
1415
|
1413
|
|
1416
|
|
-
|
1417
|
|
- <div class="row" style="padding: 2px 0; line-height: 23px" v-if="org_id ==0 || org_id == 3877 || org_id == 9671">
|
|
1414
|
+ <div class="row" style="padding: 2px 0; line-height: 23px" v-if=" org_id == 3877 || org_id == 9671">
|
1418
|
1415
|
<div
|
1419
|
1416
|
class="inline_block"
|
1420
|
1417
|
style="margin-left: 20px"
|
|
@@ -1432,8 +1429,8 @@
|
1432
|
1429
|
}}
|
1433
|
1430
|
</div>
|
1434
|
1431
|
<span>ml/h</span>
|
1435
|
|
-
|
1436
|
|
-
|
|
1432
|
+
|
|
1433
|
+
|
1437
|
1434
|
</div>
|
1438
|
1435
|
<div
|
1439
|
1436
|
class="inline_block"
|
|
@@ -1452,8 +1449,8 @@
|
1452
|
1449
|
}}
|
1453
|
1450
|
</div>
|
1454
|
1451
|
<span>ml/h</span>
|
1455
|
|
-
|
1456
|
|
-
|
|
1452
|
+
|
|
1453
|
+
|
1457
|
1454
|
</div>
|
1458
|
1455
|
<div class="inline_block" style="margin-left: 20px">
|
1459
|
1456
|
碳酸氢钠流速:
|
|
@@ -1467,13 +1464,13 @@
|
1467
|
1464
|
: ""
|
1468
|
1465
|
}}
|
1469
|
1466
|
</div>
|
1470
|
|
-
|
1471
|
|
-
|
|
1467
|
+
|
|
1468
|
+
|
1472
|
1469
|
</div>
|
1473
|
1470
|
<span>ml/h</span>
|
1474
|
|
-
|
1475
|
|
-
|
1476
|
|
-
|
|
1471
|
+
|
|
1472
|
+
|
|
1473
|
+
|
1477
|
1474
|
</div>
|
1478
|
1475
|
|
1479
|
1476
|
<div class="row" style="padding: 2px 0; line-height: 23px" v-if="org_id ==10469 || org_id == 9671">
|
|
@@ -1488,7 +1485,7 @@
|
1488
|
1485
|
>
|
1489
|
1486
|
{{predialysis.machine_type ? predialysis.machine_type : ""}}
|
1490
|
1487
|
</div>
|
1491
|
|
-
|
|
1488
|
+
|
1492
|
1489
|
</div>
|
1493
|
1490
|
<div
|
1494
|
1491
|
class="inline_block"
|
|
@@ -1587,15 +1584,15 @@
|
1587
|
1584
|
: "mmHg"
|
1588
|
1585
|
}})
|
1589
|
1586
|
</td>
|
1590
|
|
-
|
|
1587
|
+
|
1591
|
1588
|
<td width="60" v-if="org_id == 9836">体温(°C)</td>
|
1592
|
1589
|
<td width="60" v-if="org_id == 9919">血温(°C)</td>
|
1593
|
1590
|
<td width="60" v-if="org_id == 9671">血温(°C)</td>
|
1594
|
1591
|
<td width="60" v-if="org_id!=9836&&org_id!=9919&&org_id!=9671">透析液温度(°C)</td>
|
1595
|
1592
|
<td width="50" v-if="org_id != 10121 && org_id!=10600">
|
1596
|
|
- <span v-if="org_id != 0 && org_id !=10469 && org_id!=10490 "> 电导度<br />(ms/cm)</span>
|
1597
|
|
- <span v-if="org_id ==10469"> 钠浓度<br />(mmol/L)</span>
|
1598
|
|
- <span v-if="org_id == 0 || org_id == 10490"> 置换液的速度<br />(ml/h)</span>
|
|
1593
|
+ <span v-if="org_id != 0 && org_id !=10469 && org_id!=10490 "> 电导度<br />(ms/cm)</span>
|
|
1594
|
+ <span v-if="org_id ==10469"> 钠浓度<br />(mmol/L)</span>
|
|
1595
|
+ <span v-if="org_id == 0 || org_id == 10490"> 置换液的速度<br />(ml/h)</span>
|
1599
|
1596
|
</td>
|
1600
|
1597
|
<td width="50" v-if="org_id == 10121">SpO₂<br />(%)</td>
|
1601
|
1598
|
<td width="50" v-if="org_id == 10375 || org_id == 0">置换率<br />(ml/h)</td>
|
|
@@ -1606,9 +1603,9 @@
|
1606
|
1603
|
置换量<br />(ml)
|
1607
|
1604
|
</td>
|
1608
|
1605
|
<td width="50" v-if="org_id == 3877 || org_id == 0 || org_id == 10449">滤前压(mmHg)</td>
|
1609
|
|
- <td width="50" v-if="org_id == 9538 || org_id ==10600 || org_id ==10587">KT/V</td>
|
1610
|
|
- <td width="50" v-if="org_id == 9919">在线尿素监测</td>
|
1611
|
|
- <td width="50" v-if="org_id == 9671">在线尿素监测</td>
|
|
1606
|
+ <td width="50" v-if="org_id == 9538 || org_id ==10600">KT/V</td>
|
|
1607
|
+ <td width="50" v-if="org_id == 9919">在线尿素监测</td>
|
|
1608
|
+ <td width="50" v-if="org_id == 9671">在线尿素监测</td>
|
1612
|
1609
|
<td width="50" v-if="org_id == 9538 || org_id == 9919 || org_id== 9671">血容量<br />(L)</td>
|
1613
|
1610
|
<td width="50" v-if="org_id == 10490 || org_id == 0">碳酸氢钠<br />(ml)</td>
|
1614
|
1611
|
<td width="50" v-if="org_id == 10598 || org_id == 0">护士签名</td>
|
|
@@ -1644,7 +1641,7 @@
|
1644
|
1641
|
: ""
|
1645
|
1642
|
}}
|
1646
|
1643
|
</span>
|
1647
|
|
-
|
|
1644
|
+
|
1648
|
1645
|
</td>
|
1649
|
1646
|
<td>
|
1650
|
1647
|
<span
|
|
@@ -1708,7 +1705,7 @@
|
1708
|
1705
|
<span v-if="org_id==0||org_id==10490"> {{ monitor.replacement_speed ? monitor.replacement_speed : "" }}</span>
|
1709
|
1706
|
</td>
|
1710
|
1707
|
|
1711
|
|
-
|
|
1708
|
+
|
1712
|
1709
|
<td v-if="org_id == 10375 || org_id == 0"><br />
|
1713
|
1710
|
{{ monitor.replacement_rate? monitor.replacement_rate: ""}}
|
1714
|
1711
|
</td>
|
|
@@ -1735,7 +1732,7 @@
|
1735
|
1732
|
</span>
|
1736
|
1733
|
</td>
|
1737
|
1734
|
<td width="50" v-if="org_id == 3877 || org_id == 0 || org_id == 10449">{{ monitor.filter_pressure?monitor.filter_pressure:""}}</td>
|
1738
|
|
- <td width="50" v-if="org_id == 9919 || org_id == 9538 || org_id == 9671 || org_id ==10600 || org_id ==10587">
|
|
1735
|
+ <td width="50" v-if="org_id == 9919 || org_id == 9538 || org_id == 9671 || org_id ==10600">
|
1739
|
1736
|
{{ monitor.ktv?monitor.ktv:"" }}
|
1740
|
1737
|
</td>
|
1741
|
1738
|
<td width="50" v-if="org_id == 9538 || org_id == 9919 || org_id == 9671">
|
|
@@ -1801,7 +1798,7 @@
|
1801
|
1798
|
"
|
1802
|
1799
|
>【开始透析】
|
1803
|
1800
|
</template>
|
1804
|
|
-
|
|
1801
|
+
|
1805
|
1802
|
{{ monitor.end }} {{ monitor.symptom }} {{
|
1806
|
1803
|
monitor.dispose
|
1807
|
1804
|
}}
|
|
@@ -1972,7 +1969,7 @@
|
1972
|
1969
|
v-else
|
1973
|
1970
|
/>
|
1974
|
1971
|
</span>
|
1975
|
|
-
|
|
1972
|
+
|
1976
|
1973
|
</td>
|
1977
|
1974
|
<!-- <td height="35px">
|
1978
|
1975
|
<span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
|
|
@@ -2014,7 +2011,7 @@
|
2014
|
2011
|
<!-- </template> -->
|
2015
|
2012
|
|
2016
|
2013
|
|
2017
|
|
- <tr
|
|
2014
|
+ <tr
|
2018
|
2015
|
v-if="org_id == 0 || org_id ==10206"
|
2019
|
2016
|
v-for="(advice, advice_index) in projectsOne"
|
2020
|
2017
|
:key="advice_index"
|
|
@@ -2095,7 +2092,7 @@
|
2095
|
2092
|
</td>
|
2096
|
2093
|
</tr>
|
2097
|
2094
|
|
2098
|
|
-
|
|
2095
|
+
|
2099
|
2096
|
</tbody>
|
2100
|
2097
|
</table>
|
2101
|
2098
|
</div>
|
|
@@ -2127,7 +2124,7 @@
|
2127
|
2124
|
<span v-if="prescription.mode_id!=13">血液净化治疗记录单</span>
|
2128
|
2125
|
<span v-if="prescription.mode_id==13">连续性肾脏替代治疗(CRRT)记录单</span>
|
2129
|
2126
|
</span>
|
2130
|
|
-
|
|
2127
|
+
|
2131
|
2128
|
</div>
|
2132
|
2129
|
</div>
|
2133
|
2130
|
<div class="row">
|
|
@@ -2651,7 +2648,7 @@
|
2651
|
2648
|
: "未称重"
|
2652
|
2649
|
}}
|
2653
|
2650
|
</span>
|
2654
|
|
-
|
|
2651
|
+
|
2655
|
2652
|
</div>
|
2656
|
2653
|
kg
|
2657
|
2654
|
</div>
|
|
@@ -2964,7 +2961,7 @@
|
2964
|
2961
|
>
|
2965
|
2962
|
{{ afterdialysis.cvc_v ? afterdialysis.cvc_v : "/" }}
|
2966
|
2963
|
</div>ml
|
2967
|
|
-
|
|
2964
|
+
|
2968
|
2965
|
</div>
|
2969
|
2966
|
</div>
|
2970
|
2967
|
</td>
|
|
@@ -2976,8 +2973,8 @@
|
2976
|
2973
|
style="padding: 2px 0; line-height: 23px; display: flex"
|
2977
|
2974
|
>
|
2978
|
2975
|
<div v-if="org_id == 0 || org_id == 10440">
|
2979
|
|
-
|
2980
|
|
-
|
|
2976
|
+
|
|
2977
|
+
|
2981
|
2978
|
|
2982
|
2979
|
<div class="inline_block" style="flex: 1">
|
2983
|
2980
|
上机护士:
|
|
@@ -3018,8 +3015,8 @@
|
3018
|
3015
|
/>
|
3019
|
3016
|
</div>
|
3020
|
3017
|
</div>
|
3021
|
|
-
|
3022
|
|
-
|
|
3018
|
+
|
|
3019
|
+
|
3023
|
3020
|
</div>
|
3024
|
3021
|
<div v-if="org_id!=0 && org_id!=10440">
|
3025
|
3022
|
<div class="inline_block" style="flex: 1">
|
|
@@ -3062,18 +3059,18 @@
|
3062
|
3059
|
</div>
|
3063
|
3060
|
</div>
|
3064
|
3061
|
</div>
|
3065
|
|
-
|
|
3062
|
+
|
3066
|
3063
|
<div v-if="org_id==0||org_id==10440">
|
3067
|
|
-
|
3068
|
|
- <div class="inline_block" style="flex: 1">
|
|
3064
|
+
|
|
3065
|
+ <div class="inline_block" style="flex: 1">
|
3069
|
3066
|
<div>
|
3070
|
|
- <span>责任护士:</span>
|
|
3067
|
+ <span>责任护士:</span>
|
3071
|
3068
|
<div
|
3072
|
3069
|
class="under_line"
|
3073
|
3070
|
style="width: 80px; text-align: center"
|
3074
|
|
-
|
|
3071
|
+
|
3075
|
3072
|
>
|
3076
|
|
-
|
|
3073
|
+
|
3077
|
3074
|
<span
|
3078
|
3075
|
style="height: 35px; display: inline-block"
|
3079
|
3076
|
v-if="
|
|
@@ -3114,9 +3111,9 @@
|
3114
|
3111
|
|
3115
|
3112
|
<div v-if="org_id!=0&&org_id!=10440&&org_id!= 10206">
|
3116
|
3113
|
<div class="inline_block" style="flex: 1">
|
3117
|
|
- <span v-if="org_id==10414">责任护士:</span>
|
3118
|
|
- <span v-else>治疗护士:</span>
|
3119
|
|
-
|
|
3114
|
+ <span v-if="org_id==10414">责任护士:</span>
|
|
3115
|
+ <span v-else>治疗护士:</span>
|
|
3116
|
+
|
3120
|
3117
|
<div
|
3121
|
3118
|
class="under_line"
|
3122
|
3119
|
style="width: 80px; text-align: center"
|
|
@@ -3155,12 +3152,12 @@
|
3155
|
3152
|
</div>
|
3156
|
3153
|
</div>
|
3157
|
3154
|
</div>
|
3158
|
|
-
|
|
3155
|
+
|
3159
|
3156
|
|
3160
|
3157
|
|
3161
|
3158
|
<div class="inline_block" style="flex: 1">
|
3162
|
|
- <span v-if="org_id==10387 || org_id ==10206 || org_id == 0" >核对护士:</span>
|
3163
|
|
- <span v-else >核对人员:</span>
|
|
3159
|
+ <span v-if="org_id==10387 || org_id ==10206 || org_id == 0" >核对护士:</span>
|
|
3160
|
+ <span v-else >核对人员:</span>
|
3164
|
3161
|
<div
|
3165
|
3162
|
class="under_line"
|
3166
|
3163
|
style="width: 80px; text-align: center"
|
|
@@ -3349,14 +3346,14 @@
|
3349
|
3346
|
v-else
|
3350
|
3347
|
/>
|
3351
|
3348
|
</span>
|
3352
|
|
-
|
|
3349
|
+
|
3353
|
3350
|
</div>
|
3354
|
3351
|
</div>
|
3355
|
3352
|
</div>
|
3356
|
3353
|
</td>
|
3357
|
3354
|
</tr>
|
3358
|
3355
|
|
3359
|
|
-
|
|
3356
|
+
|
3360
|
3357
|
</tbody>
|
3361
|
3358
|
</table>
|
3362
|
3359
|
<!-- <div class="print-yema">1</div> -->
|
|
@@ -3444,7 +3441,7 @@
|
3444
|
3441
|
核对护士
|
3445
|
3442
|
</td>
|
3446
|
3443
|
</tr>
|
3447
|
|
-
|
|
3444
|
+
|
3448
|
3445
|
|
3449
|
3446
|
<tr
|
3450
|
3447
|
v-for="(advice, advice_index) in doctor_advices"
|
|
@@ -3454,7 +3451,7 @@
|
3454
|
3451
|
<span v-if="advice.start_time">
|
3455
|
3452
|
{{ getTime(advice.start_time, "{h}:{i}") }}
|
3456
|
3453
|
</span>
|
3457
|
|
-
|
|
3454
|
+
|
3458
|
3455
|
</td>
|
3459
|
3456
|
<td
|
3460
|
3457
|
height="32px"
|
|
@@ -3489,7 +3486,7 @@
|
3489
|
3486
|
>({{ advice.remark }})</span
|
3490
|
3487
|
>
|
3491
|
3488
|
</td>
|
3492
|
|
-
|
|
3489
|
+
|
3493
|
3490
|
<td height="32px">
|
3494
|
3491
|
<span
|
3495
|
3492
|
v-if="setAdminUserES(advice.advice_doctor) == ''"
|
|
@@ -3503,7 +3500,7 @@
|
3503
|
3500
|
v-else
|
3504
|
3501
|
/>
|
3505
|
3502
|
</td>
|
3506
|
|
-
|
|
3503
|
+
|
3507
|
3504
|
<td height="32px">
|
3508
|
3505
|
<span
|
3509
|
3506
|
v-if="setAdminUserES(advice.execution_staff) == ''"
|
|
@@ -3535,17 +3532,17 @@
|
3535
|
3532
|
/>
|
3536
|
3533
|
</td>
|
3537
|
3534
|
</tr>
|
3538
|
|
-
|
3539
|
3535
|
|
3540
|
|
-
|
|
3536
|
+
|
|
3537
|
+
|
3541
|
3538
|
</tbody>
|
3542
|
3539
|
</table>
|
3543
|
3540
|
|
3544
|
3541
|
|
3545
|
|
-
|
3546
|
|
-
|
3547
|
3542
|
|
3548
|
|
-
|
|
3543
|
+
|
|
3544
|
+
|
|
3545
|
+
|
3549
|
3546
|
</div>
|
3550
|
3547
|
</div>
|
3551
|
3548
|
</template>
|
|
@@ -3554,7 +3551,7 @@
|
3554
|
3551
|
import CheckBox from "../batch_print/option_check_box";
|
3555
|
3552
|
import { getDialysisRecord } from "@/api/dialysis";
|
3556
|
3553
|
import { getDataConfig } from "@/utils/data";
|
3557
|
|
-import { jsGetAge, uParseTime,jsGetAgeOne } from "@/utils/tools";
|
|
3554
|
+import { jsGetAge, uParseTime } from "@/utils/tools";
|
3558
|
3555
|
|
3559
|
3556
|
import LabelBox from "../printItem/LabelBox";
|
3560
|
3557
|
import BreadCrumb from "@/xt_pages/components/bread-crumb";
|
|
@@ -3689,12 +3686,11 @@ export default {
|
3689
|
3686
|
},
|
3690
|
3687
|
org_id: 0,
|
3691
|
3688
|
projectsOne: [],
|
3692
|
|
- ageDate:""
|
3693
|
3689
|
};
|
3694
|
3690
|
},
|
3695
|
3691
|
methods: {
|
3696
|
3692
|
toUpload() {
|
3697
|
|
-
|
|
3693
|
+
|
3698
|
3694
|
let dom = document.getElementById("dialysis-print-box-1")
|
3699
|
3695
|
//调用方法下载
|
3700
|
3696
|
html2canvas(dom, {
|
|
@@ -3708,14 +3704,14 @@ export default {
|
3708
|
3704
|
}).then((canvas) => {
|
3709
|
3705
|
//返回图片dataURL,参数:图片格式和清晰度(0-1)
|
3710
|
3706
|
var pageData = canvas.toDataURL('image/jpeg', 1.0);
|
3711
|
|
-
|
|
3707
|
+
|
3712
|
3708
|
//方向默认竖直,尺寸ponits,格式a4[595.28,841.89]
|
3713
|
3709
|
var pdf = new jsPDF('', 'pt', 'a4');
|
3714
|
|
-
|
|
3710
|
+
|
3715
|
3711
|
//addImage后两个参数控制添加图片的尺寸,此处将页面高度按照a4纸宽高比列进行压缩
|
3716
|
3712
|
// pdf.addImage(pageData, 'JPEG', 0, 0, 595.28, 592.28 / canvas.width * canvas.height);
|
3717
|
3713
|
pdf.addImage(pageData, 'JPEG', 0, 0, 555.28, 592.28 / canvas.width * canvas.height);
|
3718
|
|
-
|
|
3714
|
+
|
3719
|
3715
|
console.log("pdf222222222222222222",pdf)
|
3720
|
3716
|
|
3721
|
3717
|
var newBase64Data = pdf.output("dataurlstring").split("base64,")[1]
|
|
@@ -3723,7 +3719,7 @@ export default {
|
3723
|
3719
|
const blob = this.base64ToBlob(newBase64Data, 'application/pdf');
|
3724
|
3720
|
console.log("blobwoowowowwo",blob)
|
3725
|
3721
|
this.openPdf(blob);
|
3726
|
|
-
|
|
3722
|
+
|
3727
|
3723
|
// var data = {
|
3728
|
3724
|
// name:newBase64Data,
|
3729
|
3725
|
// }
|
|
@@ -3738,14 +3734,14 @@ export default {
|
3738
|
3734
|
// this.openPdf(blob);
|
3739
|
3735
|
// }
|
3740
|
3736
|
// })
|
3741
|
|
-
|
|
3737
|
+
|
3742
|
3738
|
// this.viewPdf(newBase64Data)
|
3743
|
3739
|
//保存到pdf,名字是stone
|
3744
|
3740
|
// pdf.save('stone.pdf');
|
3745
|
|
-
|
|
3741
|
+
|
3746
|
3742
|
});
|
3747
|
3743
|
},
|
3748
|
|
-
|
|
3744
|
+
|
3749
|
3745
|
viewPdf(content) {
|
3750
|
3746
|
console.log("content",content);
|
3751
|
3747
|
const blob = this.base64ToBlob(content);
|
|
@@ -3764,7 +3760,7 @@ export default {
|
3764
|
3760
|
return value1 - value2
|
3765
|
3761
|
}
|
3766
|
3762
|
},
|
3767
|
|
-
|
|
3763
|
+
|
3768
|
3764
|
openPdf(blob) {
|
3769
|
3765
|
const objectUrl = URL.createObjectURL(blob);
|
3770
|
3766
|
const a = document.createElement('a');
|
|
@@ -3780,23 +3776,23 @@ export default {
|
3780
|
3776
|
const bytesLength = byteCharacters.length;
|
3781
|
3777
|
const slicesCount = Math.ceil(bytesLength / sliceSize);
|
3782
|
3778
|
const byteArrays = new Array(slicesCount);
|
3783
|
|
-
|
|
3779
|
+
|
3784
|
3780
|
for (let sliceIndex = 0; sliceIndex < slicesCount; ++sliceIndex) {
|
3785
|
3781
|
const begin = sliceIndex * sliceSize;
|
3786
|
3782
|
const end = Math.min(begin + sliceSize, bytesLength);
|
3787
|
|
-
|
|
3783
|
+
|
3788
|
3784
|
const bytes = new Array(end - begin);
|
3789
|
3785
|
for (let offset = begin, i = 0; offset < end; ++i, ++offset) {
|
3790
|
3786
|
bytes[i] = byteCharacters[offset].charCodeAt(0);
|
3791
|
3787
|
}
|
3792
|
3788
|
byteArrays[sliceIndex] = new Uint8Array(bytes);
|
3793
|
3789
|
}
|
3794
|
|
-
|
|
3790
|
+
|
3795
|
3791
|
return new Blob(byteArrays, {
|
3796
|
3792
|
type: contentType
|
3797
|
3793
|
});
|
3798
|
3794
|
},
|
3799
|
|
-
|
|
3795
|
+
|
3800
|
3796
|
UploadPdf(res) {
|
3801
|
3797
|
let pdfBase64Str = res;
|
3802
|
3798
|
let title = "上传给后端的个人报告";
|
|
@@ -4210,7 +4206,6 @@ export default {
|
4210
|
4206
|
} else {
|
4211
|
4207
|
this.patientInfo.first_dialysis_date = "";
|
4212
|
4208
|
}
|
4213
|
|
- this.ageDate = uParseTime(response.data.data.schedule.schedule_date,"{y}-{m}-{d}");
|
4214
|
4209
|
this.check = response.data.data.check;
|
4215
|
4210
|
this.xtdate = response.data.data.xtdate;
|
4216
|
4211
|
this.predialysis = response.data.data.PredialysisEvaluation;
|
|
@@ -4435,7 +4430,7 @@ export default {
|
4435
|
4430
|
for (let index = 0; index < this.doctor_advices.length; index++) {
|
4436
|
4431
|
this.doctor_advices[index]["isShow"] = 2;
|
4437
|
4432
|
}
|
4438
|
|
-
|
|
4433
|
+
|
4439
|
4434
|
// if (this.doctor_advices.length > 0) {
|
4440
|
4435
|
// var group = this.newAdviceGroupObject()
|
4441
|
4436
|
// var initGroupBlock = function(group, advice) {
|
|
@@ -4521,17 +4516,17 @@ export default {
|
4521
|
4516
|
projectsOne.push(item);
|
4522
|
4517
|
});
|
4523
|
4518
|
this.projectsOne = projectsOne;
|
4524
|
|
-
|
|
4519
|
+
|
4525
|
4520
|
|
4526
|
4521
|
console.log("this.projectsOne", this.projectsOne);
|
4527
|
4522
|
|
4528
|
4523
|
}
|
4529
|
|
-
|
|
4524
|
+
|
4530
|
4525
|
|
4531
|
4526
|
console.log("RESWOOWOWWOOW",response.data.data.doctorAdevieInfo)
|
4532
|
4527
|
if(this.org_id ==10515 || this.org_id == 10510 || this.org_id ==10567 ){
|
4533
|
4528
|
if(response.data.data.doctorAdevieInfo!=null && response.data.data.doctorAdevieInfo.length>0){
|
4534
|
|
-
|
|
4529
|
+
|
4535
|
4530
|
for(let i=0;i<response.data.data.doctorAdevieInfo.length;i++){
|
4536
|
4531
|
this.doctor_advices.push(response.data.data.doctorAdevieInfo[i])
|
4537
|
4532
|
console.log("寄哪里 222")
|
|
@@ -4549,16 +4544,16 @@ export default {
|
4549
|
4544
|
});
|
4550
|
4545
|
this.projects = projects;
|
4551
|
4546
|
|
4552
|
|
-
|
|
4547
|
+
|
4553
|
4548
|
console.log("this.projects", this.projects);
|
4554
|
4549
|
|
4555
|
4550
|
// var objProject = {advice_name:"",start_time:"",single_dose:"",single_dose_unit:"",}
|
4556
|
|
-
|
|
4551
|
+
|
4557
|
4552
|
if(this.org_id!=10510 && this.org_id!=0&&this.org_id!=10206){
|
4558
|
4553
|
if(this.projects!=null && this.projects.length >0){
|
4559
|
4554
|
for(let i=0;i<this.projects.length;i++){
|
4560
|
4555
|
if(this.projects[i].type== 2){
|
4561
|
|
-
|
|
4556
|
+
|
4562
|
4557
|
this.projects[i].project_team_name = ""
|
4563
|
4558
|
this.projects[i].project_team_id = 0
|
4564
|
4559
|
console.log("this.projects[i].project.team",this.projects[i].project.team)
|
|
@@ -4569,11 +4564,11 @@ export default {
|
4569
|
4564
|
this.projects[i].single_dose = this.projects[i].single_dose
|
4570
|
4565
|
this.projects[i].single_dose_unit = this.projects[i].unit
|
4571
|
4566
|
this.projects[i].execution_time = this.projects[i].execution_time
|
4572
|
|
- this.projects[i].execution_staff= this.projects[i].execution_staff
|
|
4567
|
+ this.projects[i].execution_staff= this.projects[i].execution_staff
|
4573
|
4568
|
this.projects[i].advice_name = this.projects[i].team.project_team
|
4574
|
4569
|
this.projects[i].advice_doctor = this.projects[i].doctor
|
4575
|
|
-
|
4576
|
|
-
|
|
4570
|
+
|
|
4571
|
+
|
4577
|
4572
|
this.doctor_advices.push(this.projects[i])
|
4578
|
4573
|
// this.doctor_advices_2.push(this.project[i])
|
4579
|
4574
|
}else{
|
|
@@ -4583,21 +4578,21 @@ export default {
|
4583
|
4578
|
this.projects[i].single_dose = this.projects[i].single_dose
|
4584
|
4579
|
this.projects[i].single_dose_unit = this.projects[i].unit
|
4585
|
4580
|
this.projects[i].execution_time = this.projects[i].execution_time
|
4586
|
|
- this.projects[i].execution_staff= this.projects[i].execution_staff
|
|
4581
|
+ this.projects[i].execution_staff= this.projects[i].execution_staff
|
4587
|
4582
|
this.projects[i].advice_doctor = this.projects[i].doctor
|
4588
|
4583
|
this.doctor_advices.push(this.projects[i])
|
4589
|
4584
|
// this.doctor_advices_2.push(this.projects[i])
|
4590
|
4585
|
}
|
4591
|
|
-
|
|
4586
|
+
|
4592
|
4587
|
}
|
4593
|
|
-
|
|
4588
|
+
|
4594
|
4589
|
}
|
4595
|
4590
|
}
|
4596
|
4591
|
}
|
4597
|
|
-
|
4598
|
|
-
|
|
4592
|
+
|
|
4593
|
+
|
4599
|
4594
|
}
|
4600
|
|
-
|
|
4595
|
+
|
4601
|
4596
|
console.log("时间我我我哦我我",this.doctor_advices)
|
4602
|
4597
|
if(this.org_id == 10265){
|
4603
|
4598
|
var docArr = []
|
|
@@ -4608,10 +4603,10 @@ export default {
|
4608
|
4603
|
}
|
4609
|
4604
|
}
|
4610
|
4605
|
}
|
4611
|
|
- this.doctor_advices = []
|
|
4606
|
+ this.doctor_advices = []
|
4612
|
4607
|
this.doctor_advices = docArr
|
4613
|
4608
|
}
|
4614
|
|
-
|
|
4609
|
+
|
4615
|
4610
|
|
4616
|
4611
|
if (this.doctor_advices.length + this.projectsOne.length <= 6) {
|
4617
|
4612
|
var nl = 6 - (this.doctor_advices.length + this.projectsOne.length);
|
|
@@ -4663,7 +4658,7 @@ export default {
|
4663
|
4658
|
}
|
4664
|
4659
|
// console.log(this.advice_groups);
|
4665
|
4660
|
|
4666
|
|
-
|
|
4661
|
+
|
4667
|
4662
|
} else {
|
4668
|
4663
|
this.loading = false;
|
4669
|
4664
|
this.$message.error("请求数据失败");
|
|
@@ -4699,7 +4694,7 @@ export default {
|
4699
|
4694
|
// }
|
4700
|
4695
|
// },
|
4701
|
4696
|
getAge: function(val) {
|
4702
|
|
-
|
|
4697
|
+
|
4703
|
4698
|
if (val.id_card_no) {
|
4704
|
4699
|
var thisLen = val.id_card_no.length
|
4705
|
4700
|
|
|
@@ -4709,28 +4704,15 @@ export default {
|
4709
|
4704
|
} else {
|
4710
|
4705
|
birth = val.id_card_no.substr(6, 8)
|
4711
|
4706
|
}
|
4712
|
|
-
|
4713
|
|
- if(this.org_id == 0){
|
4714
|
|
- console.log("this.ageDattewowow",this.ageDate)
|
4715
|
|
- var birthtwo = birth.substr(0, 4) + birth.substr(4, 2) + birth.substr(6, 2)
|
4716
|
|
- var year = birth.substr(0,4)
|
4717
|
|
- var month = birth.substr(4, 2)
|
4718
|
|
- var day = birth.substr(6, 2)
|
4719
|
|
-
|
4720
|
|
- var age = jsGetAgeOne(birthtwo,"-",year,month,day)
|
4721
|
|
- return age
|
4722
|
|
- }else{
|
4723
|
|
- var birthtwo =
|
4724
|
|
- birth.substr(0, 4) +
|
4725
|
|
- '-' +
|
4726
|
|
- birth.substr(4, 2) +
|
4727
|
|
- '-' +
|
4728
|
|
- birth.substr(6, 2)
|
4729
|
|
- console.log("brithwo3333",birthtwo)
|
4730
|
|
- var age = jsGetAge(birthtwo, '-')
|
4731
|
|
- return age
|
4732
|
|
- }
|
4733
|
|
-
|
|
4707
|
+ var birthtwo =
|
|
4708
|
+ birth.substr(0, 4) +
|
|
4709
|
+ '-' +
|
|
4710
|
+ birth.substr(4, 2) +
|
|
4711
|
+ '-' +
|
|
4712
|
+ birth.substr(6, 2)
|
|
4713
|
+
|
|
4714
|
+ var age = jsGetAge(birthtwo, '-')
|
|
4715
|
+ return age
|
4734
|
4716
|
}
|
4735
|
4717
|
},
|
4736
|
4718
|
newAdviceGroupObject: function () {
|
|
@@ -4822,7 +4804,7 @@ export default {
|
4822
|
4804
|
"vascular_access_desc"
|
4823
|
4805
|
);
|
4824
|
4806
|
this.org_id = this.$store.getters.xt_user.org.id;
|
4825
|
|
-
|
|
4807
|
+
|
4826
|
4808
|
// this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
|
4827
|
4809
|
|
4828
|
4810
|
var bloodAccessParOpera = getDataConfig(
|