From 2aaeb7af885770326c46e0f417db42d4731de061 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Wed, 2 Nov 2022 00:35:53 +0800 Subject: [PATCH] =?UTF-8?q?promotion=EF=BC=9A=E5=AE=9E=E7=8E=B0=E9=83=A8?= =?UTF-8?q?=E5=88=86=E4=BC=98=E6=83=A0=E5=8A=B5=E6=A8=A1=E6=9D=BF=E7=9A=84?= =?UTF-8?q?=E5=89=8D=E7=AB=AF=E8=A1=A8=E5=8D=95=2080%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CouponTemplateValidityTypeEnum.java | 4 +- yudao-ui-admin/src/utils/constants.js | 14 ++ yudao-ui-admin/src/utils/dict.js | 2 + .../views/promotion/couponTemplate/index.vue | 194 +++++++++--------- 4 files changed, 119 insertions(+), 95 deletions(-) diff --git a/yudao-module-mall/yudao-module-promotion-api/src/main/java/cn/iocoder/yudao/module/promotion/enums/coupon/CouponTemplateValidityTypeEnum.java b/yudao-module-mall/yudao-module-promotion-api/src/main/java/cn/iocoder/yudao/module/promotion/enums/coupon/CouponTemplateValidityTypeEnum.java index e940900b7..391515de3 100644 --- a/yudao-module-mall/yudao-module-promotion-api/src/main/java/cn/iocoder/yudao/module/promotion/enums/coupon/CouponTemplateValidityTypeEnum.java +++ b/yudao-module-mall/yudao-module-promotion-api/src/main/java/cn/iocoder/yudao/module/promotion/enums/coupon/CouponTemplateValidityTypeEnum.java @@ -15,8 +15,8 @@ import java.util.Arrays; @Getter public enum CouponTemplateValidityTypeEnum implements IntArrayValuable { - DATE(1, "固定日期可用"), - TERM(2, "领取之后可用"), + DATE(1, "固定日期"), + TERM(2, "领取之后"), ; public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(CouponTemplateValidityTypeEnum::getType).toArray(); diff --git a/yudao-ui-admin/src/utils/constants.js b/yudao-ui-admin/src/utils/constants.js index ef2805ea9..1480c6f26 100644 --- a/yudao-ui-admin/src/utils/constants.js +++ b/yudao-ui-admin/src/utils/constants.js @@ -264,3 +264,17 @@ export const CouponTemplateValidityTypeEnum = { name: '领取之后可用' } } + +/** + * 营销的商品范围枚举 + */ +export const PromotionProductScopeEnum = { + ALL: { + scope: 1, + name: '全部商品参与' + }, + SPU: { + scope: 2, + name: '指定商品参与' + } +} diff --git a/yudao-ui-admin/src/utils/dict.js b/yudao-ui-admin/src/utils/dict.js index d5e0158d8..786e41cfb 100644 --- a/yudao-ui-admin/src/utils/dict.js +++ b/yudao-ui-admin/src/utils/dict.js @@ -62,6 +62,8 @@ export const DICT_TYPE = { // ========== MALL - PROMOTION 模块 ========== PROMOTION_DISCOUNT_TYPE: 'promotion_discount_type', // 优惠类型 + PROMOTION_PRODUCT_SCOPE: 'promotion_product_scope', // 营销的商品范围 + COUPON_TEMPLATE_VALIDITY_TYPE: 'coupon_template_validity_type', // 优惠劵模板的有限期类型 } /** diff --git a/yudao-ui-admin/src/views/promotion/couponTemplate/index.vue b/yudao-ui-admin/src/views/promotion/couponTemplate/index.vue index 4cf1d7ec8..87e0f2d0a 100755 --- a/yudao-ui-admin/src/views/promotion/couponTemplate/index.vue +++ b/yudao-ui-admin/src/views/promotion/couponTemplate/index.vue @@ -74,80 +74,72 @@ @pagination="getList"/> - - - - + + + + - - - + + {{dict.label}} - - - - + + - - + + - - + + 元 + + + - - - + + 直接领取 + 指定发放 + - - + + - - + + - + + + {{dict.label}} + + + + + + + 第 至 + 天有效 + + + + {{dict.label}} + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -