diff --git a/src/api/system/giftcoupon.js b/src/api/system/giftcoupon.js new file mode 100644 index 0000000..975e3c2 --- /dev/null +++ b/src/api/system/giftcoupon.js @@ -0,0 +1,37 @@ +import request from '@/utils/request' + +// 礼金列表 +export function listGiftCoupons(query) { + return request({ + url: '/system/giftcoupon/list', + method: 'get', + params: query + }) +} + +// 礼金详情 +export function getGiftCoupon(giftCouponKey) { + return request({ + url: `/system/giftcoupon/${giftCouponKey}`, + method: 'get' + }) +} + +// 礼金统计 +export function getGiftCouponStatistics(query) { + return request({ + url: '/system/giftcoupon/statistics', + method: 'get', + params: query + }) +} + +// 导出礼金列表 +export function exportGiftCoupons(query) { + return request({ + url: '/system/giftcoupon/export', + method: 'post', + params: query + }) +} + diff --git a/src/views/system/giftcoupon/index.vue b/src/views/system/giftcoupon/index.vue new file mode 100644 index 0000000..17e051c --- /dev/null +++ b/src/views/system/giftcoupon/index.vue @@ -0,0 +1,343 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 搜索 + 重置 + 导出 + + + + + + + + + + + {{ statistics.totalCount || 0 }} + 礼金批次总数 + + + + + + + {{ statistics.totalUseCount || 0 }} + 总使用次数 + + + + + + + ¥{{ formatMoney(statistics.totalOcsAmount || 0) }} + 总分摊金额 + + + + + + + + + + + + + {{ scope.row.giftCouponKey }} + + 复制 + + + + + + + + + + {{ scope.row.owner === 'g' ? '自营' : 'POP' }} + + + + + + + ¥{{ formatMoney(scope.row.totalOcsAmount || 0) }} + + + + {{ parseTime(scope.row.createTime) }} + + + + {{ parseTime(scope.row.expireTime) }} + - + + + + + + {{ scope.row.isExpired === 1 ? '已过期' : '未过期' }} + + + + + + + 详情 + + + + + + + + + + + + + + + + {{ currentRow.giftCouponKey }} + {{ currentRow.skuId }} + {{ currentRow.skuName }} + + + {{ currentRow.owner === 'g' ? '自营' : 'POP' }} + + + {{ currentRow.useCount }} + ¥{{ formatMoney(currentRow.totalOcsAmount || 0) }} + {{ parseTime(currentRow.createTime) }} + + {{ parseTime(currentRow.expireTime) }} + - + + + + {{ currentRow.isExpired === 1 ? '已过期' : '未过期' }} + + + + + + + + + + + +