diff --git a/src/views/product/addProduct/index.vue b/src/views/product/addProduct/index.vue index 4d086df..aaee3b2 100644 --- a/src/views/product/addProduct/index.vue +++ b/src/views/product/addProduct/index.vue @@ -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();