Commit 117e80c4f486ea16c2250e35ed66a20f494d9216

Authored by vking
1 parent cf77e9fa

拒绝订单

... ... @@ -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
... ...
... ... @@ -9,6 +9,7 @@
"cancel":"../../components/book/reserveCancel/cancel",
"nav":"/components/nav/nav",
"a2l":"/components/tips/add-to-lite",
"formids":"/components/formids/formids"
"formids":"/components/formids/formids",
"showModal":"/components/showModal/showModal"
}
}
\ No newline at end of file
... ...
... ... @@ -230,4 +230,5 @@
<action-sheet-cancel >取消</action-sheet-cancel>
</action-sheet>
<cancel id="cancel" bindreserveCancel="reserveCancel" bookInfo="{{bookInfo}}"></cancel>
\ No newline at end of file
<cancel id="cancel" bindreserveCancel="reserveCancel" bookInfo="{{bookInfo}}"></cancel>
<showModal id="showModal" bindshowModal="showModalEvent"></showModal>
\ No newline at end of file
... ...
... ... @@ -502,7 +502,7 @@
"id": 59,
"name": "pack-book/pages/book/b_detail",
"pathName": "pack-book/pages/book/b_detail",
"query": "id=76917",
"query": "id=80865",
"scene": null
},
{
... ...