优化台桌订单总价显示错误问题

This commit is contained in:
gyq
2026-03-28 09:49:20 +08:00
parent 33be9f2cef
commit 32d150fd15
3 changed files with 16 additions and 17046 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1,7 +1,7 @@
{ {
"name": "vite-electron", "name": "vite-electron",
"private": true, "private": true,
"version": "2.0.15", "version": "2.0.16",
"main": "dist-electron/main.js", "main": "dist-electron/main.js",
"scripts": { "scripts": {
"dev": "chcp 65001 && vite", "dev": "chcp 65001 && vite",

View File

@@ -182,9 +182,8 @@ async function getOrderDetail() {
let total = 0 let total = 0
res.cartList.forEach(item => { res.cartList.forEach(item => {
total += item.payAmount * item.num total += +item.payAmount
}) })
orderInfo.value.orderAmount = formatDecimal(total) orderInfo.value.orderAmount = formatDecimal(total)
} }
} catch (error) { } catch (error) {