Explorar o código

feat:修复预约选人bug

LuoDLeo %!s(int64=2) %!d(string=hai) anos
pai
achega
026e4341ff
Modificáronse 1 ficheiros con 15 adicións e 12 borrados
  1. 15 12
      orderPages/bookService/index.vue

+ 15 - 12
orderPages/bookService/index.vue

@@ -427,22 +427,23 @@ export default {
                 organization:this.store.storeId
             }).then(res =>{
                 this.periodDateList = res.data.data
-                this.selectPeriodByDate(res.data.data[0].label)
+                // this.selectPeriodByDate(res.data.data[0].label)
+                this.getServiceTime(res.data.data[0].label);
             })
         },
 
         //获取门店排班时段
-        selectPeriodByDate(date){
-            this.$api.selectPeriodByDate({
-                organization:this.store.storeId,
-                schedulingDate:date
-            }).then(res =>{
-                this.periodTimeList = res.data.data
-                if (this.periodTimeList.length===0){
-                    uni.$u.toast('暂无排班时段')
-                }
-            })
-        },
+        // selectPeriodByDate(date){
+        //     this.$api.selectPeriodByDate({
+        //         organization:this.store.storeId,
+        //         schedulingDate:date
+        //     }).then(res =>{
+        //         this.periodTimeList = res.data.data
+        //         if (this.periodTimeList.length===0){
+        //             uni.$u.toast('暂无排班时段')
+        //         }
+        //     })
+        // },
 
       //获取门店排班时段
       getServiceTime(date){
@@ -489,10 +490,12 @@ export default {
         bindPickerChange1(e){
             this.periodDateIndex= e.detail.value
             this.getServiceTime(this.periodDateList[e.detail.value].label)
+          this.serviceTeacher = {};
             console.log(e)
         },
         bindPickerChange2(e){
             this.periodTimeIndex= e.detail.value
+          this.serviceTeacher = {}
             console.log(e)
         },