waitDispatchDetail.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. import { axios } from '@/utils/request'
  2. // 批量删除
  3. export const deleteBatch = (params) => {
  4. return axios({
  5. url: '/dispatch/detail/deleteBatch',
  6. data: params,
  7. method: 'post'
  8. })
  9. }
  10. // 下推
  11. export const pushDown = (params) => {
  12. return axios({
  13. url: `/dispatch/pushDown`,
  14. data:params,
  15. method: 'post'
  16. })
  17. }
  18. // 统计查询
  19. export const queryCount = (params) => {
  20. return axios({
  21. url: `/dispatch/queryCount`,
  22. data: params,
  23. method: 'post'
  24. })
  25. }
  26. // 销售单 下推 带下推产品列表 合计
  27. export const dispatchDetail = (params) => {
  28. return axios({
  29. url: `/dispatch/findBySn/${params.dispatchBillSn}`,
  30. method: 'get'
  31. })
  32. }
  33. // 列表 有分页
  34. export const waitDispatchDetailList = (params) => {
  35. const url = `/dispatch/detail/queryPage/${params.pageNo}/${params.pageSize}`
  36. delete params.pageNo
  37. delete params.pageSize
  38. return axios({
  39. url: url,
  40. data: params,
  41. method: 'post'
  42. })
  43. }
  44. // 列表 不分页
  45. export const waitDispatchDetailAllList = (params) => {
  46. const url = `/dispatch/detail/queryPushing`
  47. delete params.pageNo
  48. delete params.pageSize
  49. return axios({
  50. url: url,
  51. data: params,
  52. method: 'post'
  53. })
  54. }
  55. // 数量修改
  56. export const updateQty = (params) => {
  57. return axios({
  58. url: '/dispatch/detail/updateQty',
  59. data: params,
  60. method: 'post'
  61. })
  62. }