From 024f2806b557f441c8c7613c5e0ecea46b2bc265 Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Fri, 15 Dec 2023 09:34:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=89=B9=E5=8F=91=E4=BB=B7?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/product/addProduct/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();