|
@@ -562,14 +562,14 @@
|
|
|
orderServiceId: this.currService ? this.currService.orderServiceId : null,
|
|
orderServiceId: this.currService ? this.currService.orderServiceId : null,
|
|
|
storeId:this.storeId
|
|
storeId:this.storeId
|
|
|
}).then(res => {
|
|
}).then(res => {
|
|
|
- this.currServiceInfo()
|
|
|
|
|
|
|
+ this.currServiceInfo(true)
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- currServiceInfo() {
|
|
|
|
|
|
|
+ currServiceInfo(e) {
|
|
|
if (!this.userInfo.signIn){
|
|
if (!this.userInfo.signIn){
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
|
icon: 'error',
|
|
icon: 'error',
|
|
@@ -581,19 +581,21 @@
|
|
|
this.$api.service.currServiceInfo({
|
|
this.$api.service.currServiceInfo({
|
|
|
storeId: this.userInfo.workStoreId
|
|
storeId: this.userInfo.workStoreId
|
|
|
}).then(res => {
|
|
}).then(res => {
|
|
|
- console.log(res.data.data)
|
|
|
|
|
- if (res.data.data === null){
|
|
|
|
|
- uni.showModal({
|
|
|
|
|
- title:'温馨提示',
|
|
|
|
|
- content:'暂无需要服务的客户',
|
|
|
|
|
- editable:false,
|
|
|
|
|
- showCancel:false,
|
|
|
|
|
- success:(e)=>{
|
|
|
|
|
- if (e.confirm){
|
|
|
|
|
-
|
|
|
|
|
|
|
+ if (e){
|
|
|
|
|
+ console.log(res.data.data)
|
|
|
|
|
+ if (res.data.data === null){
|
|
|
|
|
+ uni.showModal({
|
|
|
|
|
+ title:'温馨提示',
|
|
|
|
|
+ content:'暂无需要服务的客户',
|
|
|
|
|
+ editable:false,
|
|
|
|
|
+ showCancel:false,
|
|
|
|
|
+ success:(e)=>{
|
|
|
|
|
+ if (e.confirm){
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
this.currService = res.data.data
|
|
this.currService = res.data.data
|
|
|
this.setButtomState(this.currService)
|
|
this.setButtomState(this.currService)
|