Bläddra i källkod

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

杨青 2 år sedan
förälder
incheckning
01ab6fc0c4

+ 53 - 57
src/xt_pages/outpatientCharges/batchStatementPrint.vue Visa fil

@@ -20,9 +20,9 @@
20 20
 <!--        :info="info"-->
21 21
 <!--        v-if="org_id == 10138 || org_id == 0 || org_id == 10278"-->
22 22
 <!--      ></batch-print-three>-->
23
-      <batch-print 
23
+      <batch-print
24 24
         :info="info"
25
-        v-if="org_id == 10138 || org_id == 0 || org_id == 10278 || org_id == 10342 || org_id == 10341 " 
25
+        v-if="org_id == 10138 || org_id == 0 || org_id == 10278 || org_id == 10342 || org_id == 10341 "
26 26
       >
27 27
 
28 28
       </batch-print>
@@ -97,7 +97,6 @@ export default {
97 97
   },
98 98
   methods: {
99 99
     printThisPage() {
100
-      console.log('打印12323435456456');
101 100
       var ptime = Math.round(new Date().getTime() / 1000);
102 101
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
103 102
 
@@ -134,67 +133,64 @@ export default {
134 133
             "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 87%;}}}";
135 134
           const style12 =
136 135
             "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 89%;}}}";
137
-        
136
+
138 137
             printJS({
139 138
               printable: "prescription-print",
140 139
               type: "html",
141 140
               style: style,
142 141
               scanStyles: false,
143 142
             });
144
-      
145
-      
143
+
144
+
146 145
         }, 500);
147
-      } 
148
-      // else if (
149
-      //   this.$store.getters.xt_user.org_id == 9504 ||
150
-      //   this.$store.getters.xt_user.org_id == 10028
151
-      // ) {
152
-      //   const style =
153
-      //     "@media print {.printTitle{font-size: 20px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;font-size:12px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;font-size:12px;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none;font-size:12px;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;font-size:12px;}.actionBar div{width:150px;}}";
154
-      //   printJS({
155
-      //     printable: "prescription-print",
156
-      //     type: "html",
157
-      //     style: style,
158
-      //     scanStyles: false,
159
-      //   });
160
-      // } 
161
-      // else {
162
-      //   // 医保环境打印格式
163
-      //   if (
164
-      //     this.$store.getters.xt_user.org_id == 9919 ||
165
-      //     this.$store.getters.xt_user.org_id == 10106
166
-      //   ) {
167
-      //     const style =
168
-      //       "@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;}}";
169
-      //     printJS({
170
-      //       printable: "prescription-print",
171
-      //       type: "html",
172
-      //       style: style,
173
-      //       scanStyles: false,
174
-      //     });
175
-      //   } else if (
176
-         
177
-      //     this.$store.getters.xt_user.org_id == 10191
178
-      //   ) {
179
-      //     const style =
180
-      //       "@media print {#prescription-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table{border-collapse: collapse;text-align: center;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 57%;}}}";
181
-      //     printJS({
182
-      //       printable: "prescription-print",
183
-      //       type: "html",
184
-      //       style: style,
185
-      //       scanStyles: false,
186
-      //     });
187
-      //   } else {
188
-      //     const style =
189
-      //       "@media print {#prescription-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table{border-collapse: collapse;text-align: center;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 57%;}}}";
190
-      //     printJS({
191
-      //       printable: "prescription-print",
192
-      //       type: "html",
193
-      //       style: style,
194
-      //       scanStyles: false,
195
-      //     });
196
-      //   }
197
-      // }
146
+      } else if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028) {
147
+        const style =
148
+          "@media print {.printTitle{font-size: 20px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;font-size:12px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;font-size:12px;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none;font-size:12px;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;font-size:12px;}.actionBar div{width:150px;}}";
149
+        printJS({
150
+          printable: "prescription-print",
151
+          type: "html",
152
+          style: style,
153
+          scanStyles: false,
154
+        });
155
+      } else {
156
+        // 医保环境打印格式
157
+        if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 10106) {
158
+          const style =
159
+            "@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;}}";
160
+          printJS({
161
+            printable: "statement-print",
162
+            type: "html",
163
+            style: style,
164
+            scanStyles: false,
165
+          });
166
+        } else if (this.$store.getters.xt_user.org_id == 10191) {
167
+          const style =
168
+            "@media print {#statement-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table{border-collapse: collapse;text-align: center;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 57%;}}}";
169
+          printJS({
170
+            printable: "statement-print",
171
+            type: "html",
172
+            style: style,
173
+            scanStyles: false,
174
+          });
175
+          // const style =
176
+          //     "@media print {.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 14px;border-color: #000;} .statementTable thead{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;} .statementTable tbody{text-align:left;} .statementTable tbody .view_tr{text-align:center;border: 1px solid;} tbody .dashed_tr{border: 1px dashed;text-align:center} .list_table{width: 100%;margin-bottom: 100px;} tbody tr td div{height:25px;}}";
177
+          // printJS({
178
+          //   printable: "statement-print",
179
+          //   type: "html",
180
+          //   style: style,
181
+          //   scanStyles: false,
182
+          // });
183
+        } else {
184
+          const style =
185
+            "@media print {#statement-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table{border-collapse: collapse;text-align: center;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 57%;}}}";
186
+          printJS({
187
+            printable: "statement-print",
188
+            type: "html",
189
+            style: style,
190
+            scanStyles: false,
191
+          });
192
+        }
193
+      }
198 194
 
