|
@@ -69,19 +69,32 @@
|
69
|
69
|
<div style="width:10%;text-align:center;">自费</div>
|
70
|
70
|
<div style="width:10%;text-align:center;">自费比例</div>
|
71
|
71
|
</div>
|
72
|
|
- <div style="border-bottom:1px solid #000;padding:10px 0;display:flex;" v-for="(item,index) in order_infos.order_infos"
|
|
72
|
+ <div style="border-bottom:1px solid #000;padding:10px 0;display:flex;" v-for="(newItem,index) in obj"
|
73
|
73
|
:key="index">
|
74
|
|
- <div style="width:20%;text-align:center;" v-if="item.advice_id > 0">{{ item.advice.drug.medical_insurance_number }}</div>
|
75
|
|
- <div style="width:20%;text-align:center;" v-if="item.project_id > 0">{{ item.project.project.medical_code }}</div>
|
76
|
|
- <div style="width:20%;text-align:center;" v-if="item.advice_id > 0">{{item.advice.drug.drug_name}}</div>
|
77
|
|
- <div style="width:20%;text-align:center;" v-if="item.project_id > 0">{{item.project.project.project_name}}</div>
|
|
74
|
+ <div>
|
|
75
|
+ <span v-if="Object.keys(obj)[index] == 'med_chrgitm_type01'">床位费</span>
|
|
76
|
+ <span v-if="Object.keys(obj)[index] == 'med_chrgitm_type03'">检查费</span>
|
|
77
|
+ <span v-if="Object.keys(obj)[index] == 'med_chrgitm_type04'">化验费</span>
|
|
78
|
+ <span v-if="Object.keys(obj)[index] == 'med_chrgitm_type05'">治疗费</span>
|
|
79
|
+ <span v-if="Object.keys(obj)[index] == 'med_chrgitm_type06'">手术费</span>
|
|
80
|
+ <span v-if="Object.keys(obj)[index] == 'med_chrgitm_type08'">材料费</span>
|
|
81
|
+ <span v-if="Object.keys(obj)[index] == 'med_chrgitm_type09'">西药费</span>
|
|
82
|
+ <span v-if="Object.keys(obj)[index] == 'med_chrgitm_type11'">中成费</span>
|
|
83
|
+ <span v-if="Object.keys(obj)[index] == 'med_chrgitm_type14'">其他费</span>
|
|
84
|
+ </div>
|
|
85
|
+ <div v-for="(item,itemIndex) in Object.values(obj)[index]" :key="itemIndex">
|
|
86
|
+ <div style="width:20%;text-align:center;" v-if="item.advice_id > 0">{{ item.advice.drug.medical_insurance_number }}</div>
|
|
87
|
+ <div style="width:20%;text-align:center;" v-if="item.project_id > 0">{{ item.project.project.medical_code }}</div>
|
|
88
|
+ <div style="width:20%;text-align:center;" v-if="item.advice_id > 0">{{item.advice.drug.drug_name}}</div>
|
|
89
|
+ <div style="width:20%;text-align:center;" v-if="item.project_id > 0">{{item.project.project.project_name}}</div>
|
78
|
90
|
|
79
|
|
- <div style="width:10%;text-align:center;">{{item.pric}}</div>
|
80
|
|
- <div style="width:10%;text-align:center;">{{item.cnt}}</div>
|
81
|
|
- <div style="width:10%;text-align:center;">{{item.det_item_fee_sumamt}}</div>
|
82
|
|
- <div style="width:10%;text-align:center;">{{item.preselfpay_amt}}</div>
|
83
|
|
- <div style="width:10%;text-align:center;">{{item.fulamt_ownpay_amt}}</div>
|
84
|
|
- <div style="width:10%;text-align:center;">{{item.selfpay_prop}}</div>
|
|
91
|
+ <div style="width:10%;text-align:center;">{{item.pric}}</div>
|
|
92
|
+ <div style="width:10%;text-align:center;">{{item.cnt}}</div>
|
|
93
|
+ <div style="width:10%;text-align:center;">{{item.det_item_fee_sumamt}}</div>
|
|
94
|
+ <div style="width:10%;text-align:center;">{{item.preselfpay_amt}}</div>
|
|
95
|
+ <div style="width:10%;text-align:center;">{{item.fulamt_ownpay_amt}}</div>
|
|
96
|
+ <div style="width:10%;text-align:center;">{{item.selfpay_prop}}</div>
|
|
97
|
+ </div>
|
85
|
98
|
</div>
|
86
|
99
|
<div style="display:flex;border-bottom:1px solid #000;padding:20px 0 10px;">
|
87
|
100
|
<div style="width:70%;">合计:</div>
|
|
@@ -103,6 +116,13 @@
|
103
|
116
|
</div>
|
104
|
117
|
|
105
|
118
|
</div>
|
|
119
|
+ <!-- <div>
|
|
120
|
+ 123
|
|
121
|
+ <div v-for='(item,index) in Object.values(obj)' :key="index">
|
|
122
|
+ <div>{{Object.keys(obj)[index]}}</div>
|
|
123
|
+ <div v-for="it in Object.values(obj)[index]">{{ it.name }}</div>
|
|
124
|
+ </div>
|
|
125
|
+ </div> -->
|
106
|
126
|
</template>
|
107
|
127
|
<script>
|
108
|
128
|
import {uParseTime} from '@/utils/tools'
|
|
@@ -132,14 +152,23 @@ export default {
|
132
|
152
|
}
|
133
|
153
|
}
|
134
|
154
|
},
|
|
155
|
+ data(){
|
|
156
|
+ return{
|
|
157
|
+ obj:{}
|
|
158
|
+ }
|
|
159
|
+ },
|
135
|
160
|
created(){
|
136
|
|
- // let obj = {
|
137
|
|
- // 检查费:[{name:1,age:2}],
|
138
|
|
- // 床位费:[{name:3,age:4}],
|
139
|
|
- // 检验费:[{name:5,age:6}],
|
140
|
|
- // }
|
|
161
|
+ let obj = {
|
|
162
|
+ 检查费:[{name:1,age:2},{name:'张三',age:41}],
|
|
163
|
+ 床位费:[{name:3,age:4}],
|
|
164
|
+ 检验费:[{name:5,age:6}],
|
|
165
|
+ }
|
|
166
|
+ this.obj = obj
|
|
167
|
+ console.log(1111,Object.values(obj))
|
141
|
168
|
// obj.map(item => {
|
142
|
169
|
// console.log(111,item)
|
|
170
|
+
|
|
171
|
+
|
143
|
172
|
// })
|
144
|
173
|
},
|
145
|
174
|
methods: {
|
|
@@ -173,9 +202,41 @@ export default {
|
173
|
202
|
watch:{
|
174
|
203
|
"order_infos.order_infos":{
|
175
|
204
|
handler(newVal){
|
|
205
|
+ let obj = {
|
|
206
|
+ 'item.med_chrgitm_type01':[],
|
|
207
|
+ 'item.med_chrgitm_type03':[],
|
|
208
|
+ 'item.med_chrgitm_type04':[],
|
|
209
|
+ 'item.med_chrgitm_type05':[],
|
|
210
|
+ 'item.med_chrgitm_type06':[],
|
|
211
|
+ 'item.med_chrgitm_type08':[],
|
|
212
|
+ 'item.med_chrgitm_type09':[],
|
|
213
|
+ 'item.med_chrgitm_type11':[],
|
|
214
|
+ 'item.med_chrgitm_type14':[],
|
|
215
|
+ }
|
176
|
216
|
newVal.map(item => {
|
177
|
|
- if(item.MedChrgitmType){}
|
|
217
|
+
|
|
218
|
+ if(item.med_chrgitm_type == '01'){
|
|
219
|
+ obj.med_chrgitm_type01.push(item)
|
|
220
|
+ }else if(item.med_chrgitm_type == '03'){
|
|
221
|
+ obj.med_chrgitm_type03.push(item)
|
|
222
|
+ }else if(item.med_chrgitm_type == '04'){
|
|
223
|
+ obj.med_chrgitm_type04.push(item)
|
|
224
|
+ }else if(item.med_chrgitm_type == '05'){
|
|
225
|
+ obj.med_chrgitm_type05.push(item)
|
|
226
|
+ }else if(item.med_chrgitm_type == '06'){
|
|
227
|
+ obj.med_chrgitm_type06.push(item)
|
|
228
|
+ }else if(item.med_chrgitm_type == '08'){
|
|
229
|
+ obj.med_chrgitm_type08.push(item)
|
|
230
|
+ }else if(item.med_chrgitm_type == '09'){
|
|
231
|
+ obj.med_chrgitm_type09.push(item)
|
|
232
|
+ }else if(item.med_chrgitm_type == '11'){
|
|
233
|
+ obj.med_chrgitm_type11.push(item)
|
|
234
|
+ }else if(item.med_chrgitm_type == '14'){
|
|
235
|
+ obj.med_chrgitm_type14.push(item)
|
|
236
|
+ }
|
|
237
|
+
|
178
|
238
|
})
|
|
239
|
+ this.obj = obj
|
179
|
240
|
}
|
180
|
241
|
}
|
181
|
242
|
}
|