|
@@ -2,7 +2,7 @@
|
2
|
2
|
<div class="main-contain">
|
3
|
3
|
<div class="position">
|
4
|
4
|
<bread-crumb :crumbs="crumbs"></bread-crumb>
|
5
|
|
- <template v-if="org_template_info.template_id == 25">
|
|
5
|
+ <template>
|
6
|
6
|
<el-button
|
7
|
7
|
:loading="loading"
|
8
|
8
|
size="small"
|
|
@@ -34,12 +34,8 @@
|
34
|
34
|
</el-table>
|
35
|
35
|
</div>
|
36
|
36
|
|
37
|
|
- <div class='dialysisPage' style="height: calc(100vh - 178px);overflow-x:auto;::-webkit-scrollbar:height:15px">
|
38
|
|
- <DialysisPrintOrderOne
|
39
|
|
- v-bind:childResponse="childResponse"
|
40
|
|
- v-if="org_template_info.template_id == 1"
|
41
|
|
- >
|
42
|
|
- </DialysisPrintOrderOne>
|
|
37
|
+ <div class='dialysisPage' style="flex: 1;height: calc(100vh - 178px);overflow-x:auto;::-webkit-scrollbar:height:15px">
|
|
38
|
+ <printOne v-bind:childResponse="childResponse"></printOne>
|
43
|
39
|
</div>
|
44
|
40
|
</el-container>
|
45
|
41
|
</div>
|
|
@@ -58,63 +54,13 @@ import { getDataConfig } from "@/utils/data";
|
58
|
54
|
import { jsGetAge, uParseTime } from "@/utils/tools";
|
59
|
55
|
// import LabelBox from "./printItem/LabelBox";
|
60
|
56
|
import BreadCrumb from "@/xt_pages/components/bread-crumb";
|
61
|
|
-// import DialysisPrintOrderOne from "./template/dialysisPrintOrderOne";
|
62
|
|
-// import DialysisPrintOrderTwo from "./template/dialysisPrintOrderTwo";
|
63
|
|
-// import DialysisPrintOrderThree from "./template/dialysisPrintOrderThree";
|
64
|
|
-// import DialysisPrintOrderFour from "./template/DialysisPrintOrderFour";
|
65
|
|
-// import DialysisPrintOrderFive from "./template/DialysisPrintOrderFive";
|
66
|
|
-// import DialysisPrintOrderSix from "./template/DialysisPrintOrderSix";
|
67
|
|
-// import DialysisPrintOrderSeven from "./template/DialysisPrintOrderSeven";
|
68
|
|
-// import DialysisPrintOrderEight from "./template/DialysisPrintOrderEight";
|
69
|
|
-// import DialysisPrintOrderNine from "./template/DialysisPrintOrderNine";
|
70
|
57
|
import print from "print-js";
|
71
|
|
-// import DialysisPrintOrderTen from "./template/DialysisPrintOrderTen";
|
72
|
|
-// import DialysisPrintOrderEleven from "./template/DialysisPrintOrderEleven";
|
73
|
|
-// import DialysisPrintOrderTwelve from "./template/DialysisPrintOrderTwelve";
|
74
|
|
-// import DialysisPrintOrderThirteen from "./template/DialysisPrintOrderThirteen";
|
75
|
|
-// import DialysisPrintOrderFourteen from "./template/DialysisPrintOrderFourteen";
|
76
|
|
-// import DialysisPrintOrderFifteen from "./template/DialysisPrintOrderFifteen";
|
77
|
|
-// import DialysisPrintOrderSixteen from "./template/DialysisPrintOrderSixteen";
|
78
|
|
-// import DialysisPrintOrderSeventeen from "./template/DialysisPrintOrderSeventeen";
|
79
|
|
-// import DialysisPrintOrderEighteen from "./template/DialysisPrintOrderEighteen";
|
80
|
|
-// import DialysisPrintOrderNineteen from "./template/DialysisPrintOrderNineteen";
|
81
|
|
-// import DialysisPrintOrderTwenty from "./template/DialysisPrintOrderTwenty";
|
82
|
|
-// import DialysisPrintOrderTwentyOne from "./template/DialysisPrintOrderTwentyOne";
|
83
|
|
-// import DialysisPrintOrderTwentyTwo from "./template/DialysisPrintOrderTwentyTwo";
|
84
|
|
-// import DialysisPrintOrderTwentyThree from "./template/DialysisPrintOrderTwentyThree";
|
85
|
|
-// import DialysisPrintOrderTwentyFour from "./template/DialysisPrintOrderTwentyFour";
|
86
|
|
-// import DialysisPrintOrderTwentyFive from "./template/DialysisPrintOrderTwentyFive";
|
|
58
|
+import printOne from "./template/printOne"
|
87
|
59
|
export default {
|
88
|
60
|
name: "dialysisPrintOrder",
|
89
|
61
|
components: {
|
90
|
|
- // DialysisPrintOrderTwentyFive,
|
91
|
|
- // DialysisPrintOrderTwentyFour,
|
92
|
|
- // DialysisPrintOrderTwentyThree,
|
93
|
|
- // DialysisPrintOrderTwentyTwo,
|
94
|
|
- // DialysisPrintOrderTwentyOne,
|
95
|
|
- // DialysisPrintOrderTwenty,
|
96
|
|
- // DialysisPrintOrderNineteen,
|
97
|
|
- // DialysisPrintOrderEighteen,
|
98
|
|
- // DialysisPrintOrderSeventeen,
|
99
|
|
- // DialysisPrintOrderSixteen,
|
100
|
|
- // DialysisPrintOrderFifteen,
|
101
|
|
- // DialysisPrintOrderFourteen,
|
102
|
|
- // DialysisPrintOrderThirteen,
|
103
|
|
- // DialysisPrintOrderTwelve,
|
104
|
|
- // DialysisPrintOrderEleven,
|
105
|
|
- // DialysisPrintOrderTen,
|
106
|
|
- // DialysisPrintOrderOne,
|
107
|
|
- // DialysisPrintOrderTwo,
|
108
|
|
- // DialysisPrintOrderThree,
|
109
|
|
- // DialysisPrintOrderFour,
|
110
|
|
- // DialysisPrintOrderFive,
|
111
|
|
- // DialysisPrintOrderSix,
|
112
|
|
- // DialysisPrintOrderSeven,
|
113
|
|
- // DialysisPrintOrderEight,
|
114
|
|
- // DialysisPrintOrderNine,
|
115
|
|
-
|
116
|
|
- // LabelBox,
|
117
|
|
- BreadCrumb
|
|
62
|
+ BreadCrumb,
|
|
63
|
+ printOne
|
118
|
64
|
},
|
119
|
65
|
data() {
|
120
|
66
|
return {
|
|
@@ -272,189 +218,22 @@ export default {
|
272
|
218
|
this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
|
273
|
219
|
|
274
|
220
|
const style =
|
275
|
|
- '@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 20px 20px 20px}.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:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.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;}';
|
276
|
|
- const style2 =
|
277
|
|
- '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}.table-box1 {border: 1px solid #000;width: 100%;line-height: 30px;font-size: 14px;border-collapse: collapse;}.table-box1 tr {border-bottom: 1px solid #000;}';
|
278
|
|
- const style3 =
|
279
|
|
- '@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 20px 20px 20px}.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:16px;border-color: #000;}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #000;width:95%;text-align:center;margin-left:2px}.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;}.row {font-size: 16px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line {display: inline-block;border-bottom: 1px solid #000;text-align: center;white-space: nowrap; width: 50%;}';
|
280
|
|
- // const style3 =
|
281
|
|
- // '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 16px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 5px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 16px;padding: 5px 5px;line-height: 18px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:950px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top:1050px;left: 50%;}.print-yema5{position: absolute;top:1370px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}';
|
282
|
|
- //
|
283
|
|
-
|
284
|
|
- const style5 =
|
285
|
|
- '@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 20px 0px 20px;}.dialysis-print-order .table-box { width: 100%; line-height: 18px; font-size: 14px;}.dialysis-print-order .print-table { width: 100%; text-align: center; border-collapse: collapse; line-height: 28px; font-size: 14px;}.dialysis-print-order .print-table-no { width: 100%; text-align: center; border-collapse: collapse; font-size: 14px;}.dialysis-print-order .under-line { border-bottom: 1px solid #999; width: 95%; text-align: center; margin-left: 2px;}.dialysis-print-order .title-box { text-align: center; font-size: 16px;}.dialysis-print-order .radio-lebel-box { font-weight: 400; cursor: pointer;}.dialysis-print-order .radio-no { opacity: 0; outline: none; position: absolute; margin: 0; width: 0; height: 0; z-index: -1;}.dialysis-print-order .radio-inner { white-space: nowrap; cursor: pointer; outline: none; 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 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46), background-color 0.25s cubic-bezier(0.71, -0.46, 0.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;}.dialysis-print-order .print-table tr td { padding: 1px 1px; /*line-height: 25px;*/}.es-img { height: 25px;}.advice-name { text-align: left;}.advice-children { display: flex;}.title-box-pro { border: 0 #fff; line-height: 25px; height: 25px; text-align: left; padding-left: 10px !important;}.title-box-pro-tr { border: 0 #fff;}.text-align-left { text-align: left !important; padding-left: 10px !important; font-size: 14px !important; line-height: 25px;}.print-table-tr-new td {line-height: 20px !important;}.border-top-solid {border: solid 1px #000;}.print-template-two tr {line-height: 30px;}}';
|
286
|
|
- const style6 =
|
287
|
|
- '@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 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:16px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:16px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:16px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.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;}';
|
|
221
|
+ '@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 24px; padding:0 10px;}.infoTitle p{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain p{width: 50%;line-height: 24px;}.prescriptionBox{padding:0 10px;height:600px;}.Rp{font-size: 22px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;margin-bottom: 10px;}.drugsBox p{line-height: 30px;} .drugsOne{line-height: 24px;} .drugsOne span{margin-right: 20px;} .doctorBox{display: flex; justify-content: space-between; padding:0 10px; line-height: 24px; border-bottom: 2px solid #000;} .actionBar{display: flex; justify-content: space-between; line-height: 24px; padding:0 10px;} .actionBar p{width:150px;}}';
|
|
222
|
+ printJS({
|
|
223
|
+ printable: "prescription-print",
|
|
224
|
+ type: "html",
|
|
225
|
+ style: style,
|
|
226
|
+ scanStyles: false
|
|
227
|
+ });
|
288
|
228
|
|
289
|
|
- if (this.org_template_info.template_id == 1) {
|
290
|
|
- printJS({
|
291
|
|
- printable: "dialysis-print-box",
|
292
|
|
- type: "html",
|
293
|
|
- style: style,
|
294
|
|
- scanStyles: false
|
295
|
|
- });
|
296
|
|
- } else if (
|
297
|
|
- this.org_template_info.template_id == 2 ||
|
298
|
|
- this.org_template_info.template_id == 0
|
299
|
|
- ) {
|
300
|
|
- printJS({
|
301
|
|
- printable: "dialysis-print-box-1",
|
302
|
|
- type: "html",
|
303
|
|
- style: style2,
|
304
|
|
- scanStyles: false
|
305
|
|
- });
|
306
|
|
- } else if (this.org_template_info.template_id == 3) {
|
307
|
|
- printJS({
|
308
|
|
- printable: "dialysis-print-box",
|
309
|
|
- type: "html",
|
310
|
|
- style: style,
|
311
|
|
- scanStyles: false
|
312
|
|
- });
|
313
|
|
- } else if (this.org_template_info.template_id == 4) {
|
314
|
|
- printJS({
|
315
|
|
- printable: "dialysis-print-box",
|
316
|
|
- type: "html",
|
317
|
|
- style: style,
|
318
|
|
- scanStyles: false
|
319
|
|
- });
|
320
|
|
- } else if (this.org_template_info.template_id == 5) {
|
321
|
|
- printJS({
|
322
|
|
- printable: "dialysis-print-box-1",
|
323
|
|
- type: "html",
|
324
|
|
- style: style2,
|
325
|
|
- scanStyles: false
|
326
|
|
- });
|
327
|
|
- } else if (
|
328
|
|
- this.org_template_info.template_id == 6 ||
|
329
|
|
- this.org_template_info.template_id == 10 ||
|
330
|
|
- this.org_template_info.template_id == 11
|
331
|
|
- ) {
|
332
|
|
- printJS({
|
333
|
|
- printable: "dialysis-print-box-1",
|
334
|
|
- type: "html",
|
335
|
|
- style: style2,
|
336
|
|
- scanStyles: false
|
337
|
|
- });
|
338
|
|
- } else if (this.org_template_info.template_id == 7) {
|
339
|
|
- printJS({
|
340
|
|
- printable: "dialysis-print-box",
|
341
|
|
- type: "html",
|
342
|
|
- style: style,
|
343
|
|
- scanStyles: false
|
344
|
|
- });
|
345
|
|
- } else if (this.org_template_info.template_id == 8) {
|
346
|
|
- printJS({
|
347
|
|
- printable: "dialysis-print-box",
|
348
|
|
- type: "html",
|
349
|
|
- style: style,
|
350
|
|
- scanStyles: false
|
351
|
|
- });
|
352
|
|
- } else if (this.org_template_info.template_id == 9 || this.org_template_info.template_id==25) {
|
353
|
|
- printJS({
|
354
|
|
- printable: "dialysis-print-box",
|
355
|
|
- type: "html",
|
356
|
|
- style: style5,
|
357
|
|
- scanStyles: false
|
358
|
|
- });
|
359
|
|
- } else if (this.org_template_info.template_id == 12) {
|
360
|
|
- printJS({
|
361
|
|
- printable: "dialysis-print-box",
|
362
|
|
- type: "html",
|
363
|
|
- style: style,
|
364
|
|
- scanStyles: false
|
365
|
|
- });
|
366
|
|
- } else if (this.org_template_info.template_id == 13) {
|
367
|
|
- printJS({
|
368
|
|
- printable: "dialysis-print-box-1",
|
369
|
|
- type: "html",
|
370
|
|
- style: style3,
|
371
|
|
- scanStyles: false
|
372
|
|
- });
|
373
|
|
- } else if (this.org_template_info.template_id == 14){
|
374
|
|
- printJS({
|
375
|
|
- printable: "dialysis-print-box",
|
376
|
|
- type: "html",
|
377
|
|
- style: style,
|
378
|
|
- scanStyles: false
|
379
|
|
- });
|
380
|
|
- } else if (this.org_template_info.template_id == 15){
|
381
|
|
- printJS({
|
382
|
|
- printable: "dialysis-print-box",
|
383
|
|
- type: "html",
|
384
|
|
- style: style,
|
385
|
|
- scanStyles: false
|
386
|
|
- });
|
387
|
|
- } else if (this.org_template_info.template_id == 16){
|
388
|
|
- printJS({
|
389
|
|
- printable: "dialysis-print-box",
|
390
|
|
- type: "html",
|
391
|
|
- style: style,
|
392
|
|
- scanStyles: false
|
393
|
|
- });
|
394
|
|
- } else if (this.org_template_info.template_id == 17) {
|
395
|
|
- printJS({
|
396
|
|
- printable: "dialysis-print-box",
|
397
|
|
- type: "html",
|
398
|
|
- style: style6,
|
399
|
|
- scanStyles: false
|
400
|
|
- });
|
401
|
|
- } else if (this.org_template_info.template_id == 18) {
|
402
|
|
- printJS({
|
403
|
|
- printable: "dialysis-print-box",
|
404
|
|
- type: "html",
|
405
|
|
- style: style,
|
406
|
|
- scanStyles: false
|
407
|
|
- });
|
408
|
|
- } else if (this.org_template_info.template_id == 19) {
|
409
|
|
- printJS({
|
410
|
|
- printable: "dialysis-print-box-1",
|
411
|
|
- type: "html",
|
412
|
|
- style: style2,
|
413
|
|
- scanStyles: false
|
414
|
|
- });
|
415
|
|
- } else if (this.org_template_info.template_id == 20) {
|
416
|
|
- printJS({
|
417
|
|
- printable: "dialysis-print-box",
|
418
|
|
- type: "html",
|
419
|
|
- style: style,
|
420
|
|
- scanStyles: false
|
421
|
|
- });
|
422
|
|
- } else if (this.org_template_info.template_id == 21) {
|
423
|
|
- printJS({
|
424
|
|
- printable: "dialysis-print-box",
|
425
|
|
- type: "html",
|
426
|
|
- style: style,
|
427
|
|
- scanStyles: false
|
428
|
|
- });
|
429
|
|
- } else if (this.org_template_info.template_id == 22) {
|
430
|
|
- printJS({
|
431
|
|
- printable: "dialysis-print-box-1",
|
432
|
|
- type: "html",
|
433
|
|
- style: style2,
|
434
|
|
- scanStyles: false
|
435
|
|
- });
|
436
|
|
- } else if (this.org_template_info.template_id == 23){
|
437
|
|
- printJS({
|
438
|
|
- printable: "dialysis-print-box",
|
439
|
|
- type: "html",
|
440
|
|
- style: style,
|
441
|
|
- scanStyles: false
|
442
|
|
- });
|
443
|
|
- } else if (this.org_template_info.template_id == 24){
|
444
|
|
- printJS({
|
445
|
|
- printable: "dialysis-print-box",
|
446
|
|
- type: "html",
|
447
|
|
- style: style,
|
448
|
|
- scanStyles: false
|
449
|
|
- });
|
450
|
|
- }else if (this.org_template_info.template_id == 25) {
|
451
|
|
- printJS({
|
452
|
|
- printable: "dialysis-print-box",
|
453
|
|
- type: "html",
|
454
|
|
- style: style5,
|
455
|
|
- scanStyles: false
|
456
|
|
- });
|
457
|
|
- }
|
|
229
|
+ // if (this.org_template_info.template_id == 1) {
|
|
230
|
+ // printJS({
|
|
231
|
+ // printable: "dialysis-print-box",
|
|
232
|
+ // type: "html",
|
|
233
|
+ // style: style,
|
|
234
|
+ // scanStyles: false
|
|
235
|
+ // });
|
|
236
|
+ // }
|
458
|
237
|
},
|
459
|
238
|
printThisOnePage() {
|
460
|
239
|
var ptime = Math.round(new Date().getTime() / 1000);
|
|
@@ -1194,71 +973,6 @@ export default {
|
1194
|
973
|
}
|
1195
|
974
|
},
|
1196
|
975
|
created() {
|
1197
|
|
- var schedule_type_selected = this.$store.getters.schedule_type_selected
|
1198
|
|
- var zone_selected = this.$store.getters.zone_selected
|
1199
|
|
- var patient_state_selected = this.$store.getters.patient_state_selected
|
1200
|
|
- var treat_state_selected = this.$store.getters.treat_state_selected
|
1201
|
|
- var selected_date = this.$store.getters.selected_date
|
1202
|
|
- if (schedule_type_selected) {
|
1203
|
|
- this.scheduleStateVal = schedule_type_selected.schedule_type_selected
|
1204
|
|
- }
|
1205
|
|
- if (zone_selected) {
|
1206
|
|
- this.zoneVal = zone_selected.zone_selected
|
1207
|
|
- }
|
1208
|
|
- if (patient_state_selected) {
|
1209
|
|
- this.patientStateVal = patient_state_selected.patient_state_selected
|
1210
|
|
- }
|
1211
|
|
- if (treat_state_selected) {
|
1212
|
|
- this.treatStateVal = treat_state_selected.treat_state_selected
|
1213
|
|
- }
|
1214
|
|
- if (selected_date.selected_date) {
|
1215
|
|
- this.selected_date = selected_date.selected_date
|
1216
|
|
- }
|
1217
|
|
- this.getInitData();
|
1218
|
|
-
|
1219
|
|
- var xtuser = this.$store.getters.xt_user;
|
1220
|
|
- this.orgname = xtuser.org.org_name;
|
1221
|
|
- // this.orgname = "遂溪方济医院";
|
1222
|
|
- this.modeOptions = this.$store.getters.treatment_mode;
|
1223
|
|
- this.replacementWays = this.$store.getters.replacement_ways;
|
1224
|
|
- this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
|
1225
|
|
- this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
|
1226
|
|
-
|
1227
|
|
- // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
|
1228
|
|
-
|
1229
|
|
- var bloodAccessParOpera = getDataConfig(
|
1230
|
|
- "hemodialysis",
|
1231
|
|
- "vascular_access_desc"
|
1232
|
|
- );
|
1233
|
|
- for (var key in bloodAccessParOpera) {
|
1234
|
|
- this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
|
1235
|
|
- bloodAccessParOpera[key];
|
1236
|
|
- }
|
1237
|
|
-
|
1238
|
|
- var dialysateFormulationOptions = getDataConfig(
|
1239
|
|
- "hemodialysis",
|
1240
|
|
- "dialysate_formulation"
|
1241
|
|
- );
|
1242
|
|
- for (var key in dialysateFormulationOptions) {
|
1243
|
|
- this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
|
1244
|
|
- dialysateFormulationOptions[key];
|
1245
|
|
- }
|
1246
|
|
-
|
1247
|
|
- const xtdate = this.$route.query && this.$route.query.xtdate;
|
1248
|
|
- const xtno = this.$route.query && this.$route.query.xtno;
|
1249
|
|
- if (
|
1250
|
|
- typeof xtdate === "string" &&
|
1251
|
|
- xtdate.length > 0 &&
|
1252
|
|
- typeof xtno === "string" &&
|
1253
|
|
- xtno.length > 0
|
1254
|
|
- ) {
|
1255
|
|
- this.queryParams.xtdate = xtdate;
|
1256
|
|
- this.queryParams.xtno = xtno;
|
1257
|
|
- this.getDialysisRecord();
|
1258
|
|
- } else {
|
1259
|
|
- this.$message.error("参数不齐");
|
1260
|
|
- return false;
|
1261
|
|
- }
|
1262
|
976
|
},
|
1263
|
977
|
computed:{
|
1264
|
978
|
filtedSchedules: function() {
|