销账账单金额、已收金额保留2位小数

This commit is contained in:
wuteng 2026-02-06 15:56:01 +08:00
parent 7cb6eb9e14
commit 19a6ae22e6
2 changed files with 5 additions and 5 deletions

View File

@ -72,13 +72,13 @@
<el-table-column :label="$t('账单金额')" align="center" prop="emisWaybill.freight" min-width="100" >
<template slot-scope="scope">
<!-- 求和 -->
{{ scope.row.detailList.reduce((total, item) => total + (item.emisWaybill.freight || 0), 0) }}
{{ scope.row.detailList.reduce((total, item) => total + (item.emisWaybill.freight || 0), 0).toFixed(2) }}
</template>
</el-table-column>
<el-table-column :label="$t('已收金额')" align="center" prop="emisSettleSubBill.recedMoney" min-width="100" >
<template slot-scope="scope">
<!-- 求和 -->
{{ scope.row.detailList.reduce((total, item) => total + (item.emisSettleSubBill.recedMoney || 0), 0) }}
{{ scope.row.detailList.reduce((total, item) => total + (item.emisSettleSubBill.recedMoney || 0), 0).toFixed(2) }}
</template>
</el-table-column>
<el-table-column :label="$t('本次销账金额')" align="center" prop="writeoffAmount" min-width="150" />

View File

@ -79,14 +79,14 @@
:show-overflow-tooltip="true" />
<el-table-column :label="$t('账单金额')" align="center" prop="emisWaybill.freight" min-width="100" >
<template slot-scope="scope">
<!-- 求和 -->
{{ scope.row.detailList.reduce((total, item) => total + (item.emisWaybill.freight || 0), 0) }}
<!-- 求和-->
{{ scope.row.detailList.reduce((total, item) => total + (item.emisWaybill.freight || 0), 0).toFixed(2) }}
</template>
</el-table-column>
<el-table-column :label="$t('已收金额')" align="center" prop="emisSettleSubBill.recedMoney" min-width="100" >
<template slot-scope="scope">
<!-- 求和 -->
{{ scope.row.detailList.reduce((total, item) => total + (item.emisSettleSubBill.recedMoney || 0), 0) }}
{{ scope.row.detailList.reduce((total, item) => total + (item.emisSettleSubBill.recedMoney || 0), 0).toFixed(2) }}
</template>
</el-table-column>
<el-table-column :label="$t('本次销账金额')" align="center" prop="writeoffAmount" min-width="140" />