Browse Source

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

csx 3 years ago
parent
commit
1e72f2f513

+ 28 - 14
src/xt_pages/outpatientCharges/statementPrint.vue View File

@@ -328,11 +328,11 @@ export default {
328 328
               }
329 329
               let num = 0
330 330
 
331
-              // let obj4 = {
332
-              //   type:4,
333
-              //   details: [],
334
-              //   total: 0
335
-              // }
331
+              let obj4 = {
332
+                type:4,
333
+                details: [],
334
+                total: 0
335
+              }
336 336
               this.balanceAccounts.order_info.map(item => {
337 337
                 if(item.advice_id > 0){
338 338
                   obj.details.push(item)
@@ -350,19 +350,19 @@ export default {
350 350
                   }
351 351
                 }
352 352
               })
353
-              // this.balanceAccounts.new_order_info.map(item => {
354
-              //       obj4.total = item.Total
355
-              //        obj4.details.push(item)
356
-              //        num++
357
-              //
358
-              //
359
-              // })
353
+              this.balanceAccounts.new_order_info.map(item => {
354
+                    obj4.total = item.Total
355
+                     obj4.details.push(item)
356
+                     num++
357
+
358
+
359
+              })
360 360
 
361 361
               this.balanceAccounts.new_detail_list = []
362 362
               this.balanceAccounts.new_detail_list.push(obj)
363 363
               this.balanceAccounts.new_detail_list.push(obj2)
364 364
               this.balanceAccounts.new_detail_list.push(obj3)
365
-              // this.balanceAccounts.new_detail_list.push(obj4)
365
+              this.balanceAccounts.new_detail_list.push(obj4)
366 366
 
367 367
               console.log(111,this.balanceAccounts)
368 368
               this.num = num
@@ -515,6 +515,12 @@ export default {
515 515
                 details: [],
516 516
                 total: 0
517 517
               }
518
+
519
+              let obj4 = {
520
+                type:4,
521
+                details: [],
522
+                total: 0
523
+              }
518 524
               let num = 0
