台桌订单增加显示餐位费,打包费

This commit is contained in:
2025-11-27 19:29:37 +08:00
parent 4ef95c9baa
commit 0c5ba4b092
4 changed files with 37 additions and 4 deletions

View File

@@ -3,7 +3,6 @@ import { defineStore } from "pinia";
import yskUtils from "ysk-utils";
import { getNowCart } from "@/pagesCreateOrder/util.js";
import * as orderApi from "@/http/api/order.js";
export function formatCartGoods(goods) {
return {
...goods,
@@ -72,8 +71,9 @@ export const useCartStore = defineStore("cart", {
getters: {
//餐费费
seatFeeConfig: (state) => {
console.log(state.shopInfo);
return {
pricePerPerson: state.shopInfo.tableFee || 0,
pricePerPerson: state.shopInfo.tableFee,
personCount: state.personCount, //就餐人数
isEnabled: !state.shopInfo.isTableFee,
};