123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548 |
- import { defHttp } from '/@/utils/http/axios';
- enum Api {
- list = '/app/appOrder/refundOrderPageList',
- queryByid = '/app/appOrder/queryInfoById',
- queryEvents = '/app/appOrder/exportConditionByName',
- queryProject = '/app/appOrder/exportConditionByProjectName',
- exportData = '/app/appOrder/exportCondition',
- profitSharing = '/app/appOrder/profitSharing',
- }
- /**
- * 列表接口
- * @param params
- */
- export const list = (params) => defHttp.post({ url: Api.list, params });
- export const queryByid = (orderId) => defHttp.get<AppOrderInfoVO>({ url: `${Api.queryByid}/${orderId}` });
- export const queryEvents = (params) => defHttp.get({ url: Api.queryEvents, params });
- export const queryProject = (params) => defHttp.get({ url: Api.queryProject, params });
- export const putProfitSharing = (params) => {
- const queryString = new URLSearchParams(params).toString();
- return defHttp.put({ url: `${Api.profitSharing}?${queryString}` });
- };
- export const exportData = (params) =>
- defHttp.post(
- {
- url: Api.exportData,
- params,
- responseType: 'blob',
- },
- {
- isTransformResponse: false, // 禁用默认的响应转换
- }
- );
- /**
- * 返回数据对象 data
- * 返回数据对象
- *
- * AppOrderInfoVO
- */
- export interface AppOrderInfoVO {
- /**
- * 订单类型:0-学校 1-包场 2-无固定场 3-个人赛 4-团队赛 5-课程
- */
- orderType: number;
- /**
- * 地址
- */
- address?: string;
- /**
- * 下单时间
- */
- createTime?: string;
- /**
- * 赛程安排
- */
- gameScheduleVOList?: AppGameScheduleVO[];
- /**
- * ID
- */
- id?: string;
- /**
- * 使用记录
- */
- isinList?: AppIsinVO[];
- /**
- * 买家昵称
- */
- nikeName?: string;
- /**
- * 订单号
- */
- orderCode?: string;
- /**
- * 订单状态
- */
- orderStatus: number;
- /**
- * 付款时间
- */
- payTime?: string;
- /**
- * 买家电话
- */
- phoneNumber?: string;
- /**
- * 实际付款
- */
- price?: number;
- /**
- * 订单信息
- */
- proInfoList?: AppOrderProInfo[];
- /**
- * 试听优惠金额
- */
- sDiscounts?: number;
- /**
- * 地点
- */
- siteName?: string;
- /**
- * 团购优惠金额
- */
- tDiscounts?: number;
- /**
- * 商品总额
- */
- totalPrice?: number;
- /**
- * 核销记录
- */
- verificationRecordDTOList?: VerificationRecordDTO[];
- [property: string]: any;
- }
- /**
- * org.jeecg.modules.app.vo.AppGameScheduleVO
- *
- * AppGameScheduleVO
- */
- export interface AppGameScheduleVO {
- /**
- * 安排
- */
- arrange?: string;
- /**
- * 结束时间
- */
- endTime?: string;
- /**
- * 赛事id
- */
- gameId?: string;
- /**
- * id
- */
- id?: string;
- /**
- * 比赛名称
- */
- name?: string;
- /**
- * 开始状态
- */
- startStatus?: string;
- /**
- * 开始时间
- */
- startTime?: string;
- [property: string]: any;
- }
- /**
- * org.jeecg.modules.system.app.vo.AppIsinVO
- *
- * AppIsinVO
- */
- export interface AppIsinVO {
- /**
- * 用户ID(关联家庭用户表)
- */
- familyId?: string;
- /**
- * 用户名
- */
- familyUserName?: string;
- /**
- * 券码号
- */
- isinCode?: string;
- /**
- * 使用记录
- */
- isinList?: AppIsin[];
- /**
- * 手机号码
- */
- UserPhone?: string;
- [property: string]: any;
- }
- /**
- * AppIsin
- */
- export interface AppIsin {
- /**
- * 创建人;创建人
- */
- createBy?: string;
- /**
- * 创建时间;创建时间
- * 创建时间
- */
- createTime?: string;
- /**
- * 删除标志;删除状态(0-正常,1-已删除)
- * 删除状态(0-正常,1-已删除)
- */
- delFlag?: number;
- /**
- * 到期时间
- */
- expireTime?: string;
- /**
- * 用户ID
- * 用户ID(关联家庭用户表)
- */
- familyId?: string;
- /**
- * 用户名
- */
- familyUserName?: string;
- /**
- * 主键ID
- */
- id?: string;
- /**
- * 券状态 0-待使用 1-已使用 2-已失效
- */
- isinStatus?: number;
- /**
- * 订单编号
- */
- orderCode?: string;
- /**
- * 订单ID
- */
- orderId?: string;
- /**
- * 子订单商品ID
- */
- orderProInfoId?: string;
- /**
- * 部门编号
- */
- orgCode?: string;
- /**
- * 备注
- */
- remark?: string;
- /**
- * 系统状态;状态(0-正常,1-冻结)
- * 系统状态(0-正常,1-冻结)
- */
- status?: number;
- /**
- * 券码号
- */
- ticketNo?: string;
- /**
- * 更新时间;更新时间
- * 更新时间
- */
- updateTime?: string;
- /**
- * 使用地点
- */
- useAddress?: string;
- /**
- * 使用照片
- */
- useImage?: string;
- /**
- * 手机号码
- */
- UserPhone?: string;
- /**
- * 使用时间
- */
- useTime?: string;
- /**
- * 核验人ID
- */
- verifyUserId?: string;
- /**
- * 核验人
- * 核验人名称
- */
- verifyUserName?: string;
- [property: string]: any;
- }
- /**
- * org.jeecg.modules.system.app.entity.AppOrderProInfo
- *
- * AppOrderProInfo
- */
- export interface AppOrderProInfo {
- /**
- * 地点
- */
- address?: string;
- /**
- * 售后状态
- */
- afterSaleStatus?: number;
- /**
- * 创建人;创建人
- */
- createBy?: string;
- /**
- * 创建时间;创建时间
- */
- createTime?: string;
- /**
- * 删除标志;删除状态(0-正常,1-已删除)
- */
- delFlag?: number;
- /**
- * 过期时间
- */
- expireTime?: string;
- /**
- * 使用人ID
- */
- familyUserId?: string;
- /**
- * 时间段
- */
- frameTimeStr?: string;
- /**
- * 比赛日期
- */
- gameTimeStr?: string;
- /**
- * id
- */
- id?: string;
- /**
- * 订单id
- * 订单编号
- */
- orderCode?: string;
- /**
- * 订单id
- */
- orderId?: string;
- /**
- * 订单状态
- */
- orderStatus: number;
- /**
- * 是否免费试听课(0-否 1-是)
- */
- orFreePro?: number;
- /**
- * 原价/元
- */
- originalPrice?: number;
- /**
- * 实际价格/元
- */
- price?: number;
- /**
- * 产品id;场地/赛事/课程
- */
- productId?: string;
- /**
- * 商品图片
- */
- productImage?: string;
- /**
- * 商品名称
- */
- productName?: string;
- /**
- * 数量
- */
- quantity?: number;
- /**
- * 系统状态;状态(0-正常,1-冻结)
- */
- status?: number;
- /**
- * 券号
- */
- ticketNo?: string;
- /**
- * 商品类型(0-学校 1-包场 2-无固定场 3-个人赛 4-团队赛 5-课程 6-保险)
- */
- type?: number;
- /**
- * 更新人;更新人
- */
- updateBy?: string;
- /**
- * 更新时间;更新时间
- */
- updateTime?: string;
- /**
- * 日期
- */
- useDateStr?: string;
- /**
- * 使用人
- */
- userName?: string;
- /**
- * 手机号
- */
- userPhone?: string;
- [property: string]: any;
- }
- /**
- * org.jeecg.modules.system.app.dto.VerificationRecordDTO
- *
- * VerificationRecordDTO
- */
- export interface VerificationRecordDTO {
- /**
- * 课程类型(0-正常课 1-补课)
- */
- coursesType?: number;
- /**
- * 核销记录
- */
- verificationRecordList?: AppCoursesVerificationRecord[];
- [property: string]: any;
- }
- /**
- * AppCoursesVerificationRecord
- */
- export interface AppCoursesVerificationRecord {
- /**
- * 上课时间
- */
- coursesEndTime?: string;
- /**
- * 课程ID
- */
- coursesId?: string;
- /**
- * 课时名称
- */
- coursesName?: string;
- /**
- * 课程小节ID
- */
- coursesPriceRuleId?: string;
- /**
- * 上课时间
- */
- coursesStartTime?: string;
- /**
- * 课程类型(0-正常课 1-补课)
- */
- coursesType?: number;
- /**
- * 创建人;创建人
- */
- createBy?: string;
- /**
- * 创建时间;创建时间
- */
- createTime?: string;
- /**
- * 删除标志;删除状态(0-正常,1-已删除)
- */
- delFlag?: number;
- /**
- * id
- */
- id?: string;
- /**
- * 订单编号
- */
- orderCode?: string;
- /**
- * 订单id
- */
- orderId?: string;
- /**
- * id
- * 部门编号
- */
- orgCode?: string;
- /**
- * 是否延课(0-未延课 1-已延课)
- */
- orPostpone?: number;
- /**
- * 延课原因
- */
- postponeReason?: string;
- /**
- * 系统状态;状态(0-正常,1-冻结)
- */
- status?: number;
- /**
- * 更新人;更新人
- */
- updateBy?: string;
- /**
- * 更新时间;更新时间
- */
- updateTime?: string;
- /**
- * 使用人ID
- */
- useUserId?: string;
- /**
- * 使用人人脸照片
- */
- useUserImage?: string;
- /**
- * 使用人名称
- */
- useUserName?: string;
- /**
- * 使用人手机号
- */
- useUserPhone?: string;
- /**
- * 核验照片
- */
- verifyImage?: string;
- /**
- * 核销状态(0-未核销 1-已核销)
- */
- verifyStatus?: number;
- /**
- * 核验时间
- */
- verifyTime?: string;
- /**
- * 核验人ID
- */
- verifyUserId?: string;
- /**
- * 核验人名称
- */
- verifyUserName?: string;
- [property: string]: any;
- }
|