|
@@ -12,7 +12,12 @@
|
12
|
12
|
>打印</el-button
|
13
|
13
|
>
|
14
|
14
|
</template>
|
15
|
|
- <template v-if=" org_template_info.template_id == 2 || org_template_info.template_id == 0 " >
|
|
15
|
+ <template
|
|
16
|
+ v-if="
|
|
17
|
+ org_template_info.template_id == 2 ||
|
|
18
|
+ org_template_info.template_id == 0
|
|
19
|
+ "
|
|
20
|
+ >
|
16
|
21
|
<div>
|
17
|
22
|
<el-button
|
18
|
23
|
:loading="loading"
|
|
@@ -88,7 +93,12 @@
|
88
|
93
|
>
|
89
|
94
|
</div>
|
90
|
95
|
</template>
|
91
|
|
- <template v-if="org_template_info.template_id == 6 || org_template_info.template_id == 10">
|
|
96
|
+ <template
|
|
97
|
+ v-if="
|
|
98
|
+ org_template_info.template_id == 6 ||
|
|
99
|
+ org_template_info.template_id == 10
|
|
100
|
+ "
|
|
101
|
+ >
|
92
|
102
|
<el-button
|
93
|
103
|
:loading="loading"
|
94
|
104
|
size="small"
|
|
@@ -119,6 +129,16 @@
|
119
|
129
|
>打印</el-button
|
120
|
130
|
>
|
121
|
131
|
</template>
|
|
132
|
+ <template v-if="org_template_info.template_id == 9">
|
|
133
|
+ <el-button
|
|
134
|
+ :loading="loading"
|
|
135
|
+ size="small"
|
|
136
|
+ icon="el-icon-printer"
|
|
137
|
+ @click="printThisPage"
|
|
138
|
+ type="primary"
|
|
139
|
+ >打印</el-button
|
|
140
|
+ >
|
|
141
|
+ </template>
|
122
|
142
|
</div>
|
123
|
143
|
<div class="app-container ">
|
124
|
144
|
<!--<div class="order-print-btn"-->
|
|
@@ -187,7 +207,10 @@
|
187
|
207
|
v-if="org_template_info.template_id == 10"
|
188
|
208
|
></DialysisPrintOrderTen>
|
189
|
209
|
|
190
|
|
-
|
|
210
|
+ <DialysisPrintOrderNine
|
|
211
|
+ v-bind:childResponse="childResponse"
|
|
212
|
+ v-if="org_template_info.template_id == 9"
|
|
213
|
+ ></DialysisPrintOrderNine>
|
191
|
214
|
</div>
|
192
|
215
|
</div>
|
193
|
216
|
</template>
|
|
@@ -207,7 +230,8 @@ import DialysisPrintOrderSix from "./template/DialysisPrintOrderSix";
|
207
|
230
|
import DialysisPrintOrderSeven from "./template/DialysisPrintOrderSeven";
|
208
|
231
|
import DialysisPrintOrderEight from "./template/DialysisPrintOrderEight";
|
209
|
232
|
import print from "print-js";
|
210
|
|
-import DialysisPrintOrderTen from './template/DialysisPrintOrderTen'
|
|
233
|
+import DialysisPrintOrderTen from "./template/DialysisPrintOrderTen";
|
|
234
|
+import DialysisPrintOrderNine from "./template/DialysisPrintOrderNine";
|
211
|
235
|
|
212
|
236
|
export default {
|
213
|
237
|
name: "dialysisPrintOrder",
|
|
@@ -356,6 +380,9 @@ export default {
|
356
|
380
|
// '@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;}';
|
357
|
381
|
//
|
358
|
382
|
|
|
383
|
+ const style5 =
|
|
384
|
+ '@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: 40px; 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;}}';
|
|
385
|
+
|
359
|
386
|
if (this.org_template_info.template_id == 1) {
|
360
|
387
|
printJS({
|
361
|
388
|
printable: "dialysis-print-box",
|
|
@@ -394,7 +421,10 @@ export default {
|
394
|
421
|
style: style2,
|
395
|
422
|
scanStyles: false
|
396
|
423
|
});
|
397
|
|
- } else if (this.org_template_info.template_id == 6 || this.org_template_info.template_id == 10) {
|
|
424
|
+ } else if (
|
|
425
|
+ this.org_template_info.template_id == 6 ||
|
|
426
|
+ this.org_template_info.template_id == 10
|
|
427
|
+ ) {
|
398
|
428
|
printJS({
|
399
|
429
|
printable: "dialysis-print-box-1",
|
400
|
430
|
type: "html",
|
|
@@ -415,6 +445,13 @@ export default {
|
415
|
445
|
style: style,
|
416
|
446
|
scanStyles: false
|
417
|
447
|
});
|
|
448
|
+ } else if (this.org_template_info.template_id == 9) {
|
|
449
|
+ printJS({
|
|
450
|
+ printable: "dialysis-print-box",
|
|
451
|
+ type: "html",
|
|
452
|
+ style: style5,
|
|
453
|
+ scanStyles: false
|
|
454
|
+ });
|
418
|
455
|
}
|
419
|
456
|
},
|
420
|
457
|
printThisOnePage() {
|