Przeglądaj źródła

Merge branch '20200710_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20200710_pc_vue_new_branch

XMLWAN 4 lat temu
rodzic
commit
d761131bd9

+ 23 - 0
src/xt_pages/dialysis/dialysisPrintOrder.vue Wyświetl plik

@@ -253,6 +253,16 @@
253 253
           >打印</el-button
254 254
         >
255 255
       </template>
256
+      <template v-if="org_template_info.template_id == 21">
257
+        <el-button
258
+          :loading="loading"
259
+          size="small"
260
+          icon="el-icon-printer"
261
+          @click="printThisPage"
262
+          type="primary"
263
+          >打印</el-button
264
+        >
265
+      </template>
256 266
     </div>
257 267
     <div class="app-container" style="min-height:0;">
258 268
       <!--<div class="order-print-btn"-->
@@ -437,6 +447,10 @@
437 447
             v-bind:childResponse="childResponse"
438 448
             v-if="org_template_info.template_id == 20"
439 449
           ></DialysisPrintOrderTwenty>
450
+          <DialysisPrintOrderTwentyOne
451
+            v-bind:childResponse="childResponse"
452
+            v-if="org_template_info.template_id == 21"
453
+          ></DialysisPrintOrderTwentyOne>
440 454
         </div>
441 455
       </el-container>
442 456
     </div>
@@ -476,10 +490,12 @@ import DialysisPrintOrderSeventeen from "./template/DialysisPrintOrderSeventeen"
476 490
 import DialysisPrintOrderEighteen from "./template/DialysisPrintOrderEighteen";
477 491
 import DialysisPrintOrderNineteen from "./template/DialysisPrintOrderNineteen";
478 492
 import DialysisPrintOrderTwenty from "./template/DialysisPrintOrderTwenty";
493
+import DialysisPrintOrderTwentyOne from "./template/DialysisPrintOrderTwentyOne";
479 494
 
480 495
 export default {
481 496
   name: "dialysisPrintOrder",
482 497
   components: {
498
+    DialysisPrintOrderTwentyOne,
483 499
     DialysisPrintOrderTwenty,
484 500
     DialysisPrintOrderNineteen,
485 501
     DialysisPrintOrderEighteen,
@@ -806,6 +822,13 @@ export default {
806 822
           style: style,
807 823
           scanStyles: false
808 824
         });
825
+      } else if (this.org_template_info.template_id == 21) {
826
+        printJS({
827
+          printable: "dialysis-print-box",
828
+          type: "html",
829
+          style: style,
830
+          scanStyles: false
831
+        });
809 832
       } 
810 833
     },
811 834
     printThisOnePage() {

Plik diff jest za duży
+ 2019 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyOne.vue