From 860872a8908db18fa2c87e3c5096bfc1c287f5a6 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 5 Oct 2023 12:06:57 +0800 Subject: [PATCH] =?UTF-8?q?promotion=EF=BC=9A=E6=96=B0=E5=A2=9E=E7=A0=8D?= =?UTF-8?q?=E4=BB=B7=E8=AE=B0=E5=BD=95=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mall/promotion/bargain/bargainRecord.ts | 19 ++ src/api/statistics/trade.ts | 2 + src/utils/dict.ts | 3 +- .../bargain/activity/bargainActivity.data.ts | 4 +- .../mall/promotion/bargain/record/index.vue | 195 ++++++++++++++++++ 5 files changed, 220 insertions(+), 3 deletions(-) create mode 100644 src/api/mall/promotion/bargain/bargainRecord.ts create mode 100644 src/views/mall/promotion/bargain/record/index.vue diff --git a/src/api/mall/promotion/bargain/bargainRecord.ts b/src/api/mall/promotion/bargain/bargainRecord.ts new file mode 100644 index 00000000..f90b7845 --- /dev/null +++ b/src/api/mall/promotion/bargain/bargainRecord.ts @@ -0,0 +1,19 @@ +import request from '@/config/axios' + +export interface BargainRecordVO { + id: number + activityId: number + userId: number + spuId: number + skuId: number + bargainFirstPrice: number + bargainPrice: number + status: number + orderId: number + endTime: Date +} + +// 查询砍价记录列表 +export const getBargainRecordPage = async (params) => { + return await request.get({ url: `/promotion/bargain-record/page`, params }) +} diff --git a/src/api/statistics/trade.ts b/src/api/statistics/trade.ts index f7829ccb..0194c228 100644 --- a/src/api/statistics/trade.ts +++ b/src/api/statistics/trade.ts @@ -2,6 +2,8 @@ import request from '@/config/axios' import dayjs from 'dayjs' import { formatDate } from '@/utils/formatTime' +// todo @疯狂:挪到 mall 里哈 + /** 交易统计对照 Response VO */ export interface TradeStatisticsComparisonRespVO { value: T diff --git a/src/utils/dict.ts b/src/utils/dict.ts index aa948594..908099ff 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -180,5 +180,6 @@ export enum DICT_TYPE { PROMOTION_COUPON_STATUS = 'promotion_coupon_status', // 优惠劵的状态 PROMOTION_COUPON_TAKE_TYPE = 'promotion_coupon_take_type', // 优惠劵的领取方式 PROMOTION_ACTIVITY_STATUS = 'promotion_activity_status', // 优惠活动的状态 - PROMOTION_CONDITION_TYPE = 'promotion_condition_type' // 营销的条件类型枚举 + PROMOTION_CONDITION_TYPE = 'promotion_condition_type', // 营销的条件类型枚举 + PROMOTION_BARGAIN_RECORD_STATUS = 'promotion_bargain_record_status' // 砍价记录的状态 } diff --git a/src/views/mall/promotion/bargain/activity/bargainActivity.data.ts b/src/views/mall/promotion/bargain/activity/bargainActivity.data.ts index cb06f962..5d967287 100644 --- a/src/views/mall/promotion/bargain/activity/bargainActivity.data.ts +++ b/src/views/mall/promotion/bargain/activity/bargainActivity.data.ts @@ -6,7 +6,7 @@ export const rules = reactive({ name: [required], startTime: [required], endTime: [required], - userSize: [required], + helpMaxCount: [required], bargainCount: [required], singleLimitCount: [required] }) @@ -72,7 +72,7 @@ const crudSchemas = reactive([ }, { label: '砍价人数', - field: 'userSize', + field: 'helpMaxCount', isSearch: false, form: { component: 'InputNumber', diff --git a/src/views/mall/promotion/bargain/record/index.vue b/src/views/mall/promotion/bargain/record/index.vue new file mode 100644 index 00000000..e3f284d2 --- /dev/null +++ b/src/views/mall/promotion/bargain/record/index.vue @@ -0,0 +1,195 @@ + + +