|
@@ -81,11 +81,11 @@
|
81
|
81
|
<span v-if="scope.row.mode_id == 15">HD前置换</span>
|
82
|
82
|
<span v-if="scope.row.mode_id == 16">HD后置换</span>
|
83
|
83
|
<span v-if="scope.row.mode_id == 17">HDF前置换</span>
|
84
|
|
- <span v-if="scope.row.mode_id == 18"> HDF后置换</span>
|
|
84
|
+ <span v-if="scope.row.mode_id == 18"> HDF后置换</span>
|
85
|
85
|
</template>
|
86
|
86
|
</el-table-column>
|
87
|
87
|
<el-table-column align="center" prop="address" :label="item.type_name" v-for="(item,index) in tableName" :key="index">
|
88
|
|
- <template slot-scope="scope">
|
|
88
|
+ <template slot-scope="scope">
|
89
|
89
|
<!-- {{getCount(scope.row.patient.id,item.good_id)?getCount(scope.row.patient.id,item.good_id):""}} -->
|
90
|
90
|
{{scope.row.good_type[index].name}}
|
91
|
91
|
</template>
|
|
@@ -245,13 +245,13 @@ export default {
|
245
|
245
|
// }
|
246
|
246
|
// if(this.selected_date!=''){
|
247
|
247
|
// this.start_time = parseTime(this.selected_date, '{y}-{m}-{d}')
|
248
|
|
- // }
|
|
248
|
+ // }
|
249
|
249
|
const params ={
|
250
|
250
|
start_time:this.start_time,
|
251
|
251
|
scheduleType: this.scheduleType,
|
252
|
252
|
partitionType:this.partitionType,
|
253
|
253
|
limit:this.limit,
|
254
|
|
- page:this.page,
|
|
254
|
+ page:this.page,
|
255
|
255
|
keyword:this.search_input,
|
256
|
256
|
}
|
257
|
257
|
getCollectList(params).then(response=>{
|
|
@@ -275,7 +275,7 @@ export default {
|
275
|
275
|
this.good_types = []
|
276
|
276
|
this.allGoodInfo = []
|
277
|
277
|
this.good_types.push("姓名")
|
278
|
|
-
|
|
278
|
+
|
279
|
279
|
for (let a = 0; a < response.data.data.good_type.length; a++){
|
280
|
280
|
this.good_types.push(response.data.data.good_type[a].type_name)
|
281
|
281
|
}
|
|
@@ -299,7 +299,7 @@ export default {
|
299
|
299
|
|
300
|
300
|
|
301
|
301
|
console.log("2222222",arr)
|
302
|
|
-
|
|
302
|
+
|
303
|
303
|
|
304
|
304
|
let newObj = {
|
305
|
305
|
"patient_id":response.data.data.dialysis_goods[i].patient_id,
|
|
@@ -311,10 +311,10 @@ export default {
|
311
|
311
|
"good_user_detail":response.data.data.dialysis_goods[i].good_user_detail,
|
312
|
312
|
"last_good_user_detail":response.data.data.dialysis_goods[i].last_good_user_detail,
|
313
|
313
|
}
|
314
|
|
-
|
|
314
|
+
|
315
|
315
|
this.list.push(newObj)
|
316
|
316
|
}
|
317
|
|
-
|
|
317
|
+
|
318
|
318
|
for (let a = 0; a < this.list.length; a++){
|
319
|
319
|
for (let b = 0; b < this.list[a].good_type.length; b++){
|
320
|
320
|
if(this.list[a].good_type[b].id > 0){
|
|
@@ -334,7 +334,7 @@ export default {
|
334
|
334
|
// }
|
335
|
335
|
// if(this.selected_date!=''){
|
336
|
336
|
// this.start_time = parseTime(this.selected_date, '{y}-{m}-{d}')
|
337
|
|
- // }
|
|
337
|
+ // }
|
338
|
338
|
const params = {
|
339
|
339
|
startime:this.start_time
|
340
|
340
|
}
|
|
@@ -360,26 +360,26 @@ export default {
|
360
|
360
|
// }
|
361
|
361
|
// if(this.selected_date!=''){
|
362
|
362
|
// this.start_time = parseTime(this.selected_date, '{y}-{m}-{d}')
|
363
|
|
- // }
|
|
363
|
+ // }
|
364
|
364
|
const params ={
|
365
|
365
|
start_time:this.start_time,
|
366
|
366
|
scheduleType: this.scheduleType,
|
367
|
367
|
partitionType:this.partitionType,
|
368
|
368
|
limit:this.limit,
|
369
|
|
- page:this.page,
|
|
369
|
+ page:this.page,
|
370
|
370
|
keyword:this.search_input,
|
371
|
371
|
}
|
372
|
372
|
getCollectList(params).then(response=>{
|
373
|
373
|
if(response.data.state == 1){
|
374
|
|
- var schedule = response.data.data.schedule
|
|
374
|
+ var schedule = response.data.data.schedule
|
375
|
375
|
this.tableData = schedule
|
376
|
|
- var total = response.data.data.total
|
|
376
|
+ var total = response.data.data.total
|
377
|
377
|
this.total = total
|
378
|
|
- var consumables = response.data.data.consumables
|
|
378
|
+ var consumables = response.data.data.consumables
|
379
|
379
|
this.consuMables = consumables
|
380
|
|
- var prescription = response.data.data.prescription
|
|
380
|
+ var prescription = response.data.data.prescription
|
381
|
381
|
this.prescriptionList = prescription
|
382
|
|
- var reducelist = response.data.data.reducelist
|
|
382
|
+ var reducelist = response.data.data.reducelist
|
383
|
383
|
this.reduceList = reducelist
|
384
|
384
|
var good_type = response.data.data.good_type
|
385
|
385
|
console.log("godd_type",good_type)
|
|
@@ -390,7 +390,7 @@ export default {
|
390
|
390
|
this.good_types = []
|
391
|
391
|
this.allGoodInfo = []
|
392
|
392
|
this.good_types.push("姓名")
|
393
|
|
-
|
|
393
|
+
|
394
|
394
|
for (let a = 0; a < response.data.data.good_type.length; a++){
|
395
|
395
|
this.good_types.push(response.data.data.good_type[a].type_name)
|
396
|
396
|
}
|
|
@@ -414,7 +414,7 @@ export default {
|
414
|
414
|
|
415
|
415
|
|
416
|
416
|
console.log("2222222",arr)
|
417
|
|
-
|
|
417
|
+
|
418
|
418
|
|
419
|
419
|
let newObj = {
|
420
|
420
|
"patient_id":response.data.data.dialysis_goods[i].patient_id,
|
|
@@ -426,10 +426,10 @@ export default {
|
426
|
426
|
"good_user_detail":response.data.data.dialysis_goods[i].good_user_detail,
|
427
|
427
|
"last_good_user_detail":response.data.data.dialysis_goods[i].last_good_user_detail,
|
428
|
428
|
}
|
429
|
|
-
|
|
429
|
+
|
430
|
430
|
this.list.push(newObj)
|
431
|
431
|
}
|
432
|
|
-
|
|
432
|
+
|
433
|
433
|
for (let a = 0; a < this.list.length; a++){
|
434
|
434
|
for (let b = 0; b < this.list[a].good_type.length; b++){
|
435
|
435
|
if(this.list[a].good_type[b].id > 0){
|
|
@@ -438,7 +438,7 @@ export default {
|
438
|
438
|
|
439
|
439
|
}
|
440
|
440
|
}
|
441
|
|
- console.log("list22222",this.list)
|
|
441
|
+ console.log("list22222",this.list)
|
442
|
442
|
}
|
443
|
443
|
})
|
444
|
444
|
},
|
|
@@ -472,34 +472,34 @@ export default {
|
472
|
472
|
if(this.prescriptionList[i].patient_id == id){
|
473
|
473
|
anticoagulant = this.prescriptionList[i].anticoagulant
|
474
|
474
|
}
|
475
|
|
- }
|
|
475
|
+ }
|
476
|
476
|
return anticoagulant
|
477
|
477
|
},
|
478
|
478
|
getAnticoagulantShouji(id){
|
479
|
479
|
var shouji = ""
|
480
|
480
|
for(let i=0;i<this.prescriptionList.length;i++){
|
481
|
|
- if(this.prescriptionList[i].patient_id == id){
|
|
481
|
+ if(this.prescriptionList[i].patient_id == id && this.prescriptionList[i].anticoagulant_shouji!=0 ){
|
482
|
482
|
shouji = "("+this.prescriptionList[i].anticoagulant_shouji
|
483
|
483
|
}
|
484
|
|
- }
|
|
484
|
+ }
|
485
|
485
|
return shouji
|
486
|
486
|
},
|
487
|
487
|
getAnticoagulantWeichi(id){
|
488
|
488
|
var weichi = ""
|
489
|
489
|
for(let i=0;i<this.prescriptionList.length;i++){
|
490
|
|
- if(this.prescriptionList[i].patient_id == id){
|
|
490
|
+ if(this.prescriptionList[i].patient_id == id && this.prescriptionList[i].anticoagulant_weichi!=0){
|
491
|
491
|
weichi = "("+this.prescriptionList[i].anticoagulant_weichi
|
492
|
|
- }
|
|
492
|
+ }
|
493
|
493
|
return weichi
|
494
|
494
|
}
|
495
|
495
|
},
|
496
|
496
|
getAnticoagulantZongliang(id){
|
497
|
497
|
var zongliang = ""
|
498
|
498
|
for(let i=0;i<this.prescriptionList.length;i++){
|
499
|
|
- if(this.prescriptionList[i].patient_id == id){
|
|
499
|
+ if(this.prescriptionList[i].patient_id == id && this.prescriptionList[i].anticoagulant_zongliang!=0){
|
500
|
500
|
zongliang = "("+this.prescriptionList[i].anticoagulant_zongliang
|
501
|
501
|
}
|
502
|
|
- }
|
|
502
|
+ }
|
503
|
503
|
return zongliang
|
504
|
504
|
},
|
505
|
505
|
// getGoodUserInfo(good_type_id,good_user,last_good_user) {
|
|
@@ -509,7 +509,7 @@ export default {
|
509
|
509
|
// if(good_type_id == good_user[b].good_type_id)
|
510
|
510
|
// desc = desc + "\n" + good_user[b].info.specification_name +"*" +good_user[b].count
|
511
|
511
|
// }
|
512
|
|
-
|
|
512
|
+
|
513
|
513
|
|
514
|
514
|
// return desc
|
515
|
515
|
// } else if (good_user != null && good_user.length <= 0) {
|
|
@@ -519,7 +519,7 @@ export default {
|
519
|
519
|
// if(good_type_id == last_good_user[b].good_type_id)
|
520
|
520
|
// desc = desc+ "\n" + last_good_user[b].info.specification_name +"*" +last_good_user[b].count
|
521
|
521
|
// }
|
522
|
|
-
|
|
522
|
+
|
523
|
523
|
|
524
|
524
|
// return desc
|
525
|
525
|
|