199 195
       // if (this.org_template_info.template_id == 1) {
200 196
       //   printJS({

+ 7 - 7
src/xt_pages/outpatientCharges/statementTemplate/batchPrint.vue Visa fil

@@ -1,11 +1,11 @@
1 1
 <template>
2 2
   <div>
3
-    <div id='prescription-print'>    
3
+    <div id='prescription-print'>
4 4
         <div  class="prescription-print"
5
-            style="position: relative;  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset; page-break-after:always" 
5
+            style="position: relative;  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset; page-break-after:always"
6 6
             v-for="(infos,index) in info" :key="index">
7
-          <img style="width:100%;height:80px" 
8
-            v-if="$store.getters.xt_user.org_id == 10138 || $store.getters.xt_user.org_id == 0 || $store.getters.xt_user.org_id == 10342 || $store.getters.xt_user.org_id == 10341" 
7
+          <img style="width:100%;height:80px"
8
+            v-if="$store.getters.xt_user.org_id == 10138 || $store.getters.xt_user.org_id == 0 || $store.getters.xt_user.org_id == 10342 || $store.getters.xt_user.org_id == 10341"
9 9
              src="https://kuyi.shengws.com/bailin/bltotle.jpg" alt="">
10 10
           <img style="width:100%;height:80px" v-if="$store.getters.xt_user.org_id==10278" src="https://kuyi.shengws.com/beierlog.png" alt="">
11 11
           <div class="printTitle" style="position: absolute;left: 40%;top: 50px;">门诊收费清单</div>
@@ -148,7 +148,7 @@
148 148
               </div>
149 149
             </div>
150 150
           </div>
151
-          
151
+
152 152
           <img style="width:100%;" v-if="$store.getters.xt_user.org_id == 10138" src="https://kuyi.shengws.com/bailin/blend.jpg" alt="">
153 153
           <img style="width:100%;" v-if="$store.getters.xt_user.org_id == 10278" src="https://kuyi.shengws.com/bailinbeier.png" alt="">
154 154
 
@@ -427,9 +427,9 @@ export default {
427 427
   },
428 428
   mounted() {
429 429
     this.org_id = this.$store.getters.xt_user.org_id
430
-    
431 430
 
432
-    
431
+
432
+
433 433
   },
