台桌列表页面金额显示保持两位小数
This commit is contained in:
@@ -400,12 +400,14 @@ const totalPerson = computed(() => {
|
||||
});
|
||||
|
||||
const totalMoney = computed(() => {
|
||||
return tableList.value.reduce((pre, cur) => {
|
||||
return tableList.value
|
||||
.reduce((pre, cur) => {
|
||||
if (cur.status == "unsettled") {
|
||||
return pre + cur.orderAmount;
|
||||
}
|
||||
return pre;
|
||||
}, 0);
|
||||
}, 0)
|
||||
.toFixed(2);
|
||||
});
|
||||
|
||||
// 区域
|
||||
|
||||
Reference in New Issue
Block a user