diff --git a/src/views/tool/table/index.vue b/src/views/tool/table/index.vue index 8170de1..67d4827 100644 --- a/src/views/tool/table/index.vue +++ b/src/views/tool/table/index.vue @@ -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); }); // 区域