434 434
   watch: {
435 435
     paramsObj: {//深度监听,可监听到对象、数组的变化

+ 6 - 6
src/xt_pages/outpatientCharges/statementTemplate/printThree.vue Visa fil

@@ -12,7 +12,7 @@
12 12
                 <div>透析号:<span style="display:inline-block;width:200px;">{{info.patient.dialysis_no ? info.patient.dialysis_no : ''}}</span>
13 13
                 </div>
14 14
                 <div style="margin-left:2px;">电脑号:<span
15
-                        style="display:inline-block;">{{info.psn_no ? info.psn_no : ''}}</span></div>
15
+                        style="display:inline-block;">{{info.new_order.psn_no ? info.new_order.psn_no : ''}}</span></div>
16 16
             </div>
17 17
             <div style="display:flex;justify-content: space-between;">
18 18
                 <div style="display:flex;">
@@ -26,7 +26,7 @@
26 26
                     </div>
27 27
                     <div>费别:<span style="display:inline-block;min-width:80px;">医保</span>
28 28
                     </div>
29
-                    <div>收费日期:<span style="display:inline-block;width:100px;">{{info.setl_time ? info.setl_time.split(' ')[0] : ''}}</span>
29
+                    <div>收费日期:<span style="display:inline-block;width:100px;">{{info.new_order.setl_time ? info.new_order.setl_time.split(' ')[0] : ''}}</span>
30 30
                     </div>
31 31
                 </div>
32 32
                 <div style="float:right">金额单位:元</div>
@@ -130,18 +130,18 @@
130 130
                             <div style="display:flex;flez-wrap:wrap;font-size:16px;">
131 131
                               <div style="width:33%;">医疗救助基金金额:{{info.maf_pay?info.maf_pay:info.new_order.maf_pay}}元</div>
132 132
 
133
-                              <div style="width:33%;">个人支付金额:{{ info.psn_pay?info.psn_pay:info.new_order.psn_pay }}元</div>
134
-                                <div style="width:33%;">个人账户金额:{{info.balc >= 0 ? info.balc : info.new_order.balc}}元</div>
133
+                              <div style="width:33%;">个人支付金额:{{ info.new_order.psn_cash_pay}}元</div>
134
+                                <div style="width:33%;">个人账户金额:{{info.new_order.balc}}元</div>
135 135
                             </div>
136 136
                         </td>
137
-                        <td style="font-size:16px;">合计:{{info.medfee_sumamt?info.medfee_sumamt:info.new_order.medfee_sumamt}}元</td>
137
+                        <td style="font-size:16px;">合计:{{info.new_order.medfee_sumamt}}元</td>
138 138
                     </tr>
139 139
 
140 140
                 </table>
141 141
             </div>
142 142
             <div style="float:right;margin:10px 0;display:flex;">
143 143
                 <div>操作人:<span style="width:100px;display:inline-block;">{{info.p_admin.user_name}}</span></div>
144
-                <div>操作日期:<span style="width:100px;display:inline-block;">{{info.setl_time ? info.setl_time.split(' ')[0] : ''}}</span>
144
+                <div>操作日期:<span style="width:100px;display:inline-block;">{{info.new_order.setl_time ? info.new_order.setl_time.split(' ')[0] : ''}}</span>
145 145
                 </div>
146 146
             </div>
147 147
             <img style="width:100%;" v-if="$store.getters.xt_user.org_id == 10138" src="https://kuyi.shengws.com/bailin/blend.jpg" alt="">

+ 4 - 4
src/xt_pages/outpatientDoctorStation/batch_print_template/batchPrintThree.vue Visa fil

@@ -8,13 +8,13 @@
8 8
           class="prescription-print"
9 9
           style="page-break-after: always"
10 10
         >
11
-          <span v-if="org_id == 10138">
11
+          <span v-if="org_id == 10138 || org_id == 10341 || org_id == 10342">
12 12
             <img
13 13
               src="https://kuyi.shengws.com/bailin/bltotle.jpg"
14 14
               style="width: 100%"
15 15
               alt=""
16 16
             /></span>
17
-          <span v-if="org_id == 10278">
17
+          <span v-if="org_id == 10278  || org_id == 10341 || org_id == 10342">
18 18
             <img
19 19
               src="https://kuyi.shengws.com/beierlog.png"
20 20
               style="width: 100%"
@@ -220,13 +220,13 @@
220 220
           </div>
221 221
           <div>*处方当日有效,特殊情况可适当延长,一般不超过3天</div>
222 222
           <div>*药品属于特殊商品,非质量问题不允许退换</div>
223
-          <span v-if="org_id == 10138"
223
+          <span v-if="org_id == 10138  || org_id == 10341 || org_id == 10342"
224 224
           ><img
225 225
             src="https://kuyi.shengws.com/bailin/blend.jpg"
226 226
             style="width: 100%"
227 227
             alt=""
228 228
           /></span>
229
-          <span v-if="org_id == 10278"
229
+          <span v-if="org_id == 10278  || org_id == 10341 || org_id == 10342"
230 230
           ><img
231 231
             src="https://kuyi.shengws.com/bailinbeier.png"
232 232
             style="width: 100%"