修复代客下单退菜时历史订单会被标识为客座费问题
This commit is contained in:
parent
3d287016c0
commit
910fd4b9ad
|
|
@ -115,7 +115,7 @@ export default {
|
||||||
this.goods = item?item:this.goods;
|
this.goods = item?item:this.goods;
|
||||||
console.log(item)
|
console.log(item)
|
||||||
this.show = true;
|
this.show = true;
|
||||||
if (item != "-999") {
|
if (item.productId != "-999") {
|
||||||
this.number = 1;
|
this.number = 1;
|
||||||
} else {
|
} else {
|
||||||
this.number = item.num;
|
this.number = item.num;
|
||||||
|
|
|
||||||
|
|
@ -1714,6 +1714,9 @@ export default {
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
isShowVipPrice() {
|
isShowVipPrice() {
|
||||||
|
if(!this.shopInfo.isUseVip){
|
||||||
|
return false
|
||||||
|
}
|
||||||
return this.vipUser.isVip ? true : false;
|
return this.vipUser.isVip ? true : false;
|
||||||
},
|
},
|
||||||
coupdiscount() {
|
coupdiscount() {
|
||||||
|
|
@ -3061,7 +3064,14 @@ export default {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (key === "returnCart") {
|
if (key === "returnCart") {
|
||||||
const selGoods = this.order.old.list[this.order.old.selIndex];
|
console.log(this.order);
|
||||||
|
let selGoods=undefined
|
||||||
|
if(this.order.selPlaceNum==-10){
|
||||||
|
selGoods = {...this.order.seatFee,num:this.order.seatFee.number}
|
||||||
|
}else{
|
||||||
|
selGoods = this.order.old.list[this.order.selPlaceNum-1].info[this.order.old.selIndex];
|
||||||
|
}
|
||||||
|
console.log(selGoods);
|
||||||
this.refToggle("refReturnCart", true, selGoods);
|
this.refToggle("refReturnCart", true, selGoods);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue