|
...
|
...
|
@@ -178,8 +178,12 @@ Page({ |
|
|
|
})
|
|
|
|
},
|
|
|
|
gotoModify() {
|
|
|
|
let url='./b_addnew'
|
|
|
|
if(this.detailData.type==1){
|
|
|
|
url='./online_update'
|
|
|
|
}
|
|
|
|
wx.redirectTo({
|
|
|
|
url: './b_addnew?id=' + this.data.bookInfo.id
|
|
|
|
url: url+'?id=' + this.data.bookInfo.id
|
|
|
|
})
|
|
|
|
},
|
|
|
|
cancelReserve() {
|
|
...
|
...
|
@@ -195,13 +199,23 @@ Page({ |
|
|
|
})
|
|
|
|
},
|
|
|
|
async startDinner(e) {
|
|
|
|
App.Reserve.SetReserveStatus({
|
|
|
|
rid: this.data.bookInfo.id,
|
|
|
|
status: util.attr(e, 'status'),
|
|
|
|
cause: await this.getCause(),
|
|
|
|
}).then(() => {
|
|
|
|
this.getDetail(this.data.bookInfo.id, true);
|
|
|
|
});
|
|
|
|
if(this.detailData.type==1){
|
|
|
|
App.Customer.SetReserveStatus({
|
|
|
|
rid: this.data.bookInfo.id,
|
|
|
|
status: util.attr(e, 'status'),
|
|
|
|
cause: await this.getCause(),
|
|
|
|
}).then(() => {
|
|
|
|
this.getDetail(this.data.bookInfo.id, true);
|
|
|
|
});
|
|
|
|
}else{
|
|
|
|
App.Reserve.SetReserveStatus({
|
|
|
|
rid: this.data.bookInfo.id,
|
|
|
|
status: util.attr(e, 'status'),
|
|
|
|
cause: await this.getCause(),
|
|
|
|
}).then(() => {
|
|
|
|
this.getDetail(this.data.bookInfo.id, true);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
},
|
|
|
|
showOrder() {
|
|
|
|
wx.navigateTo({
|
|
...
|
...
|
@@ -229,7 +243,7 @@ Page({ |
|
|
|
status:6,
|
|
|
|
cause:await this.getCause('拒绝订单'),
|
|
|
|
}
|
|
|
|
App.Reserve.SetReserveStatus(params).then(()=>{
|
|
|
|
App.Customer.SetReserveStatus(params).then(()=>{
|
|
|
|
this.getDetail(this.data.bookInfo.id,true);
|
|
|
|
PubSub.emit('fulshReseveList')
|
|
|
|
})
|
|
...
|
...
|
@@ -262,7 +276,7 @@ Page({ |
|
|
|
cause:await this.getCause('安排包间'),
|
|
|
|
tid:res.tableid.toString()
|
|
|
|
}
|
|
|
|
App.Reserve.SetReserveStatus(params).then(()=>{
|
|
|
|
App.Customer.SetReserveStatus(params).then(()=>{
|
|
|
|
this.getDetail(this.data.bookInfo.id,true);
|
|
|
|
PubSub.emit('fulshReseveList')
|
|
|
|
})
|
...
|
...
|
|