台桌列表页面金额显示保持两位小数

This commit is contained in:
2026-03-28 18:51:43 +08:00
parent 6e39a94f01
commit 51812fb0cc

View File

@@ -400,12 +400,14 @@ const totalPerson = computed(() => {
});
const totalMoney = computed(() => {
return tableList.value.reduce((pre, cur) => {
if (cur.status == "unsettled") {
return pre + cur.orderAmount;
}
return pre;
}, 0);
return tableList.value
.reduce((pre, cur) => {
if (cur.status == "unsettled") {
return pre + cur.orderAmount;
}
return pre;
}, 0)
.toFixed(2);
});
// 区域