From 6220c821eb29f241f21328faef7b98ada3263ae7 Mon Sep 17 00:00:00 2001 From: woody Date: Tue, 16 Sep 2025 13:40:06 +0800 Subject: [PATCH] =?UTF-8?q?feat(giftGoods):=20=E5=95=86=E5=93=81=E8=B5=A0?= =?UTF-8?q?=E9=80=81=E3=80=81=E6=B6=88=E8=B4=B9=E8=B5=A0=E9=80=81=E3=80=81?= =?UTF-8?q?=E4=BC=9A=E5=91=98=E6=B6=88=E8=B4=B9=E8=B5=A0=E9=80=81=E5=8E=BB?= =?UTF-8?q?=E7=AD=BE=E5=91=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/giftGoods.js | 24 + src/router/index.js | 25 +- .../consumptionGift/addConsumptionInfo.vue | 221 ++++--- .../consumptionGift/consumptionGiftZxqc.vue | 547 ------------------ .../marketing/giftGoods/addGiftGoodsInfo.vue | 358 +++++++----- .../marketing/giftGoods/giftGoodsZxqc.vue | 541 ----------------- .../addConsumptionInfo.vue | 62 +- .../consumptionGiftZxqc.vue | 487 ---------------- 8 files changed, 399 insertions(+), 1866 deletions(-) delete mode 100644 src/views/marketing/consumptionGift/consumptionGiftZxqc.vue delete mode 100644 src/views/marketing/giftGoods/giftGoodsZxqc.vue delete mode 100644 src/views/marketing/memberConsumptionGift/consumptionGiftZxqc.vue diff --git a/src/api/giftGoods.js b/src/api/giftGoods.js index a8e358e..574fbf1 100644 --- a/src/api/giftGoods.js +++ b/src/api/giftGoods.js @@ -318,3 +318,27 @@ export function getBenefitsRuleLogList(params) { }) } +// 消费赠送 +export function consumeRuleConfigSubmit(data) { + return request({ + url: '/sale/manage/consume-rule-config/submit', + method: 'post', + data + }) +} +// 会员消费赠送: +export function memberConsumeRuleSubmit(data) { + return request({ + url: '/sale/manage/member-consume-rule/submit', + method: 'post', + data + }) +} +// 商品赠送: +export function waresRuleConfigSubmit(data) { + return request({ + url: '/sale/manage/wares-rule-config/submit', + method: 'post', + data + }) +} diff --git a/src/router/index.js b/src/router/index.js index 2bcbd23..680341e 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -466,10 +466,9 @@ export const constantRoutes = [ path: 'deleteDeadLock', name: 'DeleteDeadLock', component: () => import('@/views/information/specialBusiness/deleteDeadLock/index'), - meta: {title: '删除死点'} + meta: { title: '删除死点' } } - ] }, @@ -1858,13 +1857,6 @@ export const constantRoutes = [ component: () => import('@/views/marketing/giftGoods/setGiftGoodsInfo'), meta: { title: '规则设置' }, hidden: true - }, - { - path: 'giftGoodsZxqc', - name: 'GiftGoodsZxqc', - component: () => import('@/views/marketing/giftGoods/giftGoodsZxqc'), - meta: { title: '在线签呈' }, - hidden: true } ] }, @@ -1892,14 +1884,8 @@ export const constantRoutes = [ component: () => import('@/views/marketing/consumptionGift/setConsumptionInfo'), meta: { title: '规则设置' }, hidden: true - }, - { - path: 'consumptionGiftZxqc', - name: 'ConsumptionGiftZxqc', - component: () => import('@/views/marketing/consumptionGift/consumptionGiftZxqc'), - meta: { title: '在线签呈' }, - hidden: true } + ] }, { @@ -1926,13 +1912,6 @@ export const constantRoutes = [ component: () => import('@/views/marketing/memberConsumptionGift/setConsumptionInfo'), meta: { title: '规则设置' }, hidden: true - }, - { - path: 'memberConsumptionGiftZxqc', - name: 'MemberConsumptionGiftZxqc', - component: () => import('@/views/marketing/memberConsumptionGift/consumptionGiftZxqc'), - meta: { title: '在线签呈' }, - hidden: true } ] }, diff --git a/src/views/marketing/consumptionGift/addConsumptionInfo.vue b/src/views/marketing/consumptionGift/addConsumptionInfo.vue index e96e6fd..6908575 100644 --- a/src/views/marketing/consumptionGift/addConsumptionInfo.vue +++ b/src/views/marketing/consumptionGift/addConsumptionInfo.vue @@ -10,8 +10,13 @@ :topList="topList" :moren="moren"> -->
-
+
{{ item.name }}
@@ -20,12 +25,12 @@
{{ '基本信息' }}
-
- +
+ - + @@ -36,8 +41,13 @@ type="textarea" v-model="ruleForm.actExplain" :disabled="lookOver"> --> - + @@ -52,27 +62,33 @@
- {{ - '注册等级' }} + {{ + '注册等级' }} {{ item.gradeName - }} + }}
- {{ '真实奖衔' }} + {{ '真实奖衔' }} {{ item.awardsName - }} + }}
- {{ '权限中心' }} + {{ '权限中心' }} {{ item.label - }} + }}
@@ -81,20 +97,32 @@ - - + - - + @@ -102,13 +130,13 @@
- - + +
-