Commit 3e0a4895 authored by guang.wu's avatar guang.wu

fix: 修改黄金保留5位小数

parent d33f41d1
......@@ -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);
}
});
}
......
......@@ -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 = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment