|
@@ -202,6 +202,7 @@ export default {
|
202
|
202
|
order_info_list:[],
|
203
|
203
|
balanceAccountsType:0,
|
204
|
204
|
medicalInsuranceLevelList:[],
|
|
205
|
+ id:0,
|
205
|
206
|
}
|
206
|
207
|
},
|
207
|
208
|
methods: {
|
|
@@ -236,50 +237,9 @@ export default {
|
236
|
237
|
this.getGatherDetailList()
|
237
|
238
|
},
|
238
|
239
|
changeItem(id) {
|
239
|
|
- if(id == 0){
|
240
|
|
- this.tableList = []
|
241
|
|
- this.getGatherDetailList()
|
242
|
|
- }
|
243
|
|
-
|
244
|
|
- if(id == 1){
|
245
|
|
- var new_arr = []
|
246
|
|
- for(let i=0;i<this.tableList.length;i++){
|
247
|
|
- if(this.tableList[i].is_total != 1){
|
248
|
|
- if(this.tableList[i].type == 1){
|
249
|
|
- new_arr.push(this.tableList[i])
|
250
|
|
- }
|
251
|
|
- }
|
252
|
|
- }
|
253
|
|
- this.tableList = []
|
254
|
|
- this.tableList = new_arr
|
255
|
|
- }
|
256
|
|
- if(id == 2){
|
257
|
|
- var new_arr = []
|
258
|
|
-
|
259
|
|
- for(let i=0;i<this.tableList.length;i++){
|
260
|
|
- if(this.tableList[i].is_total != 1){
|
261
|
|
- if(this.tableList[i].type == 2){
|
262
|
|
- new_arr.push(this.tableList[i])
|
263
|
|
- }
|
264
|
|
- }
|
265
|
|
- }
|
266
|
|
- this.tableList = []
|
267
|
|
- this.tableList = new_arr
|
268
|
|
- }
|
269
|
|
- if(id == 3){
|
270
|
|
- console.log("tabl4233223232323323223",this.tableList)
|
271
|
|
- var new_arr = []
|
272
|
|
- for(let i=0;i<this.tableList.length;i++){
|
273
|
|
- if(this.tableList[i].is_total != 1){
|
274
|
|
- if(this.tableList[i].project_type == 3){
|
275
|
|
- new_arr.push(this.tableList[i])
|
276
|
|
- }
|
277
|
|
- }
|
278
|
|
- }
|
279
|
|
- console.log("new_ar3232332323232233223",new_arr)
|
280
|
|
- this.tableList = []
|
281
|
|
- this.tableList = new_arr
|
282
|
|
- }
|
|
240
|
+ this.id = id
|
|
241
|
+ this.tableList = []
|
|
242
|
+ this.getGatherDetailList()
|
283
|
243
|
},
|
284
|
244
|
getGatherDetailList() {
|
285
|
245
|
let start_time = this.chargeDate[0]
|
|
@@ -302,16 +262,16 @@ export default {
|
302
|
262
|
this.his_hospital = response.data.data.his_hospital
|
303
|
263
|
|
304
|
264
|
var order_info = response.data.data.order_info
|
305
|
|
-
|
306
|
|
- for(let i=0;i<order_info.length;i++){
|
307
|
|
- order_info[i].med_chrgitm_type = this.getType(order_info[i].med_chrgitm_type)
|
308
|
|
- order_info[i].chrgitm_lv = this.getMedicineInsuranceType(order_info[i].chrgitm_lv)
|
|
265
|
+ if(order_info!=null){
|
|
266
|
+ for(let i=0;i<order_info.length;i++){
|
|
267
|
+ order_info[i].med_chrgitm_type = this.getType(order_info[i].med_chrgitm_type)
|
|
268
|
+ order_info[i].chrgitm_lv = this.getMedicineInsuranceType(order_info[i].chrgitm_lv)
|
|
269
|
+ }
|
|
270
|
+ var prescription = response.data.data.prescription
|
|
271
|
+ this.setMonthPrescription(prescription)
|
309
|
272
|
}
|
310
|
|
- console.log("order_info32323232323232233232323232",order_info)
|
311
|
273
|
this.order_info_list = order_info
|
312
|
|
- var prescription = response.data.data.prescription
|
313
|
274
|
|
314
|
|
- this.setMonthPrescription(prescription)
|
315
|
275
|
this.balanceAccountsType = response.data.data.balanceAccountsType
|
316
|
276
|
|
317
|
277
|
this.medicalInsuranceLevelList = response.data.data.medicalInsuranceLevelList
|
|
@@ -436,8 +396,7 @@ export default {
|
436
|
396
|
return cur
|
437
|
397
|
}, []) // 设置cur默认类型为数组,并且初始值为空的数组
|
438
|
398
|
let tempOrderInfo = []
|
439
|
|
- console.log("med_chrgitm_type323223322323233223",med_chrgitm_types)
|
440
|
|
- console.log("order_info232322332323232322323",order_info)
|
|
399
|
+
|
441
|
400
|
for (let i = 0; i < med_chrgitm_types.length; i++) {
|
442
|
401
|
let obj = {
|
443
|
402
|
total: 0,
|
|
@@ -449,7 +408,7 @@ export default {
|
449
|
408
|
tempDetails.push(order_info[b])
|
450
|
409
|
}
|
451
|
410
|
}
|
452
|
|
- console.log("tempDetails2332323232322323",tempDetails)
|
|
411
|
+
|
453
|
412
|
|
454
|
413
|
obj.details = this.setNewData(tempDetails)
|
455
|
414
|
|
|
@@ -471,7 +430,49 @@ export default {
|
471
|
430
|
}
|
472
|
431
|
|
473
|
432
|
}
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
|
474
|
436
|
}
|
|
437
|
+
|
|
438
|
+ if(this.id == 1){
|
|
439
|
+ var new_arr = []
|
|
440
|
+ for(let i=0;i<this.tableList.length;i++){
|
|
441
|
+ if(this.tableList[i].is_total != 1){
|
|
442
|
+ if(this.tableList[i].type == 1){
|
|
443
|
+ new_arr.push(this.tableList[i])
|
|
444
|
+ }
|
|
445
|
+ }
|
|
446
|
+ }
|
|
447
|
+ this.tableList = []
|
|
448
|
+ this.tableList = new_arr
|
|
449
|
+ }
|
|
450
|
+ if(this.id == 2){
|
|
451
|
+ var new_arr = []
|
|
452
|
+
|
|
453
|
+ for(let i=0;i<this.tableList.length;i++){
|
|
454
|
+ if(this.tableList[i].is_total != 1){
|
|
455
|
+ if(this.tableList[i].project_type == 2){
|
|
456
|
+ new_arr.push(this.tableList[i])
|
|
457
|
+ }
|
|
458
|
+ }
|
|
459
|
+ }
|
|
460
|
+ this.tableList = []
|
|
461
|
+ this.tableList = new_arr
|
|
462
|
+ }
|
|
463
|
+ if(this.id == 3){
|
|
464
|
+ var new_arr = []
|
|
465
|
+ for(let i=0;i<this.tableList.length;i++){
|
|
466
|
+ if(this.tableList[i].is_total != 1){
|
|
467
|
+ if(this.tableList[i].project_type == 3){
|
|
468
|
+ new_arr.push(this.tableList[i])
|
|
469
|
+ }
|
|
470
|
+ }
|
|
471
|
+ }
|
|
472
|
+ console.log("this.tableist2332323223323223",this.tableList)
|
|
473
|
+ this.tableList = []
|
|
474
|
+ this.tableList = new_arr
|
|
475
|
+ }
|
475
|
476
|
}
|
476
|
477
|
})
|
477
|
478
|
},
|
|
@@ -744,7 +745,7 @@ export default {
|
744
|
745
|
}
|
745
|
746
|
},
|
746
|
747
|
toPrint(){
|
747
|
|
- this.$router.push({path:"/hisTool/gatherPrint?patient_id="+this.patient_id+"&start_time="+this.chargeDate[0]+"&end_time="+this.chargeDate[1]+"&type="+this.item_type +"&keyword="+this.keywords})
|
|
748
|
+ this.$router.push({path:"/hisTool/gatherPrint?patient_id="+this.patient_id+"&start_time="+this.chargeDate[0]+"&end_time="+this.chargeDate[1]+"&type="+this.item_type +"&keyword="+this.keywords+"&id="+this.id})
|
748
|
749
|
},
|
749
|
750
|
toPrintInvoice(){
|
750
|
751
|
this.$router.push({path:"/hisTool/gatherPrintInvoice?patient_id="+this.patient_id+"&start_time="+this.chargeDate[0]+"&end_time="+this.chargeDate[1]+"&type="+this.item_type +"&keyword="+this.keywords})
|
|
@@ -850,7 +851,7 @@ export default {
|
850
|
851
|
count = count + parseFloat(project_month_prescriptions.project[a].count)
|
851
|
852
|
obj['price'] = parseFloat(project_month_prescriptions.project[a].price)
|
852
|
853
|
obj['remark'] = project_month_prescriptions.project[a].remark
|
853
|
|
- obj['type'] = 2
|
|
854
|
+ obj['type'] = 3
|
854
|
855
|
obj['record_date'] = project_month_prescriptions.project[a].record_date
|
855
|
856
|
obj['is_total'] = 2
|
856
|
857
|
}
|