Kaynağa Gözat

提交代码

陈少旭 1 yıl önce
ebeveyn
işleme
09efe37848

+ 14 - 14
src/xt_pages/hospitalStation/statementTemplate/printOne.vue Dosyayı Görüntüle

@@ -145,11 +145,11 @@
145 145
       <tr>
146 146
         <td>床位费</td>
147 147
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.bed_cost_total}}</td>
148
-        <td style="text-align:right;padding-right:10px;">{{info.bed_cost_self_total}}</td>
148
+        <td style="text-align:right;padding-right:10px;">{{(info.bed_cost_self_total + info.bedSelfTotal).toFixed(2)}}</td>
149 149
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.bed_cost_part_self_total}}</td>
150 150
         <td>西成药</td>
151 151
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.western_medicine_cost_total}}</td>
152
-        <td style="text-align:right;padding-right:10px;">{{info.western_medicine_cost_self_total}}</td>
152
+        <td style="text-align:right;padding-right:10px;">{{(info.western_medicine_cost_self_total + info.westernMedicineSelfTotal).toFixed(2)}}</td>
153 153
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.western_medicine_cost_part_self_total}}</td>
154 154
       </tr>
155 155
       <tr>
@@ -160,7 +160,7 @@
160 160
         <td>中成药</td>
161 161
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.chinese_traditional_medicine_cost_total}}
162 162
         </td>
163
-        <td style="text-align:right;padding-right:10px;">{{info.chinese_traditional_medicine_cost_self_total}}</td>
163
+        <td style="text-align:right;padding-right:10px;">{{(info.chinese_traditional_medicine_cost_self_total + info.chineseTraditionalSelfTotal).toFixed(2)}}</td>
164 164
         <td colspan="2" style="text-align:right;padding-right:10px;">
165 165
           {{info.chinese_traditional_medicine_cost_part_self_total}}
166 166
         </td>
@@ -172,13 +172,13 @@
172 172
         <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
173 173
         <td>检查费</td>
174 174
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.check_cost_total}}</td>
175
-        <td style="text-align:right;padding-right:10px;">{{info.check_cost_self_total}}</td>
175
+        <td style="text-align:right;padding-right:10px;">{{(info.check_cost_self_total + info.checkSelfTotal).toFixed(2)}}</td>
176 176
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.check_cost_part_self_total}}</td>
177 177
       </tr>
178 178
       <tr>
179 179
         <td>治疗费</td>
180 180
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.treat_cost_total}}</td>
181
-        <td style="text-align:right;padding-right:10px;">{{info.treat_cost_self_total}}</td>
181
+        <td style="text-align:right;padding-right:10px;">{{(info.treat_cost_self_total + info.treatSelfTotal).toFixed(2)}}</td>
182 182
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.treat_cost_part_self_total}}</td>
183 183
         <td>放射费</td>
184 184
         <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
@@ -188,11 +188,11 @@
188 188
       <tr>
189 189
         <td>手术费</td>
190 190
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.operation_cost_total}}</td>
191
-        <td style="text-align:right;padding-right:10px;">{{info.operation_cost_self_total}}</td>
191
+        <td style="text-align:right;padding-right:10px;">{{(info.operation_cost_self_total + info.operationSelfTotal).toFixed(2)}}</td>
192 192
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.operation_cost_part_self_total}}</td>
193 193
         <td>化验费</td>
194 194
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.laboratory_cost_total}}</td>
195
-        <td style="text-align:right;padding-right:10px;">{{info.laboratory_cost_self_total}}</td>
195
+        <td style="text-align:right;padding-right:10px;">{{(info.laboratory_cost_self_total + info.laboratorySelfTotal).toFixed(2)}}</td>
196 196
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.laboratory_cost_part_self_total}}</td>
197 197
       </tr>
198 198
       <tr>
@@ -208,7 +208,7 @@
208 208
       <tr>
209 209
         <td>其他</td>
210 210
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.other_cost_total}}</td>
211
-        <td style="text-align:right;padding-right:10px;">{{info.other_cost_self_total}}</td>
211
+        <td style="text-align:right;padding-right:10px;">{{(info.other_cost_self_total + info.otherSelfTotal).toFixed(2)}}</td>
212 212
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.other_cost_part_self_total}}</td>
213 213
         <td>麻醉费</td>
