Commit c569638cada31bcb6993c281860da5e90662258a

Authored by vking
1 parent 5b42ef54

分离在线预订

@@ -81,15 +81,28 @@ Component({ @@ -81,15 +81,28 @@ Component({
81 if(sc.seller_user){ 81 if(sc.seller_user){
82 cause.uname=(sc.seller_user.nick_name||sc.seller_user.nickname) 82 cause.uname=(sc.seller_user.nick_name||sc.seller_user.nickname)
83 } 83 }
84 - App.Reserve.SetReserveStatus({  
85 - rid:this.data.bookInfo.id,  
86 - status:4,  
87 - cause:JSON.stringify(cause),  
88 - }).then(()=>{  
89 - this.hide()  
90 - this.triggerEvent('reserveCancel',{hasCancel:true});  
91 - //this.getDetail(this.data.bookInfo.id,true);  
92 - }) 84 + if(1==this.data.bookInfo.type){
  85 + App.Customer.SetReserveStatus({
  86 + rid:this.data.bookInfo.id,
  87 + status:4,
  88 + cause:JSON.stringify(cause),
  89 + }).then(()=>{
  90 + this.hide()
  91 + this.triggerEvent('reserveCancel',{hasCancel:true});
  92 + //this.getDetail(this.data.bookInfo.id,true);
  93 + })
  94 + }else{
  95 + App.Reserve.SetReserveStatus({
  96 + rid:this.data.bookInfo.id,
  97 + status:4,
  98 + cause:JSON.stringify(cause),
  99 + }).then(()=>{
  100 + this.hide()
  101 + this.triggerEvent('reserveCancel',{hasCancel:true});
  102 + //this.getDetail(this.data.bookInfo.id,true);
  103 + })
  104 + }
  105 +
93 } 106 }
94 } 107 }
95 }) 108 })
@@ -77,6 +77,10 @@ export default { @@ -77,6 +77,10 @@ export default {
77 'App.Reserve.SetReserveStatus': { 77 'App.Reserve.SetReserveStatus': {
78 silence: false, 78 silence: false,
79 }, 79 },
  80 + //分离后的在线预订专用修改当前预订
  81 + 'App.Customer.SetReserveStatus': {
  82 + silence: false,
  83 + },
80 84
81 //修改当前桌子是否启用 0:未启用,1:启用 85 //修改当前桌子是否启用 0:未启用,1:启用
82 'App.Reserve.SetSwitchStatus': { 86 'App.Reserve.SetSwitchStatus': {