|
@@ -28,21 +28,24 @@
|
28
|
28
|
:info="info"
|
29
|
29
|
:paramsObj="paramsObj"
|
30
|
30
|
:balanceAccounts="balanceAccounts"
|
31
|
|
- v-if="
|
32
|
|
- org_id == 10138 || org_id == 4 || org_id == 10278
|
33
|
|
- "
|
|
31
|
+ v-if="org_id == 10138 || org_id == 4 || org_id == 10278"
|
34
|
32
|
></printThree>
|
35
|
33
|
<printFour
|
36
|
|
- v-if="org_id == 9504 || org_id == 10028 || org_id == 10088"
|
|
34
|
+ v-if="org_id == 9504 || org_id == 10028 || org_id == 10088"
|
37
|
35
|
:info="info"
|
38
|
36
|
:paramsObj="paramsObj"
|
39
|
37
|
:balanceAccounts="balanceAccounts"
|
40
|
38
|
></printFour>
|
41
|
|
-<!-- <privateChargePrint :info="info" v-if="org_id == 10215 && this.paramsObj.balance_accounts_type == 2"></privateChargePrint>-->
|
42
|
|
-
|
|
39
|
+ <!-- <privateChargePrint :info="info" v-if="org_id == 10215 && this.paramsObj.balance_accounts_type == 2"></privateChargePrint>-->
|
43
|
40
|
</div>
|
44
|
|
-<!-- <print-other :info="info" v-if="org_id == 9919"></print-other>-->
|
45
|
|
-<!-- <printOne :info=" info" v-if="org_id == 10215 && this.paramsObj.balance_accounts_type == 2"></printOne>-->
|
|
41
|
+ <!-- <print-other :info="info" v-if="org_id == 9919"></print-other>-->
|
|
42
|
+ <!-- <printOne :info=" info" v-if="org_id == 10215 && this.paramsObj.balance_accounts_type == 2"></printOne>-->
|
|
43
|
+ <printFive
|
|
44
|
+ v-if="org_id == 0"
|
|
45
|
+ :info="info"
|
|
46
|
+ :paramsObj="paramsObj"
|
|
47
|
+ :balanceAccounts="balanceAccounts"
|
|
48
|
+ ></printFive>
|
46
|
49
|
<printOne :info="info" v-else></printOne>
|
47
|
50
|
<!-- 测试医保环境下表格样式放开以下这条 -->
|
48
|
51
|
<!-- <testVue :info="info" v-else></testVue> -->
|
|
@@ -65,13 +68,14 @@ import privateChargePrint from "./statementTemplate/privateChargePrint";
|
65
|
68
|
import printTwo from "./statementTemplate/printTwo";
|
66
|
69
|
import printThree from "./statementTemplate/printThree";
|
67
|
70
|
import printFour from "./statementTemplate/printFour";
|
|
71
|
+import printFive from "./statementTemplate/printFive";
|
68
|
72
|
import testVue from "./statementTemplate/test";
|
69
|
73
|
import {
|
70
|
74
|
getAllDoctorList,
|
71
|
75
|
getAllHisPatientList,
|
72
|
76
|
getPrescriptionPrint,
|
73
|
77
|
} from "@/api/project/project";
|
74
|
|
-import { getPrivateExpenses,getPrivateExpensesOrder } from "@/api/his/his";
|
|
78
|
+import { getPrivateExpenses, getPrivateExpensesOrder } from "@/api/his/his";
|
75
|
79
|
// import PrintOther from '../hospitalStation/statementTemplate/printOther'
|
76
|
80
|
export default {
|
77
|
81
|
name: "dialysisPrintOrder",
|
|
@@ -83,6 +87,7 @@ export default {
|
83
|
87
|
printThree,
|
84
|
88
|
printFour,
|
85
|
89
|
testVue,
|
|
90
|
+ printFive,
|
86
|
91
|
},
|
87
|
92
|
props: {
|
88
|
93
|
paramsObj: Object,
|
|
@@ -115,7 +120,6 @@ export default {
|
115
|
120
|
|
116
|
121
|
if (
|
117
|
122
|
this.$store.getters.xt_user.org_id == 10138 ||
|
118
|
|
- // this.$store.getters.xt_user.org_id == 0 ||
|
119
|
123
|
this.$store.getters.xt_user.org_id == 4 ||
|
120
|
124
|
this.$store.getters.xt_user.org_id == 10278
|
121
|
125
|
) {
|
|
@@ -256,6 +260,18 @@ export default {
|
256
|
260
|
style: style,
|
257
|
261
|
scanStyles: false,
|
258
|
262
|
});
|
|
263
|
+ } else if (
|
|
264
|
+ this.$store.getters.xt_user.org_id == 0 ||
|
|
265
|
+ this.$store.getters.xt_user.org_id == 10191
|
|
266
|
+ ) {
|
|
267
|
+ const style =
|
|
268
|
+ "@media print {.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 14px;border-color: #000;} .statementTable thead{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;} .statementTable tbody{text-align:left;} .statementTable tbody .view_tr{text-align:center;border: 1px solid;} tbody .dashed_tr{border: 1px dashed;text-align:center} .list_table{width: 100%;margin-bottom: 100px;} tbody tr td div{height:25px;}}";
|
|
269
|
+ printJS({
|
|
270
|
+ printable: "statement-print",
|
|
271
|
+ type: "html",
|
|
272
|
+ style: style,
|
|
273
|
+ scanStyles: false,
|
|
274
|
+ });
|
259
|
275
|
} else {
|
260
|
276
|
const style =
|
261
|
277
|
"@media print {#statement-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table{border-collapse: collapse;text-align: center;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 57%;}}}";
|
|
@@ -363,8 +379,8 @@ export default {
|
363
|
379
|
let params = {
|
364
|
380
|
his_patient_id: obj.his_patient_id,
|
365
|
381
|
id: obj.order_id,
|
366
|
|
- order_id:obj.order_id,
|
367
|
|
- admin_user_id:this.$store.getters.xt_user.user.id,
|
|
382
|
+ order_id: obj.order_id,
|
|
383
|
+ admin_user_id: this.$store.getters.xt_user.user.id,
|
368
|
384
|
};
|
369
|
385
|
if (
|
370
|
386
|
this.org_id == 10138 ||
|
|
@@ -491,16 +507,14 @@ export default {
|
491
|
507
|
console.log(111, this.balanceAccounts);
|
492
|
508
|
}
|
493
|
509
|
});
|
494
|
|
- }else
|
495
|
|
- if (this.org_id == 10215 || this.org_id == 0) {
|
496
|
|
-
|
|
510
|
+ } else if (this.org_id == 10215 || this.org_id == 0) {
|
497
|
511
|
getPrivateExpensesOrder(params).then((response) => {
|
498
|
512
|
if (response.data.state == 0) {
|
499
|
513
|
// this.$message.error(response.data.msg)
|
500
|
514
|
|
501
|
515
|
return false;
|
502
|
516
|
} else {
|
503
|
|
- var that = this
|
|
517
|
+ var that = this;
|
504
|
518
|
that.info = response.data.data.info;
|
505
|
519
|
that.p_admin = response.data.data.printor_admin;
|
506
|
520
|
that.charge_admin = response.data.data.charge_admin;
|
|
@@ -521,62 +535,62 @@ export default {
|
521
|
535
|
|
522
|
536
|
that.info["bed_cost_total"] = response.data.data.bedCostTotal;
|
523
|
537
|
that.info["bed_cost_self_total"] =
|
524
|
|
- response.data.data.bedCostSelfTotal;
|
|
538
|
+ response.data.data.bedCostSelfTotal;
|
525
|
539
|
that.info["bed_cost_part_self_total"] =
|
526
|
|
- response.data.data.bedCostPartSelfTotal;
|
|
540
|
+ response.data.data.bedCostPartSelfTotal;
|
527
|
541
|
|
528
|
542
|
that.info["operation_cost_total"] =
|
529
|
|
- response.data.data.operationCostTotal;
|
|
543
|
+ response.data.data.operationCostTotal;
|
530
|
544
|
that.info["operation_cost_self_total"] =
|
531
|
|
- response.data.data.operationCostSelfTotal;
|
|
545
|
+ response.data.data.operationCostSelfTotal;
|
532
|
546
|
that.info["operation_cost_part_self_total"] =
|
533
|
|
- response.data.data.operationCostPartSelfTotal;
|
|
547
|
+ response.data.data.operationCostPartSelfTotal;
|
534
|
548
|
|
535
|
549
|
that.info["other_cost_total"] = response.data.data.otherCostTotal;
|
536
|
550
|
that.info["other_cost_self_total"] =
|
537
|
|
- response.data.data.otherCostSelfTotal;
|
|
551
|
+ response.data.data.otherCostSelfTotal;
|
538
|
552
|
that.info["other_cost_part_self_total"] =
|
539
|
|
- response.data.data.otherCostPartSelfTotal;
|
|
553
|
+ response.data.data.otherCostPartSelfTotal;
|
540
|
554
|
|
541
|
555
|
that.info["material_cost_total"] =
|
542
|
|
- response.data.data.materialCostTotal;
|
|
556
|
+ response.data.data.materialCostTotal;
|
543
|
557
|
that.info["material_cost_self_total"] =
|
544
|
|
- response.data.data.materialCostSelfTotal;
|
|
558
|
+ response.data.data.materialCostSelfTotal;
|
545
|
559
|
that.info["material_cost_part_self_total"] =
|
546
|
|
- response.data.data.materialCostPartSelfTotal;
|
|
560
|
+ response.data.data.materialCostPartSelfTotal;
|
547
|
561
|
|
548
|
562
|
that.info["western_medicine_cost_total"] =
|
549
|
|
- response.data.data.westernMedicineCostTotal;
|
|
563
|
+ response.data.data.westernMedicineCostTotal;
|
550
|
564
|
that.info["western_medicine_cost_self_total"] =
|
551
|
|
- response.data.data.westernMedicineCostSelfTotal;
|
|
565
|
+ response.data.data.westernMedicineCostSelfTotal;
|
552
|
566
|
that.info["western_medicine_cost_part_self_total"] =
|
553
|
|
- response.data.data.westernMedicineCostPartSelfTotal;
|
|
567
|
+ response.data.data.westernMedicineCostPartSelfTotal;
|
554
|
568
|
|
555
|
569
|
that.info["chinese_traditional_medicine_cost_total"] =
|
556
|
|
- response.data.data.chineseTraditionalMedicineCostTotal;
|
|
570
|
+ response.data.data.chineseTraditionalMedicineCostTotal;
|
557
|
571
|
that.info["chinese_traditional_medicine_cost_self_total"] =
|
558
|
|
- response.data.data.chineseTraditionalMedicineCostSelfTotal;
|
|
572
|
+ response.data.data.chineseTraditionalMedicineCostSelfTotal;
|
559
|
573
|
that.info["chinese_traditional_medicine_cost_part_self_total"] =
|
560
|
|
- response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
|
|
574
|
+ response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
|
561
|
575
|
|
562
|
576
|
that.info["check_cost_total"] = response.data.data.checkCostTotal;
|
563
|
577
|
that.info["check_cost_self_total"] =
|
564
|
|
- response.data.data.checkCostSelfTotal;
|
|
578
|
+ response.data.data.checkCostSelfTotal;
|
565
|
579
|
that.info["check_cost_part_self_total"] =
|
566
|
|
- response.data.data.checkCostPartSelfTotal;
|
|
580
|
+ response.data.data.checkCostPartSelfTotal;
|
567
|
581
|
|
568
|
582
|
that.info["laboratory_cost_total"] =
|
569
|
|
- response.data.data.laboratoryCostTotal;
|
|
583
|
+ response.data.data.laboratoryCostTotal;
|
570
|
584
|
that.info["laboratory_cost_self_total"] =
|
571
|
|
- response.data.data.laboratoryCostSelfTotal;
|
|
585
|
+ response.data.data.laboratoryCostSelfTotal;
|
572
|
586
|
that.info["laboratory_cost_part_self_total"] =
|
573
|
|
- response.data.data.laboratoryCostPartSelfTotal;
|
|
587
|
+ response.data.data.laboratoryCostPartSelfTotal;
|
574
|
588
|
|
575
|
589
|
that.info["treat_cost_total"] = response.data.data.treatCostTotal;
|
576
|
590
|
that.info["treat_cost_self_total"] =
|
577
|
|
- response.data.data.treatCostSelfTotal;
|
|
591
|
+ response.data.data.treatCostSelfTotal;
|
578
|
592
|
that.info["treat_cost_part_self_total"] =
|
579
|
|
- response.data.data.treatCostPartSelfTotal;
|
|
593
|
+ response.data.data.treatCostPartSelfTotal;
|
580
|
594
|
that.info["date"] = response.data.data.date;
|
581
|
595
|
// that.info["number"] = response.data.data.number;
|
582
|
596
|
that.info["order_infos"] = response.data.data.order_infos;
|
|
@@ -643,7 +657,6 @@ export default {
|
643
|
657
|
}
|
644
|
658
|
}
|
645
|
659
|
});
|
646
|
|
-
|
647
|
660
|
}
|
648
|
661
|
} else {
|
649
|
662
|
var that = this;
|