Browse Source

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

XMLWAN 4 years ago
parent
commit
406e434b45

+ 48 - 1
src/xt_pages/dialysis/dialysisPrintOrder.vue View File

253
           >打印</el-button
253
           >打印</el-button
254
         >
254
         >
255
       </template>
255
       </template>
256
-      <template v-if="org_template_info.template_id == 21">
256
+      <!-- <template v-if="org_template_info.template_id == 21">
257
         <el-button
257
         <el-button
258
           :loading="loading"
258
           :loading="loading"
259
           size="small"
259
           size="small"
262
           type="primary"
262
           type="primary"
263
           >打印</el-button
263
           >打印</el-button
264
         >
264
         >
265
+      </template> -->
266
+      <template
267
+        v-if="
268
+          org_template_info.template_id == 21 ||
269
+            org_template_info.template_id == 0
270
+        "
271
+      >
272
+      <div>
273
+          <el-button
274
+            :loading="loading"
275
+            size="small"
276
+            icon="el-icon-printer"
277
+            @click="printThisPage"
278
+            type="primary"
279
+            >打印全部</el-button
280
+          >
281
+          <el-button
282
+            :loading="loading"
283
+            size="small"
284
+            icon="el-icon-printer"
285
+            @click="printThisOnePage"
286
+            type="primary"
287
+            >打印纪录单</el-button
288
+          >
289
+          <el-button
290
+            :loading="loading"
291
+            size="small"
292
+            icon="el-icon-printer"
293
+            @click="printThisTwoPage"
294
+            type="primary"
295
+            >打印医嘱单</el-button
296
+          >
297
+        </div>
265
       </template>
298
       </template>
266
       <template v-if="org_template_info.template_id == 22">
299
       <template v-if="org_template_info.template_id == 22">
267
         <div>
300
         <div>
930
           style: style,
963
           style: style,
931
           scanStyles: false
964
           scanStyles: false
932
         });
965
         });
966
+      } else if(this.org_template_info.template_id == 21){
967
+        printJS({
968
+          printable: "new-dialysis-1",
969
+          type: "html",
970
+          style: style,
971
+          scanStyles: false
972
+        });
933
       }
973
       }
934
     },
974
     },
935
     printThisTwoPage() {
975
     printThisTwoPage() {
967
           style: style,
1007
           style: style,
968
           scanStyles: false
1008
           scanStyles: false
969
         });
1009
         });
1010
+      } else if(this.org_template_info.template_id == 21){
1011
+        printJS({
1012
+          printable: "new-dialysis-2",
1013
+          type: "html",
1014
+          style: style,
1015
+          scanStyles: false
1016
+        });
970
       }
1017
       }
971
     },
1018
     },
972
     getNumber() {
1019
     getNumber() {

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyOne.vue View File

1
 <template>
1
 <template>
2
   <div id="dialysis-print-box">
2
   <div id="dialysis-print-box">
3
-    <div class="dialysis-print-order">
3
+    <div id='new-dialysis-1' class="dialysis-print-order">
4
       <div class="order-yy-name"></div>
4
       <div class="order-yy-name"></div>
5
       <div class="order-title">{{ orgname }} 血液净化治疗记录单</div>
5
       <div class="order-title">{{ orgname }} 血液净化治疗记录单</div>
6
       <table class="table-box" style="margin-top: 10px;">
6
       <table class="table-box" style="margin-top: 10px;">
953
       </div>
953
       </div>
954
     </div>
954
     </div>
955
     <div style="page-break-after: always;"></div>
955
     <div style="page-break-after: always;"></div>
956
-    <div class="dialysis-print-order">
956
+    <div id='new-dialysis-2' class="dialysis-print-order">
957
       <div class="order-yy-name"></div>
957
       <div class="order-yy-name"></div>
958
       <div class="order-title">血液净化记录单续页</div>
958
       <div class="order-title">血液净化记录单续页</div>
959
       <table class="print-table" border="1">
959
       <table class="print-table" border="1">