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}} + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -