From 27219e1833f49fa60acc2d7809f2f7497230a2e4 Mon Sep 17 00:00:00 2001 From: owen Date: Wed, 30 Aug 2023 20:54:20 +0800 Subject: [PATCH] =?UTF-8?q?mall=EF=BC=9A=E4=BC=98=E6=83=A0=E5=88=B8=20?= =?UTF-8?q?=E5=95=86=E5=93=81=E9=80=82=E7=94=A8=E8=8C=83=E5=9B=B4=EF=BC=8C?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=95=86=E5=93=81=E5=88=86=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mall/promotion/coupon/couponTemplate.ts | 2 +- src/utils/constants.ts | 4 ++ .../components/ProductCategorySelect.vue | 47 +++++++++++++++++++ .../coupon/template/CouponTemplateForm.vue | 26 ++++++++-- 4 files changed, 75 insertions(+), 4 deletions(-) create mode 100644 src/views/mall/product/category/components/ProductCategorySelect.vue diff --git a/src/api/mall/promotion/coupon/couponTemplate.ts b/src/api/mall/promotion/coupon/couponTemplate.ts index daac1334..bf294441 100755 --- a/src/api/mall/promotion/coupon/couponTemplate.ts +++ b/src/api/mall/promotion/coupon/couponTemplate.ts @@ -9,7 +9,7 @@ export interface CouponTemplateVO { takeType: number usePrice: number productScope: number - productSpuIds: string + productSpuIds: number[] validityType: number validStartTime: Date validEndTime: Date diff --git a/src/utils/constants.ts b/src/utils/constants.ts index cd346a5c..03c1f999 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -220,6 +220,10 @@ export const PromotionProductScopeEnum = { SPU: { scope: 2, name: '指定商品参与' + }, + CATEGORY: { + scope: 3, + name: '指定品类参与' } } diff --git a/src/views/mall/product/category/components/ProductCategorySelect.vue b/src/views/mall/product/category/components/ProductCategorySelect.vue new file mode 100644 index 00000000..b8011290 --- /dev/null +++ b/src/views/mall/product/category/components/ProductCategorySelect.vue @@ -0,0 +1,47 @@ + + diff --git a/src/views/mall/promotion/coupon/template/CouponTemplateForm.vue b/src/views/mall/promotion/coupon/template/CouponTemplateForm.vue index 69132fbb..e511dd0c 100644 --- a/src/views/mall/promotion/coupon/template/CouponTemplateForm.vue +++ b/src/views/mall/promotion/coupon/template/CouponTemplateForm.vue @@ -172,6 +172,12 @@ + + +