Procházet zdrojové kódy

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

XMLWAN před 4 roky
rodič
revize
406e434b45

+ 48 - 1
src/xt_pages/dialysis/dialysisPrintOrder.vue Zobrazit soubor

@@ -253,7 +253,7 @@
253 253
           >打印</el-button
254 254
         >
255 255
       </template>
256
-      <template v-if="org_template_info.template_id == 21">
256
+      <!-- <template v-if="org_template_info.template_id == 21">
257 257
         <el-button
258 258
           :loading="loading"
259 259
           size="small"
@@ -262,6 +262,39 @@
262 262
           type="primary"
263 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 298
       </template>
266 299
       <template v-if="org_template_info.template_id == 22">
267 300
         <div>
@@ -930,6 +963,13 @@ export default {
930 963
           style: style,
931 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 975
     printThisTwoPage() {
@@ -967,6 +1007,13 @@ export default {
967 1007
           style: style,
968 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 1019
     getNumber() {

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyOne.vue Zobrazit soubor

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