settleAcount.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. import { axios } from '@/utils/request'
  2. // 更新结算账户功能状态
  3. export const updateAccountMangeState = params => {
  4. return axios({
  5. url: `/settleAccount/updateFunctionState/${params.enableFlag}`,
  6. method: 'get',
  7. headers: {
  8. 'module': encodeURIComponent('启用禁用资金账户功能')
  9. }
  10. })
  11. }
  12. // 查询结算账户功能状态
  13. export const queryAccountMangeState = params => {
  14. return axios({
  15. url: `/settleAccount/queryFunctionState`,
  16. method: 'get',
  17. headers: {
  18. 'module': encodeURIComponent('结算账户功能状态查询')
  19. }
  20. })
  21. }
  22. // 分页查找结算账户列表
  23. export const settleAccountList = (params) => {
  24. const url = `/settleAccount/queryPage/${params.pageNo}/${params.pageSize}`
  25. delete params.pageNo
  26. delete params.pageSize
  27. return axios({
  28. url: url,
  29. data: params,
  30. method: 'post',
  31. headers: {
  32. 'module': encodeURIComponent('列表查询')
  33. }
  34. })
  35. }
  36. // 查询资金明细
  37. export const findSettleFlowPage = (params) => {
  38. const url = `/settleAccount/findSettleFlowPage/${params.pageNo}/${params.pageSize}`
  39. delete params.pageNo
  40. delete params.pageSize
  41. return axios({
  42. url: url,
  43. data: params,
  44. method: 'post',
  45. headers: {
  46. 'module': encodeURIComponent('资金明细列表查询')
  47. }
  48. })
  49. }
  50. // 保存结算账户信息
  51. export const settleAccountSave = params => {
  52. return axios({
  53. url: '/settleAccount/save',
  54. data: params,
  55. method: 'post',
  56. headers: {
  57. 'module': encodeURIComponent(params.id?'编辑':'新增')
  58. }
  59. })
  60. }
  61. // 根据sn查找结算账户信息
  62. export const settleAccountDetail = params => {
  63. return axios({
  64. url: `/settleAccount/findBySn/${params.settleAccountSn}`,
  65. method: 'get',
  66. headers: {
  67. 'module': encodeURIComponent('结算账户信息')
  68. }
  69. })
  70. }
  71. // 启禁用结算账户信息
  72. export const settleAccountEnable = params => {
  73. return axios({
  74. url: `/settleAccount/enable/${params.settleAccountSn}/${params.enableFlag}`,
  75. method: 'get',
  76. headers: {
  77. 'module': encodeURIComponent(params.enableFlag=='ENABLE' ? '启用' : '禁用')
  78. }
  79. })
  80. }
  81. // 删除结算账户信息
  82. export const settleAccountDelete = params => {
  83. return axios({
  84. url: `/settleAccount/delete/${params.settleAccountSn}`,
  85. method: 'get',
  86. headers: {
  87. 'module': encodeURIComponent('删除')
  88. }
  89. })
  90. }
  91. // 审核结算账户信息
  92. export const settleAccountAudit = params => {
  93. return axios({
  94. url: `/settleAccount/audit/${params.settleAccountSn}/${params.auditState}`,
  95. method: 'get',
  96. headers: {
  97. 'module': encodeURIComponent('审核')
  98. }
  99. })
  100. }