|
...
|
...
|
@@ -300,32 +300,28 @@ Page({ |
|
|
|
});
|
|
|
|
},
|
|
|
|
refuseOrder(){
|
|
|
|
this.selectComponent("#showModal").options({
|
|
|
|
header: '您确定要拒绝这个订单吗?',
|
|
|
|
body: '如果该类型包间已订满,请及时停用包间',
|
|
|
|
showCancel:true,
|
|
|
|
cancelText:'拒绝订单',
|
|
|
|
cancelColor:'',
|
|
|
|
confirmText:'去安排',
|
|
|
|
confirmColor:'',
|
|
|
|
}).show()
|
|
|
|
this.selectComponent("#refuse").show()
|
|
|
|
},
|
|
|
|
async showModalEvent(e){
|
|
|
|
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')
|
|
|
|
})
|
|
|
|
return this.refuseOrderDo()
|
|
|
|
}
|
|
|
|
},
|
|
|
|
async refuseOrderDo(param={}){
|
|
|
|
let params={
|
|
|
|
rid:this.data.bookInfo.id,
|
|
|
|
status:6,
|
|
|
|
cause:await this.getCause('包间已订满'),
|
|
|
|
auto:param.auto||"0",
|
|
|
|
}
|
|
|
|
App.Customer.SetReserveStatus(params).then(()=>{
|
|
|
|
this.getDetail(this.data.bookInfo.id,true);
|
|
|
|
PubSub.emit('fulshReseveList')
|
|
|
|
})
|
|
|
|
},
|
|
|
|
arrangeOrder(){
|
|
|
|
let bi=this.data.bookInfo
|
|
|
|
let checked_tids=''
|
|
...
|
...
|
@@ -443,4 +439,10 @@ Page({ |
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
|
|
refuseEvent(e){
|
|
|
|
console.log('refuseEvent',e.detail)
|
|
|
|
if(e.detail.type=='fun'){
|
|
|
|
this[e.detail.fun](e.detail.data)
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}) |
|
|
\ No newline at end of file |
...
|
...
|
|