verifyAccountChange.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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 verifyAccountChangeDealerBalanceList = (params) => {
  18. const url = `/verifyAccountChange/queryDealerBalancePage/${params.pageNo}/${params.pageSize}`
  19. delete params.pageNo
  20. delete params.pageSize
  21. return axios({
  22. url: url,
  23. data: params,
  24. method: 'post',
  25. headers: {
  26. 'module': encodeURIComponent('经销商余额列表查询')
  27. }
  28. })
  29. }
  30. //对账余额明细接口
  31. export const verifyfyAccountQueryDealerBalanceDetailPage = (params) => {
  32. const url = `/verifyAccountChange/queryDealerBalanceDetailPage/${params.pageNo}/${params.pageSize}`
  33. delete params.pageNo
  34. delete params.pageSize
  35. return axios({
  36. url: url,
  37. data: params,
  38. method: 'post',
  39. headers: {
  40. 'module': encodeURIComponent('对账余额明细列表查询')
  41. }
  42. })
  43. }
  44. // 对账余额明细统计
  45. export const verifyfyAccountQueryDealerBalanceDetailCount = (params) => {
  46. const url = `/verifyAccountChange/queryDealerBalanceDetailCount`
  47. return axios({
  48. url: url,
  49. data: params,
  50. method: 'post',
  51. headers: {
  52. 'module': encodeURIComponent('对账余额明细统计')
  53. }
  54. })
  55. }
  56. // 调账保存
  57. export const verifyAccountChangeSave = params => {
  58. return axios({
  59. url: '/verifyAccountChange/save',
  60. data: params,
  61. method: 'post',
  62. headers: {
  63. 'module': encodeURIComponent('创建调账')
  64. }
  65. })
  66. }
  67. // 调账调账 删除
  68. export const verifyAccountChangeDel = params => {
  69. return axios({
  70. url: `/verifyAccountChange/deleteBySn/${params.sn}`,
  71. data: {},
  72. method: 'post',
  73. headers: {
  74. 'module': encodeURIComponent('删除调账')
  75. }
  76. })
  77. }
  78. // 调账调账 详情
  79. export const verifyAccountChangeDetail = params => {
  80. return axios({
  81. url: `/verifyAccountChange/queryBySn/${params.sn}`,
  82. data: {},
  83. method: 'post',
  84. headers: {
  85. 'module': encodeURIComponent('查看调账详情')
  86. }
  87. })
  88. }
  89. // 调账调账 提交
  90. export const verifyAcountBillSubmit = params => {
  91. return axios({
  92. url: `/verifyAccountChange/submit`,
  93. data: params,
  94. method: 'post',
  95. headers: {
  96. 'module': encodeURIComponent('调账提交')
  97. }
  98. })
  99. }