|
@@ -20,9 +20,9 @@
|
20
|
20
|
<!-- :info="info"-->
|
21
|
21
|
<!-- v-if="org_id == 10138 || org_id == 0 || org_id == 10278"-->
|
22
|
22
|
<!-- ></batch-print-three>-->
|
23
|
|
- <batch-print
|
|
23
|
+ <batch-print
|
24
|
24
|
:info="info"
|
25
|
|
- v-if="org_id == 10138 || org_id == 0 || org_id == 10278 || org_id == 10342 || org_id == 10341 "
|
|
25
|
+ v-if="org_id == 10138 || org_id == 0 || org_id == 10278 || org_id == 10342 || org_id == 10341 "
|
26
|
26
|
>
|
27
|
27
|
|
28
|
28
|
</batch-print>
|
|
@@ -97,7 +97,6 @@ export default {
|
97
|
97
|
},
|
98
|
98
|
methods: {
|
99
|
99
|
printThisPage() {
|
100
|
|
- console.log('打印12323435456456');
|
101
|
100
|
var ptime = Math.round(new Date().getTime() / 1000);
|
102
|
101
|
this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
|
103
|
102
|
|
|
@@ -134,67 +133,64 @@ export default {
|
134
|
133
|
"@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 87%;}}}";
|
135
|
134
|
const style12 =
|
136
|
135
|
"@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 89%;}}}";
|
137
|
|
-
|
|
136
|
+
|
138
|
137
|
printJS({
|
139
|
138
|
printable: "prescription-print",
|
140
|
139
|
type: "html",
|
141
|
140
|
style: style,
|
142
|
141
|
scanStyles: false,
|
143
|
142
|
});
|
144
|
|
-
|
145
|
|
-
|
|
143
|
+
|
|
144
|
+
|
146
|
145
|
}, 500);
|
147
|
|
- }
|
148
|
|
- // else if (
|
149
|
|
- // this.$store.getters.xt_user.org_id == 9504 ||
|
150
|
|
- // this.$store.getters.xt_user.org_id == 10028
|
151
|
|
- // ) {
|
152
|
|
- // const style =
|
153
|
|
- // "@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;}}";
|
154
|
|
- // printJS({
|
155
|
|
- // printable: "prescription-print",
|
156
|
|
- // type: "html",
|
157
|
|
- // style: style,
|
158
|
|
- // scanStyles: false,
|
159
|
|
- // });
|
160
|
|
- // }
|
161
|
|
- // else {
|
162
|
|
- // // 医保环境打印格式
|
163
|
|
- // if (
|
164
|
|
- // this.$store.getters.xt_user.org_id == 9919 ||
|
165
|
|
- // this.$store.getters.xt_user.org_id == 10106
|
166
|
|
- // ) {
|
167
|
|
- // const style =
|
168
|
|
- // "@media print {.statementTitle{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;}.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 16px;border-color: #000;}}";
|
169
|
|
- // printJS({
|
170
|
|
- // printable: "prescription-print",
|
171
|
|
- // type: "html",
|
172
|
|
- // style: style,
|
173
|
|
- // scanStyles: false,
|
174
|
|
- // });
|
175
|
|
- // } else if (
|
176
|
|
-
|
177
|
|
- // this.$store.getters.xt_user.org_id == 10191
|
178
|
|
- // ) {
|
179
|
|
- // const style =
|
180
|
|
- // "@media print {#prescription-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table{border-collapse: collapse;text-align: center;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 57%;}}}";
|
181
|
|
- // printJS({
|
182
|
|
- // printable: "prescription-print",
|
183
|
|
- // type: "html",
|
184
|
|
- // style: style,
|
185
|
|
- // scanStyles: false,
|
186
|
|
- // });
|
187
|
|
- // } else {
|
188
|
|
- // const style =
|
189
|
|
- // "@media print {#prescription-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table{border-collapse: collapse;text-align: center;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 57%;}}}";
|
190
|
|
- // printJS({
|
191
|
|
- // printable: "prescription-print",
|
192
|
|
- // type: "html",
|
193
|
|
- // style: style,
|
194
|
|
- // scanStyles: false,
|
195
|
|
- // });
|
196
|
|
- // }
|
197
|
|
- // }
|
|
146
|
+ } else if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028) {
|
|
147
|
+ const style =
|
|
148
|
+ "@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;}}";
|
|
149
|
+ printJS({
|
|
150
|
+ printable: "prescription-print",
|
|
151
|
+ type: "html",
|
|
152
|
+ style: style,
|
|
153
|
+ scanStyles: false,
|
|
154
|
+ });
|
|
155
|
+ } else {
|
|
156
|
+ // 医保环境打印格式
|
|
157
|
+ if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 10106) {
|
|
158
|
+ const style =
|
|
159
|
+ "@media print {.statementTitle{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;}.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 16px;border-color: #000;}}";
|
|
160
|
+ printJS({
|
|
161
|
+ printable: "statement-print",
|
|
162
|
+ type: "html",
|
|
163
|
+ style: style,
|
|
164
|
+ scanStyles: false,
|
|
165
|
+ });
|
|
166
|
+ } else if (this.$store.getters.xt_user.org_id == 10191) {
|
|
167
|
+ const style =
|
|
168
|
+ "@media print {#statement-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table{border-collapse: collapse;text-align: center;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 57%;}}}";
|
|
169
|
+ printJS({
|
|
170
|
+ printable: "statement-print",
|
|
171
|
+ type: "html",
|
|
172
|
+ style: style,
|
|
173
|
+ scanStyles: false,
|
|
174
|
+ });
|
|
175
|
+ // const style =
|
|
176
|
+ // "@media print {.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 14px;border-color: #000;} .statementTable thead{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;} .statementTable tbody{text-align:left;} .statementTable tbody .view_tr{text-align:center;border: 1px solid;} tbody .dashed_tr{border: 1px dashed;text-align:center} .list_table{width: 100%;margin-bottom: 100px;} tbody tr td div{height:25px;}}";
|
|
177
|
+ // printJS({
|
|
178
|
+ // printable: "statement-print",
|
|
179
|
+ // type: "html",
|
|
180
|
+ // style: style,
|
|
181
|
+ // scanStyles: false,
|
|
182
|
+ // });
|
|
183
|
+ } else {
|
|
184
|
+ const style =
|
|
185
|
+ "@media print {#statement-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table{border-collapse: collapse;text-align: center;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 57%;}}}";
|
|
186
|
+ printJS({
|
|
187
|
+ printable: "statement-print",
|
|
188
|
+ type: "html",
|
|
189
|
+ style: style,
|
|
190
|
+ scanStyles: false,
|
|
191
|
+ });
|
|
192
|
+ }
|
|
193
|
+ }
|
198
|
194
|
|
199
|
195
|
// if (this.org_template_info.template_id == 1) {
|
200
|
196
|
// printJS({
|