@@ -691,9 +691,8 @@ const formatNumber = (value) => {
return "";
}
// 将输入值保留四位小数
- const formattedValue = parseFloat(value).toFixed(4);
- // 移除多余的0
- return parseFloat(formattedValue).toString();
+ const formattedValue = Math.round(Number(value) * 10000) / 10000;
+ return formattedValue;
};
// 计算采购总金额