From 36564630ccd8aa410a105016c6183ec7acea5317 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=8B=E4=BA=8E=E5=88=9D=E8=A7=81?= <752204717@qq.com> Date: Wed, 30 Oct 2024 15:29:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E6=83=A0=E5=88=B8=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/coupon/coupon-add-or-update.vue | 32 +- src/views/modules/coupon/coupon.vue | 484 ++++++++++-------- 2 files changed, 302 insertions(+), 214 deletions(-) diff --git a/src/views/modules/coupon/coupon-add-or-update.vue b/src/views/modules/coupon/coupon-add-or-update.vue index 2642cf6..4624929 100644 --- a/src/views/modules/coupon/coupon-add-or-update.vue +++ b/src/views/modules/coupon/coupon-add-or-update.vue @@ -18,7 +18,7 @@ - + - - - @@ -89,7 +89,7 @@ - - + 长期有效 领取生效 自定义 @@ -181,7 +181,7 @@ prop="effectTime" v-if="dataForm.effectType == '2'" > - @@ -211,7 +211,7 @@ - - + - + { if (data.code !== 0) return this.$message.error(data.msg); this.visible = true; + this.getCouponInfoLoad = false; if (data && data.code == 0) { this.dataForm = data.couponEntity; + + if(this.dataForm.grantCount>0){ + this.isEdit=false + } if ( this.dataForm.effectTime && this.dataForm.effectTime != null diff --git a/src/views/modules/coupon/coupon.vue b/src/views/modules/coupon/coupon.vue index 365cccb..0b640a6 100644 --- a/src/views/modules/coupon/coupon.vue +++ b/src/views/modules/coupon/coupon.vue @@ -1,16 +1,35 @@