From 94f072b247dc2a4bb14c83134abc5760f6988bc0 Mon Sep 17 00:00:00 2001 From: user <2602926751@qq.com> Date: Wed, 8 Nov 2023 16:38:22 +0800 Subject: [PATCH] 11.6 --- .../src/api/EventMarketing/cardFavorable.js | 17 +- .../EventMarketing/cardFavorable/index.vue | 207 +++++++++++++++++- 2 files changed, 219 insertions(+), 5 deletions(-) diff --git a/fuintAdmin/src/api/EventMarketing/cardFavorable.js b/fuintAdmin/src/api/EventMarketing/cardFavorable.js index 7cd32c2cb..199ace23e 100644 --- a/fuintAdmin/src/api/EventMarketing/cardFavorable.js +++ b/fuintAdmin/src/api/EventMarketing/cardFavorable.js @@ -12,10 +12,25 @@ export function listFavorable(query) { // 查询优惠券详细 export function getFavorable(id) { return request({ - url: '/business/marketingActivity/cardFavorable/' + id, + url: 'business/marketingActivity/cardFavorableRecord/count' + id, method: 'get' }) } +// 查询优惠券统计 +export function getcount(id) { + return request({ + url: 'business/marketingActivity/cardFavorableRecord/count?id=' + id, + method: 'get' + }) +} +// 查询优惠券统计列表 +export function getcountList(query) { + return request({ + url: 'business/marketingActivity/cardFavorableRecord', + method: 'get', + params: query + }) +} // 新增优惠券 export function addFavorable(data) { diff --git a/fuintAdmin/src/views/EventMarketing/cardFavorable/index.vue b/fuintAdmin/src/views/EventMarketing/cardFavorable/index.vue index f6416885a..919fc2aae 100644 --- a/fuintAdmin/src/views/EventMarketing/cardFavorable/index.vue +++ b/fuintAdmin/src/views/EventMarketing/cardFavorable/index.vue @@ -13,13 +13,13 @@ - + - + @@ -105,10 +105,21 @@ 修改 + 统计 + 下线 @@ -259,17 +270,90 @@ 确 定 + +
+ + + + + + + + + + + + + 查询 + + +
+
+
已领取数量
+
{{fourdata.tatol}}
+
+
+
已使用数量
+
{{fourdata.usedTatal}}
+
+
+
未使用数量
+
{{fourdata.unTatal}}
+
+
+
过期数量
+
{{fourdata.outTatal}}
+
+
+ + + + + + + + + + + +
+
+ + +