fix: 修复立减金库存舍去小数点

This commit is contained in:
zhangds 2022-10-31 15:55:04 +08:00
parent 0a744b0524
commit 84e3cbd5ab
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ import { divNum } from "./number";
const kgType = (item) => {
let type = sessionStorage.getItem("KeyPcType");
if (type === "2" || type === "3") {
return divNum(item.all_budget, item.reduce_amount);
return parseInt(divNum(item.all_budget, item.reduce_amount));
} else {
return item.stock;
}