settleReceipt.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. import { axios } from '@/utils/request'
  2. // 销售收款 列表 分页
  3. export const settleReceiptList = (params) => {
  4. const url = `/settleReceipt/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 settleReceiptBatch = (params) => {
  18. const url = `/settleReceipt/receiptBatch`
  19. return axios({
  20. url: url,
  21. data: params,
  22. method: 'post',
  23. headers:{
  24. 'module': encodeURIComponent(params.snList.length==1 ? '收款' : '批量收款')
  25. }
  26. })
  27. }
  28. // 关联收款单
  29. export const settleReceiptBookBatch = (params) => {
  30. const url = `/settleReceipt/receiptBookBatch`
  31. return axios({
  32. url: url,
  33. data: params,
  34. method: 'post',
  35. headers:{
  36. 'module': encodeURIComponent('关联收款单')
  37. }
  38. })
  39. }
  40. // 凭证
  41. export const settleReceiptFindBySn = (params) => {
  42. const url = `/settleReceipt/findBySn/${params.sn}`
  43. return axios({
  44. url: url,
  45. method: 'get',
  46. headers:{
  47. 'module': encodeURIComponent('查看凭证')
  48. }
  49. })
  50. }
  51. // 收款打印
  52. export const settleReceiptPrintFindBySn = (params) => {
  53. const url = `/settleReceipt/printFindBySn/${params.sn}`
  54. return axios({
  55. url: url,
  56. method: 'get',
  57. headers:{
  58. 'module': encodeURIComponent('收款打印')
  59. }
  60. })
  61. }