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 @@ + + +