|
@@ -434,11 +434,13 @@ export default {
|
434
|
434
|
|
435
|
435
|
this.schedulType = scheduleType;
|
436
|
436
|
this.listQuery.schedul_type = scheduleType;
|
|
437
|
+ console.log("班次",this.listQuery.schedul_type)
|
437
|
438
|
this.requestSchedualDoctors(this.time);
|
438
|
439
|
},
|
439
|
440
|
selectPartitionType(partitionType) {
|
440
|
441
|
this.partitionType = partitionType;
|
441
|
442
|
this.listQuery.partition_type = partitionType;
|
|
443
|
+ console.log("分区",this.listQuery.partition_type)
|
442
|
444
|
this.requestSchedualDoctors(this.time);
|
443
|
445
|
},
|
444
|
446
|
|
|
@@ -480,16 +482,17 @@ export default {
|
480
|
482
|
}
|
481
|
483
|
|
482
|
484
|
let newTime = moment(time).format('YYYY-MM-DD')
|
483
|
|
- getSchedualDoctors({
|
484
|
|
- date: newTime,
|
485
|
|
- patient_type: 0,
|
486
|
|
- advice_type: 2,
|
487
|
|
- delivery_way:name}).then(rs => {
|
|
485
|
+
|
|
486
|
+ var schedule_type = this.listQuery.schedul_type
|
|
487
|
+ var partition_type = this.listQuery.partition_type
|
|
488
|
+
|
|
489
|
+ console.log("班次",schedule_type,"分区",partition_type)
|
|
490
|
+ getSchedualDoctors({date: newTime,patient_type: 0,advice_type: 2,delivery_way:name,schedule_type:schedule_type,partition_type:partition_type}).then(rs => {
|
488
|
491
|
var resp = rs.data
|
489
|
492
|
if (resp.state == 1) {
|
490
|
493
|
this.admin_users = resp.data.adminUser
|
491
|
494
|
var schedules = resp.data.scheduals
|
492
|
|
- console.log("schedules",schedules)
|
|
495
|
+ console.log("列表数据",schedules)
|
493
|
496
|
var config = resp.data.config
|
494
|
497
|
if(config.is_open == 0){
|
495
|
498
|
this.show = true
|
|
@@ -512,6 +515,7 @@ export default {
|
512
|
515
|
arr.push(it)
|
513
|
516
|
})
|
514
|
517
|
})
|
|
518
|
+ console.log("班次3333333",this.schedulType)
|
515
|
519
|
if(this.schedulType == 0){
|
516
|
520
|
newSchedules = arr
|
517
|
521
|
}else{
|
|
@@ -522,7 +526,7 @@ export default {
|
522
|
526
|
})
|
523
|
527
|
}
|
524
|
528
|
|
525
|
|
-
|
|
529
|
+ console.log("分区",this.partitionType)
|
526
|
530
|
if(this.partitionType == 0){
|
527
|
531
|
this.scheduleMap = newSchedules
|
528
|
532
|
}else {
|
|
@@ -609,9 +613,8 @@ export default {
|
609
|
613
|
})
|
610
|
614
|
this.indexInfoList = newArr
|
611
|
615
|
}
|
612
|
|
-
|
613
|
|
-
|
614
|
616
|
}
|
|
617
|
+ console.log("列表22222",this.scheduleMap)
|
615
|
618
|
})
|
616
|
619
|
},
|
617
|
620
|
getValue: function(val) {
|