companyProfit.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. import request from '@/utils/request'
  2. // 查询提现列表
  3. export function listCompanyProfit(query) {
  4. return request({
  5. url: '/company/companyProfit/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询提现详细
  11. export function getCompanyProfit(profitId) {
  12. return request({
  13. url: '/company/companyProfit/' + profitId,
  14. method: 'get'
  15. })
  16. }
  17. // 新增提现
  18. export function audit1(data) {
  19. return request({
  20. url: '/company/companyProfit/audit1',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. export function audit2(data) {
  26. return request({
  27. url: '/company/companyProfit/audit2',
  28. method: 'post',
  29. data: data
  30. })
  31. }
  32. export function audit3(data) {
  33. return request({
  34. url: '/company/companyProfit/audit3',
  35. method: 'post',
  36. data: data
  37. })
  38. }
  39. // 修改提现
  40. export function updateCompanyProfit(data) {
  41. return request({
  42. url: '/company/companyProfit',
  43. method: 'put',
  44. data: data
  45. })
  46. }
  47. // 删除提现
  48. export function delCompanyProfit(profitId) {
  49. return request({
  50. url: '/company/companyProfit/' + profitId,
  51. method: 'delete'
  52. })
  53. }
  54. // 导出提现
  55. export function exportCompanyProfit(query) {
  56. return request({
  57. url: '/company/companyProfit/export',
  58. method: 'get',
  59. params: query
  60. })
  61. }