From 86b6b85934392e55158e138b9aee939d2b772e36 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Fri, 4 Nov 2022 00:27:37 +0800 Subject: [PATCH] =?UTF-8?q?promotion=EF=BC=9A=E5=A2=9E=E5=8A=A0=E4=BC=98?= =?UTF-8?q?=E6=83=A0=E5=8A=B5=E7=9A=84=E5=89=8D=E7=AB=AF=E5=88=86=E9=A1=B5?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=2080%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/api/mall/promotion/coupon.js | 18 ++ yudao-ui-admin/src/utils/dict.js | 3 +- .../src/views/mall/promotion/coupon/index.vue | 158 ++++++++++++++++++ .../mall/promotion/couponTemplate/index.vue | 2 +- 4 files changed, 179 insertions(+), 2 deletions(-) create mode 100755 yudao-ui-admin/src/api/mall/promotion/coupon.js create mode 100755 yudao-ui-admin/src/views/mall/promotion/coupon/index.vue diff --git a/yudao-ui-admin/src/api/mall/promotion/coupon.js b/yudao-ui-admin/src/api/mall/promotion/coupon.js new file mode 100755 index 000000000..d5a113b81 --- /dev/null +++ b/yudao-ui-admin/src/api/mall/promotion/coupon.js @@ -0,0 +1,18 @@ +import request from '@/utils/request' + +// 删除优惠劵 +export function deleteCoupon(id) { + return request({ + url: '/promotion/coupon/delete?id=' + id, + method: 'delete' + }) +} + +// 获得优惠劵分页 +export function getCouponPage(query) { + return request({ + url: '/promotion/coupon/page', + method: 'get', + params: query + }) +} diff --git a/yudao-ui-admin/src/utils/dict.js b/yudao-ui-admin/src/utils/dict.js index 786e41cfb..ddf5d07d7 100644 --- a/yudao-ui-admin/src/utils/dict.js +++ b/yudao-ui-admin/src/utils/dict.js @@ -63,7 +63,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', // 优惠劵模板的有限期类型 + PROMOTION_COUPON_TEMPLATE_VALIDITY_TYPE: 'promotion_coupon_template_validity_type', // 优惠劵模板的有限期类型 + PROMOTION_COUPON_STATUS: 'promotion_coupon_status', // 优惠劵的状态 } /** diff --git a/yudao-ui-admin/src/views/mall/promotion/coupon/index.vue b/yudao-ui-admin/src/views/mall/promotion/coupon/index.vue new file mode 100755 index 000000000..bcfe134a3 --- /dev/null +++ b/yudao-ui-admin/src/views/mall/promotion/coupon/index.vue @@ -0,0 +1,158 @@ + + + diff --git a/yudao-ui-admin/src/views/mall/promotion/couponTemplate/index.vue b/yudao-ui-admin/src/views/mall/promotion/couponTemplate/index.vue index 2b25bfa80..67f358468 100755 --- a/yudao-ui-admin/src/views/mall/promotion/couponTemplate/index.vue +++ b/yudao-ui-admin/src/views/mall/promotion/couponTemplate/index.vue @@ -117,7 +117,7 @@ - {{dict.label}}