Commit 049a1b82 by 黑潮

update: 库存判断

parent e77aa558
......@@ -294,11 +294,11 @@ export default {
}
if (this.intergralModal.type === 'stock') {
//库存
if (!params.virtualStock) {
if (!params.virtualStock && params.virtualStock !== 0) {
this.$message.error('请输入库存');
return false;
}
if (Number(params.virtualStock) === 0) {
if (Number(params.virtualStock) + Number(this.currentStock) === 0) {
this.$message.error('库存为0不允许修改');
return false;
}
......
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