merchant.js 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. import { axios } from '@/utils/request'
  2. // 提现列表 有分页
  3. export const queryMerchantCashOutPage = (params) => {
  4. const url = `/merchant/queryMerchantCashOutPage/${params.pageNo}/${params.pageSize}`
  5. delete params.pageNo
  6. delete params.pageSize
  7. return axios({
  8. url: url,
  9. data: params,
  10. method: 'post',
  11. headers: {
  12. 'module': encodeURIComponent('列表查询')
  13. }
  14. })
  15. }
  16. // 申请提现
  17. export const saveMerchantCashOut = (params) => {
  18. return axios({
  19. url: '/merchant/saveMerchantCashOut',
  20. data: params,
  21. method: 'post',
  22. headers: {
  23. 'module': encodeURIComponent('申请提现')
  24. }
  25. })
  26. }
  27. // 账户明细 暂时弃用
  28. export const queryTradeFlowPage = (params) => {
  29. const url = `/merchant/queryTradeFlowPage/${params.pageNo}/${params.pageSize}`
  30. delete params.pageNo
  31. delete params.pageSize
  32. return axios({
  33. url: url,
  34. data: params,
  35. method: 'post',
  36. headers: {
  37. 'module': encodeURIComponent('账户明细列表')
  38. }
  39. })
  40. }
  41. export const merchantCashOut = params => {
  42. return axios({
  43. url: `/shelf/findShelfSettleRuleByShelfSn/${params.shelfSn}`,
  44. method: 'get'
  45. })
  46. }
  47. export const merchantCashOutDetail = (params) => {
  48. return axios({
  49. url: '/merchant/queryMerchantAccount',
  50. data: {},
  51. method: 'get'
  52. })
  53. }
  54. // 结算管理列表
  55. export const queryShelfSettleRulePage = (params) => {
  56. const url = `/merchant/queryShelfSettleRulePage/${params.pageNo}/${params.pageSize}`
  57. delete params.pageNo
  58. delete params.pageSize
  59. return axios({
  60. url: url,
  61. data: params,
  62. method: 'post',
  63. headers: {
  64. 'module': encodeURIComponent('列表查询')
  65. }
  66. })
  67. }
  68. // 结算管理合计
  69. export const queryShelfSettleRuleCount = (params) => {
  70. const url = `/merchant/queryShelfSettleRuleCount`
  71. return axios({
  72. url: url,
  73. data: params,
  74. method: 'post'
  75. })
  76. }
  77. // 结算历史列表
  78. export const querySettleBillPage = (params) => {
  79. const url = `/merchant/querySettleBillPage/${params.pageNo}/${params.pageSize}`
  80. delete params.pageNo
  81. delete params.pageSize
  82. return axios({
  83. url: url,
  84. data: params,
  85. method: 'post',
  86. headers: {
  87. 'module': encodeURIComponent('明细列表')
  88. }
  89. })
  90. }
  91. // 待结明细列表
  92. export const queryOrderBillDetailPage = (params) => {
  93. const url = `/merchant/queryOrderBillDetailPage/${params.pageNo}/${params.pageSize}`
  94. delete params.pageNo
  95. delete params.pageSize
  96. return axios({
  97. url: url,
  98. data: params,
  99. method: 'post',
  100. headers: {
  101. 'module': encodeURIComponent('明细列表')
  102. }
  103. })
  104. }
  105. // 待结明细合计
  106. export const queryOrderBillDetailCount = (params) => {
  107. const url = `/merchant/queryOrderBillDetailCount`
  108. return axios({
  109. url: url,
  110. data: params,
  111. method: 'post'
  112. })
  113. }