|
|
@@ -66,7 +66,7 @@
|
|
|
<text>服务人员</text>
|
|
|
</view>
|
|
|
<view class="flex-row justify-between groupItemContent" @click="chooseServiceTeacher">
|
|
|
- <text>{{serviceTeacher.title || '请选择服务人员' }}</text>
|
|
|
+ <text>{{serviceTeacher.personName || '请选择服务人员' }}</text>
|
|
|
<u-icon name="arrow-right" color="#666" size="18"></u-icon>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -237,7 +237,7 @@ export default {
|
|
|
//提交订单
|
|
|
commitOrder(){
|
|
|
|
|
|
- if (!this.serviceTeacher.id){
|
|
|
+ if (!this.serviceTeacher.personId){
|
|
|
uni.$u.toast('请选择服务人员')
|
|
|
return
|
|
|
}
|
|
|
@@ -342,9 +342,9 @@ export default {
|
|
|
serviceStoreId: this.store.storeId,
|
|
|
serviceTypeId:this.storeServiceList[this.storeServiceIndex].id,
|
|
|
serviceDate:this.periodDateList[this.periodDateIndex].label,
|
|
|
- serviceUserId:this.serviceTeacher.id,
|
|
|
+ serviceUserId:this.serviceTeacher.personId,
|
|
|
serviceStartTime:this.periodTimeList[this.periodTimeIndex].label,
|
|
|
- timeRangeId:this.serviceTeacher.id,
|
|
|
+ timeRangeId:this.serviceTeacher.crewPeriodId,
|
|
|
remark:this.remark
|
|
|
}).then(res=>{
|
|
|
this.orderNo=res.data.data.orderNo
|
|
|
@@ -374,11 +374,10 @@ export default {
|
|
|
//获取预约费用
|
|
|
getAppointmentPrice(){
|
|
|
this.$api.getAppointmentPrice({
|
|
|
- auth: true,
|
|
|
storeId: this.store.storeId,
|
|
|
date: this.periodDateList[this.periodDateIndex].label,
|
|
|
- timeRangeId: this.periodTimeList[this.periodTimeIndex].value,
|
|
|
- servicePersonId: this.serviceTeacher.id,
|
|
|
+ timeRangeId: this.serviceTeacher.crewPeriodId,
|
|
|
+ servicePersonId: this.serviceTeacher.personId,
|
|
|
serviceProjectId:this.storeServiceList[this.storeServiceIndex].id
|
|
|
}).then(res=>{
|
|
|
this.price= res.data.data.price
|
|
|
@@ -391,8 +390,10 @@ export default {
|
|
|
if (this.periodDateList.length <=0 || this.periodTimeList.length<=0){
|
|
|
uni.$u.toast('请选择服务时间')
|
|
|
}
|
|
|
+ console.log("a->", this.periodTimeIndex)
|
|
|
+ console.log("b->", this.periodTimeList)
|
|
|
uni.navigateTo({
|
|
|
- url: '/orderPages/serviceTeacher/index?organization='+this.store.storeId + '&schedulingDate=' +this.periodDateList[this.periodTimeIndex].label + '&periodId='+this.periodTimeList[this.periodTimeIndex].value
|
|
|
+ url: '/orderPages/serviceTeacher/index?organization='+this.store.storeId + '&schedulingDate=' +this.periodDateList[this.periodDateIndex].label + '&time='+this.periodTimeList[this.periodTimeIndex].value
|
|
|
})
|
|
|
},
|
|
|
|
|
|
@@ -420,6 +421,19 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
|
|
|
+ //获取门店排班时段
|
|
|
+ getServiceTime(date){
|
|
|
+ this.$api.getServiceTime({
|
|
|
+ storeId: this.store.storeId,
|
|
|
+ date: date
|
|
|
+ }).then(res =>{
|
|
|
+ this.periodTimeList = res.data.data
|
|
|
+ if (this.periodTimeList.length===0){
|
|
|
+ uni.$u.toast('暂无排班时段')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
// 查询服务对像信息列表
|
|
|
listServiceObject(){
|
|
|
this.$api.listServiceObject(this.reqParm).then((res)=>{
|
|
|
@@ -451,7 +465,7 @@ export default {
|
|
|
},
|
|
|
bindPickerChange1(e){
|
|
|
this.periodDateIndex= e.detail.value
|
|
|
- this.selectPeriodByDate(this.periodDateList[e.detail.value].label)
|
|
|
+ this.getServiceTime(this.periodDateList[e.detail.value].label)
|
|
|
console.log(e)
|
|
|
},
|
|
|
bindPickerChange2(e){
|