verifyAccountChange.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. import { axios } from '@/utils/request'
  2. // 调账调账 列表 分页
  3. export const verifyAccountChangeList = (params) => {
  4. const url = `/verifyAccountChange/queryPage/${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 verifyAccountChangeSave = params => {
  18. return axios({
  19. url: '/verifyAccountChange/save',
  20. data: params,
  21. method: 'post',
  22. headers: {
  23. 'module': encodeURIComponent('创建调账')
  24. }
  25. })
  26. }
  27. // 调账调账 删除
  28. export const verifyAccountChangeDel = params => {
  29. return axios({
  30. url: `/verifyAccountChange/deleteBySn/${params.sn}`,
  31. data: {},
  32. method: 'post',
  33. headers: {
  34. 'module': encodeURIComponent('删除调账')
  35. }
  36. })
  37. }
  38. // 调账调账 详情
  39. export const verifyAccountChangeDetail = params => {
  40. return axios({
  41. url: `/verifyAccountChange/queryBySn/${params.sn}`,
  42. data: {},
  43. method: 'post',
  44. headers: {
  45. 'module': encodeURIComponent('查看调账详情')
  46. }
  47. })
  48. }
  49. // 调账调账 提交
  50. export const verifyAcountBillSubmit = params => {
  51. return axios({
  52. url: `/verifyAccountChange/submit`,
  53. data: params,
  54. method: 'post',
  55. headers: {
  56. 'module': encodeURIComponent('调账提交')
  57. }
  58. })
  59. }
  60. // 经销商余额-分页列表
  61. export const verifyAccountBalanceQueryPage = (params) => {
  62. const url = `/verifyAccountBalance/queryPage/${params.pageNo}/${params.pageSize}`
  63. delete params.pageNo
  64. delete params.pageSize
  65. return axios({
  66. url: url,
  67. data: params,
  68. method: 'post',
  69. headers: {
  70. 'module': encodeURIComponent('经销商余额列表查询')
  71. }
  72. })
  73. }
  74. //对账余额明细接口
  75. export const verifyAccountBalanceQueryDetailPage = (params) => {
  76. const url = `/verifyAccountBalance/queryDetailPage/${params.pageNo}/${params.pageSize}`
  77. delete params.pageNo
  78. delete params.pageSize
  79. return axios({
  80. url: url,
  81. data: params,
  82. method: 'post',
  83. headers: {
  84. 'module': encodeURIComponent('对账余额明细列表查询')
  85. }
  86. })
  87. }
  88. // 对账余额明细统计
  89. export const verifyAccountBalanceQueryDetailCount = (params) => {
  90. const url = `/verifyAccountBalance/queryDetailCount`
  91. return axios({
  92. url: url,
  93. data: params,
  94. method: 'post',
  95. headers: {
  96. 'module': encodeURIComponent('对账余额明细统计')
  97. }
  98. })
  99. }
  100. // 对账余额导出
  101. export const verifyAccountBalanceExport = (params) => {
  102. const url = `/verifyAccountBalance/export`
  103. return axios({
  104. url: url,
  105. data: params,
  106. method: 'post',
  107. responseType: 'blob',
  108. headers:{
  109. 'module': encodeURIComponent('对账余额列表导出')
  110. }
  111. })
  112. }
  113. // 对账余额明细导出
  114. export const verifyAccountBalanceDetailExport = (params) => {
  115. const url = `/verifyAccountBalance/detailExport`
  116. return axios({
  117. url: url,
  118. data: params,
  119. method: 'post',
  120. responseType: 'blob',
  121. headers:{
  122. 'module': encodeURIComponent('对账余额明细列表导出')
  123. }
  124. })
  125. }