|
...
|
...
|
@@ -291,31 +291,31 @@ Page({ |
|
|
|
});
|
|
|
|
},
|
|
|
|
refuseOrder(){
|
|
|
|
wx.showModal({
|
|
|
|
title: '您确定要拒绝这个订单吗?',
|
|
|
|
content: '如果该类型包间已订满,请及时停用包间',
|
|
|
|
this.selectComponent("#showModal").options({
|
|
|
|
header: '您确定要拒绝这个订单吗?',
|
|
|
|
body: '如果该类型包间已订满,请及时停用包间',
|
|
|
|
showCancel:true,
|
|
|
|
cancelText:'拒绝订单',
|
|
|
|
cancelColor:'',
|
|
|
|
confirmText:'去安排',
|
|
|
|
confirmColor:'',
|
|
|
|
success:(async (res)=>{
|
|
|
|
console.info(res)
|
|
|
|
if(res.cancel){
|
|
|
|
let params={
|
|
|
|
rid:this.data.bookInfo.id,
|
|
|
|
status:6,
|
|
|
|
cause:await this.getCause('拒绝订单'),
|
|
|
|
}
|
|
|
|
App.Customer.SetReserveStatus(params).then(()=>{
|
|
|
|
this.getDetail(this.data.bookInfo.id,true);
|
|
|
|
PubSub.emit('fulshReseveList')
|
|
|
|
})
|
|
|
|
}else{//分配
|
|
|
|
this.arrangeOrder()
|
|
|
|
}).show()
|
|
|
|
},
|
|
|
|
async showModalEvent(e){
|
|
|
|
if(e.detail.type=="confirm"){
|
|
|
|
return this.arrangeOrder()
|
|
|
|
}
|
|
|
|
if(e.detail.type=="cancel"){
|
|
|
|
let params={
|
|
|
|
rid:this.data.bookInfo.id,
|
|
|
|
status:6,
|
|
|
|
cause:await this.getCause('拒绝订单'),
|
|
|
|
}
|
|
|
|
App.Customer.SetReserveStatus(params).then(()=>{
|
|
|
|
this.getDetail(this.data.bookInfo.id,true);
|
|
|
|
PubSub.emit('fulshReseveList')
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
},
|
|
|
|
arrangeOrder(){
|
|
|
|
let bi=this.data.bookInfo
|
...
|
...
|
|