stockImport.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. import { axios } from '@/utils/request'
  2. // 库存/散件导入 列表 分页
  3. export const stockImportList = (params) => {
  4. const url = `/stockImportDetail/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 stockImportCancel = (params) => {
  18. return axios({
  19. url: `/stockImport/cancelImport`,
  20. data: params,
  21. method: 'post',
  22. headers: {
  23. 'module': encodeURIComponent('取消导入')
  24. }
  25. })
  26. }
  27. // 散件导入 确认导入
  28. export const stockImportFinish = (params) => {
  29. return axios({
  30. url: `/stockImport/finishImport`,
  31. data: params,
  32. method: 'post',
  33. headers: {
  34. 'module': encodeURIComponent('确认导入')
  35. }
  36. })
  37. }
  38. // 散件导入 错误导出
  39. export const stockImportExportError = (params) => {
  40. return axios({
  41. url: '/stockImportDetail/exportForSpareParts',
  42. data: params,
  43. method: 'post',
  44. responseType: 'blob',
  45. headers: {
  46. 'module': encodeURIComponent('导出错误项')
  47. }
  48. })
  49. }
  50. // 库存导入 错误导出
  51. export const stockImportKCExportError = (params) => {
  52. return axios({
  53. url: '/stockImportDetail/exportForStock',
  54. data: params,
  55. method: 'post',
  56. responseType: 'blob',
  57. headers: {
  58. 'module': encodeURIComponent('导出错误项')
  59. }
  60. })
  61. }
  62. // 库存导入、散件导入列表
  63. export const stockImportAllList = (params) => {
  64. const url = `/stockImport/reportPage/${params.pageNo}/${params.pageSize}`
  65. delete params.pageNo
  66. delete params.pageSize
  67. return axios({
  68. url: url,
  69. data: params,
  70. method: 'post',
  71. headers: {
  72. 'module': encodeURIComponent('列表查询')
  73. }
  74. })
  75. }
  76. // 库存导入、散件导入统计
  77. export const stockImportCount = (params) => {
  78. const url = `/stockImport/reportCount`
  79. return axios({
  80. url: url,
  81. data: params,
  82. method: 'post'
  83. })
  84. }
  85. // 库存导入、散件导入 详情列表
  86. export const stockImportDetailList = (params) => {
  87. const url = `/stockImportDetail/reportPage/${params.pageNo}/${params.pageSize}`
  88. delete params.pageNo
  89. delete params.pageSize
  90. return axios({
  91. url: url,
  92. data: params,
  93. method: 'post',
  94. headers: {
  95. 'module': encodeURIComponent('明细列表查询')
  96. }
  97. })
  98. }
  99. // 库存导入、散件导入 详情统计
  100. export const stockImportDetailCount = (params) => {
  101. const url = `/stockImportDetail/reportCount`
  102. return axios({
  103. url: url,
  104. data: params,
  105. method: 'post'
  106. })
  107. }