Browse Source

Merge branch 'master' of http://git.shengws.com/csx/Vue_New

张保健 3 years ago
parent
commit
5536eeff4e

+ 23 - 0
src/xt_pages/dialysis/dialysisPrintOrder.vue View File

@@ -180,6 +180,16 @@
180 180
           >打印</el-button
181 181
         >
182 182
       </template>
183
+      <template v-if="org_template_info.template_id == 16">
184
+        <el-button
185
+          :loading="loading"
186
+          size="small"
187
+          icon="el-icon-printer"
188
+          @click="printThisPage"
189
+          type="primary"
190
+          >打印</el-button
191
+        >
192
+      </template>
183 193
     </div>
184 194
     <div class="app-container ">
185 195
       <!--<div class="order-print-btn"-->
@@ -273,6 +283,10 @@
273 283
         v-bind:childResponse="childResponse"
274 284
         v-if="org_template_info.template_id == 15"
275 285
       ></DialysisPrintOrderFifteen>
286
+      <DialysisPrintOrderSixteen
287
+        v-bind:childResponse="childResponse"
288
+        v-if="org_template_info.template_id == 16"
289
+      ></DialysisPrintOrderSixteen>
276 290
     </div>
277 291
   </div>
278 292
 </template>
@@ -299,10 +313,12 @@ import DialysisPrintOrderTwelve from "./template/DialysisPrintOrderTwelve";
299 313
 import DialysisPrintOrderThirteen from "./template/DialysisPrintOrderThirteen";
300 314
 import DialysisPrintOrderFourteen from "./template/DialysisPrintOrderFourteen";
301 315
 import DialysisPrintOrderFifteen from "./template/DialysisPrintOrderFifteen";
316
+import DialysisPrintOrderSixteen from "./template/DialysisPrintOrderSixteen";
302 317
 
303 318
 export default {
304 319
   name: "dialysisPrintOrder",
305 320
   components: {
321
+    DialysisPrintOrderSixteen,
306 322
     DialysisPrintOrderFifteen,
307 323
     DialysisPrintOrderFourteen,
308 324
     DialysisPrintOrderThirteen,
@@ -554,6 +570,13 @@ export default {
554 570
           style: style,
555 571
           scanStyles: false
556 572
         });
573
+      } else if (this.org_template_info.template_id == 16){
574
+        printJS({
575
+          printable: "dialysis-print-box",
576
+          type: "html",
577
+          style: style,
578
+          scanStyles: false
579
+        });
557 580
       }
558 581
     },
559 582
     printThisOnePage() {

File diff suppressed because it is too large
+ 1811 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderSixteen.vue