|
@@ -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();
|