更新批发价设置

This commit is contained in:
weipengfei 2023-12-15 09:34:49 +08:00
parent 84da67582c
commit 024f2806b5

View File

@ -2393,8 +2393,8 @@ export default {
if (!e.price || e.price == 0) priceObj.price = true;
if (!e.procure_price || e.procure_price == 0) priceObj.procure_price = true;
})
if (priceObj.price) return Message.error('零售价不能为小于等于0');;
if (priceObj.procure_price) return Message.error('批发价不能为小于等于0');
if (priceObj.price) return Message.error('零售价不能为小于等于0');
if (priceObj.procure_price && this.$store.state.user.merchantType.type_code == 'TypeSupplyChain') return Message.error('批发价不能为小于等于0');
this.$refs[name].validate(valid => {
if (valid) {
this.validateAttr();