214 214
         <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
@@ -218,7 +218,7 @@
218 218
       <tr>
219 219
         <td>材料费</td>
220 220
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.material_cost_total}}</td>
221
-        <td style="text-align:right;padding-right:10px;">{{info.material_cost_self_total}}</td>
221
+        <td style="text-align:right;padding-right:10px;">{{(info.material_cost_self_total + info.materialSelfTotal).toFixed(2)}}</td>
222 222
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.material_cost_part_self_total}}</td>
223 223
         <td>特殊检查费</td>
224 224
         <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
@@ -243,11 +243,11 @@
243 243
           parseFloat(info.chinese_traditional_medicine_cost_total) + parseFloat(info.check_cost_total) +
244 244
           parseFloat(info.laboratory_cost_total) + parseFloat(info.treat_cost_total)).toFixed(2) }}
245 245
         </td>
246
-        <td style="text-align:right;padding-right:10px;">{{(parseFloat(info.bed_cost_self_total )+
247
-          parseFloat(info.operation_cost_self_total) + parseFloat(info.other_cost_self_total) +
248
-          parseFloat(info.material_cost_self_total) + parseFloat(info.western_medicine_cost_self_total) +
249
-          parseFloat(info.chinese_traditional_medicine_cost_self_total) + parseFloat(info.check_cost_self_total) +
250
-          parseFloat(info.laboratory_cost_self_total) + parseFloat(info.treat_cost_self_total)).toFixed(2)}}
246
+        <td style="text-align:right;padding-right:10px;">{{(parseFloat(info.bed_cost_self_total )+parseFloat(info.bedSelfTotal)+
247
+          parseFloat(info.operation_cost_self_total)+parseFloat(info.operationSelfTotal) + parseFloat(info.other_cost_self_total) +parseFloat(info.otherSelfTotal)+
248
+          parseFloat(info.material_cost_self_total) + parseFloat(info.materialSelfTotal)  + parseFloat(info.western_medicine_cost_self_total) + parseFloat(info.westernMedicineSelfTotal) +
249
+          parseFloat(info.chinese_traditional_medicine_cost_self_total)  +  parseFloat(info.chineseTraditionalSelfTotal)  + parseFloat(info.check_cost_self_total) + parseFloat(info.checkSelfTotal) +
250
+          parseFloat(info.laboratory_cost_self_total) + parseFloat(info.laboratorySelfTotal)  + parseFloat(info.treat_cost_self_total) +parseFloat(info.treatSelfTotal) ).toFixed(2)}}
251 251
         </td>
