并转桌子

This commit is contained in:
duan
2024-12-12 17:25:16 +08:00
parent 6d8284e78f
commit 06e17a74b3
7 changed files with 241 additions and 23 deletions

View File

@@ -112,6 +112,15 @@
</view>
</view>
</template>
<template v-if="goods.list[0].tableId">
<!-- 不免餐位费 -->
<view class="block" @tap="rotatingTables"
style="display: flex;align-items: center;justify-content: space-between;">
<view>转桌/并桌</view>
<uni-icons type="right" color="#999" size="16"></uni-icons>
</view>
</template>
</template>
<view class="block">
@@ -367,6 +376,11 @@
return Number(n).toFixed(2)
}
function rotatingTables() {
uni.navigateTo({
url: '/pagesCreateOrder/confirm-order/rotatingTables?item='+JSON.stringify(goods.list),
})
}
// 单品打折
async function discountconfirm(form) {
if (form.discountMoney != '.') {
@@ -451,7 +465,7 @@
skuId
}
par[key] = !item[key]
const res = await Api.$updateCart(par)
goods.list[index][key] = returnBoolean(res[key])
@@ -618,10 +632,10 @@
}, 0)
return goodsTotalPrice - allPrice.value
} else {
console.log(discountSaleAmount.value,'优惠金额')
console.log(discountSaleAmount.value, '优惠金额')
return (discountSaleAmount.value)
}
console.log(discountSaleAmount.value,'优惠金额1')
console.log(discountSaleAmount.value, '优惠金额1')
return (goodsTotalPrice + discountSaleAmount.value * 1).toFixed(2)
})