|
@@ -12,11 +12,7 @@
|
12
|
12
|
>
|
13
|
13
|
</template>
|
14
|
14
|
<div class="app-container" style="padding-top:40px;">
|
15
|
|
- <div class='dialysisPage'>
|
16
|
|
- <printOne v-if="org_id != 10138" v-bind:childResponse="childResponse" :paramsObj="paramsObj"></printOne>
|
17
|
|
- <printTwo v-else v-bind:childResponse="childResponse" :paramsObj="paramsObj"></printTwo>
|
18
|
|
-
|
19
|
|
- </div>
|
|
15
|
+ <printOne v-bind:childResponse="childResponse" :paramsObj="paramsObj"></printOne>
|
20
|
16
|
</div>
|
21
|
17
|
</div>
|
22
|
18
|
</template>
|
|
@@ -35,13 +31,11 @@ import { jsGetAge, uParseTime } from "@/utils/tools";
|
35
|
31
|
import BreadCrumb from "@/xt_pages/components/bread-crumb";
|
36
|
32
|
import print from "print-js";
|
37
|
33
|
import printOne from "./treatTemplate/printOne"
|
38
|
|
-import printTwo from "./treatTemplate/printTwo"
|
39
|
34
|
export default {
|
40
|
35
|
name: "dialysisPrintOrder",
|
41
|
36
|
components: {
|
42
|
37
|
BreadCrumb,
|
43
|
38
|
printOne,
|
44
|
|
- printTwo
|
45
|
39
|
},
|
46
|
40
|
props:{
|
47
|
41
|
paramsObj:Object
|
|
@@ -86,25 +80,14 @@ export default {
|
86
|
80
|
var ptime = Math.round(new Date().getTime() / 1000);
|
87
|
81
|
this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
|
88
|
82
|
|
89
|
|
- if(this.org_id == 10138){
|
90
|
|
- const style =
|
91
|
|
- '@media print {#prescription-print{font-size:12px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}}';
|
92
|
|
- printJS({
|
93
|
|
- printable: "prescription-print",
|
94
|
|
- type: "html",
|
95
|
|
- style: style,
|
96
|
|
- scanStyles: false
|
97
|
|
- });
|
98
|
|
- }else{
|
99
|
|
- const style =
|
100
|
|
- '@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar div{width:150px;}}';
|
101
|
|
- printJS({
|
102
|
|
- printable: "prescription-print",
|
103
|
|
- type: "html",
|
104
|
|
- style: style,
|
105
|
|
- scanStyles: false
|
106
|
|
- });
|
107
|
|
- }
|
|
83
|
+ const style =
|
|
84
|
+ '@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar div{width:150px;}}';
|
|
85
|
+ printJS({
|
|
86
|
+ printable: "prescription-print",
|
|
87
|
+ type: "html",
|
|
88
|
+ style: style,
|
|
89
|
+ scanStyles: false
|
|
90
|
+ });
|
108
|
91
|
|
109
|
92
|
|
110
|
93
|
// if (this.org_template_info.template_id == 1) {
|