applicationMr.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. import request from '@/utils/request'
  2. // 分页查询
  3. export const pageList = (query) => {
  4. return request({
  5. url: '/member/marketTeamApply/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 新增/修改
  11. export const saveAndEdit = (data) => {
  12. return request({
  13. url: '/member/marketTeamApply/teamApply',
  14. method: 'post',
  15. data: data
  16. })
  17. }
  18. // 删除模板
  19. export const deleteById = (id) => {
  20. return request({
  21. url: '/member/marketTeam/deleteById',
  22. method: 'delete',
  23. params: {id:id}
  24. })
  25. }
  26. // 修改状态
  27. export const updateStatus = (data) => {
  28. return request({
  29. url: '/member/marketTeam/insertOrUpdate',
  30. method: 'post',
  31. data: data
  32. })
  33. }
  34. export function getSelectById(id) {
  35. return request({
  36. url: '/member/marketTeamApply/selectById?id=' + id,
  37. method: 'get'
  38. })
  39. }
  40. // 解析人员的excel文件
  41. export function uploadExcel(data) {
  42. return request({
  43. url: '/member/marketTeamApplyViewer/analysis',
  44. method: 'post',
  45. data: data
  46. })
  47. }
  48. // 审核
  49. export const teamApplyAudit = (data) => {
  50. return request({
  51. url: '/member/marketTeamApply/teamApplyAudit',
  52. method: 'post',
  53. data: data
  54. })
  55. }
  56. //审核时查询可用座位列表
  57. export function querySeatList(query) {
  58. return request({
  59. url: '/merchant/merchantAuditoriumSeat/querySeatList',
  60. method: 'get',
  61. params: query
  62. })
  63. }
  64. export function getOrderDetail(id) {
  65. return request({
  66. url: '/member/marketTeamApply/orderDetail?id=' + id,
  67. method: 'get'
  68. })
  69. }
  70. // 查询价格
  71. export function queryPrice(query) {
  72. return request({
  73. url: '/member/marketTeamBrokerageConfig/queryPrice',
  74. method: 'get',
  75. params: query
  76. })
  77. }
  78. // 下载模板
  79. export function downloadModel(query) {
  80. return request({
  81. url: '/member/marketTeamApply/downTeamApplyTemplate',
  82. method: 'get',
  83. responseType: 'blob',
  84. params: query
  85. })
  86. }
  87. // 选择区域
  88. export const selectRegionApi = (data) => {
  89. return request({
  90. url: '/merchant/merchantTheatreAuditorium/selectRegion',
  91. method: 'post',
  92. data: data
  93. })
  94. }