|
@@ -27,7 +27,7 @@
|
27
|
27
|
<div class="inline_block under_line" style="width:50px">{{ queryParams.xtdate.slice(8,11) }}</div>日
|
28
|
28
|
</div>
|
29
|
29
|
<div class="inline_block" style="margin-right:30px;">
|
30
|
|
- 机器编号
|
|
30
|
+ 机器编号
|
31
|
31
|
<div class="inline_block under_line" style="width:80px;">
|
32
|
32
|
{{ getNumber() }}
|
33
|
33
|
</div>
|
|
@@ -39,7 +39,7 @@
|
39
|
39
|
<div style="border-bottom: 2px solid #000;width:100%;"></div>
|
40
|
40
|
<div class="row">
|
41
|
41
|
<div class="inline_block" style="margin-right:30px;">
|
42
|
|
- 姓名
|
|
42
|
+ 姓名
|
43
|
43
|
<div class="inline_block under_line" style="width:100px;text-align: center;">
|
44
|
44
|
{{ patientInfo.name ? patientInfo.name : "" }}
|
45
|
45
|
</div>
|
|
@@ -59,7 +59,7 @@
|
59
|
59
|
</div>
|
60
|
60
|
<div class="row">
|
61
|
61
|
<div class="inline_block" style="margin-right:30px;">
|
62
|
|
- 血液净化方式
|
|
62
|
+ 血液净化方式
|
63
|
63
|
<div class="inline_block under_line" style="width:300px;text-align: center;">
|
64
|
64
|
<label-box :isChecked="prescription.mode_id == 1 ? true : false" showValue="HD"></label-box>
|
65
|
65
|
<label-box :isChecked="prescription.mode_id == 2 ? true : false" showValue="HDF"></label-box>
|
|
@@ -69,14 +69,14 @@
|
69
|
69
|
</div>
|
70
|
70
|
</div>
|
71
|
71
|
<div class="inline_block" style="margin-right:30px;">
|
72
|
|
- 血液净化器类型
|
|
72
|
+ 血液净化器类型
|
73
|
73
|
<div class="inline_block under_line" style="width:150px;text-align: center;">
|
74
|
74
|
{{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : ''}}
|
75
|
75
|
</div>
|
76
|
76
|
</div>
|
77
|
77
|
</div>
|
78
|
78
|
<div class="row">
|
79
|
|
- 血管通路
|
|
79
|
+ 血管通路
|
80
|
80
|
<div class="inline_block under_line" style="width:93%;text-align: left;">
|
81
|
81
|
<label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-左') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('内瘘-右') > -1 ? true : false" showValue="内瘘"></label-box>
|
82
|
82
|
(<label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-左') > -1 ? true : false" showValue="左"></label-box>
|
|
@@ -97,7 +97,7 @@
|
97
|
97
|
</div>
|
98
|
98
|
</div>
|
99
|
99
|
<div class="row">
|
100
|
|
- 抗凝药物
|
|
100
|
+ 抗凝药物
|
101
|
101
|
<div class="inline_block under_line" style="width:93%;text-align: left;">
|
102
|
102
|
<label-box :isChecked="prescription.anticoagulant == '普通肝素' ? true : false" showValue="普通肝素"></label-box>
|
103
|
103
|
<label-box :isChecked="prescription.anticoagulant == '低分子肝素钙' ? true : prescription.anticoagulant == '低分子肝素钠' ? true : false" showValue="低分子肝素"></label-box>
|
|
@@ -114,7 +114,7 @@
|
114
|
114
|
<span v-if="prescription.anticoagulant == '普通肝素'">iu</span>
|
115
|
115
|
<span v-if="prescription.anticoagulant == '无肝素'">mg</span>
|
116
|
116
|
<span v-if="prescription.anticoagulant == '低分子肝素钙'">iu</span>
|
117
|
|
- <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu</span>
|
|
117
|
+ <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu</span>
|
118
|
118
|
</div>
|
119
|
119
|
<div class="inline_block">
|
120
|
120
|
追加
|
|
@@ -127,7 +127,7 @@
|
127
|
127
|
<span v-if="prescription.anticoagulant == '普通肝素'">iu/h</span>
|
128
|
128
|
<span v-if="prescription.anticoagulant == '无肝素'">mg/h</span>
|
129
|
129
|
<span v-if="prescription.anticoagulant == '低分子肝素钙'">iu/h</span>
|
130
|
|
- <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu/h</span>
|
|
130
|
+ <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu/h</span>
|
131
|
131
|
</div>
|
132
|
132
|
<div class="inline_block">
|
133
|
133
|
总量
|
|
@@ -188,7 +188,7 @@
|
188
|
188
|
</div>
|
189
|
189
|
</div>
|
190
|
190
|
<div class="row">
|
191
|
|
- 透前评估
|
|
191
|
+ 透前评估
|
192
|
192
|
<div class="inline_block under_line" style="width:93%;text-align: left;">
|
193
|
193
|
<div class="inline_block" style="margin-right:30px;">
|
194
|
194
|
体温
|
|
@@ -209,7 +209,7 @@
|
209
|
209
|
{{ predialysis.pulse_frequency ? predialysis.pulse_frequency : "" }}
|
210
|
210
|
</div>次/分
|
211
|
211
|
</div>
|
212
|
|
-
|
|
212
|
+
|
213
|
213
|
</div>
|
214
|
214
|
</div>
|
215
|
215
|
|
|
@@ -276,7 +276,6 @@
|
276
|
276
|
<td width="100">症状处理</td>
|
277
|
277
|
</tr>
|
278
|
278
|
|
279
|
|
-
|
280
|
279
|
<tr v-for="monitor in monitors" :key="monitor.id">
|
281
|
280
|
<td>
|
282
|
281
|
{{getTime(monitor.operate_time,'{h}:{i}')}}
|
|
@@ -292,7 +291,7 @@
|
292
|
291
|
<td> {{monitor.dialysate_temperature ? monitor.dialysate_temperature : ''}}</td>
|
293
|
292
|
<td>
|
294
|
293
|
<span v-if="monitor.operate_time">
|
295
|
|
- {{ prescription.dialysate_flow ? prescription.dialysate_flow : "" }}
|
|
294
|
+ {{ monitor.dialysate_flow ? monitor.dialysate_flow : "" }}
|
296
|
295
|
</span>
|
297
|
296
|
</td>
|
298
|
297
|
<td> {{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:''}}</td>
|
|
@@ -341,6 +340,14 @@
|
341
|
340
|
</span>次/分
|
342
|
341
|
</div>
|
343
|
342
|
</td>
|
|
343
|
+ <td width="30" style="border:none;padding-left:5px">实际置换量:</td>
|
|
344
|
+ <td width="50" style="text-align:left;border:none;">
|
|
345
|
+ <div>
|
|
346
|
+ <span class="under_line" style="width:50px;display:inline-block">
|
|
347
|
+ {{ afterdialysis.actual_displacement ? afterdialysis.actual_displacement : "" }}
|
|
348
|
+ </span>L
|
|
349
|
+ </div>
|
|
350
|
+ </td>
|
344
|
351
|
<td width="50" style="border:none;padding-left:5px">透析器凝血:</td>
|
345
|
352
|
<td width="120" style="text-align:left;border:none;">
|
346
|
353
|
<label-box :isChecked="afterdialysis.cruor && afterdialysis.cruor.indexOf('透析器-0度') > -1 ? true : false" showValue="0"></label-box>
|
|
@@ -382,8 +389,7 @@
|
382
|
389
|
<img style="height:30px;" :src="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:prescription.creater))" alt="" srcset="">
|
383
|
390
|
</span>
|
384
|
391
|
</span>
|
385
|
|
-
|
386
|
|
-
|
|
392
|
+
|
387
|
393
|
</td>
|
388
|
394
|
</tr>
|
389
|
395
|
</table>
|
|
@@ -392,22 +398,22 @@
|
392
|
398
|
</template>
|
393
|
399
|
|
394
|
400
|
<script>
|
395
|
|
-import { getDialysisRecord, getPrintDialysisRecord } from "@/api/dialysis";
|
396
|
|
-import { getDataConfig } from "@/utils/data";
|
397
|
|
-import { jsGetAge, uParseTime } from "@/utils/tools";
|
398
|
|
-import LabelBox from "../printItem/LabelBox";
|
|
401
|
+import { getDialysisRecord, getPrintDialysisRecord } from '@/api/dialysis'
|
|
402
|
+import { getDataConfig } from '@/utils/data'
|
|
403
|
+import { jsGetAge, uParseTime } from '@/utils/tools'
|
|
404
|
+import LabelBox from '../printItem/LabelBox'
|
399
|
405
|
// import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
|
400
|
406
|
// import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
|
401
|
|
-import print from "print-js";
|
|
407
|
+import print from 'print-js'
|
402
|
408
|
|
403
|
409
|
export default {
|
404
|
|
- name: "dialysisPrintOrderOne",
|
|
410
|
+ name: 'dialysisPrintOrderOne',
|
405
|
411
|
components: {
|
406
|
412
|
// DialysisPrintOrderOne,
|
407
|
413
|
// DialysisPrintOrderTwo,
|
408
|
|
- LabelBox,
|
|
414
|
+ LabelBox
|
409
|
415
|
},
|
410
|
|
- data() {
|
|
416
|
+ data () {
|
411
|
417
|
return {
|
412
|
418
|
way_arr: [],
|
413
|
419
|
consciousness_arr: [],
|
|
@@ -419,8 +425,8 @@ export default {
|
419
|
425
|
nutrition_arr: [],
|
420
|
426
|
|
421
|
427
|
crumbs: [
|
422
|
|
- { path: false, name: "透析管理" },
|
423
|
|
- { path: false, name: "打印单" }
|
|
428
|
+ { path: false, name: '透析管理' },
|
|
429
|
+ { path: false, name: '打印单' }
|
424
|
430
|
],
|
425
|
431
|
operators: [],
|
426
|
432
|
adminUser: [],
|
|
@@ -431,22 +437,22 @@ export default {
|
431
|
437
|
Order: {},
|
432
|
438
|
operatorMaps: {},
|
433
|
439
|
complications: [
|
434
|
|
- "低血压",
|
435
|
|
- "高血压",
|
436
|
|
- "心律失常",
|
437
|
|
- "头晕",
|
438
|
|
- "头痛",
|
439
|
|
- "呕吐",
|
440
|
|
- "抽搐",
|
441
|
|
- "出血",
|
442
|
|
- "心衰",
|
443
|
|
- "腹痛",
|
444
|
|
- "无"
|
|
440
|
+ '低血压',
|
|
441
|
+ '高血压',
|
|
442
|
+ '心律失常',
|
|
443
|
+ '头晕',
|
|
444
|
+ '头痛',
|
|
445
|
+ '呕吐',
|
|
446
|
+ '抽搐',
|
|
447
|
+ '出血',
|
|
448
|
+ '心衰',
|
|
449
|
+ '腹痛',
|
|
450
|
+ '无'
|
445
|
451
|
],
|
446
|
452
|
jilurow: 0,
|
447
|
453
|
advice_jilurow: 0,
|
448
|
454
|
loading: false,
|
449
|
|
- orgname: "",
|
|
455
|
+ orgname: '',
|
450
|
456
|
patientInfo_gender_1: false,
|
451
|
457
|
patientInfo_gender_2: false,
|
452
|
458
|
patientInfo_source_2: false,
|
|
@@ -459,30 +465,30 @@ export default {
|
459
|
465
|
dialysateFormulationOptions: {},
|
460
|
466
|
|
461
|
467
|
queryParams: {
|
462
|
|
- xtdate: "",
|
463
|
|
- xtno: ""
|
|
468
|
+ xtdate: '',
|
|
469
|
+ xtno: ''
|
464
|
470
|
},
|
465
|
471
|
patientInfo: {
|
466
|
|
- birth: "",
|
467
|
|
- age: "",
|
|
472
|
+ birth: '',
|
|
473
|
+ age: '',
|
468
|
474
|
DialysisSchedule: {
|
469
|
|
- device_number: { number: "" },
|
470
|
|
- device_zone: { name: "" }
|
|
475
|
+ device_number: { number: '' },
|
|
476
|
+ device_zone: { name: '' }
|
471
|
477
|
},
|
472
|
478
|
gender: 0
|
473
|
479
|
},
|
474
|
480
|
predialysis: {
|
475
|
|
- score: "",
|
476
|
|
- internal_fistula: "",
|
477
|
|
- internal_fistula_skin: "",
|
478
|
|
- catheter: "",
|
479
|
|
- blood_access_part_opera_name: ""
|
|
481
|
+ score: '',
|
|
482
|
+ internal_fistula: '',
|
|
483
|
+ internal_fistula_skin: '',
|
|
484
|
+ catheter: '',
|
|
485
|
+ blood_access_part_opera_name: ''
|
480
|
486
|
},
|
481
|
487
|
afterdialysis: {
|
482
|
|
- complications_index: ""
|
|
488
|
+ complications_index: ''
|
483
|
489
|
},
|
484
|
490
|
prescription: {
|
485
|
|
- dialysate_formulation_name: "",
|
|
491
|
+ dialysate_formulation_name: '',
|
486
|
492
|
device: {}
|
487
|
493
|
},
|
488
|
494
|
advices: [],
|
|
@@ -498,171 +504,171 @@ export default {
|
498
|
504
|
|
499
|
505
|
AlPanel: {
|
500
|
506
|
id: 0,
|
501
|
|
- name: "",
|
|
507
|
+ name: '',
|
502
|
508
|
type: 1,
|
503
|
509
|
shouji: 2,
|
504
|
510
|
weichi: 2,
|
505
|
511
|
zongliang: 2,
|
506
|
512
|
gaimingcheng: -1,
|
507
|
513
|
gaijiliang: -1,
|
508
|
|
- shouji_unit: "mg",
|
509
|
|
- weichi_unit: "mg/h",
|
510
|
|
- zongliang_unit: "mg",
|
511
|
|
- gaimingcheng_unit: "",
|
512
|
|
- gaijiliang_unit: ""
|
|
514
|
+ shouji_unit: 'mg',
|
|
515
|
+ weichi_unit: 'mg/h',
|
|
516
|
+ zongliang_unit: 'mg',
|
|
517
|
+ gaimingcheng_unit: '',
|
|
518
|
+ gaijiliang_unit: ''
|
513
|
519
|
},
|
514
|
|
- total: "",
|
|
520
|
+ total: '',
|
515
|
521
|
doctorForm: {
|
516
|
|
- doctor: "",
|
517
|
|
- url: ""
|
|
522
|
+ doctor: '',
|
|
523
|
+ url: ''
|
518
|
524
|
},
|
519
|
525
|
dialysisDoctor: {
|
520
|
|
- doctor: "",
|
521
|
|
- url: ""
|
|
526
|
+ doctor: '',
|
|
527
|
+ url: ''
|
522
|
528
|
},
|
523
|
529
|
tableAdvice: [],
|
524
|
530
|
assessmentafter: {},
|
525
|
531
|
orderForm: {
|
526
|
|
- start_nurse: "",
|
527
|
|
- url: ""
|
|
532
|
+ start_nurse: '',
|
|
533
|
+ url: ''
|
528
|
534
|
},
|
529
|
535
|
finshForm: {
|
530
|
|
- finish_nurse: "",
|
531
|
|
- url: ""
|
|
536
|
+ finish_nurse: '',
|
|
537
|
+ url: ''
|
532
|
538
|
},
|
533
|
539
|
displaceLiquiPartOptions: []
|
534
|
|
- };
|
|
540
|
+ }
|
535
|
541
|
},
|
536
|
542
|
methods: {
|
537
|
|
- getNewAge(UUserCard) {
|
|
543
|
+ getNewAge (UUserCard) {
|
538
|
544
|
if (UUserCard != null && UUserCard != '') {
|
539
|
|
- //获取年龄
|
540
|
|
- var myDate = new Date();
|
541
|
|
- var month = myDate.getMonth() + 1;
|
542
|
|
- var day = myDate.getDate();
|
543
|
|
- var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1;
|
|
545
|
+ // 获取年龄
|
|
546
|
+ var myDate = new Date()
|
|
547
|
+ var month = myDate.getMonth() + 1
|
|
548
|
+ var day = myDate.getDate()
|
|
549
|
+ var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1
|
544
|
550
|
if (UUserCard.substring(10, 12) < month || UUserCard.substring(10, 12) == month && UUserCard.substring(12, 14) <= day) {
|
545
|
|
- age++;
|
|
551
|
+ age++
|
546
|
552
|
}
|
547
|
|
- return age;
|
|
553
|
+ return age
|
548
|
554
|
}
|
549
|
555
|
},
|
550
|
|
- getDisplaceLiquiPart: function(val) {
|
551
|
|
- let displace_liqui_part_name = "/";
|
552
|
|
- const displace_liqui_part = this.displaceLiquiPartOptions;
|
|
556
|
+ getDisplaceLiquiPart: function (val) {
|
|
557
|
+ let displace_liqui_part_name = '/'
|
|
558
|
+ const displace_liqui_part = this.displaceLiquiPartOptions
|
553
|
559
|
for (let i = 0; i < displace_liqui_part.length; i++) {
|
554
|
560
|
if (displace_liqui_part[i].id == val) {
|
555
|
|
- displace_liqui_part_name = displace_liqui_part[i].name;
|
|
561
|
+ displace_liqui_part_name = displace_liqui_part[i].name
|
556
|
562
|
}
|
557
|
563
|
}
|
558
|
|
- return displace_liqui_part_name;
|
|
564
|
+ return displace_liqui_part_name
|
559
|
565
|
},
|
560
|
|
- getAdminUser(id) {
|
|
566
|
+ getAdminUser (id) {
|
561
|
567
|
if (id == 0) {
|
562
|
|
- return "";
|
|
568
|
+ return ''
|
563
|
569
|
}
|
564
|
570
|
if (id == undefined) {
|
565
|
|
- return "";
|
|
571
|
+ return ''
|
566
|
572
|
}
|
567
|
573
|
for (let i = 0; i < this.adminUser.length; i++) {
|
568
|
574
|
if (this.adminUser[i].id == id) {
|
569
|
|
- return this.adminUser[i].name;
|
|
575
|
+ return this.adminUser[i].name
|
570
|
576
|
}
|
571
|
577
|
}
|
572
|
578
|
},
|
573
|
|
- getTime(value, temp) {
|
|
579
|
+ getTime (value, temp) {
|
574
|
580
|
if (value == 0) {
|
575
|
|
- return "";
|
|
581
|
+ return ''
|
576
|
582
|
}
|
577
|
583
|
if (value != undefined) {
|
578
|
|
- return uParseTime(value, temp);
|
|
584
|
+ return uParseTime(value, temp)
|
579
|
585
|
}
|
580
|
|
- return "";
|
|
586
|
+ return ''
|
581
|
587
|
},
|
582
|
|
- printThisPage() {
|
583
|
|
- var ptime = Math.round(new Date().getTime() / 1000);
|
584
|
|
- this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
|
|
588
|
+ printThisPage () {
|
|
589
|
+ var ptime = Math.round(new Date().getTime() / 1000)
|
|
590
|
+ this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
|
585
|
591
|
|
586
|
592
|
const style =
|
587
|
|
- '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:left;border-collapse:collapse;font-size:14px} .dialysis-print-order .under_line {display: inline-block;border-bottom: 1px solid #999;text-align:left;white-space: nowrap;width: 50%;} .dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
|
|
593
|
+ '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:left;border-collapse:collapse;font-size:14px} .dialysis-print-order .under_line {display: inline-block;border-bottom: 1px solid #999;text-align:left;white-space: nowrap;width: 50%;} .dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}'
|
588
|
594
|
|
589
|
595
|
if (this.org_template_info.template_id == 1) {
|
590
|
596
|
printJS({
|
591
|
|
- printable: "dialysis-print-box",
|
592
|
|
- type: "html",
|
|
597
|
+ printable: 'dialysis-print-box',
|
|
598
|
+ type: 'html',
|
593
|
599
|
style: style,
|
594
|
600
|
scanStyles: false
|
595
|
|
- });
|
|
601
|
+ })
|
596
|
602
|
} else if (
|
597
|
603
|
this.org_template_info.template_id == 2 ||
|
598
|
604
|
this.org_template_info.template_id == 0
|
599
|
605
|
) {
|
600
|
606
|
printJS({
|
601
|
|
- printable: "dialysis-print-box-1",
|
602
|
|
- type: "html",
|
|
607
|
+ printable: 'dialysis-print-box-1',
|
|
608
|
+ type: 'html',
|
603
|
609
|
style: style,
|
604
|
610
|
scanStyles: false
|
605
|
|
- });
|
|
611
|
+ })
|
606
|
612
|
}
|
607
|
613
|
},
|
608
|
|
- getNumber() {
|
|
614
|
+ getNumber () {
|
609
|
615
|
if (this.dialysisOrder != null) {
|
610
|
|
- if(this.patientInfo.DialysisSchedule.device_zone.name.indexOf("区") > -1){
|
|
616
|
+ if (this.patientInfo.DialysisSchedule.device_zone.name.indexOf('区') > -1) {
|
611
|
617
|
return (
|
612
|
618
|
this.patientInfo.DialysisSchedule.device_zone.name +
|
613
|
619
|
this.dialysisOrder.DeviceNumber.number
|
614
|
|
- );
|
|
620
|
+ )
|
615
|
621
|
} else {
|
616
|
622
|
return (
|
617
|
|
- this.patientInfo.DialysisSchedule.device_zone.name + "区" +
|
|
623
|
+ this.patientInfo.DialysisSchedule.device_zone.name + '区' +
|
618
|
624
|
this.dialysisOrder.DeviceNumber.number
|
619
|
|
- );
|
|
625
|
+ )
|
620
|
626
|
}
|
621
|
627
|
} else {
|
622
|
628
|
return (
|
623
|
629
|
this.patientInfo.DialysisSchedule.device_zone.name +
|
624
|
630
|
this.patientInfo.DialysisSchedule.device_number.number
|
625
|
|
- );
|
|
631
|
+ )
|
626
|
632
|
}
|
627
|
633
|
},
|
628
|
634
|
|
629
|
|
- getXuserName(id) {
|
|
635
|
+ getXuserName (id) {
|
630
|
636
|
if (id <= 0) {
|
631
|
|
- return "";
|
|
637
|
+ return ''
|
632
|
638
|
}
|
633
|
|
- var name = "";
|
634
|
|
- if (this.users == null || typeof this.users.length === "undefined") {
|
635
|
|
- return name;
|
|
639
|
+ var name = ''
|
|
640
|
+ if (this.users == null || typeof this.users.length === 'undefined') {
|
|
641
|
+ return name
|
636
|
642
|
}
|
637
|
|
- var leng = this.users.length;
|
|
643
|
+ var leng = this.users.length
|
638
|
644
|
if (leng == 0) {
|
639
|
|
- return name;
|
|
645
|
+ return name
|
640
|
646
|
}
|
641
|
647
|
for (let index = 0; index < leng; index++) {
|
642
|
648
|
if (this.users[index].id == id) {
|
643
|
|
- name = this.users[index].name;
|
644
|
|
- break;
|
|
649
|
+ name = this.users[index].name
|
|
650
|
+ break
|
645
|
651
|
}
|
646
|
652
|
}
|
647
|
|
- return name;
|
|
653
|
+ return name
|
648
|
654
|
},
|
649
|
|
- setAdminUserES(id) {
|
|
655
|
+ setAdminUserES (id) {
|
650
|
656
|
if (id == 0) {
|
651
|
|
- return "";
|
|
657
|
+ return ''
|
652
|
658
|
}
|
653
|
659
|
if (id in this.operatorMaps) {
|
654
|
|
- return this.operatorMaps[id].url;
|
|
660
|
+ return this.operatorMaps[id].url
|
655
|
661
|
} else {
|
656
|
|
- return "";
|
|
662
|
+ return ''
|
657
|
663
|
}
|
658
|
664
|
},
|
659
|
|
- modeName(mode_id) {
|
660
|
|
- return typeof this.modeOptions[mode_id] !== "undefined" &&
|
661
|
|
- typeof this.modeOptions[mode_id].name !== "undefined"
|
|
665
|
+ modeName (mode_id) {
|
|
666
|
+ return typeof this.modeOptions[mode_id] !== 'undefined' &&
|
|
667
|
+ typeof this.modeOptions[mode_id].name !== 'undefined'
|
662
|
668
|
? this.modeOptions[mode_id].name
|
663
|
|
- : "";
|
|
669
|
+ : ''
|
664
|
670
|
},
|
665
|
|
- getDialysisRecord () {
|
|
671
|
+ getDialysisRecord () {
|
666
|
672
|
getPrintDialysisRecord(this.queryParams).then(response => {
|
667
|
673
|
if (response.data.state == 1) {
|
668
|
674
|
var dialysisorder = response.data.data.dialysisOrder
|
|
@@ -757,27 +763,27 @@ export default {
|
757
|
763
|
this.afterdialysis.complications_other = this.afterdialysis.complications_other.join(
|
758
|
764
|
','
|
759
|
765
|
)
|
760
|
|
- this.prescription = response.data.data.dialysisPrescription
|
|
766
|
+ this.prescription = response.data.data.dialysisPrescription
|
761
|
767
|
if (this.prescription.anticoagulant === 1) {
|
762
|
|
- this.prescription.anticoagulant = "无肝素";
|
|
768
|
+ this.prescription.anticoagulant = '无肝素'
|
763
|
769
|
}
|
764
|
770
|
if (this.prescription.anticoagulant === 2) {
|
765
|
|
- this.prescription.anticoagulant = "普通肝素";
|
|
771
|
+ this.prescription.anticoagulant = '普通肝素'
|
766
|
772
|
}
|
767
|
773
|
if (this.prescription.anticoagulant === 3) {
|
768
|
|
- this.prescription.anticoagulant = "低分子肝素";
|
|
774
|
+ this.prescription.anticoagulant = '低分子肝素'
|
769
|
775
|
}
|
770
|
776
|
if (this.prescription.anticoagulant === 4) {
|
771
|
|
- this.prescription.anticoagulant = "阿加曲班";
|
|
777
|
+ this.prescription.anticoagulant = '阿加曲班'
|
772
|
778
|
}
|
773
|
779
|
if (this.prescription.anticoagulant === 5) {
|
774
|
|
- this.prescription.anticoagulant = "枸橼酸钠";
|
|
780
|
+ this.prescription.anticoagulant = '枸橼酸钠'
|
775
|
781
|
}
|
776
|
782
|
if (this.prescription.anticoagulant == 6) {
|
777
|
|
- this.prescription.anticoagulant = "低分子肝素钙";
|
|
783
|
+ this.prescription.anticoagulant = '低分子肝素钙'
|
778
|
784
|
}
|
779
|
785
|
if (this.prescription.anticoagulant == 7) {
|
780
|
|
- this.prescription.anticoagulant = "低分子肝素钠";
|
|
786
|
+ this.prescription.anticoagulant = '低分子肝素钠'
|
781
|
787
|
}
|
782
|
788
|
|
783
|
789
|
var receiverTreatmentAccess =
|
|
@@ -1014,43 +1020,43 @@ export default {
|
1014
|
1020
|
}
|
1015
|
1021
|
})
|
1016
|
1022
|
},
|
1017
|
|
- bloodAccessParOperaName(id) {
|
|
1023
|
+ bloodAccessParOperaName (id) {
|
1018
|
1024
|
if (id in this.bloodAccessParOpera) {
|
1019
|
|
- return this.bloodAccessParOpera[id].name;
|
|
1025
|
+ return this.bloodAccessParOpera[id].name
|
1020
|
1026
|
}
|
1021
|
|
- return "";
|
|
1027
|
+ return ''
|
1022
|
1028
|
},
|
1023
|
|
- dialysateFormulationName(id) {
|
|
1029
|
+ dialysateFormulationName (id) {
|
1024
|
1030
|
if (id in this.dialysateFormulationOptions) {
|
1025
|
|
- return this.dialysateFormulationOptions[id].name;
|
|
1031
|
+ return this.dialysateFormulationOptions[id].name
|
1026
|
1032
|
}
|
1027
|
|
- return "";
|
|
1033
|
+ return ''
|
1028
|
1034
|
},
|
1029
|
|
- getAge: function(val) {
|
|
1035
|
+ getAge: function (val) {
|
1030
|
1036
|
if (val.birthday != 0) {
|
1031
|
|
- return jsGetAge(val.birth, "-");
|
|
1037
|
+ return jsGetAge(val.birth, '-')
|
1032
|
1038
|
}
|
1033
|
|
- return "";
|
|
1039
|
+ return ''
|
1034
|
1040
|
},
|
1035
|
|
- checkIdCardNo(val) {
|
1036
|
|
- var thisLen = val.length;
|
1037
|
|
- var birth = "";
|
|
1041
|
+ checkIdCardNo (val) {
|
|
1042
|
+ var thisLen = val.length
|
|
1043
|
+ var birth = ''
|
1038
|
1044
|
if (thisLen == 15) {
|
1039
|
|
- birth = "19" + val.substr(6, 6);
|
|
1045
|
+ birth = '19' + val.substr(6, 6)
|
1040
|
1046
|
} else {
|
1041
|
|
- birth = val.substr(6, 8);
|
|
1047
|
+ birth = val.substr(6, 8)
|
1042
|
1048
|
}
|
1043
|
1049
|
var birthTwo =
|
1044
|
1050
|
birth.substr(0, 4) +
|
1045
|
|
- "-" +
|
|
1051
|
+ '-' +
|
1046
|
1052
|
birth.substr(4, 2) +
|
1047
|
|
- "-" +
|
1048
|
|
- birth.substr(6, 2);
|
|
1053
|
+ '-' +
|
|
1054
|
+ birth.substr(6, 2)
|
1049
|
1055
|
|
1050
|
|
- var age = jsGetAge(birthTwo, "-");
|
1051
|
|
- return age;
|
|
1056
|
+ var age = jsGetAge(birthTwo, '-')
|
|
1057
|
+ return age
|
1052
|
1058
|
},
|
1053
|
|
- newAdviceGroupObject: function() {
|
|
1059
|
+ newAdviceGroupObject: function () {
|
1054
|
1060
|
return Object.assign(
|
1055
|
1061
|
{},
|
1056
|
1062
|
{
|
|
@@ -1062,110 +1068,108 @@ export default {
|
1062
|
1068
|
// exec_time: 0,
|
1063
|
1069
|
// checker: 0,
|
1064
|
1070
|
}
|
1065
|
|
- );
|
|
1071
|
+ )
|
1066
|
1072
|
},
|
1067
|
|
- getPartName(id) {
|
|
1073
|
+ getPartName (id) {
|
1068
|
1074
|
for (let i = 0; i < this.vascularAccess.length; i++) {
|
1069
|
1075
|
if (this.vascularAccess[i].id == id) {
|
1070
|
|
- return this.vascularAccess[i].name;
|
|
1076
|
+ return this.vascularAccess[i].name
|
1071
|
1077
|
}
|
1072
|
1078
|
}
|
1073
|
1079
|
}
|
1074
|
1080
|
},
|
1075
|
1081
|
watch: {
|
1076
|
|
- "patientInfo.gender": function() {
|
|
1082
|
+ 'patientInfo.gender': function () {
|
1077
|
1083
|
if (this.patientInfo.gender == 1) {
|
1078
|
|
- this.patientInfo_gender_1 = true;
|
1079
|
|
- this.patientInfo_gender_2 = false;
|
|
1084
|
+ this.patientInfo_gender_1 = true
|
|
1085
|
+ this.patientInfo_gender_2 = false
|
1080
|
1086
|
} else if (this.patientInfo.gender == 2) {
|
1081
|
|
- this.patientInfo_gender_2 = true;
|
1082
|
|
- this.patientInfo_gender_1 = false;
|
|
1087
|
+ this.patientInfo_gender_2 = true
|
|
1088
|
+ this.patientInfo_gender_1 = false
|
1083
|
1089
|
} else {
|
1084
|
|
- this.patientInfo_gender_2 = false;
|
1085
|
|
- this.patientInfo_gender_1 = false;
|
|
1090
|
+ this.patientInfo_gender_2 = false
|
|
1091
|
+ this.patientInfo_gender_1 = false
|
1086
|
1092
|
}
|
1087
|
1093
|
},
|
1088
|
|
- "patientInfo.source": function() {
|
|
1094
|
+ 'patientInfo.source': function () {
|
1089
|
1095
|
if (this.patientInfo.source == 1) {
|
1090
|
|
- this.patientInfo_source_1 = true;
|
1091
|
|
- this.patientInfo_source_2 = false;
|
|
1096
|
+ this.patientInfo_source_1 = true
|
|
1097
|
+ this.patientInfo_source_2 = false
|
1092
|
1098
|
} else if (this.patientInfo.source == 2) {
|
1093
|
|
- this.patientInfo_source_2 = true;
|
1094
|
|
- this.patientInfo_source_1 = false;
|
|
1099
|
+ this.patientInfo_source_2 = true
|
|
1100
|
+ this.patientInfo_source_1 = false
|
1095
|
1101
|
} else {
|
1096
|
|
- this.patientInfo_source_2 = false;
|
1097
|
|
- this.patientInfo_source_1 = false;
|
|
1102
|
+ this.patientInfo_source_2 = false
|
|
1103
|
+ this.patientInfo_source_1 = false
|
1098
|
1104
|
}
|
1099
|
1105
|
}
|
1100
|
1106
|
},
|
1101
|
|
- created() {
|
1102
|
|
-
|
1103
|
|
- var xtuser = this.$store.getters.user;
|
1104
|
|
- this.orgname = xtuser.org.org_name;
|
|
1107
|
+ created () {
|
|
1108
|
+ var xtuser = this.$store.getters.user
|
|
1109
|
+ this.orgname = xtuser.org.org_name
|
1105
|
1110
|
// this.orgname = "遂溪方济医院";
|
1106
|
|
- this.modeOptions = this.$store.getters.treatment_mode;
|
1107
|
|
- this.replacementWays = this.$store.getters.replacement_ways;
|
1108
|
|
- this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
|
1109
|
|
- this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
|
1110
|
|
-
|
1111
|
|
- this.way_arr = getDataConfig("hemodialysis", "way");
|
1112
|
|
- this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
|
1113
|
|
- this.appetite_arr = getDataConfig("hemodialysis", "appetite");
|
1114
|
|
- this.posture_arr = getDataConfig("hemodialysis", "posture");
|
1115
|
|
- this.sick_condition_arr = getDataConfig("hemodialysis", "sick_condition");
|
1116
|
|
- this.precaution_arr = getDataConfig("hemodialysis", "precaution");
|
1117
|
|
- this.intake_arr = getDataConfig("hemodialysis", "intake");
|
1118
|
|
- this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
|
1119
|
|
- this.displaceLiquiPartOptions = this.$store.getters.displace_liqui;
|
|
1111
|
+ this.modeOptions = this.$store.getters.treatment_mode
|
|
1112
|
+ this.replacementWays = this.$store.getters.replacement_ways
|
|
1113
|
+ this.perfusionApparatus = this.$store.getters.perfusion_apparatus
|
|
1114
|
+ this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
|
|
1115
|
+
|
|
1116
|
+ this.way_arr = getDataConfig('hemodialysis', 'way')
|
|
1117
|
+ this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
|
|
1118
|
+ this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
|
|
1119
|
+ this.posture_arr = getDataConfig('hemodialysis', 'posture')
|
|
1120
|
+ this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
|
|
1121
|
+ this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
|
|
1122
|
+ this.intake_arr = getDataConfig('hemodialysis', 'intake')
|
|
1123
|
+ this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
|
|
1124
|
+ this.displaceLiquiPartOptions = this.$store.getters.displace_liqui
|
1120
|
1125
|
// this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
|
1121
|
|
- var vascularAccess = getDataConfig("hemodialysis", "vascular_access");
|
1122
|
|
- this.vascularAccess = vascularAccess;
|
1123
|
|
- //console.log("hhe", vascularAccess);
|
|
1126
|
+ var vascularAccess = getDataConfig('hemodialysis', 'vascular_access')
|
|
1127
|
+ this.vascularAccess = vascularAccess
|
|
1128
|
+ // console.log("hhe", vascularAccess);
|
1124
|
1129
|
console.log(
|
1125
|
|
- "血管通路部位",
|
1126
|
|
- getDataConfig("hemodialysis", "vascular_access")
|
1127
|
|
- );
|
|
1130
|
+ '血管通路部位',
|
|
1131
|
+ getDataConfig('hemodialysis', 'vascular_access')
|
|
1132
|
+ )
|
1128
|
1133
|
|
1129
|
1134
|
this.precautions = getDataConfig('hemodialysis', 'precaution')
|
1130
|
1135
|
|
1131
|
1136
|
var bloodAccessParOpera = getDataConfig(
|
1132
|
|
- "hemodialysis",
|
1133
|
|
- "vascular_access_desc"
|
1134
|
|
- );
|
|
1137
|
+ 'hemodialysis',
|
|
1138
|
+ 'vascular_access_desc'
|
|
1139
|
+ )
|
1135
|
1140
|
for (var key in bloodAccessParOpera) {
|
1136
|
1141
|
this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
|
1137
|
|
- bloodAccessParOpera[key];
|
|
1142
|
+ bloodAccessParOpera[key]
|
1138
|
1143
|
}
|
1139
|
1144
|
|
1140
|
1145
|
var dialysateFormulationOptions = getDataConfig(
|
1141
|
|
- "hemodialysis",
|
1142
|
|
- "dialysate_formulation"
|
1143
|
|
- );
|
|
1146
|
+ 'hemodialysis',
|
|
1147
|
+ 'dialysate_formulation'
|
|
1148
|
+ )
|
1144
|
1149
|
for (var key in dialysateFormulationOptions) {
|
1145
|
1150
|
this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
|
1146
|
|
- dialysateFormulationOptions[key];
|
|
1151
|
+ dialysateFormulationOptions[key]
|
1147
|
1152
|
}
|
1148
|
1153
|
|
1149
|
|
- const xtdate = this.$route.query && this.$route.query.xtdate;
|
1150
|
|
- const xtno = this.$route.query && this.$route.query.xtno;
|
|
1154
|
+ const xtdate = this.$route.query && this.$route.query.xtdate
|
|
1155
|
+ const xtno = this.$route.query && this.$route.query.xtno
|
1151
|
1156
|
if (
|
1152
|
|
- typeof xtdate === "string" &&
|
|
1157
|
+ typeof xtdate === 'string' &&
|
1153
|
1158
|
xtdate.length > 0 &&
|
1154
|
|
- typeof xtno === "string" &&
|
|
1159
|
+ typeof xtno === 'string' &&
|
1155
|
1160
|
xtno.length > 0
|
1156
|
1161
|
) {
|
1157
|
|
- this.queryParams.xtdate = xtdate;
|
1158
|
|
- this.queryParams.xtno = xtno;
|
1159
|
|
- this.getDialysisRecord();
|
|
1162
|
+ this.queryParams.xtdate = xtdate
|
|
1163
|
+ this.queryParams.xtno = xtno
|
|
1164
|
+ this.getDialysisRecord()
|
1160
|
1165
|
} else {
|
1161
|
|
- this.$message.error("参数不齐");
|
1162
|
|
- return false;
|
|
1166
|
+ this.$message.error('参数不齐')
|
|
1167
|
+ return false
|
1163
|
1168
|
}
|
1164
|
1169
|
}
|
1165
|
|
-};
|
|
1170
|
+}
|
1166
|
1171
|
</script>
|
1167
|
1172
|
|
1168
|
|
-
|
1169
|
1173
|
<style>
|
1170
|
1174
|
.print_page_main_content {
|
1171
|
1175
|
background-color: white;
|