|
|
@@ -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)
|
|
|
},
|
|
|
|