Commit eae67fd0 by linjinhong

fix:【工厂端端】【仓库-入库单】:新增成本价为0的商品,入库单保存报错#1000581

parent ee688c69
......@@ -1059,7 +1059,7 @@ const {
})
const setCostPrice = (item: InterProductList) => {
if (!item.costPrice) {
if (item.costPrice !== 0 && !item.costPrice) {
ElMessage.warning('商品成本价为空,请完善商品成本价')
return
}
......
......@@ -1063,7 +1063,7 @@ const {
})
const setCostPrice = (item: InterProductList) => {
if (!item.costPrice) {
if (item.costPrice !== 0 && !item.costPrice) {
ElMessage.warning('商品成本价为空,请完善商品成本价')
return
}
......
......@@ -1216,7 +1216,7 @@ const {
})
const setCostPrice = (item: InterProductList) => {
if (!item.costPrice) {
if (item.costPrice !== 0 && !item.costPrice) {
ElMessage.warning('商品成本价为空,请完善商品成本价')
return
}
......
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