stockOut.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import { axios } from '@/utils/request'
  2. // 出库 列表 有分页
  3. export const stockOutList = (params) => {
  4. const url = `/stockOut/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 stockOutOut = (params) => {
  18. return axios({
  19. url: '/stockOut/out',
  20. data: params,
  21. method: 'post',
  22. headers:{
  23. 'module': encodeURIComponent('出库')
  24. }
  25. })
  26. }
  27. // 出库 批量出库
  28. export const stockOutBatchOut = (params) => {
  29. return axios({
  30. url: '/stockOut/outBatch',
  31. data: params,
  32. method: 'post',
  33. headers:{
  34. 'module': encodeURIComponent('批量出库')
  35. }
  36. })
  37. }
  38. // 出入库明细
  39. export const stockOutDetailList = (params) => {
  40. return axios({
  41. url: `/stockOut/detail/queryList`,
  42. data: params,
  43. method: 'post',
  44. headers:{
  45. 'module': encodeURIComponent('出库明细')
  46. }
  47. })
  48. }