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