feat: 增加点歌配置列表页面,修复转桌报错导致页面无反应问题,去除添加耗材的库存数量以及弹窗关闭表单重置失败问题
This commit is contained in:
@@ -2,7 +2,7 @@ import { store } from "@/store";
|
||||
import WebSocketManager, { type ApifoxModel, msgType } from "@/utils/websocket";
|
||||
import orderApi from "@/api/order/order";
|
||||
import { useUserStoreHook } from "@/store/modules/user";
|
||||
|
||||
import { customTruncateToTwoDecimals } from '@/utils/tools'
|
||||
const shopUser = useUserStoreHook();
|
||||
export interface CartsState {
|
||||
id: string | number;
|
||||
@@ -83,6 +83,15 @@ export const useCartsStore = defineStore("carts", () => {
|
||||
}
|
||||
return selGoods.value.type == 'package' && selGoods.value.groupType == 1
|
||||
})
|
||||
function returnOneGoodsTotalMoney(cur: any) {
|
||||
const memberPrice = cur.memberPrice || cur.salePrice
|
||||
const total = cur.number * (useVipPrice.value ? memberPrice : cur.salePrice)
|
||||
if (cur.type == 'weight') {
|
||||
return customTruncateToTwoDecimals(total)
|
||||
} else {
|
||||
return total
|
||||
}
|
||||
}
|
||||
//赠菜总价
|
||||
const giftMoney = computed(() => {
|
||||
let oldGiftMoney = 0
|
||||
|
||||
Reference in New Issue
Block a user