see999 4 years ago
parent
commit
ed4bc581bc

+ 19 - 7
src/xt_pages/outpatientCharges/newStatementPrint.vue View File

71
         var ptime = Math.round(new Date().getTime() / 1000);
71
         var ptime = Math.round(new Date().getTime() / 1000);
72
         this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
72
         this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
73
 
73
 
74
-        const style =
74
+        if(this.org_id != 9990){
75
+          const style =
75
           '@media print {.statementTitle{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;}.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 16px;border-color: #000;}}';
76
           '@media print {.statementTitle{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;}.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 16px;border-color: #000;}}';
76
-        printJS({
77
-          printable: "statement-print",
78
-          type: "html",
79
-          style: style,
80
-          scanStyles: false
81
-        });
77
+          printJS({
78
+            printable: "statement-print",
79
+            type: "html",
80
+            style: style,
81
+            scanStyles: false
82
+          });
83
+        }else {
84
+          const style =
85
+          '@media print {#statement-print{font-size:12px;}.statementTitle{font-size: 22px;text-align: center;margin-bottom: 10px;}.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 16px;border-color: #000;}}';
86
+          printJS({
87
+            printable: "statement-print",
88
+            type: "html",
89
+            style: style,
90
+            scanStyles: false
91
+          });
92
+        }
93
+        
82
 
94
 
83
         // if (this.org_template_info.template_id == 1) {
95
         // if (this.org_template_info.template_id == 1) {
84
         //   printJS({
96
         //   printJS({

+ 2 - 3
src/xt_pages/outpatientCharges/statementTemplate/printTwo.vue View File

20
     </div>
20
     </div>
21
     <div style="display:flex;justify-content: space-between;border-bottom:1px solid #000;padding-bottom:10px;">
21
     <div style="display:flex;justify-content: space-between;border-bottom:1px solid #000;padding-bottom:10px;">
22
       <div style="flex:1;">单据编码:{{info.number}}</div>
22
       <div style="flex:1;">单据编码:{{info.number}}</div>
23
-      <div style="width:33%">就诊时间:{{getTime(info.date)}}</div>
23
+      <div style="width:33%">就诊时间:{{getTime(order_infos.date)}}</div>
24
       <div>金额单位:元</div>
24
       <div>金额单位:元</div>
25
     </div>
25
     </div>
26
     <div style="display:flex">
26
     <div style="display:flex">
171
   }
171
   }
172
 
172
 
173
   .statementTitle {
173
   .statementTitle {
174
-    font-size: 28px;
174
+    font-size: 22px;
175
     text-align: center;
175
     text-align: center;
176
-    font-weight: bold;
177
     margin-bottom: 10px;
176
     margin-bottom: 10px;
178
   }
177
   }
179
 
178