Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
merchant-manage-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
merchant-manage-ui
Commits
3e0a4895
Commit
3e0a4895
authored
Jun 18, 2024
by
guang.wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改黄金保留5位小数
parent
d33f41d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
index.jsx
src/pages/GoodsManage/index.jsx
+1
-1
utils.js
src/pages/ServiceGoods/utils.js
+1
-1
No files found.
src/pages/GoodsManage/index.jsx
View file @
3e0a4895
...
...
@@ -348,7 +348,7 @@ class goodsManage extends Component {
if
(
SourceData
?.
infoMation
?.
categoryId
.
includes
(
GoldCategory
))
{
SourceData
.
skuList
?.
forEach
(
item
=>
{
if
(
item
.
weight
)
{
item
.
weight
=
Math
.
ceil
(
item
.
weight
*
1000
);
item
.
weight
=
+
(
item
.
weight
*
1000
).
toFixed
(
2
);
}
});
}
...
...
src/pages/ServiceGoods/utils.js
View file @
3e0a4895
...
...
@@ -98,7 +98,7 @@ const filterItems = (type, props) => {
// 投资金 提交的时候 重量要从克转换成千克
if
(
infoMation
.
categoryId
.
includes
(
GoldCategory
)
&&
+
item
.
weight
)
{
const
w
=
+
item
.
weight
/
1000
;
item
.
weight
=
w
.
toFixed
(
3
);
item
.
weight
=
w
.
toFixed
(
5
);
}
if
(
type
===
4
)
{
item
.
serviceItem
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment