From 40143764260aeb134c4fc6b56355cc314f887f14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=8F?= <1978476055@qq.com> Date: Tue, 19 Nov 2024 11:45:59 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=B9=E6=83=A0=E4=B8=93=E5=8C=BA=E5=8D=A0?= =?UTF-8?q?=E6=AF=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/product/addProduct/index.vue | 93 +++++++++++++++++++++++++- 1 file changed, 92 insertions(+), 1 deletion(-) diff --git a/src/views/product/addProduct/index.vue b/src/views/product/addProduct/index.vue index a38b690..d0d83d4 100644 --- a/src/views/product/addProduct/index.vue +++ b/src/views/product/addProduct/index.vue @@ -1169,6 +1169,18 @@ + + + + + + + + { let obj = this.proportionList.find( items => items.value == item.proportion @@ -4049,8 +4100,9 @@ export default { let growth = val ? Math.floor(item.price * 0.2) : Math.floor(item.price * obj.growth); - + let proportion = val ? "0.45" : item.proportion; this.$set(item, "growth", growth); + this.$set(item, "proportion", proportion); }); this.ManyAttrValue.map(item => { let obj = this.proportionList.find( @@ -4447,6 +4499,45 @@ export default { is_huimei: info.is_huimei || 0, is_benefit: info.is_benefit || 0 }; + let proportionList = [ + { + value: "0.45", + label: "0.45", + coupon: 0.45, + growth: 0.65 + }, + { + value: "0.40", + label: "0.40", + coupon: 0.5, + growth: 0.7 + }, + { + value: "0.35", + label: "0.35", + coupon: 0.55, + growth: 0.75 + }, + { + value: "0.30", + label: "0.30", + coupon: 0.6, + growth: 0.8 + }, + { + value: "0.25", + label: "0.25", + coupon: 0.65, + growth: 0.85 + }, + { + value: "0.20", + label: "0.20", + coupon: 0.7, + growth: 0.9 + } + ]; + this.proportionList = this.formValidate.is_benefit ? proportionList : this.proportionList; console.log(info.qualification); if (info.svip_price_type != 0 && info.mer_svip_status) this.attrVal = {