|
@@ -845,6 +845,18 @@
|
845
|
845
|
>
|
846
|
846
|
</div>
|
847
|
847
|
</template>
|
|
848
|
+ <template v-if="org_template_info.template_id == 69 ">
|
|
849
|
+ <div>
|
|
850
|
+ <el-button
|
|
851
|
+ :loading="loading"
|
|
852
|
+ size="small"
|
|
853
|
+ icon="el-icon-printer"
|
|
854
|
+ @click="printThisPage"
|
|
855
|
+ type="primary"
|
|
856
|
+ >打印</el-button
|
|
857
|
+ >
|
|
858
|
+ </div>
|
|
859
|
+ </template>
|
848
|
860
|
</div>
|
849
|
861
|
<div class="app-container" style="min-height: 0">
|
850
|
862
|
<!--<div class="order-print-btn"-->
|
|
@@ -1311,6 +1323,12 @@
|
1311
|
1323
|
>
|
1312
|
1324
|
</DialysisPrintOrderSixtyeight>
|
1313
|
1325
|
|
|
1326
|
+ <DialysisPrintOrderSixtynine
|
|
1327
|
+ v-bind:childResponse="childResponse"
|
|
1328
|
+ v-if="org_template_info.template_id == 69"
|
|
1329
|
+ >
|
|
1330
|
+ </DialysisPrintOrderSixtynine>
|
|
1331
|
+
|
1314
|
1332
|
<DialysisPrintOrderZero
|
1315
|
1333
|
v-bind:childResponse="childResponse"
|
1316
|
1334
|
v-if="org_template_info.template_id == 199"
|
|
@@ -1398,11 +1416,12 @@ import DialysisPrintOrderSixtyOne from "./template/DialysisPrintOrderSixtyOne"
|
1398
|
1416
|
import DialysisPrintOrderSixtyTwo from "./template/DialysisPrintOrderSixtyTwo"
|
1399
|
1417
|
// import DialysisPrintOrderSixtyThree from "./template/DialysisPrintOrderSixtyThree"
|
1400
|
1418
|
import DialysisPrintOrderSixtyfour from './template/DialysisPrintOrderSixtyfour'
|
1401
|
|
-import DialysisPrintOrderSixtyFive from "./template/DialysisPrintOrderSixtyFive.vue"
|
1402
|
|
-import DialysisPrintOrderSixtysix from './template/DialysisPrintOrderSixtysix.vue'
|
1403
|
|
-import DialysisPrintOrdersixtySeven from './template/DialysisPrintOrdersixtySeven.vue'
|
1404
|
|
-import DialysisPrintOrderSixtyeight from './template/DialysisPrintOrderSixtyeight.vue'
|
1405
|
|
-import DialysisPrintOrderZero from './template/DialysisPrintOrderZero.vue'
|
|
1419
|
+import DialysisPrintOrderSixtyFive from "./template/DialysisPrintOrderSixtyFive"
|
|
1420
|
+import DialysisPrintOrderSixtysix from './template/DialysisPrintOrderSixtysix'
|
|
1421
|
+import DialysisPrintOrdersixtySeven from './template/DialysisPrintOrdersixtySeven'
|
|
1422
|
+import DialysisPrintOrderSixtyeight from './template/DialysisPrintOrderSixtyeight'
|
|
1423
|
+import DialysisPrintOrderSixtynine from './template/DialysisPrintOrderSixtynine'
|
|
1424
|
+import DialysisPrintOrderZero from './template/DialysisPrintOrderZero'
|
1406
|
1425
|
export default {
|
1407
|
1426
|
name: "dialysisPrintOrder",
|
1408
|
1427
|
components: {
|
|
@@ -1474,6 +1493,7 @@ export default {
|
1474
|
1493
|
DialysisPrintOrderSixtyFive,
|
1475
|
1494
|
DialysisPrintOrderSixtysix,
|
1476
|
1495
|
DialysisPrintOrderSixtyeight,
|
|
1496
|
+ DialysisPrintOrderSixtynine,
|
1477
|
1497
|
DialysisPrintOrderZero,
|
1478
|
1498
|
LabelBox,
|
1479
|
1499
|
BreadCrumb,
|
|
@@ -1640,7 +1660,7 @@ export default {
|
1640
|
1660
|
'@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;}';
|
1641
|
1661
|
const style2 =
|
1642
|
1662
|
// 防止分页错位问题:table设置border: none;.tr设置page-break-inside:avoid; // 防止table数据太多,tr分页错乱 td设置border: 1px solid #000;// 防止部分分页的tr边框线没有
|
1643
|
|
- '@media print {.dialysis-print-order{width:960px;margin:0 auto} .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; } .print-table{border: none} .print-table tr{page-break-inside:avoid;} .print-table tr td{border: 1px solid #000;} .inside_table{border: none} .inside_table tr{page-break-inside:avoid;} .inside_table tr td{border: 1px solid #000;} .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 20px;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{page-break-inside:avoid;} .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;} .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px} ';
|
|
1663
|
+ '@media print {.dialysis-print-order{width:960px;margin:0 auto} .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; } .print-table{border: none} .print-table tr{page-break-inside:avoid;} .print-table tr td{border: 1px solid #000;} .inside_table{border: none} .inside_table tr{page-break-inside:avoid;} .inside_table tr td{border: 1px solid #000;} .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 20px;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;} .row1{ border-left: 1px solid black;padding: 5px 5px;} .row2{ border-left:1px solid black; border-right:1px solid black; border-bottom:1px solid black;} .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{page-break-inside:avoid;} .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;} .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px} ';
|
1644
|
1664
|
const style3 =
|
1645
|
1665
|
'@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%;}';
|
1646
|
1666
|
// const style3 =
|
|
@@ -2032,7 +2052,7 @@ export default {
|
2032
|
2052
|
style: style12,
|
2033
|
2053
|
scanStyles: false,
|
2034
|
2054
|
});
|
2035
|
|
-
|
|
2055
|
+
|
2036
|
2056
|
|
2037
|
2057
|
}else if (this.org_template_info.template_id == 65 || this.org_template_info.template_id == 6) {
|
2038
|
2058
|
printJS({
|
|
@@ -2058,6 +2078,14 @@ export default {
|
2058
|
2078
|
scanStyles: false,
|
2059
|
2079
|
});
|
2060
|
2080
|
console.log('77777',this.org_template_info.template_id);
|
|
2081
|
+ }else if (this.org_template_info.template_id == 69 ) {
|
|
2082
|
+ printJS({
|
|
2083
|
+ printable: "dialysis-print-box-1",
|
|
2084
|
+ type: "html",
|
|
2085
|
+ style: style2,
|
|
2086
|
+ scanStyles: false,
|
|
2087
|
+ });
|
|
2088
|
+ console.log('77777',this.org_template_info.template_id);
|
2061
|
2089
|
}
|
2062
|
2090
|
else if (
|
2063
|
2091
|
this.org_template_info.template_id == 53
|
|
@@ -2104,7 +2132,7 @@ export default {
|
2104
|
2132
|
style: style2,
|
2105
|
2133
|
scanStyles: false,
|
2106
|
2134
|
});
|
2107
|
|
-
|
|
2135
|
+
|
2108
|
2136
|
|
2109
|
2137
|
}
|
2110
|
2138
|
},
|
|
@@ -2226,7 +2254,7 @@ export default {
|
2226
|
2254
|
scanStyles: false,
|
2227
|
2255
|
});
|
2228
|
2256
|
} else if (this.org_template_info.template_id == 53 ) {
|
2229
|
|
-
|
|
2257
|
+
|
2230
|
2258
|
printJS({
|
2231
|
2259
|
printable: "dialysis-print-box-1-2",
|
2232
|
2260
|
type: "html",
|
|
@@ -2240,7 +2268,7 @@ export default {
|
2240
|
2268
|
style: style12,
|
2241
|
2269
|
scanStyles: false,
|
2242
|
2270
|
});
|
2243
|
|
-
|
|
2271
|
+
|
2244
|
2272
|
|
2245
|
2273
|
}
|
2246
|
2274
|
},
|