|
|
|
|
96
|
<template
|
96
|
<template
|
97
|
v-if="
|
97
|
v-if="
|
98
|
org_template_info.template_id == 6 ||
|
98
|
org_template_info.template_id == 6 ||
|
99
|
- org_template_info.template_id == 10 || org_template_info.template_id == 11
|
|
|
|
|
99
|
+ org_template_info.template_id == 10 ||
|
|
|
100
|
+ org_template_info.template_id == 11
|
100
|
"
|
101
|
"
|
101
|
>
|
102
|
>
|
102
|
<el-button
|
103
|
<el-button
|
|
|
|
|
139
|
>打印</el-button
|
140
|
>打印</el-button
|
140
|
>
|
141
|
>
|
141
|
</template>
|
142
|
</template>
|
|
|
143
|
+ <template v-if="org_template_info.template_id == 12">
|
|
|
144
|
+ <el-button
|
|
|
145
|
+ :loading="loading"
|
|
|
146
|
+ size="small"
|
|
|
147
|
+ icon="el-icon-printer"
|
|
|
148
|
+ @click="printThisPage"
|
|
|
149
|
+ type="primary"
|
|
|
150
|
+ >打印</el-button
|
|
|
151
|
+ >
|
|
|
152
|
+ </template>
|
142
|
</div>
|
153
|
</div>
|
143
|
<div class="app-container ">
|
154
|
<div class="app-container ">
|
144
|
<!--<div class="order-print-btn"-->
|
155
|
<!--<div class="order-print-btn"-->
|
|
|
|
|
207
|
v-if="org_template_info.template_id == 10"
|
218
|
v-if="org_template_info.template_id == 10"
|
208
|
></DialysisPrintOrderTen>
|
219
|
></DialysisPrintOrderTen>
|
209
|
|
220
|
|
210
|
- <DialysisPrintOrderNine
|
|
|
|
|
221
|
+ <DialysisPrintOrderNine
|
211
|
v-bind:childResponse="childResponse"
|
222
|
v-bind:childResponse="childResponse"
|
212
|
v-if="org_template_info.template_id == 9"
|
223
|
v-if="org_template_info.template_id == 9"
|
213
|
></DialysisPrintOrderNine>
|
224
|
></DialysisPrintOrderNine>
|
214
|
|
225
|
|
215
|
- <DialysisPrintOrderEleven
|
|
|
216
|
- v-bind:childResponse="childResponse"
|
|
|
217
|
- v-if="org_template_info.template_id == 11"
|
|
|
218
|
- ></DialysisPrintOrderEleven>
|
|
|
|
|
226
|
+ <DialysisPrintOrderEleven
|
|
|
227
|
+ v-bind:childResponse="childResponse"
|
|
|
228
|
+ v-if="org_template_info.template_id == 11"
|
|
|
229
|
+ ></DialysisPrintOrderEleven>
|
|
|
230
|
+ <DialysisPrintOrderTwelve
|
|
|
231
|
+ v-bind:childResponse="childResponse"
|
|
|
232
|
+ v-if="org_template_info.template_id == 12"
|
|
|
233
|
+ ></DialysisPrintOrderTwelve>
|
219
|
</div>
|
234
|
</div>
|
220
|
</div>
|
235
|
</div>
|
221
|
</template>
|
236
|
</template>
|
|
|
|
|
237
|
import DialysisPrintOrderNine from "./template/DialysisPrintOrderNine";
|
252
|
import DialysisPrintOrderNine from "./template/DialysisPrintOrderNine";
|
238
|
import print from "print-js";
|
253
|
import print from "print-js";
|
239
|
import DialysisPrintOrderTen from "./template/DialysisPrintOrderTen";
|
254
|
import DialysisPrintOrderTen from "./template/DialysisPrintOrderTen";
|
240
|
-import DialysisPrintOrderEleven from './template/DialysisPrintOrderEleven'
|
|
|
|
|
255
|
+import DialysisPrintOrderEleven from "./template/DialysisPrintOrderEleven";
|
|
|
256
|
+import DialysisPrintOrderTwelve from "./template/DialysisPrintOrderTwelve";
|
241
|
|
257
|
|
242
|
export default {
|
258
|
export default {
|
243
|
name: "dialysisPrintOrder",
|
259
|
name: "dialysisPrintOrder",
|
244
|
components: {
|
260
|
components: {
|
|
|
261
|
+ DialysisPrintOrderTwelve,
|
245
|
DialysisPrintOrderEleven,
|
262
|
DialysisPrintOrderEleven,
|
246
|
DialysisPrintOrderTen,
|
263
|
DialysisPrintOrderTen,
|
247
|
DialysisPrintOrderOne,
|
264
|
DialysisPrintOrderOne,
|
|
|
|
|
381
|
const style =
|
398
|
const style =
|
382
|
'@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;}';
|
399
|
'@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;}';
|
383
|
const style2 =
|
400
|
const style2 =
|
384
|
- '@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;}';
|
|
|
|
|
401
|
+ '@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;}';
|
385
|
|
402
|
|
386
|
// const style3 =
|
403
|
// const style3 =
|
387
|
// '@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;}';
|
404
|
// '@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;}';
|
|
|
|
|
430
|
});
|
447
|
});
|
431
|
} else if (
|
448
|
} else if (
|
432
|
this.org_template_info.template_id == 6 ||
|
449
|
this.org_template_info.template_id == 6 ||
|
433
|
- this.org_template_info.template_id == 10 || this.org_template_info.template_id == 11
|
|
|
|
|
450
|
+ this.org_template_info.template_id == 10 ||
|
|
|
451
|
+ this.org_template_info.template_id == 11
|
434
|
) {
|
452
|
) {
|
435
|
printJS({
|
453
|
printJS({
|
436
|
printable: "dialysis-print-box-1",
|
454
|
printable: "dialysis-print-box-1",
|
|
|
|
|
459
|
style: style5,
|
477
|
style: style5,
|
460
|
scanStyles: false
|
478
|
scanStyles: false
|
461
|
});
|
479
|
});
|
|
|
480
|
+ } else if (this.org_template_info.template_id == 12) {
|
|
|
481
|
+ printJS({
|
|
|
482
|
+ printable: "dialysis-print-box",
|
|
|
483
|
+ type: "html",
|
|
|
484
|
+ style: style,
|
|
|
485
|
+ scanStyles: false
|
|
|
486
|
+ });
|
462
|
}
|
487
|
}
|
463
|
},
|
488
|
},
|
464
|
printThisOnePage() {
|
489
|
printThisOnePage() {
|
|
|
|
|
1079
|
.print-template-two tr {
|
1104
|
.print-template-two tr {
|
1080
|
line-height: 30px;
|
1105
|
line-height: 30px;
|
1081
|
}
|
1106
|
}
|
|
|
1107
|
+
|
|
|
1108
|
+.table-box1 {
|
|
|
1109
|
+ border: 1px solid #000;
|
|
|
1110
|
+ width: 100%;
|
|
|
1111
|
+ line-height: 30px;
|
|
|
1112
|
+ font-size: 14px;
|
|
|
1113
|
+ border-collapse: collapse;
|
|
|
1114
|
+}
|
|
|
1115
|
+.table-box1 tr {
|
|
|
1116
|
+ border-bottom: 1px solid #000;
|
|
|
1117
|
+}
|
1082
|
</style>
|
1118
|
</style>
|