Quellcode durchsuchen

9月10,批量打印结算单

yq1 vor 1 Woche
Ursprung
Commit
411baae56d

+ 84 - 6
src/xt_pages/outpatientCharges/batchStatementPrint.vue Datei anzeigen

@@ -134,13 +134,91 @@ export default {
134 134
           const style12 =
135 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%;}}}";
136 136
 
137
+          // if (this.num >= 13) {
137 138
             printJS({
138
-              printable: "prescription-print",
139
-              type: "html",
140
-              style: style,
141
-              scanStyles: false,
142
-            });
143
-
139
+              printable: 'prescription-print',
140
+              type: 'html',
141
+              style: style9,
142
+              scanStyles: false
143
+            })
144
+          // } else if (this.num == 12) {
145
+          //   printJS({
146
+          //     printable: 'prescription-print',
147
+          //     type: 'html',
148
+          //     style: style2,
149
+          //     scanStyles: false
150
+          //   })
151
+          // } else if (this.num == 11) {
152
+          //   printJS({
153
+          //     printable: 'prescription-print',
154
+          //     type: 'html',
155
+          //     style: style3,
156
+          //     scanStyles: false
157
+          //   })
158
+          // } else if (this.num == 10) {
159
+          //   printJS({
160
+          //     printable: 'prescription-print',
161
+          //     type: 'html',
162
+          //     style: style4,
163
+          //     scanStyles: false
164
+          //   })
165
+          // } else if (this.num == 9) {
166
+          //   printJS({
167
+          //     printable: 'prescription-print',
168
+          //     type: 'html',
169
+          //     style: style5,
170
+          //     scanStyles: false
171
+          //   })
172
+          // } else if (this.num == 8) {
173
+          //   printJS({
174
+          //     printable: 'prescription-print',
175
+          //     type: 'html',
176
+          //     style: style6,
177
+          //     scanStyles: false
178
+          //   })
179
+          // } else if (this.num == 7) {
180
+          //   printJS({
181
+          //     printable: 'prescription-print',
182
+          //     type: 'html',
183
+          //     style: style7,
184
+          //     scanStyles: false
185
+          //   })
186
+          // } else if (this.num == 6) {
187
+          //   printJS({
188
+          //     printable: 'prescription-print',
189
+          //     type: 'html',
190
+          //     style: style8,
191
+          //     scanStyles: false
192
+          //   })
193
+          // } else if (this.num == 5) {
194
+          //   printJS({
195
+          //     printable: 'prescription-print',
196
+          //     type: 'html',
197
+          //     style: style9,
198
+          //     scanStyles: false
199
+          //   })
200
+          // } else if (this.num == 4) {
201
+          //   printJS({
202
+          //     printable: 'prescription-print',
203
+          //     type: 'html',
204
+          //     style: style10,
205
+          //     scanStyles: false
206
+          //   })
207
+          // } else if (this.num == 3) {
208
+          //   printJS({
209
+          //     printable: 'prescription-print',
210
+          //     type: 'html',
211
+          //     style: style11,
212
+          //     scanStyles: false
213
+          //   })
214
+          // } else if (this.num <= 2) {
215
+          //   printJS({
216
+          //     printable: 'prescription-print',
217
+          //     type: 'html',
218
+          //     style: style12,
219
+          //     scanStyles: false
220
+          //   })
221
+          // }
144 222
 
145 223
         }, 500);
146 224
       } else if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028) {

+ 1 - 1
src/xt_pages/outpatientCharges/statementTemplate/batchPrint.vue Datei anzeigen

@@ -2,7 +2,7 @@
2 2
   <div>
3 3
     <div id='prescription-print'>
4 4
         <div  class="prescription-print"
5
-            style="position: relative;  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset; page-break-after:always"
5
+            style="position: relative;   page-break-after:always"
6 6
             v-for="(infos,index) in info" :key="index">
7 7
           <img style="width:100%;height:80px"
8 8
             v-if="$store.getters.xt_user.org_id == 10138 || $store.getters.xt_user.org_id == 10342 || $store.getters.xt_user.org_id == 10341"