fix: 修复立减金库存舍去小数点
This commit is contained in:
parent
0a744b0524
commit
84e3cbd5ab
|
@ -4,7 +4,7 @@ import { divNum } from "./number";
|
||||||
const kgType = (item) => {
|
const kgType = (item) => {
|
||||||
let type = sessionStorage.getItem("KeyPcType");
|
let type = sessionStorage.getItem("KeyPcType");
|
||||||
if (type === "2" || type === "3") {
|
if (type === "2" || type === "3") {
|
||||||
return divNum(item.all_budget, item.reduce_amount);
|
return parseInt(divNum(item.all_budget, item.reduce_amount));
|
||||||
} else {
|
} else {
|
||||||
return item.stock;
|
return item.stock;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue