|
@@ -97,8 +97,8 @@
|
97
|
97
|
{{item.count_number }}{{item.unit }}
|
98
|
98
|
</td>
|
99
|
99
|
<td style="text-align:center" >
|
100
|
|
- <span v-if="item.is_total == 1">{{ item.total }}</span>
|
101
|
|
- <span v-if="item.is_total == 2">{{ (item.pric * item.count_number).toFixed(2) }}</span>
|
|
100
|
+ <span v-if="item.is_total == 1">{{ getAllPice() }}</span>
|
|
101
|
+ <span v-if="item.is_total == 2">{{ getT(item) }}</span>
|
102
|
102
|
</td>
|
103
|
103
|
<td style="text-align:center" >
|
104
|
104
|
{{getChrgitmLv(item.medical_insurance_level)}}
|
|
@@ -246,6 +246,7 @@
|
246
|
246
|
cost_type:"",
|
247
|
247
|
name:"",
|
248
|
248
|
pric:item.pric,
|
|
249
|
+ det_sun:item.det_item_fee_sumamt,
|
249
|
250
|
chrgitm_lv:"",
|
250
|
251
|
advice_id:item.advice_id,
|
251
|
252
|
project_id:item.project_id,
|
|
@@ -271,8 +272,7 @@
|
271
|
272
|
arr[i].unit = arr[i].child[0].advice.prescribing_number_unit
|
272
|
273
|
arr[i].cost_type = arr[i].child[0].advice.drug.drug_type
|
273
|
274
|
arr[i].medical_insurance_level = arr[i].child[0].chrgitm_lv
|
274
|
|
-
|
275
|
|
-
|
|
275
|
+ // arr[i].record_date = arr[i].child[0].advice.advice_date
|
276
|
276
|
}
|
277
|
277
|
if(arr[i].project_id > 0){
|
278
|
278
|
arr[i].record_date = arr[i].child[0].project.record_date
|
|
@@ -422,6 +422,8 @@
|
422
|
422
|
}
|
423
|
423
|
this.tableList = []
|
424
|
424
|
this.tableList = tempList
|
|
425
|
+ console.log("this.tableList")
|
|
426
|
+ console.log( this.tableList)
|
425
|
427
|
|
426
|
428
|
}
|
427
|
429
|
})
|
|
@@ -705,7 +707,9 @@
|
705
|
707
|
var total_price = 0
|
706
|
708
|
for(let i=0;i<this.tableList.length;i++){
|
707
|
709
|
if(this.tableList[i].is_total ==2){
|
708
|
|
- total_price += (this.tableList[i].pric * parseInt(this.tableList[i].count_number))
|
|
710
|
+ for(let a = 0; a < this.tableList[i].child.length; a++){
|
|
711
|
+ total_price += this.tableList[i].child[a].det_item_fee_sumamt
|
|
712
|
+ }
|
709
|
713
|
}
|
710
|
714
|
}
|
711
|
715
|
if(total_price > 0){
|
|
@@ -926,7 +930,15 @@
|
926
|
930
|
}
|
927
|
931
|
}
|
928
|
932
|
return med_chrgitm_type
|
929
|
|
- },
|
|
933
|
+ },getT(item){
|
|
934
|
+ let total = 0
|
|
935
|
+ // for()
|
|
936
|
+ for(let a = 0; a < item.child.length; a++){
|
|
937
|
+ total += item.child[a].det_item_fee_sumamt
|
|
938
|
+ }
|
|
939
|
+ return total.toFixed(2)
|
|
940
|
+ // console.log(item)
|
|
941
|
+ },
|
930
|
942
|
getChrgitmLv(value){
|
931
|
943
|
var name = ""
|
932
|
944
|
for(let i=0;i<this.medicalInsuranceLevelList.length;i++){
|
|
@@ -958,7 +970,9 @@
|
958
|
970
|
var total_price = 0
|
959
|
971
|
for(let i=0;i<this.tableList.length;i++){
|
960
|
972
|
if(this.tableList[i].cost_type == "西药"){
|
961
|
|
- total_price += this.tableList[i].count_number * this.tableList[i].pric
|
|
973
|
+ for(let a = 0; a < this.tableList[i].child.length; a++){
|
|
974
|
+ total_price += this.tableList[i].child[a].det_item_fee_sumamt
|
|
975
|
+ }
|
962
|
976
|
}
|
963
|
977
|
}
|
964
|
978
|
|
|
@@ -968,7 +982,10 @@
|
968
|
982
|
var total_price = 0
|
969
|
983
|
for(let i=0;i<this.tableList.length;i++){
|
970
|
984
|
if(this.tableList[i].cost_type == "中成药"){
|
971
|
|
- total_price += this.tableList[i].count_number * this.tableList[i].pric
|
|
985
|
+ // total_price += this.tableList[i].count_number * this.tableList[i].pric
|
|
986
|
+ for(let a = 0; a < this.tableList[i].child.length; a++){
|
|
987
|
+ total_price += this.tableList[i].child[a].det_item_fee_sumamt
|
|
988
|
+ }
|
972
|
989
|
}
|
973
|
990
|
}
|
974
|
991
|
return total_price.toFixed(2)
|
|
@@ -977,7 +994,10 @@
|
977
|
994
|
var total_price = 0
|
978
|
995
|
for(let i=0;i<this.tableList.length;i++){
|
979
|
996
|
if(this.tableList[i].cost_type == "中草药"){
|
980
|
|
- total_price += this.tableList[i].count_number * this.tableList[i].pric
|
|
997
|
+ // total_price += this.tableList[i].count_number * this.tableList[i].pric
|
|
998
|
+ for(let a = 0; a < this.tableList[i].child.length; a++){
|
|
999
|
+ total_price += this.tableList[i].child[a].det_item_fee_sumamt
|
|
1000
|
+ }
|
981
|
1001
|
}
|
982
|
1002
|
}
|
983
|
1003
|
return total_price.toFixed(2)
|
|
@@ -986,7 +1006,10 @@
|
986
|
1006
|
var total_price = 0
|
987
|
1007
|
for(let i=0;i<this.tableList.length;i++){
|
988
|
1008
|
if(this.tableList[i].cost_type == "检验费"){
|
989
|
|
- total_price += this.tableList[i].count_number * this.tableList[i].pric
|
|
1009
|
+ // total_price += this.tableList[i].count_number * this.tableList[i].pric
|
|
1010
|
+ for(let a = 0; a < this.tableList[i].child.length; a++){
|
|
1011
|
+ total_price += this.tableList[i].child[a].det_item_fee_sumamt
|
|
1012
|
+ }
|
990
|
1013
|
}
|
991
|
1014
|
}
|
992
|
1015
|
return total_price.toFixed(2)
|
|
@@ -995,7 +1018,10 @@
|
995
|
1018
|
var total_price = 0
|
996
|
1019
|
for(let i=0;i<this.tableList.length;i++){
|
997
|
1020
|
if(this.tableList[i].cost_type == "输氧费"){
|
998
|
|
- total_price += this.tableList[i].count_number * this.tableList[i].pric
|
|
1021
|
+ // total_price += this.tableList[i].count_number * this.tableList[i].pric
|
|
1022
|
+ for(let a = 0; a < this.tableList[i].child.length; a++){
|
|
1023
|
+ total_price += this.tableList[i].child[a].det_item_fee_sumamt
|
|
1024
|
+ }
|
999
|
1025
|
}
|
1000
|
1026
|
}
|
1001
|
1027
|
return total_price.toFixed(2)
|
|
@@ -1004,7 +1030,10 @@
|
1004
|
1030
|
var total_price = 0
|
1005
|
1031
|
for(let i=0;i<this.tableList.length;i++){
|
1006
|
1032
|
if(this.tableList[i].cost_type == "手术费"){
|
1007
|
|
- total_price += this.tableList[i].count_number * this.tableList[i].pric
|
|
1033
|
+ // total_price += this.tableList[i].count_number * this.tableList[i].pric
|
|
1034
|
+ for(let a = 0; a < this.tableList[i].child.length; a++){
|
|
1035
|
+ total_price += this.tableList[i].child[a].det_item_fee_sumamt
|
|
1036
|
+ }
|
1008
|
1037
|
}
|
1009
|
1038
|
}
|
1010
|
1039
|
return total_price.toFixed(2)
|
|
@@ -1013,7 +1042,10 @@
|
1013
|
1042
|
var total_price = 0
|
1014
|
1043
|
for(let i=0;i<this.tableList.length;i++){
|
1015
|
1044
|
if(this.tableList[i].cost_type == "化验费"){
|
1016
|
|
- total_price += this.tableList[i].count_number * this.tableList[i].pric
|
|
1045
|
+ // total_price += this.tableList[i].count_number * this.tableList[i].pric
|
|
1046
|
+ for(let a = 0; a < this.tableList[i].child.length; a++){
|
|
1047
|
+ total_price += this.tableList[i].child[a].det_item_fee_sumamt
|
|
1048
|
+ }
|
1017
|
1049
|
}
|
1018
|
1050
|
}
|
1019
|
1051
|
return total_price.toFixed(2)
|
|
@@ -1022,7 +1054,10 @@
|
1022
|
1054
|
var total_price = 0
|
1023
|
1055
|
for(let i=0;i<this.tableList.length;i++){
|
1024
|
1056
|
if(this.tableList[i].cost_type == "输血费"){
|
1025
|
|
- total_price += this.tableList[i].count_number * this.tableList[i].pric
|
|
1057
|
+ // total_price += this.tableList[i].count_number * this.tableList[i].pric
|
|
1058
|
+ for(let a = 0; a < this.tableList[i].child.length; a++){
|
|
1059
|
+ total_price += this.tableList[i].child[a].det_item_fee_sumamt
|
|
1060
|
+ }
|
1026
|
1061
|
}
|
1027
|
1062
|
}
|
1028
|
1063
|
return total_price.toFixed(2)
|
|
@@ -1031,7 +1066,10 @@
|
1031
|
1066
|
var total_price = 0
|
1032
|
1067
|
for(let i=0;i<this.tableList.length;i++){
|
1033
|
1068
|
if(this.tableList[i].cost_type == "诊断费"){
|
1034
|
|
- total_price += this.tableList[i].count_number * this.tableList[i].pric
|
|
1069
|
+ // total_price += this.tableList[i].count_number * this.tableList[i].pric
|
|
1070
|
+ for(let a = 0; a < this.tableList[i].child.length; a++){
|
|
1071
|
+ total_price += this.tableList[i].child[a].det_item_fee_sumamt
|
|
1072
|
+ }
|
1035
|
1073
|
}
|
1036
|
1074
|
}
|
1037
|
1075
|
return total_price.toFixed(2)
|
|
@@ -1040,7 +1078,10 @@
|
1040
|
1078
|
var total_price = 0
|
1041
|
1079
|
for(let i=0;i<this.tableList.length;i++){
|
1042
|
1080
|
if(this.tableList[i].cost_type == "治疗费"){
|
1043
|
|
- total_price += this.tableList[i].count_number * this.tableList[i].pric
|
|
1081
|
+ // total_price += this.tableList[i].count_number * this.tableList[i].pric
|
|
1082
|
+ for(let a = 0; a < this.tableList[i].child.length; a++){
|
|
1083
|
+ total_price += this.tableList[i].child[a].det_item_fee_sumamt
|
|
1084
|
+ }
|
1044
|
1085
|
}
|
1045
|
1086
|
}
|
1046
|
1087
|
return total_price.toFixed(2)
|
|
@@ -1049,7 +1090,10 @@
|
1049
|
1090
|
var total_price = 0
|
1050
|
1091
|
for(let i=0;i<this.tableList.length;i++){
|
1051
|
1092
|
if(this.tableList[i].cost_type == "护理费"){
|
1052
|
|
- total_price += this.tableList[i].count_number * this.tableList[i].pric
|
|
1093
|
+ // total_price += this.tableList[i].count_number * this.tableList[i].pric
|
|
1094
|
+ for(let a = 0; a < this.tableList[i].child.length; a++){
|
|
1095
|
+ total_price += this.tableList[i].child[a].det_item_fee_sumamt
|
|
1096
|
+ }
|
1053
|
1097
|
}
|
1054
|
1098
|
}
|
1055
|
1099
|
return total_price.toFixed(2)
|
|
@@ -1058,7 +1102,10 @@
|
1058
|
1102
|
var total_price = 0
|
1059
|
1103
|
for(let i=0;i<this.tableList.length;i++){
|
1060
|
1104
|
if(this.tableList[i].cost_type == "床位费"){
|
1061
|
|
- total_price += this.tableList[i].count_number * this.tableList[i].pric
|
|
1105
|
+ // total_price += this.tableList[i].count_number * this.tableList[i].pric
|
|
1106
|
+ for(let a = 0; a < this.tableList[i].child.length; a++){
|
|
1107
|
+ total_price += this.tableList[i].child[a].det_item_fee_sumamt
|
|
1108
|
+ }
|
1062
|
1109
|
}
|
1063
|
1110
|
}
|
1064
|
1111
|
return total_price.toFixed(2)
|
|
@@ -1067,7 +1114,10 @@
|
1067
|
1114
|
var total_price = 0
|
1068
|
1115
|
for(let i=0;i<this.tableList.length;i++){
|
1069
|
1116
|
if(this.tableList[i].cost_type == "麻醉费"){
|
1070
|
|
- total_price += this.tableList[i].count_number * this.tableList[i].pric
|
|
1117
|
+ // total_price += this.tableList[i].count_number * this.tableList[i].pric
|
|
1118
|
+ for(let a = 0; a < this.tableList[i].child.length; a++){
|
|
1119
|
+ total_price += this.tableList[i].child[a].det_item_fee_sumamt
|
|
1120
|
+ }
|
1071
|
1121
|
}
|
1072
|
1122
|
}
|
1073
|
1123
|
return total_price.toFixed(2)
|
|
@@ -1076,7 +1126,10 @@
|
1076
|
1126
|
var total_price = 0
|
1077
|
1127
|
for(let i=0;i<this.tableList.length;i++){
|
1078
|
1128
|
if(this.tableList[i].cost_type == "材料费"){
|
1079
|
|
- total_price += this.tableList[i].count_number * this.tableList[i].pric
|
|
1129
|
+ // total_price += this.tableList[i].count_number * this.tableList[i].pric
|
|
1130
|
+ for(let a = 0; a < this.tableList[i].child.length; a++){
|
|
1131
|
+ total_price += this.tableList[i].child[a].det_item_fee_sumamt
|
|
1132
|
+ }
|
1080
|
1133
|
}
|
1081
|
1134
|
}
|
1082
|
1135
|
return total_price.toFixed(2)
|
|
@@ -1085,7 +1138,10 @@
|
1085
|
1138
|
var total_price = 0
|
1086
|
1139
|
for(let i=0;i<this.tableList.length;i++){
|
1087
|
1140
|
if(this.tableList[i].cost_type == "其他"){
|
1088
|
|
- total_price += this.tableList[i].count_number * this.tableList[i].pric
|
|
1141
|
+ // total_price += this.tableList[i].count_number * this.tableList[i].pric
|
|
1142
|
+ for(let a = 0; a < this.tableList[i].child.length; a++){
|
|
1143
|
+ total_price += this.tableList[i].child[a].det_item_fee_sumamt
|
|
1144
|
+ }
|
1089
|
1145
|
}
|
1090
|
1146
|
}
|
1091
|
1147
|
return total_price.toFixed(2)
|