yq1 1 年之前
父節點
當前提交
b05da602ad
共有 1 個文件被更改,包括 24 次插入9 次删除
  1. 24 9
      src/xt_pages/dialysis/details/consumable/dialysisParameterPrint.vue

+ 24 - 9
src/xt_pages/dialysis/details/consumable/dialysisParameterPrint.vue 查看文件

237
         dialysisSett:{},
237
         dialysisSett:{},
238
         total_one:0,
238
         total_one:0,
239
         total_two:0,
239
         total_two:0,
240
-        total_three:0
240
+        total_three:0,
241
+        org_id:'',
241
       }
242
       }
242
     },
243
     },
243
     components: {
244
     components: {
244
       BreadCrumb
245
       BreadCrumb
245
     },
246
     },
246
     created() {
247
     created() {
248
+      this.org_id = this.$store.getters.xt_user.org.id
247
       this.displace_liqui_part_option = this.$store.getters.displace_liqui
249
       this.displace_liqui_part_option = this.$store.getters.displace_liqui
248
       this.blood_access_option  = getDataConfig('hemodialysis', 'vascular_access_desc')
250
       this.blood_access_option  = getDataConfig('hemodialysis', 'vascular_access_desc')
249
       this.getlist()
251
       this.getlist()
309
         }
311
         }
310
      },
312
      },
311
       printAction: function() {
313
       printAction: function() {
312
-        const style = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 16px; padding: 0px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 14px; padding: 0px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }'
313
-        printJS({
314
-          printable: 'print_content',
315
-          type: 'html',
316
-          documentTitle: '  ',
317
-          style: style,
318
-          scanStyles: false
319
-       })
314
+        if(this.org_id != 10495 && this.org_id != 0){
315
+          const style = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 16px; padding: 0px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 14px; padding: 0px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }'
316
+          printJS({
317
+            printable: 'print_content',
318
+            type: 'html',
319
+            documentTitle: '  ',
320
+            style: style,
321
+            scanStyles: false
322
+          })
323
+        }else{
324
+          // const style = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 16px; padding: 0px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 14px; padding: 0px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }'
325
+          const style = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }'
326
+          printJS({
327
+            printable: 'print_content',
328
+            type: 'html',
329
+            documentTitle: '  ',
330
+            style: style,
331
+            scanStyles: false
332
+          })
333
+        }
334
+        
320
       },
335
       },
321
       getAnticoagualnt(id){
336
       getAnticoagualnt(id){
322
        var name = ""
337
        var name = ""