XMLWAN 4 年前
父节点
当前提交
0c5995643c
共有 1 个文件被更改,包括 12 次插入9 次删除
  1. 12 9
      src/xt_pages/dialysis/dialysisDoctorAdvice.vue

+ 12 - 9
src/xt_pages/dialysis/dialysisDoctorAdvice.vue 查看文件

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