台桌费

This commit is contained in:
wwz 2024-12-18 11:22:14 +08:00
parent e959aba44d
commit b566eaf516
1 changed files with 9 additions and 9 deletions

View File

@ -119,14 +119,14 @@ export default {
return false;
}
//
var tzf = []
try {
let one = this.itemdata.old.list.every((i, index) => i.info.length == this.multipleSelection[index].length)
let tow = this.itemdata.list.every((icon) => icon.length == this.refcartSelection.length)
if (one && tow) {
tzf = [999]
}
} catch (error) { }
// var tzf = []
// try {
// let one = this.itemdata.old.list.every((i, index) => i.info.length == this.multipleSelection[index].length)
// let tow = this.itemdata.list.every((icon) => icon.length == this.refcartSelection.length)
// if (one && tow) {
// tzf = [999]
// }
// } catch (error) { }
// cartId便
if (this.refcartSelection.length) {
this.refcartSelection.forEach((i) => {
@ -138,7 +138,7 @@ export default {
await placeswitch({
masterId: this.masterId,
orderId: this.itemdata.orderId, //id
cartIds: this.isFull ? "" : [...cartIds.flatMap((subArray) => subArray.map((item) => item.cartId)),...tzf] , //
cartIds: this.isFull ? "" : cartIds.flatMap((subArray) => subArray.map((item) => item.cartId)), //
isFull: this.isFull, //false
currentTableId: this.currentTableId,
targetTableId: this.targetTableId,