diff --git a/src/views/product/addProduct/index.vue b/src/views/product/addProduct/index.vue index a0e55fb..0c3abaa 100644 --- a/src/views/product/addProduct/index.vue +++ b/src/views/product/addProduct/index.vue @@ -639,6 +639,28 @@ + + + + + + @@ -767,6 +789,28 @@ + + + + + + { if (!e.price || e.price == 0) priceObj.price = true; @@ -2396,6 +2449,7 @@ export default { }) if (priceObj.price) return Message.error('零售价不能为小于等于0'); if (priceObj.procure_price && this.$store.state.user.merchantType.type_code == 'TypeSupplyChain') return Message.error('批发价不能为小于等于0'); + if (priceObj.single_number && this.$store.state.user.merchantType.type_code == 'TypeSupplyChain') return Message.error('单件数量不能为小于等于0'); this.$refs[name].validate(valid => { if (valid) { this.validateAttr();