refundOrder.api.ts 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548
  1. import { defHttp } from '/@/utils/http/axios';
  2. enum Api {
  3. list = '/app/appOrder/refundOrderPageList',
  4. queryByid = '/app/appOrder/queryInfoById',
  5. queryEvents = '/app/appOrder/exportConditionByName',
  6. queryProject = '/app/appOrder/exportConditionByProjectName',
  7. exportData = '/app/appOrder/exportCondition',
  8. profitSharing = '/app/appOrder/profitSharing',
  9. }
  10. /**
  11. * 列表接口
  12. * @param params
  13. */
  14. export const list = (params) => defHttp.post({ url: Api.list, params });
  15. export const queryByid = (orderId) => defHttp.get<AppOrderInfoVO>({ url: `${Api.queryByid}/${orderId}` });
  16. export const queryEvents = (params) => defHttp.get({ url: Api.queryEvents, params });
  17. export const queryProject = (params) => defHttp.get({ url: Api.queryProject, params });
  18. export const putProfitSharing = (params) => {
  19. const queryString = new URLSearchParams(params).toString();
  20. return defHttp.put({ url: `${Api.profitSharing}?${queryString}` });
  21. };
  22. export const exportData = (params) =>
  23. defHttp.post(
  24. {
  25. url: Api.exportData,
  26. params,
  27. responseType: 'blob',
  28. },
  29. {
  30. isTransformResponse: false, // 禁用默认的响应转换
  31. }
  32. );
  33. /**
  34. * 返回数据对象 data
  35. * 返回数据对象
  36. *
  37. * AppOrderInfoVO
  38. */
  39. export interface AppOrderInfoVO {
  40. /**
  41. * 订单类型:0-学校 1-包场 2-无固定场 3-个人赛 4-团队赛 5-课程
  42. */
  43. orderType: number;
  44. /**
  45. * 地址
  46. */
  47. address?: string;
  48. /**
  49. * 下单时间
  50. */
  51. createTime?: string;
  52. /**
  53. * 赛程安排
  54. */
  55. gameScheduleVOList?: AppGameScheduleVO[];
  56. /**
  57. * ID
  58. */
  59. id?: string;
  60. /**
  61. * 使用记录
  62. */
  63. isinList?: AppIsinVO[];
  64. /**
  65. * 买家昵称
  66. */
  67. nikeName?: string;
  68. /**
  69. * 订单号
  70. */
  71. orderCode?: string;
  72. /**
  73. * 订单状态
  74. */
  75. orderStatus: number;
  76. /**
  77. * 付款时间
  78. */
  79. payTime?: string;
  80. /**
  81. * 买家电话
  82. */
  83. phoneNumber?: string;
  84. /**
  85. * 实际付款
  86. */
  87. price?: number;
  88. /**
  89. * 订单信息
  90. */
  91. proInfoList?: AppOrderProInfo[];
  92. /**
  93. * 试听优惠金额
  94. */
  95. sDiscounts?: number;
  96. /**
  97. * 地点
  98. */
  99. siteName?: string;
  100. /**
  101. * 团购优惠金额
  102. */
  103. tDiscounts?: number;
  104. /**
  105. * 商品总额
  106. */
  107. totalPrice?: number;
  108. /**
  109. * 核销记录
  110. */
  111. verificationRecordDTOList?: VerificationRecordDTO[];
  112. [property: string]: any;
  113. }
  114. /**
  115. * org.jeecg.modules.app.vo.AppGameScheduleVO
  116. *
  117. * AppGameScheduleVO
  118. */
  119. export interface AppGameScheduleVO {
  120. /**
  121. * 安排
  122. */
  123. arrange?: string;
  124. /**
  125. * 结束时间
  126. */
  127. endTime?: string;
  128. /**
  129. * 赛事id
  130. */
  131. gameId?: string;
  132. /**
  133. * id
  134. */
  135. id?: string;
  136. /**
  137. * 比赛名称
  138. */
  139. name?: string;
  140. /**
  141. * 开始状态
  142. */
  143. startStatus?: string;
  144. /**
  145. * 开始时间
  146. */
  147. startTime?: string;
  148. [property: string]: any;
  149. }
  150. /**
  151. * org.jeecg.modules.system.app.vo.AppIsinVO
  152. *
  153. * AppIsinVO
  154. */
  155. export interface AppIsinVO {
  156. /**
  157. * 用户ID(关联家庭用户表)
  158. */
  159. familyId?: string;
  160. /**
  161. * 用户名
  162. */
  163. familyUserName?: string;
  164. /**
  165. * 券码号
  166. */
  167. isinCode?: string;
  168. /**
  169. * 使用记录
  170. */
  171. isinList?: AppIsin[];
  172. /**
  173. * 手机号码
  174. */
  175. UserPhone?: string;
  176. [property: string]: any;
  177. }
  178. /**
  179. * AppIsin
  180. */
  181. export interface AppIsin {
  182. /**
  183. * 创建人;创建人
  184. */
  185. createBy?: string;
  186. /**
  187. * 创建时间;创建时间
  188. * 创建时间
  189. */
  190. createTime?: string;
  191. /**
  192. * 删除标志;删除状态(0-正常,1-已删除)
  193. * 删除状态(0-正常,1-已删除)
  194. */
  195. delFlag?: number;
  196. /**
  197. * 到期时间
  198. */
  199. expireTime?: string;
  200. /**
  201. * 用户ID
  202. * 用户ID(关联家庭用户表)
  203. */
  204. familyId?: string;
  205. /**
  206. * 用户名
  207. */
  208. familyUserName?: string;
  209. /**
  210. * 主键ID
  211. */
  212. id?: string;
  213. /**
  214. * 券状态 0-待使用 1-已使用 2-已失效
  215. */
  216. isinStatus?: number;
  217. /**
  218. * 订单编号
  219. */
  220. orderCode?: string;
  221. /**
  222. * 订单ID
  223. */
  224. orderId?: string;
  225. /**
  226. * 子订单商品ID
  227. */
  228. orderProInfoId?: string;
  229. /**
  230. * 部门编号
  231. */
  232. orgCode?: string;
  233. /**
  234. * 备注
  235. */
  236. remark?: string;
  237. /**
  238. * 系统状态;状态(0-正常,1-冻结)
  239. * 系统状态(0-正常,1-冻结)
  240. */
  241. status?: number;
  242. /**
  243. * 券码号
  244. */
  245. ticketNo?: string;
  246. /**
  247. * 更新时间;更新时间
  248. * 更新时间
  249. */
  250. updateTime?: string;
  251. /**
  252. * 使用地点
  253. */
  254. useAddress?: string;
  255. /**
  256. * 使用照片
  257. */
  258. useImage?: string;
  259. /**
  260. * 手机号码
  261. */
  262. UserPhone?: string;
  263. /**
  264. * 使用时间
  265. */
  266. useTime?: string;
  267. /**
  268. * 核验人ID
  269. */
  270. verifyUserId?: string;
  271. /**
  272. * 核验人
  273. * 核验人名称
  274. */
  275. verifyUserName?: string;
  276. [property: string]: any;
  277. }
  278. /**
  279. * org.jeecg.modules.system.app.entity.AppOrderProInfo
  280. *
  281. * AppOrderProInfo
  282. */
  283. export interface AppOrderProInfo {
  284. /**
  285. * 地点
  286. */
  287. address?: string;
  288. /**
  289. * 售后状态
  290. */
  291. afterSaleStatus?: number;
  292. /**
  293. * 创建人;创建人
  294. */
  295. createBy?: string;
  296. /**
  297. * 创建时间;创建时间
  298. */
  299. createTime?: string;
  300. /**
  301. * 删除标志;删除状态(0-正常,1-已删除)
  302. */
  303. delFlag?: number;
  304. /**
  305. * 过期时间
  306. */
  307. expireTime?: string;
  308. /**
  309. * 使用人ID
  310. */
  311. familyUserId?: string;
  312. /**
  313. * 时间段
  314. */
  315. frameTimeStr?: string;
  316. /**
  317. * 比赛日期
  318. */
  319. gameTimeStr?: string;
  320. /**
  321. * id
  322. */
  323. id?: string;
  324. /**
  325. * 订单id
  326. * 订单编号
  327. */
  328. orderCode?: string;
  329. /**
  330. * 订单id
  331. */
  332. orderId?: string;
  333. /**
  334. * 订单状态
  335. */
  336. orderStatus: number;
  337. /**
  338. * 是否免费试听课(0-否 1-是)
  339. */
  340. orFreePro?: number;
  341. /**
  342. * 原价/元
  343. */
  344. originalPrice?: number;
  345. /**
  346. * 实际价格/元
  347. */
  348. price?: number;
  349. /**
  350. * 产品id;场地/赛事/课程
  351. */
  352. productId?: string;
  353. /**
  354. * 商品图片
  355. */
  356. productImage?: string;
  357. /**
  358. * 商品名称
  359. */
  360. productName?: string;
  361. /**
  362. * 数量
  363. */
  364. quantity?: number;
  365. /**
  366. * 系统状态;状态(0-正常,1-冻结)
  367. */
  368. status?: number;
  369. /**
  370. * 券号
  371. */
  372. ticketNo?: string;
  373. /**
  374. * 商品类型(0-学校 1-包场 2-无固定场 3-个人赛 4-团队赛 5-课程 6-保险)
  375. */
  376. type?: number;
  377. /**
  378. * 更新人;更新人
  379. */
  380. updateBy?: string;
  381. /**
  382. * 更新时间;更新时间
  383. */
  384. updateTime?: string;
  385. /**
  386. * 日期
  387. */
  388. useDateStr?: string;
  389. /**
  390. * 使用人
  391. */
  392. userName?: string;
  393. /**
  394. * 手机号
  395. */
  396. userPhone?: string;
  397. [property: string]: any;
  398. }
  399. /**
  400. * org.jeecg.modules.system.app.dto.VerificationRecordDTO
  401. *
  402. * VerificationRecordDTO
  403. */
  404. export interface VerificationRecordDTO {
  405. /**
  406. * 课程类型(0-正常课 1-补课)
  407. */
  408. coursesType?: number;
  409. /**
  410. * 核销记录
  411. */
  412. verificationRecordList?: AppCoursesVerificationRecord[];
  413. [property: string]: any;
  414. }
  415. /**
  416. * AppCoursesVerificationRecord
  417. */
  418. export interface AppCoursesVerificationRecord {
  419. /**
  420. * 上课时间
  421. */
  422. coursesEndTime?: string;
  423. /**
  424. * 课程ID
  425. */
  426. coursesId?: string;
  427. /**
  428. * 课时名称
  429. */
  430. coursesName?: string;
  431. /**
  432. * 课程小节ID
  433. */
  434. coursesPriceRuleId?: string;
  435. /**
  436. * 上课时间
  437. */
  438. coursesStartTime?: string;
  439. /**
  440. * 课程类型(0-正常课 1-补课)
  441. */
  442. coursesType?: number;
  443. /**
  444. * 创建人;创建人
  445. */
  446. createBy?: string;
  447. /**
  448. * 创建时间;创建时间
  449. */
  450. createTime?: string;
  451. /**
  452. * 删除标志;删除状态(0-正常,1-已删除)
  453. */
  454. delFlag?: number;
  455. /**
  456. * id
  457. */
  458. id?: string;
  459. /**
  460. * 订单编号
  461. */
  462. orderCode?: string;
  463. /**
  464. * 订单id
  465. */
  466. orderId?: string;
  467. /**
  468. * id
  469. * 部门编号
  470. */
  471. orgCode?: string;
  472. /**
  473. * 是否延课(0-未延课 1-已延课)
  474. */
  475. orPostpone?: number;
  476. /**
  477. * 延课原因
  478. */
  479. postponeReason?: string;
  480. /**
  481. * 系统状态;状态(0-正常,1-冻结)
  482. */
  483. status?: number;
  484. /**
  485. * 更新人;更新人
  486. */
  487. updateBy?: string;
  488. /**
  489. * 更新时间;更新时间
  490. */
  491. updateTime?: string;
  492. /**
  493. * 使用人ID
  494. */
  495. useUserId?: string;
  496. /**
  497. * 使用人人脸照片
  498. */
  499. useUserImage?: string;
  500. /**
  501. * 使用人名称
  502. */
  503. useUserName?: string;
  504. /**
  505. * 使用人手机号
  506. */
  507. useUserPhone?: string;
  508. /**
  509. * 核验照片
  510. */
  511. verifyImage?: string;
  512. /**
  513. * 核销状态(0-未核销 1-已核销)
  514. */
  515. verifyStatus?: number;
  516. /**
  517. * 核验时间
  518. */
  519. verifyTime?: string;
  520. /**
  521. * 核验人ID
  522. */
  523. verifyUserId?: string;
  524. /**
  525. * 核验人名称
  526. */
  527. verifyUserName?: string;
  528. [property: string]: any;
  529. }