优化订单结算不去结算购物车

This commit is contained in:
gyq
2026-03-31 10:19:03 +08:00
parent e0aba58651
commit 7e03547798
5 changed files with 16 additions and 16 deletions

View File

@@ -265,7 +265,7 @@ function show(t) {
goodsStore.payType = props.type
dialogVisible.value = true;
cartInfo.value = { ...goodsStore.cartInfo }
if (props.type === 'table') {
if (props.type === 'table' || props.type === 'order') {
orderList.value = goodsStore.orderList.map(item => item.goods).flat()
} else {
orderList.value = [...goodsStore.cartList, ...goodsStore.orderList.map(item => item.goods).flat()]

View File

@@ -168,7 +168,7 @@
<!-- 打印操作 -->
<PrintDrawer ref="PrintDrawerRef" />
<!-- 结算订单 -->
<SettleAccount ref="SettleAccountRef" @success="orderListAjax" />
<SettleAccount ref="SettleAccountRef" type="order" @success="orderListAjax" />
<!-- 全部商品 -->
<allGoodsDialog ref="allGoodsDialogRef" />
</template>