Commit faf2c3ec authored by 季圣华's avatar 季圣华
Browse files

优化商品编辑时候单位的校验

parent 06b90012
......@@ -644,8 +644,15 @@
}
} else if(formData.unitId) {
if(commodityUnit != basicUnit && commodityUnit != otherUnit && commodityUnit != otherUnitTwo && commodityUnit != otherUnitThree) {
this.$message.warning('条码之后的单位填写有误,单位【' + commodityUnit + '】请修改为【'
+ basicUnit+ '】或【' + otherUnit+ '】或【' + otherUnitTwo+ '】或【' + otherUnitThree+ '】!');
let warnInfo = '条码之后的单位填写有误,单位【' + commodityUnit + '】请修改为【' + basicUnit+ '】或【' + otherUnit+ ''
if(otherUnitTwo) {
warnInfo += '或【' + otherUnitTwo+ ''
}
if(otherUnitThree) {
warnInfo += '或【' + otherUnitThree+ ''
}
warnInfo += ''
this.$message.warning(warnInfo);
return;
}
}
......
Supports Markdown
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