|
@@ -10,12 +10,12 @@
|
10
|
10
|
</div>
|
11
|
11
|
<div class="listInfo">
|
12
|
12
|
<div>科别:
|
13
|
|
- <span v-if="org_id!=10215"> {{getDepartment(his_patient.departments)}}</span>
|
|
13
|
+ <span v-if="org_id!=10215"> {{getDepartment(his_patient.departments)}}</span>
|
14
|
14
|
{{getDepartment(his_record_patient.departments)}}
|
15
|
15
|
</div>
|
16
|
16
|
<div>床号:<span v-if="schedule.length > 0">{{getBedName(schedule[0].bed_id)}}</span></div>
|
17
|
17
|
<div>门诊号:
|
18
|
|
- <span v-if="org_id!=10215">{{his_patient.number}}</span>
|
|
18
|
+ <span v-if="org_id!=10215">{{his_patient.number}}</span>
|
19
|
19
|
{{his_record_patient.ipt_otp_no}}
|
20
|
20
|
</div>
|
21
|
21
|
<div>姓名:{{patient.name}}</div>
|
|
@@ -76,27 +76,27 @@
|
76
|
76
|
{{item.cost_type}}
|
77
|
77
|
</span>
|
78
|
78
|
<span v-if="item.type == 2">
|
79
|
|
- {{item.cost_type}}
|
|
79
|
+ {{item.cost_type}}
|
80
|
80
|
</span>
|
81
|
81
|
<span v-if="item.type == 3">
|
82
|
82
|
材料费
|
83
|
|
- </span>
|
|
83
|
+ </span>
|
84
|
84
|
</td>
|
85
|
85
|
<td style="text-align:center" >
|
86
|
|
- <span>{{item.name}}</span>
|
|
86
|
+ <span>{{item.name}}</span>
|
87
|
87
|
</td>
|
88
|
88
|
<td style="text-align:center" >
|
89
|
89
|
{{ item.spec }}
|
90
|
90
|
</td>
|
91
|
91
|
<td style="text-align:center" >
|
92
|
|
- {{item.pric}}
|
|
92
|
+ {{item.pric}}
|
93
|
93
|
</td>
|
94
|
94
|
<td style="text-align:center" >
|
95
|
95
|
{{item.count_number }}{{item.unit }}
|
96
|
96
|
</td>
|
97
|
97
|
<td style="text-align:center" >
|
98
|
|
- <span v-if="item.is_total == 1">{{ item.total }}</span>
|
99
|
|
- <span v-if="item.is_total == 2">{{ (item.pric * item.count_number).toFixed(2) }}</span>
|
|
98
|
+ <span v-if="item.is_total == 1">{{ item.total }}</span>
|
|
99
|
+ <span v-if="item.is_total == 2">{{ (item.pric * item.count_number).toFixed(2) }}</span>
|
100
|
100
|
</td>
|
101
|
101
|
<td style="text-align:center" >
|
102
|
102
|
{{getChrgitmLv(item.medical_insurance_level)}}
|
|
@@ -194,7 +194,7 @@
|
194
|
194
|
return false
|
195
|
195
|
} else {
|
196
|
196
|
this.drugTypeList =response.data.data.drugTypeList
|
197
|
|
- this.costClassifyList = response.data.data.costClassifyList
|
|
197
|
+ this.costClassifyList = response.data.data.costClassifyList
|
198
|
198
|
var list = response.data.data.list
|
199
|
199
|
this.list = list
|
200
|
200
|
this.orderList = response.data.data.orderList
|
|
@@ -206,7 +206,7 @@
|
206
|
206
|
new_arr.push(list[i].orders[j])
|
207
|
207
|
}
|
208
|
208
|
}
|
209
|
|
-
|
|
209
|
+
|
210
|
210
|
|
211
|
211
|
var order_info = []
|
212
|
212
|
for(let i=0;i<new_arr.length;i++){
|
|
@@ -228,8 +228,8 @@
|
228
|
228
|
}
|
229
|
229
|
}
|
230
|
230
|
}
|
231
|
|
-
|
232
|
|
-
|
|
231
|
+
|
|
232
|
+
|
233
|
233
|
//合并,相同的合并在一起
|
234
|
234
|
|
235
|
235
|
let dataInfo = {}
|
|
@@ -257,8 +257,8 @@
|
257
|
257
|
}
|
258
|
258
|
dataInfo[item_id].child.push(item)
|
259
|
259
|
})
|
260
|
|
- let arr = Object.values(dataInfo)
|
261
|
|
-
|
|
260
|
+ let arr = Object.values(dataInfo)
|
|
261
|
+
|
262
|
262
|
for(let i=0;i<arr.length;i++){
|
263
|
263
|
for(let j=0;j<arr[i].child.length;j++){
|
264
|
264
|
if(arr[i].advice_id >0){
|
|
@@ -269,8 +269,8 @@
|
269
|
269
|
arr[i].unit = arr[i].child[0].advice.prescribing_number_unit
|
270
|
270
|
arr[i].cost_type = arr[i].child[0].advice.drug.drug_type
|
271
|
271
|
arr[i].medical_insurance_level = arr[i].child[0].advice.drug.medical_insurance_level
|
272
|
|
-
|
273
|
|
-
|
|
272
|
+
|
|
273
|
+
|
274
|
274
|
}
|
275
|
275
|
if(arr[i].project_id > 0){
|
276
|
276
|
arr[i].record_date = arr[i].child[0].project.record_date
|
|
@@ -293,7 +293,7 @@
|
293
|
293
|
arr[i].count_number +=arr[i].child[j].cnt
|
294
|
294
|
}
|
295
|
295
|
}
|
296
|
|
-
|
|
296
|
+
|
297
|
297
|
var obj = {is_total:1,total:0}
|
298
|
298
|
obj.total = this.getAllPiceTwo(arr)
|
299
|
299
|
for(let i=0;i<arr.length;i++){
|
|
@@ -307,18 +307,18 @@
|
307
|
307
|
arr.push(obj)
|
308
|
308
|
|
309
|
309
|
this.tableList = arr
|
310
|
|
-
|
|
310
|
+
|
311
|
311
|
this.patient = response.data.data.patient
|
312
|
|
-
|
|
312
|
+
|
313
|
313
|
this.his_patient = response.data.data.his_patient
|
314
|
314
|
this.hisDepatment = response.data.data.hisDepatment
|
315
|
315
|
this.order = response.data.data.order
|
316
|
316
|
this.his_record_patient = response.data.data.his_record_patient
|
317
|
|
- this.medicalInsuranceLevelList = response.data.data.medicalInsuranceLevelList
|
|
317
|
+ this.medicalInsuranceLevelList = response.data.data.medicalInsuranceLevelList
|
318
|
318
|
this.schedule = response.data.data.schedule
|
319
|
319
|
this.bedNumber = response.data.data.bedNumber
|
320
|
320
|
if(this.$route.query.keyword !=""){
|
321
|
|
-
|
|
321
|
+
|
322
|
322
|
var new_arr = []
|
323
|
323
|
for(let i=0;i<this.tableList.length;i++){
|
324
|
324
|
if(this.tableList[i].is_total!=1){
|
|
@@ -326,7 +326,7 @@
|
326
|
326
|
new_arr.push(this.tableList[i])
|
327
|
327
|
}
|
328
|
328
|
}
|
329
|
|
-
|
|
329
|
+
|
330
|
330
|
}
|
331
|
331
|
var obj ={index:"合计",is_total:1,total:0}
|
332
|
332
|
obj.total = this.getAllPiceTwo(new_arr)
|
|
@@ -341,9 +341,9 @@
|
341
|
341
|
if(this.tableList[i].is_total!=1){
|
342
|
342
|
if(this.tableList[i].type == 1){
|
343
|
343
|
new_arr.push(this.tableList[i])
|
344
|
|
- }
|
|
344
|
+ }
|
345
|
345
|
}
|
346
|
|
-
|
|
346
|
+
|
347
|
347
|
}
|
348
|
348
|
this.tableList = []
|
349
|
349
|
this.tableList = new_arr
|
|
@@ -353,9 +353,9 @@
|
353
|
353
|
for(let i=0;i<this.tableList.length;i++){
|
354
|
354
|
if(this.tableList[i].is_total!=1){
|
355
|
355
|
if(this.tableList[i].type == 2){
|
356
|
|
-
|
|
356
|
+
|
357
|
357
|
new_arr.push(this.tableList[i])
|
358
|
|
- }
|
|
358
|
+ }
|
359
|
359
|
}
|
360
|
360
|
}
|
361
|
361
|
this.tableList = []
|
|
@@ -367,7 +367,7 @@
|
367
|
367
|
if(this.tableList[i].is_total!=1){
|
368
|
368
|
if(this.tableList[i].type == 3){
|
369
|
369
|
new_arr.push(this.tableList[i])
|
370
|
|
- }
|
|
370
|
+ }
|
371
|
371
|
}
|
372
|
372
|
}
|
373
|
373
|
this.tableList = []
|
|
@@ -404,7 +404,7 @@
|
404
|
404
|
id: details[i].advice.drug_id,
|
405
|
405
|
price: details[i].advice.price,
|
406
|
406
|
record_date:details[i].advice.advice_date
|
407
|
|
-
|
|
407
|
+
|
408
|
408
|
}
|
409
|
409
|
drug_ids.push(obj)
|
410
|
410
|
} else if (details[i].project && details[i].project.id > 0 && details[i].project.prescription && details[i].project.prescription.type == 2) { //项目
|
|
@@ -418,10 +418,10 @@
|
418
|
418
|
}
|
419
|
419
|
|
420
|
420
|
}
|
421
|
|
-
|
|
421
|
+
|
422
|
422
|
let new_drug_ids = this.unique(drug_ids)
|
423
|
423
|
let new_project_ids = this.unique(project_ids)
|
424
|
|
-
|
|
424
|
+
|
425
|
425
|
let list = []
|
426
|
426
|
if (new_drug_ids.length > 0 && new_project_ids.length == 0) {
|
427
|
427
|
for (let i = 0; i < new_drug_ids.length; i++) {
|
|
@@ -476,7 +476,7 @@
|
476
|
476
|
}
|
477
|
477
|
obj['count'] = count
|
478
|
478
|
list.push(obj)
|
479
|
|
-
|
|
479
|
+
|
480
|
480
|
}
|
481
|
481
|
}
|
482
|
482
|
|
|
@@ -502,7 +502,7 @@
|
502
|
502
|
list.push(obj)
|
503
|
503
|
|
504
|
504
|
}
|
505
|
|
-
|
|
505
|
+
|
506
|
506
|
for (let i = 0; i < new_project_ids.length; i++) {
|
507
|
507
|
let obj = {}
|
508
|
508
|
let count = 0
|
|
@@ -529,13 +529,13 @@
|
529
|
529
|
}
|
530
|
530
|
obj['count'] = count
|
531
|
531
|
list.push(obj)
|
532
|
|
-
|
|
532
|
+
|
533
|
533
|
}
|
534
|
534
|
}
|
535
|
|
-
|
|
535
|
+
|
536
|
536
|
return list
|
537
|
|
- },
|
538
|
|
-
|
|
537
|
+ },
|
|
538
|
+
|
539
|
539
|
getMedicineInsuranceType(type) {
|
540
|
540
|
switch (type) {
|
541
|
541
|
case "01":
|
|
@@ -663,7 +663,7 @@
|
663
|
663
|
}else{
|
664
|
664
|
return "0.00"
|
665
|
665
|
}
|
666
|
|
-
|
|
666
|
+
|
667
|
667
|
},
|
668
|
668
|
getAllPiceTwo(arr){
|
669
|
669
|
|
|
@@ -678,7 +678,7 @@
|
678
|
678
|
}else{
|
679
|
679
|
return total_price
|
680
|
680
|
}
|
681
|
|
-
|
|
681
|
+
|
682
|
682
|
},
|
683
|
683
|
setMonthPrescription(month_prescriptions) {
|
684
|
684
|
let drug_month_prescriptions = {
|
|
@@ -718,7 +718,7 @@
|
718
|
718
|
|
719
|
719
|
drug_ids = this.unique(drug_ids)
|
720
|
720
|
project_ids= this.unique(project_ids)
|
721
|
|
-
|
|
721
|
+
|
722
|
722
|
for (let i = 0; i < drug_ids.length; i++) {
|
723
|
723
|
let obj = {}
|
724
|
724
|
let count = 0
|
|
@@ -738,7 +738,7 @@
|
738
|
738
|
obj['record_date'] = drug_month_prescriptions.advices[a].advice_date
|
739
|
739
|
obj['spec'] = drug_month_prescriptions.advices[a].drug.dose + drug_month_prescriptions.advices[a].drug.dose_unit +"*" + drug_month_prescriptions.advices[a].drug.min_number + drug_month_prescriptions.advices[a].drug.min_unit + "/" + drug_month_prescriptions.advices[a].drug.max_unit
|
740
|
740
|
obj['is_total'] = 2
|
741
|
|
- obj['chrgitm_lv'] = drug_month_prescriptions.advices[a].drug.medical_insurance_level
|
|
741
|
+ obj['chrgitm_lv'] = drug_month_prescriptions.advices[a].drug.medical_insurance_level
|
742
|
742
|
obj['unit'] = drug_month_prescriptions.advices[a].prescribing_number_unit
|
743
|
743
|
count = count + drug_month_prescriptions.advices[a].prescribing_number
|
744
|
744
|
|
|
@@ -777,7 +777,7 @@
|
777
|
777
|
obj['day'] = project_month_prescriptions.project[a].day
|
778
|
778
|
obj['single_dose_unit'] = project_month_prescriptions.project[a].unit
|
779
|
779
|
obj['prescribing_number_unit'] = project_month_prescriptions.project[a].unit
|
780
|
|
-
|
|
780
|
+
|
781
|
781
|
count = count + parseFloat(project_month_prescriptions.project[a].count)
|
782
|
782
|
obj['price'] = parseFloat(project_month_prescriptions.project[a].price)
|
783
|
783
|
obj['remark'] = project_month_prescriptions.project[a].remark
|
|
@@ -911,7 +911,7 @@
|
911
|
911
|
total_price += this.tableList[i].count_number * this.tableList[i].pric
|
912
|
912
|
}
|
913
|
913
|
}
|
914
|
|
-
|
|
914
|
+
|
915
|
915
|
return total_price.toFixed(2)
|
916
|
916
|
},
|
917
|
917
|
getChineseTraditionalMedicineCostTotal(){
|
|
@@ -1041,7 +1041,7 @@
|
1041
|
1041
|
return total_price.toFixed(2)
|
1042
|
1042
|
},
|
1043
|
1043
|
getDrugType(id){
|
1044
|
|
-
|
|
1044
|
+
|
1045
|
1045
|
var name = ""
|
1046
|
1046
|
for(let i=0;i<this.drugTypeList.length;i++){
|
1047
|
1047
|
if(id == this.drugTypeList[i].value){
|
|
@@ -1108,42 +1108,35 @@
|
1108
|
1108
|
for(let i=0;i<this.orderList.length;i++){
|
1109
|
1109
|
fund_pay_sumamt +=this.orderList[i].fund_pay_sumamt
|
1110
|
1110
|
}
|
1111
|
|
-
|
|
1111
|
+
|
1112
|
1112
|
if(fund_pay_sumamt >0){
|
1113
|
1113
|
return fund_pay_sumamt.toFixed(2)
|
1114
|
1114
|
}else{
|
1115
|
|
-
|
|
1115
|
+
|
1116
|
1116
|
return "0.00"
|
1117
|
1117
|
}
|
1118
|
1118
|
},
|
1119
|
1119
|
getActPay() {
|
1120
|
|
- var arrNew = []
|
1121
|
1120
|
var act_pay = 0;
|
1122
|
1121
|
for (let i = 0; i < this.list.length; i++) {
|
1123
|
1122
|
for (let j = 0; j < this.list[i].orders.length; j++) {
|
1124
|
|
- //个人支付
|
1125
|
|
- console.log("is",this.list[i].orders[j])
|
1126
|
|
- if(this.list[i].orders[j].is_medicine_insurance == 0){
|
1127
|
|
- arrNew.push(this.list[i].orders[j])
|
|
1123
|
+ if(this.list[i].orders[j].is_medicine_insurance == 1){
|
|
1124
|
+ act_pay = act_pay + this.list[i].orders[j].psn_cash_pay
|
|
1125
|
+ }else{
|
|
1126
|
+ act_pay= act_pay + this.list[i].orders[j].medfee_sumamt
|
1128
|
1127
|
}
|
|
1128
|
+
|
1129
|
1129
|
}
|
1130
|
1130
|
}
|
1131
|
|
- if(arrNew.length > 0){
|
1132
|
|
- for(let i=0;i<arrNew.length;i++){
|
1133
|
|
- for(let j=0;j<arrNew[i].order_info.length;j++){
|
1134
|
|
- act_pay += arrNew[i].order_info[j].cnt * arrNew[i].order_info[j].pric
|
1135
|
|
- }
|
1136
|
|
- }
|
1137
|
|
- }
|
1138
|
|
- console.log("arrNew2332323223",arrNew)
|
|
1131
|
+
|
1139
|
1132
|
return act_pay.toFixed(2);
|
1140
|
1133
|
},
|
1141
|
1134
|
|
1142
|
1135
|
},
|
1143
|
1136
|
created(){
|
1144
|
1137
|
this.org_id = this.$store.getters.xt_user.org.id;
|
1145
|
|
-
|
1146
|
|
- this.getGatherDetailList()
|
|
1138
|
+
|
|
1139
|
+ this.getGatherDetailList()
|
1147
|
1140
|
}
|
1148
|
1141
|
|
1149
|
1142
|
}
|