252 252
         <td colspan="2" style="text-align:right;padding-right:10px;">{{(parseFloat(info.bed_cost_part_self_total) +
253 253
           parseFloat(info.operation_cost_part_self_total) + parseFloat(info.other_cost_part_self_total) +

+ 5 - 5
src/xt_pages/outpatientCharges/invoicePrint.vue Dosyayı Görüntüle

@@ -10,11 +10,11 @@
10 10
         type="primary"
11 11
       >打印</el-button>
12 12
     </template>
13
-    <div class="app-container" style="padding-top:40px;" v-if="org_id != 10217 && org_id != 0 && org_id != 10485 && org_id != 10375"><!---->
13
+    <div class="app-container" style="padding-top:40px;" v-if="org_id != 10217 && org_id != 10485 && org_id != 10375"><!---->
14 14
         <div class='dialysisPage'>
15
-          <div v-if="org_id != 10106 && org_id != 10215 && org_id != 4 && org_id != 10188 && org_id != 10217 && org_id != 0 && org_id != 10387&& org_id != 10210 && org_id != 10387" >
16
-            <printOne v-if="org_id != 10088 " :paramsObj="invoiceParams"></printOne>
17
-            <printThree v-if="org_id == 10088" :paramsObj="invoiceParams"></printThree>
15
+          <div v-if="org_id != 10106 && org_id != 10215 && org_id != 4 && org_id != 10188 && org_id != 10217 && org_id != 10387&& org_id != 10210 && org_id != 10387" >
16
+            <printOne v-if="org_id != 10088 &&  org_id != 0 " :paramsObj="invoiceParams"></printOne>
17
+            <printThree v-if="org_id == 10088 || org_id == 0" :paramsObj="invoiceParams"></printThree>
18 18
           </div>
19 19
           <printTwo v-if="org_id == 10106" :paramsObj="invoiceParams"></printTwo>
20 20
           <printFour v-if="org_id == 10215 || org_id == 4 " :paramsObj="invoiceParams"></printFour>
@@ -27,7 +27,7 @@
27 27
         </div>
28 28
     </div>
29 29
 
30
-    <div class="app-container" style="padding-top:40px;" v-if="org_id == 10485  || org_id == 0">
30
+    <div class="app-container" style="padding-top:40px;" v-if="org_id == 10485">
31 31
       <div class='dialysisPage'>
32 32
         <print-eleven :paramsObj="invoiceParams"></print-eleven>
33 33
       </div>

+ 3 - 4
src/xt_pages/outpatientCharges/listTemplate/printOne.vue Dosyayı Görüntüle

@@ -38,15 +38,14 @@
38 38
             </tr>
39 39
         </table>
40 40
         <div class="tableBottom">
41
-            <div class="tableBottomOne">制表人:{{admin.user_name}}</div>
42
-            <div class="tableBottomOne">制表日期:{{ getNowTime()}}</div>
43
-            <div class="tableBottomOne">总费用:{{order.medfee_sumamt}}元</div>
41
+          <div class="tableBottomOne">制表人:{{admin.user_name}}</div>
42
+          <div class="tableBottomOne" v-if="$store.getters.xt_user.org.id != 10318">制表日期:{{ getNowTime()}}</div>
43
+          <div class="tableBottomOne">总费用:{{order.medfee_sumamt}}元</div>
44 44
           <div class="tableBottomOne">基金总额:{{order.fund_pay_sumamt}}元</div>
45 45
           <div class="tableBottomOne">统筹支付:{{order.hifp_pay}}元</div>
46 46
           <div class="tableBottomOne">医疗救助:{{order.maf_pay}}元</div>
47 47
           <div class="tableBottomOne">医保报销:{{order.fund_pay_sumamt}}元</div>
48 48
           <div class="tableBottomOne">个人支付:{{order.psn_cash_pay}}元</div>
49
-
50 49
         </div>
51 50
         </div>
52 51
     </div>

+ 1 - 1
src/xt_pages/outpatientDoctorStation/print.vue Dosyayı Görüntüle

@@ -15,7 +15,7 @@
15 15
           :prescription_id="prescription_id"
16 16
         ></print-ten-one>
17 17
 
18
-        <prinSeven v-if="org_id == 10375 || org_id == 0"
18
+        <prinSeven v-if="org_id == 10375 "
19 19
           v-bind:childResponse="childResponse"
20 20
           :advicePrint="advicePrint"
21 21
           :ids="ids"

+ 36 - 31
src/xt_pages/outpatientTool/garherinvoice_lingshang.vue Dosyayı Görüntüle

@@ -31,7 +31,7 @@
31 31
         </div>
32 32
         <div style=" width: 608px;min-height: 200px;">
33 33
           <div style="display:flex;justify-content: space-around;">
34
-            
34
+
35 35
             <div style="">西药费</div>
36 36
             <div style="">{{getWesternMedicineCostTotal()}}</div>
37 37
             <div style="">检查费</div>
@@ -41,7 +41,7 @@
41 41
           </div>
42 42
 
43 43
           <div style="display:flex;justify-content: space-around;">
44
-           
44
+
45 45
             <div style="">床位费</div>
46 46
             <div style="">{{getBedCostTotal()}}</div>
47 47
             <div style="position:  relative;left: -15px;">中成药</div>
@@ -67,7 +67,7 @@
67 67
           </div>
68 68
         </div>
69 69
         <div style="border-top:1px solid black;width: 608px;">
70
-          
70
+
71 71
           <div style="border-right: 1px solid black;display: inline-block;width: 360px;padding: 5px;">
72 72
             <span>合计(大写):{{smalltoBIG(getAllPice())}}</span>
73 73
             <!-- <span>
@@ -124,14 +124,14 @@
124 124
           <div style="width:140px">兜底支付:</div>
125 125
         </div>
126 126
         <div style="display:flex;margin-bottom: 3px;">
127
-          <div style="width:140px">个人自付:</div>
127
+          <div style="width:140px">个人自付:{{getAllPice()}}</div>
128 128
           <div style="width:140px">个账支付:</div>
129 129
           <div style="width:140px">个账余额:</div>
130 130
         </div>
131 131
       </div>
132 132
       <div style="width:608px;font-Size:12px">
133 133
         <div style="display:flex;margin: 3px 0px;">
134
-          <div style="width:140px">现金支付:</div>
134
+          <div style="width:140px">现金支付:{{getAllPice()}}</div>
135 135
           <div style="width:140px">预存扣减:</div>
136 136
           <div style="width:140px">预存余额:</div>
137 137
         </div>
@@ -140,14 +140,14 @@
140 140
           <div style="width:140px">收款人:{{getAdminRole(admin_user_id)}}</div>
141 141
         </div>
142 142
       </div>
143
-      
143
+
144 144
   </div>
145 145
       <!-- <div class="listTitle">{{$store.getters.xt_user.org.org_name}}费用发票</div>
146 146
       <div class="listTitle_1">{{$store.getters.xt_user.org.org_name}}发票联<span>收</span></div>
147 147
        <div class="listInfo">
148 148
           <div>收费日期:{{this.$route.query.end_time}}</div>
149 149
           <div style="width:400px">发票代码:
150
-           <span>{{orderInfo.fa_piao_code}}</span> 
150
+           <span>{{orderInfo.fa_piao_code}}</span>
151 151
           </div>
152 152
       </div>
153 153
       <table class="listTable" table border rules=none cellspacing=0 align=center>
@@ -249,6 +249,11 @@ export default {
249 249
         doctorlist:[],
250 250
         orderInfo:{},
251 251
         his_record_patient:{},
252
+
253
+        dabing_cost:0,
254
+        dabing_cost:0,
255
+
256
+
252 257
       }
253 258
   },
254 259
   methods:{
@@ -297,7 +302,7 @@ export default {
297 302
           return false
298 303
         } else {
299 304
         this.drugTypeList =response.data.data.drugTypeList
300
-        this.costClassifyList = response.data.data.costClassifyList 
305
+        this.costClassifyList = response.data.data.costClassifyList
301 306
         this.doctorlist = response.data.data.doctorlist
302 307
         var list = response.data.data.list
303 308
         console.log("listw3232323223",list)
@@ -332,7 +337,7 @@ export default {
332 337
           }
333 338
         }
334 339
         console.log("order_info222222222222",order_info)
335
-        
340
+
336 341
         //合并,相同的合并在一起
337 342
 
338 343
         let dataInfo = {}
@@ -360,8 +365,8 @@ export default {
360 365
           }
361 366
           dataInfo[item_id].child.push(item)
362 367
         })
363
-        let arr = Object.values(dataInfo) 
364
-        
368
+        let arr = Object.values(dataInfo)
369
+
365 370
         for(let i=0;i<arr.length;i++){
366 371
           for(let j=0;j<arr[i].child.length;j++){
367 372
              if(arr[i].advice_id >0){
@@ -372,8 +377,8 @@ export default {
372 377
                 arr[i].unit = arr[i].child[0].advice.prescribing_number_unit
373 378
                 arr[i].cost_type = arr[i].child[0].advice.drug.drug_type
374 379
                 arr[i].medical_insurance_level = arr[i].child[0].advice.drug.medical_insurance_level
375
-               
376
-               
380
+
381
+
377 382
              }
378 383
              if(arr[i].project_id > 0){
379 384
                 arr[i].record_date = arr[i].child[0].project.record_date
@@ -417,14 +422,14 @@ export default {
417 422
         this.hisDepatment =  response.data.data.hisDepatment
418 423
         this.order =  response.data.data.order
419 424
         this.his_record_patient = response.data.data.his_record_patient
420
-        this.medicalInsuranceLevelList = response.data.data.medicalInsuranceLevelList  
425
+        this.medicalInsuranceLevelList = response.data.data.medicalInsuranceLevelList
421 426
         this.orderInfo = response.data.data.orderInfo
422 427
         if(this.$route.query.id == 1){
423 428
            var new_arr = []
424 429
            for(let i=0;i<this.tableList.length;i++){
425 430
               if(this.tableList[i].type == 1){
426 431
                 new_arr.push(this.tableList[i])
427
-              }  
432
+              }
428 433
            }
429 434
            this.tableList = []
430 435
            this.tableList = new_arr
@@ -434,7 +439,7 @@ export default {
434 439
            for(let i=0;i<this.tableList.length;i++){
435 440
               if(this.tableList[i].type == 2){
436 441
                 new_arr.push(this.tableList[i])
437
-              }  
442
+              }
438 443
            }
439 444
            this.tableList = []
440 445
            this.tableList = new_arr
@@ -444,7 +449,7 @@ export default {
444 449
            for(let i=0;i<this.tableList.length;i++){
445 450
               if(this.tableList[i].type == 3){
446 451
                 new_arr.push(this.tableList[i])
447
-              }  
452
+              }
448 453
            }
449 454
            this.tableList = []
450 455
            this.tableList = new_arr
@@ -493,10 +498,10 @@ export default {
493 498
         }
494 499
 
495 500
       }
496
-    
501
+
497 502
       let new_drug_ids = this.unique(drug_ids)
498 503
       let new_project_ids = this.unique(project_ids)
499
-     
504
+
500 505
       let list = []
501 506
       if (new_drug_ids.length > 0 && new_project_ids.length == 0) {
502 507
         for (let i = 0; i < new_drug_ids.length; i++) {
@@ -531,13 +536,13 @@ export default {
531 536
                obj['name'] = details[a].project.project.project_name
532 537
                obj['spec'] = ''
533 538
                obj['unit'] = details[a].project.project.unit
534
-              
539
+
535 540
 
536 541
              }else if(details[a].project.type == 3){
537 542
                obj['name'] = details[a].project.good_info.good_name
538 543
                obj['spec'] = ''
539 544
                obj['unit'] = details[a].project.good_info.packing_unit
540
-             
545
+
541 546
 
542 547
              }
543 548
               obj['medicine_insurance_kind'] = this.getMedicineInsuranceType(details[a].chrgitm_lv)
@@ -551,7 +556,7 @@ export default {
551 556
           }
552 557
           obj['count'] = count
553 558
           list.push(obj)
554
-        
559
+
555 560
         }
556 561
       }
557 562
 
@@ -577,7 +582,7 @@ export default {
577 582
           list.push(obj)
578 583
 
579 584
         }
580
-       
585
+
581 586
         for (let i = 0; i < new_project_ids.length; i++) {
582 587
           let obj = {}
583 588
           let count = 0
@@ -604,13 +609,13 @@ export default {
604 609
           }
605 610
           obj['count'] = count
606 611
           list.push(obj)
607
-        
612
+
608 613
         }
609 614
        }
610 615
        console.log("list232332322323332233223232323",list)
611 616
       return list
612
-    }, 
613
-  
617
+    },
618
+
614 619
     getMedicineInsuranceType(type) {
615 620
       switch (type) {
616 621
         case "01":
@@ -726,7 +731,7 @@ export default {
726 731
     return name
727 732
   },
728 733
    smalltoBIG(n) {
729
-         
734
+
730 735
       if (!/^(0|[1-9]\d*)(\.\d+)?$/.test(n)){
731 736
           return "数据非法";  //判断数据是否大于0
732 737
       }
@@ -809,7 +814,7 @@ export default {
809 814
           total_price += this.tableList[i].count_number * this.tableList[i].pric
810 815
        }
811 816
     }
812
-    
817
+
813 818
     return total_price.toFixed(2)
814 819
   },
815 820
   getChineseTraditionalMedicineCostTotal(){
@@ -989,7 +994,7 @@ export default {
989 994
     }else{
990 995
       return total_price
991 996
     }
992
-   
997
+
993 998
   },
994 999
   getAllPiceTwo(arr){
995 1000
 
@@ -1004,7 +1009,7 @@ export default {
1004 1009
     }else{
1005 1010
       return total_price
1006 1011
     }
1007
-   
1012
+
1008 1013
   },
1009 1014
   getAdminRole(id){
1010 1015
     var user_name = ""
@@ -1019,7 +1024,7 @@ export default {
1019 1024
   created(){
1020 1025
     this.admin_user_id = this.$store.getters.xt_user.user.id
1021 1026
     console.log("admin_user_id23323232323",this.admin_user_id)
1022
-    this.getGatherDetailList()   
1027
+    this.getGatherDetailList()
1023 1028
     var data = new Date();
1024 1029
     var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
1025 1030
     var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();