소스 검색

新功能

test_user 2 년 전
부모
커밋
fb0eb39481
2개의 변경된 파일32개의 추가작업 그리고 110개의 파일을 삭제
  1. 10 89
      src/xt_pages/outpatientCharges/batchStatementPrint.vue
  2. 22 21
      src/xt_pages/outpatientCharges/statementTemplate/batchPrint.vue

+ 10 - 89
src/xt_pages/outpatientCharges/batchStatementPrint.vue 파일 보기

@@ -23,7 +23,7 @@
23 23
 <!--        v-if="org_id == 10138 || org_id == 0 || org_id == 10278"-->
24 24
 <!--      ></batch-print-three>-->
25 25
       <batch-print
26
-        :info="info"
26
+        :infos="info"
27 27
         v-if="org_id == 10138 || org_id == 0 || org_id == 10278"
28 28
       >
29 29
 
@@ -104,12 +104,12 @@ export default {
104 104
 
105 105
       if (
106 106
         this.$store.getters.xt_user.org_id == 10138 ||
107
-        this.$store.getters.xt_user.org_id == 4 ||
107
+        this.$store.getters.xt_user.org_id == 0 ||
108 108
         this.$store.getters.xt_user.org_id == 10278
109 109
       ) {
110 110
         setTimeout(() => {
111 111
           const style =
112
-            "@media print {#statement-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: 47%;}}}";
112
+            "@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: 47%;}}}";
113 113
           const style2 =
114 114
             "@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: 50%;}}}";
115 115
           const style3 =
@@ -132,91 +132,12 @@ export default {
132 132
             "@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%;}}}";
133 133
           const style12 =
134 134
             "@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%;}}}";
135
-          if (this.num >= 13) {
136
-            printJS({
137
-              printable: "prescription-print",
138
-              type: "html",
139
-              style: style,
140
-              scanStyles: false,
141
-            });
142
-          } else if (this.num == 12) {
143
-            printJS({
144
-              printable: "prescription-print",
145
-              type: "html",
146
-              style: style2,
147
-              scanStyles: false,
148
-            });
149
-          } else if (this.num == 11) {
150
-            printJS({
151
-              printable: "prescription-print",
152
-              type: "html",
153
-              style: style3,
154
-              scanStyles: false,
155
-            });
156
-          } else if (this.num == 10) {
157
-            printJS({
158
-              printable: "prescription-print",
159
-              type: "html",
160
-              style: style4,
161
-              scanStyles: false,
162
-            });
163
-          } else if (this.num == 9) {
164
-            printJS({
165
-              printable: "prescription-print",
166
-              type: "html",
167
-              style: style5,
168
-              scanStyles: false,
169
-            });
170
-          } else if (this.num == 8) {
171
-            printJS({
172
-              printable: "prescription-print",
173
-              type: "html",
174
-              style: style6,
175
-              scanStyles: false,
176
-            });
177
-          } else if (this.num == 7) {
178
-            printJS({
179
-              printable: "prescription-print",
180
-              type: "html",
181
-              style: style7,
182
-              scanStyles: false,
183
-            });
184
-          } else if (this.num == 6) {
185
-            printJS({
186
-              printable: "prescription-print",
187
-              type: "html",
188
-              style: style8,
189
-              scanStyles: false,
190
-            });
191
-          } else if (this.num == 5) {
192
-            printJS({
193
-              printable: "prescription-print",
194
-              type: "html",
195
-              style: style9,
196
-              scanStyles: false,
197
-            });
198
-          } else if (this.num == 4) {
199
-            printJS({
200
-              printable: "prescription-print",
201
-              type: "html",
202
-              style: style10,
203
-              scanStyles: false,
204
-            });
205
-          } else if (this.num == 3) {
206
-            printJS({
207
-              printable: "prescription-print",
208
-              type: "html",
209
-              style: style11,
210
-              scanStyles: false,
211
-            });
212
-          } else if (this.num <= 2) {
213
-            printJS({
214
-              printable: "prescription-print",
215
-              type: "html",
216
-              style: style12,
217
-              scanStyles: false,
218
-            });
219
-          }
135
+          printJS({
136
+            printable: "prescription-print",
137
+            type: "html",
138
+            style: style,
139
+            scanStyles: false,
140
+          });
220 141
         }, 500);
221 142
       } else if (
222 143
         this.$store.getters.xt_user.org_id == 9504 ||
@@ -245,7 +166,7 @@ export default {
245 166
             scanStyles: false,
246 167
           });
247 168
         } else if (
248
-          this.$store.getters.xt_user.org_id == 0 ||
169
+
249 170
           this.$store.getters.xt_user.org_id == 10191
250 171
         ) {
251 172
           const style =

+ 22 - 21
src/xt_pages/outpatientCharges/statementTemplate/batchPrint.vue 파일 보기

@@ -2,31 +2,32 @@
2 2
   <div>
3 3
     <div  id='prescription-print' class="prescription-print"
4 4
          style="position: relative;">
5
+      <div v-for="(info,index) in infos">
5 6
       <img style="width:100%;height:80px" v-if="$store.getters.xt_user.org_id == 10138 || $store.getters.xt_user.org_id == 0 " src="https://kuyi.shengws.com/bailin/bltotle.jpg" alt="">
6 7
       <img style="width:100%;height:80px" v-if="$store.getters.xt_user.org_id==10278" src="https://kuyi.shengws.com/beierlog.png" alt="">
7 8
       <div class="printTitle" style="position: absolute;left: 40%;top: 50px;">门诊收费清单</div>
8 9
       <div style="display:flex;">
9 10
         <div>单据号:<span
10
-          style="display:inline-block;width:200px;">{{info[0].order.number ? info[0].order.number : ''}}</span>
11
+          style="display:inline-block;width:200px;">{{info.order.number ? info.order.number : ''}}</span>
11 12
         </div>
12
-        <div>透析号:<span style="display:inline-block;width:200px;">{{info[0].patient.dialysis_no ? info[0].patient.dialysis_no : ''}}</span>
13
+        <div>透析号:<span style="display:inline-block;width:200px;">{{info.patient.dialysis_no ? info.patient.dialysis_no : ''}}</span>
13 14
         </div>
14 15
         <div style="margin-left:2px;">电脑号:<span
15
-          style="display:inline-block;">{{info[0].his.psn_no ? info[0].his.psn_no : ''}}</span></div>
16
+          style="display:inline-block;">{{info.his.psn_no ? info.his.psn_no : ''}}</span></div>
16 17
       </div>
17 18
       <div style="display:flex;justify-content: space-between;">
18 19
         <div style="display:flex;">
19
-          <div>姓名:<span style="display:inline-block;width:50px;">{{info[0].patient.name ? info[0].patient.name.indexOf('(') > -1 ? info[0].patient.name.substring(0,info[0].patient.name.indexOf('(')) : info[0].patient.name : ''}}</span>
20
+          <div>姓名:<span style="display:inline-block;width:50px;">{{info.patient.name ? info.patient.name.indexOf('(') > -1 ? info.patient.name.substring(0,info.patient.name.indexOf('(')) : info.patient.name : ''}}</span>
20 21
           </div>
21 22
           <div>性别:<span
22
-            style="display:inline-block;width:30px;">{{info[0].patient.gender == '1' ? '男' : '女'}}</span>
23
+            style="display:inline-block;width:30px;">{{info.patient.gender == '1' ? '男' : '女'}}</span>
23 24
           </div>
24 25
           <div>年龄:<span
25
-            style="display:inline-block;width:50px;">{{getAge(info[0].patient)}}岁</span>
26
+            style="display:inline-block;width:50px;">{{getAge(info.patient)}}岁</span>
26 27
           </div>
27 28
           <div>费别:<span style="display:inline-block;min-width:80px;">医保</span>
28 29
           </div>
29
-          <div>收费日期:<span style="display:inline-block;width:100px;">{{info[0].order.setl_time ? info[0].order.setl_time.split(' ')[0] : ''}}</span>
30
+          <div>收费日期:<span style="display:inline-block;width:100px;">{{info.order.setl_time ? info.order.setl_time.split(' ')[0] : ''}}</span>
30 31
           </div>
31 32
         </div>
32 33
         <div style="float:right">金额单位:元</div>
@@ -43,7 +44,7 @@
43 44
             <td width="70">总额</td>
44 45
             <td width="130">小计</td>
45 46
           </tr>
46
-          <div v-for="(item,i) in info[0].new_detail_list" :key="i" style="width:100%;display: table-row-group;">
47
+          <div v-for="(item,i) in info.new_detail_list" :key="i" style="width:100%;display: table-row-group;">
47 48
             <tr v-for="(subItem,index) in item.details" :key="index">
48 49
               <td>
49 50
                 <span v-if="item.type == 1">药品费</span>
@@ -106,7 +107,7 @@
106 107
           <tr>
107 108
             <td colspan="7">
108 109
               <div style="display:flex;flez-wrap:wrap;">
109
-                <div style="width:33%;" v-for="(item,index) in info[0].new_detail_list" :key="index">
110
+                <div style="width:33%;" v-for="(item,index) in info.new_detail_list" :key="index">
110 111
                   <span v-if="item.type == 1">药品费: {{ item.total.toFixed(2) }}</span>
111 112
                   <span v-if="item.type == 2">诊疗费: {{ item.total.toFixed(2) }}</span>
112 113
                   <span v-if="item.type == 3">耗材费: {{ item.total.toFixed(2) }}</span>
@@ -117,31 +118,31 @@
117 118
                 </div>
118 119
               </div>
119 120
             </td>
120
-            <td>合计: {{info[0].order.medfee_sumamt}}元</td>
121
+            <td>合计: {{info.order.medfee_sumamt}}元</td>
121 122
           </tr>
122 123
           <tr>
123 124
             <td colspan="7">
124 125
               <div style="display:flex;flez-wrap:wrap;margin-bottom:10px;font-size:16px;">
125
-                <div style="width:33%;">医疗费总额:{{info[0].order.medfee_sumamt}}元</div>
126
-                <div style="width:33%;">基金支付金额:{{info[0].order.hifp_pay}}元</div>
127
-                <div style="width:33%;">个人账户支付金额:{{info[0].order.acct_pay}}元</div>
126
+                <div style="width:33%;">医疗费总额:{{info.order.medfee_sumamt}}元</div>
127
+                <div style="width:33%;">基金支付金额:{{info.order.hifp_pay}}元</div>
128
+                <div style="width:33%;">个人账户支付金额:{{info.order.acct_pay}}元</div>
128 129
 
129 130
               </div>
130 131
               <div style="display:flex;flez-wrap:wrap;font-size:16px;">
131
-                <div style="width:33%;">医疗救助基金金额:{{info[0].order.maf_pay}}元</div>
132
+                <div style="width:33%;">医疗救助基金金额:{{info.order.maf_pay}}元</div>
132 133
 
133
-                <div style="width:33%;">个人支付金额:{{ info[0].order.psn_pay }}元</div>
134
-                <div style="width:33%;">个人账户金额:{{info[0].order.balc}}元</div>
134
+                <div style="width:33%;">个人支付金额:{{ info.order.psn_pay }}元</div>
135
+                <div style="width:33%;">个人账户金额:{{info.order.balc}}元</div>
135 136
               </div>
136 137
             </td>
137
-            <td style="font-size:16px;">合计:{{info[0].order.medfee_sumamt}}元</td>
138
+            <td style="font-size:16px;">合计:{{info.order.medfee_sumamt}}元</td>
138 139
           </tr>
139 140
 
140 141
         </table>
141 142
       </div>
142 143
       <div style="float:right;margin:10px 0;display:flex;">
143
-        <div>操作人:<span style="width:100px;display:inline-block;">{{info[0].printor_admin.user_name}}</span></div>
144
-        <div>操作日期:<span style="width:100px;display:inline-block;">{{info[0].order.setl_time ? info[0].order.setl_time.split(' ')[0] : ''}}</span>
144
+        <div>操作人:<span style="width:100px;display:inline-block;">{{info.printor_admin.user_name}}</span></div>
145
+        <div>操作日期:<span style="width:100px;display:inline-block;">{{info.order.setl_time ? info.order.setl_time.split(' ')[0] : ''}}</span>
145 146
         </div>
146 147
       </div>
147 148
       <img style="width:100%;" v-if="$store.getters.xt_user.org_id == 10138" src="https://kuyi.shengws.com/bailin/blend.jpg" alt="">
@@ -150,7 +151,7 @@
150 151
     </div>
151 152
 
152 153
   </div>
153
-
154
+  </div>
154 155
 </template>
155 156
 <script>
156 157
 import { getChargePrint } from '@/api/project/project'
@@ -181,7 +182,7 @@ export default {
181 182
   },
182 183
   props: {
183 184
     paramsObj: Object,
184
-    info: Object,
185
+    infos: Array,
185 186
     balanceAccounts: Object
186 187
   },
187 188
   methods: {