Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-purchase
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2cb2f146
authored
Dec 11, 2025
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix(采购订单): 修正购物车组件中采购总价显示精度
确保采购总价金额始终显示两位小数,避免因浮点数计算导致的精度问题
1 parent
ac422f77
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/views/purchaseOrder/components/shoppingCartCom.vue
src/views/purchaseOrder/components/shoppingCartCom.vue
View file @
2cb2f14
...
@@ -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
}
,
}
,
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment