settle.js 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. import { axios } from '@/utils/request'
  2. // 单位收付款 列表 分页
  3. export const settleUnitClientList = (params) => {
  4. const url = `/settle/unit/queryClientUnSettlePage/${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 settleUnitList = (params) => {
  18. const url = `/settle/unit/queryPage/${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 settleUnitSave = (params) => {
  32. return axios({
  33. url: '/settle/unit/save',
  34. data: params,
  35. method: 'post',
  36. headers: {
  37. 'module': encodeURIComponent('提交')
  38. }
  39. })
  40. }
  41. // 单位收付款记录 详情 列表 结算记录 分页
  42. export const settleUnitDetailList = (params) => {
  43. const url = `/settle/unit/detail/queryPage/${params.pageNo}/${params.pageSize}`
  44. delete params.pageNo
  45. delete params.pageSize
  46. return axios({
  47. url: url,
  48. data: params,
  49. method: 'post',
  50. headers: {
  51. 'module': encodeURIComponent('明细列表')
  52. }
  53. })
  54. }
  55. // 单位收付款记录 详情
  56. export const settleUnitDetail = (params) => {
  57. return axios({
  58. url: `/settle/unit/findById/${params.id}`,
  59. method: 'get',
  60. headers: {
  61. 'module': encodeURIComponent('详情信息')
  62. }
  63. })
  64. }
  65. // 单位收付款记录 合计
  66. export const settleUnitQuerySum = (params) => {
  67. return axios({
  68. url: '/settle/unit/querySum',
  69. data: params,
  70. method: 'post'
  71. })
  72. }
  73. //详情 打印
  74. export const settleUnitPrint = params => {
  75. const data = {
  76. url: `/settle/unit/print/${params.type}`,
  77. data: params,
  78. method: 'post',
  79. headers: {
  80. 'module': encodeURIComponent(params.type == 'INK' ? '喷墨打印' : '针式打印')
  81. }
  82. }
  83. // 喷墨打印
  84. if (params.type == 'INK') {
  85. data.responseType = 'blob'
  86. }
  87. return axios.request(data)
  88. }
  89. // 详情 导出
  90. export const settleUnitExport = params => {
  91. return axios.request({
  92. url: `/settle/unit/excel`,
  93. data: params,
  94. method: 'post',
  95. responseType: 'blob',
  96. headers: {
  97. 'module': encodeURIComponent('导出Excel')
  98. }
  99. })
  100. }
  101. // 单位收付款 全部单据
  102. export const settleInfoAllList = (params) => {
  103. return axios({
  104. url: '/settle/info/queryList',
  105. data: params,
  106. method: 'post',
  107. headers: {
  108. 'module': encodeURIComponent('单据列表查询')
  109. }
  110. })
  111. }
  112. // 单位收付款 列表 分页
  113. export const settleInfoList = (params) => {
  114. const url = `/settle/info/queryPage/${params.pageNo}/${params.pageSize}`
  115. delete params.pageNo
  116. delete params.pageSize
  117. return axios({
  118. url: url,
  119. data: params,
  120. method: 'post',
  121. headers: {
  122. 'module': encodeURIComponent('明细列表查询')
  123. }
  124. })
  125. }
  126. // 单位收付款 详情 合计
  127. export const settleInfoQueryReceiptOrPaySum = (params) => {
  128. return axios({
  129. url: '/settle/info/queryReceiptOrPaySum',
  130. data: params,
  131. method: 'post'
  132. })
  133. }
  134. // 单位收付款 列表 合计
  135. export const settleInfoQuerySum = (params) => {
  136. return axios({
  137. url: '/settle/info/querySum',
  138. data: params,
  139. method: 'post'
  140. })
  141. }