台桌订单增加显示餐位费,打包费
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user