Commit c569638cada31bcb6993c281860da5e90662258a

Authored by vking
1 parent 5b42ef54

分离在线预订

... ... @@ -81,15 +81,28 @@ Component({
if(sc.seller_user){
cause.uname=(sc.seller_user.nick_name||sc.seller_user.nickname)
}
App.Reserve.SetReserveStatus({
rid:this.data.bookInfo.id,
status:4,
cause:JSON.stringify(cause),
}).then(()=>{
this.hide()
this.triggerEvent('reserveCancel',{hasCancel:true});
//this.getDetail(this.data.bookInfo.id,true);
})
if(1==this.data.bookInfo.type){
App.Customer.SetReserveStatus({
rid:this.data.bookInfo.id,
status:4,
cause:JSON.stringify(cause),
}).then(()=>{
this.hide()
this.triggerEvent('reserveCancel',{hasCancel:true});
//this.getDetail(this.data.bookInfo.id,true);
})
}else{
App.Reserve.SetReserveStatus({
rid:this.data.bookInfo.id,
status:4,
cause:JSON.stringify(cause),
}).then(()=>{
this.hide()
this.triggerEvent('reserveCancel',{hasCancel:true});
//this.getDetail(this.data.bookInfo.id,true);
})
}
}
}
})
... ...
... ... @@ -77,6 +77,10 @@ export default {
'App.Reserve.SetReserveStatus': {
silence: false,
},
//分离后的在线预订专用修改当前预订
'App.Customer.SetReserveStatus': {
silence: false,
},
//修改当前桌子是否启用 0:未启用,1:启用
'App.Reserve.SetSwitchStatus': {
... ...