|
@@ -15,9 +15,8 @@
|
15
|
15
|
<div class='dialysisPage' style="padding-top:40px;">
|
16
|
16
|
<!--<printOne :info="info"></printOne>-->
|
17
|
17
|
|
18
|
|
- <!--<print-one v-if="org_id != 9504" :info="info"></print-one>-->
|
19
|
|
- <!--<print-two v-else :info="info"></print-two>-->
|
20
|
|
- <print-one :info="info"></print-one>
|
|
18
|
+ <print-one v-if="org_id != 10138" :info="info"></print-one>
|
|
19
|
+ <print-two v-else :info="info"></print-two>
|
21
|
20
|
</div>
|
22
|
21
|
</div>
|
23
|
22
|
</template>
|
|
@@ -69,34 +68,34 @@
|
69
|
68
|
var ptime = Math.round(new Date().getTime() / 1000);
|
70
|
69
|
this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
|
71
|
70
|
|
72
|
|
- const style =
|
73
|
|
- '@media print {.printTitle{font-size: 20px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;font-size:12px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;font-size:12px;}.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;font-size:12px;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;font-size:12px;}.actionBar div{width:150px;}}';
|
74
|
|
- printJS({
|
75
|
|
- printable: "prescription-print",
|
76
|
|
- type: "html",
|
77
|
|
- style: style,
|
78
|
|
- scanStyles: false
|
79
|
|
- });
|
80
|
|
-
|
81
|
|
- // if(this.org_id == 10138){
|
82
|
|
- // const style =
|
83
|
|
- // '@media print {#prescription-print{font-size:12px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}}';
|
84
|
|
- // printJS({
|
85
|
|
- // printable: "prescription-print",
|
86
|
|
- // type: "html",
|
87
|
|
- // style: style,
|
88
|
|
- // scanStyles: false
|
89
|
|
- // });
|
90
|
|
- // }else{
|
91
|
|
- // const style =
|
|
71
|
+ // const style =
|
92
|
72
|
// '@media print {.printTitle{font-size: 20px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;font-size:12px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;font-size:12px;}.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;font-size:12px;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;font-size:12px;}.actionBar div{width:150px;}}';
|
93
|
|
- // printJS({
|
94
|
|
- // printable: "prescription-print",
|
95
|
|
- // type: "html",
|
96
|
|
- // style: style,
|
97
|
|
- // scanStyles: false
|
98
|
|
- // });
|
99
|
|
- // }
|
|
73
|
+ // printJS({
|
|
74
|
+ // printable: "prescription-print",
|
|
75
|
+ // type: "html",
|
|
76
|
+ // style: style,
|
|
77
|
+ // scanStyles: false
|
|
78
|
+ // });
|
|
79
|
+
|
|
80
|
+ if(this.org_id == 10138){
|
|
81
|
+ const style =
|
|
82
|
+ '@media print {#prescription-print{font-size:12px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}}';
|
|
83
|
+ printJS({
|
|
84
|
+ printable: "prescription-print",
|
|
85
|
+ type: "html",
|
|
86
|
+ style: style,
|
|
87
|
+ scanStyles: false
|
|
88
|
+ });
|
|
89
|
+ }else{
|
|
90
|
+ const style =
|
|
91
|
+ '@media print {.printTitle{font-size: 20px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;font-size:12px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;font-size:12px;}.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;font-size:12px;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;font-size:12px;}.actionBar div{width:150px;}}';
|
|
92
|
+ printJS({
|
|
93
|
+ printable: "prescription-print",
|
|
94
|
+ type: "html",
|
|
95
|
+ style: style,
|
|
96
|
+ scanStyles: false
|
|
97
|
+ });
|
|
98
|
+ }
|
100
|
99
|
// if (this.org_template_info.template_id == 1) {
|
101
|
100
|
// printJS({
|
102
|
101
|
// printable: "dialysis-print-box",
|