Commit 2cb2f146 by chenwq

fix(采购订单): 修正购物车组件中采购总价显示精度

确保采购总价金额始终显示两位小数,避免因浮点数计算导致的精度问题
1 parent ac422f77
...@@ -256,7 +256,7 @@ export default { ...@@ -256,7 +256,7 @@ export default {
label: '采购总价/元', label: '采购总价/元',
prop: 'goodsTotalPrice', prop: 'goodsTotalPrice',
formatter: cellValue => { formatter: cellValue => {
return '¥' + (cellValue.goodsNumber * cellValue.purchaseGoodsInfo.purchasePrice) return '¥' + (cellValue.goodsNumber * cellValue.purchaseGoodsInfo.purchasePrice).toFixed(2)
}, },
width: 120 width: 120
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!