allocateReport.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. import { axios } from '@/utils/request'
  2. // 调拨开单统计 列表 有分页
  3. export const allocateReportList = (params) => {
  4. const url = `/report/allocateReport/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 allocateReportCount = (params) => {
  18. return axios({
  19. url: '/report/allocateReport/queryCount',
  20. data: params,
  21. method: 'post'
  22. })
  23. }
  24. // 调拨明细 列表 有分页
  25. export const allocateReportDetailList = (params) => {
  26. const url = `/report/allocateReport/detail/queryPage/${params.pageNo}/${params.pageSize}`
  27. delete params.pageNo
  28. delete params.pageSize
  29. return axios({
  30. url: url,
  31. data: params,
  32. method: 'post',
  33. headers: {
  34. 'module': encodeURIComponent('列表查询')
  35. }
  36. })
  37. }
  38. // 调拨明细 列表 合计
  39. export const allocateReportDetailCount = (params) => {
  40. return axios({
  41. url: '/report/allocateReport/detail/queryCount',
  42. data: params,
  43. method: 'post'
  44. })
  45. }
  46. // 调拨明细报表 导出
  47. export const allocateReportDetailExport = (params) => {
  48. return axios({
  49. url: '/report/allocateReport/detail/exportExcel',
  50. data: params,
  51. method: 'post',
  52. responseType: 'blob',
  53. headers: {
  54. 'module': encodeURIComponent('导出')
  55. }
  56. })
  57. }
  58. export const allocateReportExportExcel = (params) => {
  59. return axios({
  60. url: '/report/allocateReport/exportExcel',
  61. data: params,
  62. method: 'post',
  63. responseType: 'blob',
  64. headers: {
  65. 'module': encodeURIComponent('导出')
  66. }
  67. })
  68. }