ticketingSales.js 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. import request from '@/utils/request'
  2. // 座位列表 (按数量)
  3. export const querySeatList = (query) => {
  4. return request({
  5. url: '/merchant/merchantAuditoriumSeat/querySeatList',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 座位列表 (按具体座位)
  11. export const querySeatListNew = (query) => {
  12. return request({
  13. url: '/merchant/merchantAuditoriumSeat/getChannelTypeSeatList',
  14. method: 'get',
  15. params: query
  16. })
  17. }
  18. // 根据厅ID和日期查询场次
  19. export const merchantPerformTimeList = (query) => {
  20. return request({
  21. url: '/merchant/merchantPerformTime/list',
  22. method: 'get',
  23. params: query
  24. })
  25. }
  26. // 票务是否设置了价格
  27. export const merchantPerformTimeListNew = (query) => {
  28. return request({
  29. url: '/merchant/merchantPerformTime/listV2',
  30. method: 'get',
  31. params: query
  32. })
  33. }
  34. // 订单提交
  35. export const orderInfoSubmit = (query) => {
  36. return request({
  37. url: '/order/orderInfo/submit',
  38. method: 'post',
  39. data: query
  40. })
  41. }
  42. // 订单支付码支付
  43. export const gotoMicroPay = (query) => {
  44. return request({
  45. url: '/order/orderInfo/gotoMicroPay',
  46. method: 'post',
  47. data: query
  48. })
  49. }
  50. // 订单现金支付
  51. export const gotoCashPay = (query) => {
  52. return request({
  53. url: '/order/orderInfo/gotoCashPay',
  54. method: 'post',
  55. data: query
  56. })
  57. }
  58. // 对公支付
  59. export const gotoCorporatePay = (query) => {
  60. return request({
  61. url: '/order/orderInfo/gotoCorporatePay',
  62. method: 'post',
  63. data: query
  64. })
  65. }
  66. // 授信额度支付
  67. export const gotoQuotaPay = (query) => {
  68. return request({
  69. url: '/order/orderInfo/gotoQuotaPay',
  70. method: 'post',
  71. data: query
  72. })
  73. }
  74. // 余额支付
  75. export const gotoBalancePay = (query) => {
  76. return request({
  77. url: '/order/orderInfo/gotoBalancePay',
  78. method: 'post',
  79. data: query
  80. })
  81. }
  82. // 支付查询
  83. export const payQuery = (query) => {
  84. return request({
  85. url: '/order/orderInfo/payQuery',
  86. method: 'post',
  87. data: query
  88. })
  89. }
  90. // 获取 演出厅
  91. export const merchantTheatreAuditoriumList = (query) => {
  92. return request({
  93. url: '/merchant/merchantTheatreAuditorium/list',
  94. method: 'get',
  95. params: query
  96. })
  97. }
  98. // 座位锁定/解锁
  99. export const lockOrUnLock = (query) => {
  100. return request({
  101. url: '/merchant/merchantSeatOccupy/lockOrUnLock',
  102. method: 'post',
  103. data: query
  104. })
  105. }
  106. // 批量锁定
  107. export const batchLockApi = (query) => {
  108. return request({
  109. url: '/merchant/merchantSeatOccupy/batchLockOrUnLock',
  110. method: 'post',
  111. data: query
  112. })
  113. }
  114. // 票务是否设置了价格
  115. export const selectRegion = (query) => {
  116. return request({
  117. url: '/merchant/merchantTheatreAuditorium/selectRegion',
  118. method: 'post',
  119. data: query
  120. })
  121. }
  122. // 票务查询
  123. export const goodsPageList = (query) => {
  124. return request({
  125. url: '/goods/goods/list',
  126. method: 'get',
  127. params: query
  128. })
  129. }
  130. // 取消订单
  131. export const orderInfoCancel = (query) => {
  132. return request({
  133. url: '/order/orderInfo/cancel',
  134. method: 'post',
  135. data: query
  136. })
  137. }
  138. // 身份证校验
  139. export const factorAuth = (query) => {
  140. return request({
  141. url: '/thirdapi/identity/factorAuth',
  142. method: 'post',
  143. data: query
  144. })
  145. }
  146. // 获取票务限购参数
  147. export const getGoodsPerformApi = (query) => {
  148. return request({
  149. url: '/goods/goodsPerform/selectByGoodsId',
  150. method: 'get',
  151. params: query
  152. })
  153. }
  154. // 根据OTA来源查询剩余金额
  155. export const selectMarketTeamBySourceApi = (query) => {
  156. return request({
  157. url: '/member/marketTeam/selectMarketTeamBySource',
  158. method: 'get',
  159. params: query
  160. })
  161. }
  162. // 根据OTA来源查询剩余金额
  163. export const lockOrUnLockApi = (query) => {
  164. return request({
  165. url: '/merchant/merchantSeatOccupy/showRemark',
  166. method: 'get',
  167. params: query
  168. })
  169. }