From 74b6ff1eeff44af82003382ec1aea89f4a80b982 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 5 Nov 2022 00:14:02 +0800 Subject: [PATCH] =?UTF-8?q?promotion=EF=BC=9A=E5=A2=9E=E5=8A=A0=E6=BB=A1?= =?UTF-8?q?=E5=87=8F=E9=80=81=E6=B4=BB=E5=8A=A8=E7=9A=84=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=2050%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-admin/src/utils/constants.js | 14 ++++++++++++++ yudao-ui-admin/src/utils/dict.js | 2 ++ 2 files changed, 16 insertions(+) diff --git a/yudao-ui-admin/src/utils/constants.js b/yudao-ui-admin/src/utils/constants.js index 1480c6f26..c465466e2 100644 --- a/yudao-ui-admin/src/utils/constants.js +++ b/yudao-ui-admin/src/utils/constants.js @@ -278,3 +278,17 @@ export const PromotionProductScopeEnum = { name: '指定商品参与' } } + +/** + * 营销的条件类型枚举 + */ +export const PromotionConditionTypeEnum = { + PRICE: { + type: 10, + name: '满 N 元' + }, + COUNT: { + type: 20, + name: '满 N 件' + } +} diff --git a/yudao-ui-admin/src/utils/dict.js b/yudao-ui-admin/src/utils/dict.js index d9c1162e8..f669c4316 100644 --- a/yudao-ui-admin/src/utils/dict.js +++ b/yudao-ui-admin/src/utils/dict.js @@ -66,6 +66,8 @@ export const DICT_TYPE = { PROMOTION_COUPON_TEMPLATE_VALIDITY_TYPE: 'promotion_coupon_template_validity_type', // 优惠劵模板的有限期类型 PROMOTION_COUPON_STATUS: 'promotion_coupon_status', // 优惠劵的状态 PROMOTION_COUPON_TAKE_TYPE: 'promotion_coupon_take_type', // 优惠劵的领取方式 + PROMOTION_ACTIVITY_STATUS: 'promotion_activity_status', // 优惠活动的状态 + PROMOTION_CONDITION_TYPE: 'promotion_condition_type', // 营销的条件类型枚举 } /**