519 525
               that.info.order_infos.map(item => {
520 526
                 if(item.advice_id > 0){
@@ -534,11 +540,19 @@ export default {
534 540
                 }
535 541
               })
536 542
 
543
+              this.info.order_infos.map(item => {
544
+                obj4.total = item.Total
545
+                obj4.details.push(item)
546
+                num++
547
+
548
+              })
549
+
537 550
               that.info.new_detail_list = []
538 551
               that.info.new_detail_list.push(obj)
539 552
               that.info.new_detail_list.push(obj2)
540 553
               that.info.new_detail_list.push(obj3)
541
-              console.log('123',that.info.new_detail_list)
554
+              that.info.new_detail_list.push(obj4)
555
+
542 556
               that.num = num
543 557
 
544 558
               if(that.paramsObj.settle_type != 1){

+ 21 - 21
src/xt_pages/outpatientCharges/statementTemplate/printThree.vue View File

@@ -48,14 +48,14 @@
48 48
                                 <span v-if="item.type == 1">药品费</span>
49 49
                                 <span v-if="item.type == 2">治疗费</span>
50 50
                                 <span v-if="item.type == 3">耗材费</span>
51
-                                <!--<span v-if="item.type == 4">检验费</span>-->
51
+                                <span v-if="item.type == 4">检验费</span>
52 52
 
53 53
                             </td>
54 54
                             <td>
55 55
                                 <span v-if="item.type == 1">{{ subItem.advice.advice_name }}</span>
56 56
                                 <span v-if="item.type == 2">{{ subItem.project.project.project_name }}</span>
57 57
                                 <span v-if="item.type == 3">{{ subItem.project.good_info.good_name }}</span>
58
-                                <!--<span v-if="item.type == 4">{{ subItem.project.project.team_name }}</span>-->
58
+                                <span v-if="item.type == 4">{{ subItem.project.project.team_name }}</span>
59 59
 
60 60
                             </td>
61 61
                             <td>
@@ -63,28 +63,28 @@
63 63
                                         v-if="subItem.advice.drug.min_unit != subItem.advice.drug.dose_unit">{{subItem.advice.drug.dose}}{{subItem.advice.drug.dose_unit}}&nbsp;* &nbsp;</span>{{subItem.advice.drug.min_number}}{{subItem.advice.drug.min_unit}}/{{subItem.advice.drug.max_unit}}</span>
64 64
                                 <span v-if="item.type == 2"></span>
65 65
                                 <span v-if="item.type == 3">{{ subItem.project.good_info.specification_name }}</span>
66
-                                <!--<span v-if="item.type == 4"></span>-->
66
+                                <span v-if="item.type == 4"></span>
67 67
 
68 68
                             </td>
69 69
                             <td>
70 70
                                 <span v-if="item.type == 1">{{ subItem.advice.drug.prescribing_number_unit }}</span>
71 71
                                 <span v-if="item.type == 2">{{ subItem.project.unit }}</span>
72 72
                                 <span v-if="item.type == 3">{{ subItem.project.unit }}</span>
73
-                                <!--<span v-if="item.type == 4"></span>-->
73
+                                <span v-if="item.type == 4"></span>
74 74
 
75 75
                             </td>
76 76
                             <td>
77 77
                                 <span v-if="item.type == 1">{{ subItem.advice.prescribing_number }}</span>
78 78
                                 <span v-if="item.type == 2">{{ subItem.project.count }}</span>
79 79
                                 <span v-if="item.type == 3">{{ subItem.project.count }}</span>
80
-                                <!--<span v-if="item.type == 4"></span>-->
80
+                                <span v-if="item.type == 4"></span>
81 81
 
82 82
                             </td>
83 83
                             <td>
84 84
                                 <span v-if="item.type == 1">{{ subItem.pric }}</span>
85 85
                                 <span v-if="item.type == 2">{{ subItem.pric }}</span>
86 86
                                 <span v-if="item.type == 3">{{ subItem.pric }}</span>
87
-                                <!--<span v-if="item.type == 4"></span>-->
87
+                                <span v-if="item.type == 4"></span>
88 88
 
89 89
                             </td>
90 90
                             <td>
@@ -182,14 +182,14 @@
182 182
                                 <span v-if="item.type == 1">药品费</span>
183 183
                                 <span v-if="item.type == 2">治疗费</span>
184 184
                                 <span v-if="item.type == 3">耗材费</span>
185
-                                <!--<span v-if="item.type == 4">检验费</span>-->
185
+                                <span v-if="item.type == 4">检验费</span>
186 186
 
187 187
                             </td>
188 188
                             <td>
189 189
                                 <span v-if="item.type == 1">{{ subItem.advice.advice_name }}</span>
190 190
                                 <span v-if="item.type == 2">{{ subItem.project.project.project_name }}</span>
191 191
                                 <span v-if="item.type == 3">{{ subItem.project.good_info.good_name }}</span>
192
-                                <!--<span v-if="item.type == 4">{{ subItem.Name }}</span>-->
192
+                                <span v-if="item.type == 4">{{ subItem.Name }}</span>
193 193
 
194 194
                             </td>
195 195
                             <td>
@@ -197,39 +197,39 @@
197 197
                                         v-if="subItem.advice.drug.min_unit != subItem.advice.drug.dose_unit">{{subItem.advice.drug.dose}}{{subItem.advice.drug.dose_unit}}&nbsp;* &nbsp;</span>{{subItem.advice.drug.min_number}}{{subItem.advice.drug.min_unit}}/{{subItem.advice.drug.max_unit}}</span>
198 198
                                 <span v-if="item.type == 2"></span>
199 199
                                 <span v-if="item.type == 3">{{ subItem.project.good_info.specification_name }}</span>
200
-                                <!--<span v-if="item.type == 4"></span>-->
200
+                                <span v-if="item.type == 4"></span>
201 201
 
202 202
                             </td>
203 203
                             <td>
204 204
                                 <span v-if="item.type == 1">{{ subItem.advice.drug.prescribing_number_unit }}</span>
205 205
                                 <span v-if="item.type == 2">{{ subItem.project.unit }}</span>
206 206
                                 <span v-if="item.type == 3">{{ subItem.project.unit }}</span>
207
-                                <!--<span v-if="item.type == 4"></span>-->
207
+                                <span v-if="item.type == 4"></span>
208 208
 
209 209
                             </td>
210 210
                             <td>
211 211
                                 <span v-if="item.type == 1">{{ subItem.advice.prescribing_number }}</span>
212 212
                                 <span v-if="item.type == 2">{{ subItem.project.count }}</span>
213 213
                                 <span v-if="item.type == 3">{{ subItem.project.count }}</span>
214
-                                <!--<span v-if="item.type == 4">1</span>-->
214
+                                <span v-if="item.type == 4">1</span>
215 215
 
216 216
                             </td>
217 217
                             <td>
218 218
                                 <span v-if="item.type == 1">{{ subItem.pric }}</span>
219 219
                                 <span v-if="item.type == 2">{{ subItem.pric }}</span>
220 220
                                 <span v-if="item.type == 3">{{ subItem.pric }}</span>
221
-                                <!--<span v-if="item.type == 4">{{subItem.Total}}</span>-->
221
+                                <span v-if="item.type == 4">{{subItem.Total}}</span>
222 222
 
223 223
                             </td>
224 224
                             <td>
225
-                                <span v-if="item.type == 1">{{ (subItem.advice.prescribing_number * subItem.pric).toFixed(2) }}</span>
226
-                                <span v-if="item.type == 2">{{ (subItem.project.count * subItem.pric).toFixed(2) }}</span>
227
-                                <span v-if="item.type == 3">{{ (subItem.project.count * subItem.pric).toFixed(2) }}</span>
228
-                                <!--<span v-if="item.type == 4">{{subItem.Total}}</span>-->
225
+                                <span v-if="item.type == 1">{{ (subItem.advice.prescribing_number * subItem.pric).toFixed(4) }}</span>
226
+                                <span v-if="item.type == 2">{{ (subItem.project.count * subItem.pric).toFixed(4) }}</span>
227
+                                <span v-if="item.type == 3">{{ (subItem.project.count * subItem.pric).toFixed(4) }}</span>
228
+                                <span v-if="item.type == 4">{{subItem.Total}}</span>
229 229
 
230 230
                             </td>
231 231
                             <td :rowspan="item.details.length" v-if="index == 0"
232
-                                style="vertical-align: middle;text-align: center;">{{ item.total.toFixed(2) }}
232
+                                style="vertical-align: middle;text-align: center;">{{ item.total.toFixed(4) }}
233 233
                             </td>
234 234
                         </tr>
235 235
                     </div>
@@ -238,10 +238,10 @@
238 238
                             <div style="display:flex;flez-wrap:wrap;">
239 239
                                 <div style="width:33%;" v-for="(item,index) in balanceAccounts.new_detail_list"
240 240
                                      :key="index">
241
-                                    <span v-if="item.type == 1">药品费: {{ item.total.toFixed(2) }}</span>
242
-                                    <span v-if="item.type == 2">治疗费: {{ item.total.toFixed(2) }}</span>
243
-                                    <span v-if="item.type == 3">耗材费: {{ item.total.toFixed(2) }}</span>
244
-                                    <!--<span v-if="item.type == 4">检验费: {{ item.total.toFixed(2) }}</span>-->
241
+                                    <span v-if="item.type == 1">药品费: {{ item.total.toFixed(4) }}</span>
242
+                                    <span v-if="item.type == 2">治疗费: {{ item.total.toFixed(4) }}</span>
243
+                                    <span v-if="item.type == 3">耗材费: {{ item.total.toFixed(4) }}</span>
244
+                                    <span v-if="item.type == 4">检验费: {{ item.total.toFixed(4) }}</span>
245 245
 
246 246
                                 </div>
247 247
                             </div>