waitDispatchDetail.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. headers:{
  9. 'module': encodeURIComponent(params.dispatchBillDetailList.length==1?'删除':'批量删除')
  10. }
  11. })
  12. }
  13. // 下推
  14. export const pushDown = (params) => {
  15. return axios({
  16. url: `/dispatch/pushDown`,
  17. data:params,
  18. method: 'post',
  19. headers:{
  20. 'module': encodeURIComponent('下推')
  21. }
  22. })
  23. }
  24. // 统计查询
  25. export const queryCount = (params) => {
  26. return axios({
  27. url: `/dispatch/queryCount`,
  28. data: params,
  29. method: 'post'
  30. })
  31. }
  32. // 销售单 下推 带下推产品列表 合计
  33. export const dispatchDetail = (params) => {
  34. return axios({
  35. url: `/dispatch/findBySn/${params.dispatchBillSn}`,
  36. method: 'get'
  37. })
  38. }
  39. // 列表 有分页
  40. export const waitDispatchDetailList = (params) => {
  41. const url = `/dispatch/detail/queryPage/${params.pageNo}/${params.pageSize}`
  42. delete params.pageNo
  43. delete params.pageSize
  44. return axios({
  45. url: url,
  46. data: params,
  47. method: 'post',
  48. headers:{
  49. 'module': encodeURIComponent('明细列表查询')
  50. }
  51. })
  52. }
  53. // 列表 不分页
  54. export const waitDispatchDetailAllList = (params) => {
  55. const url = `/dispatch/detail/queryPushing`
  56. delete params.pageNo
  57. delete params.pageSize
  58. return axios({
  59. url: url,
  60. data: params,
  61. method: 'post',
  62. headers:{
  63. 'module': encodeURIComponent('明细列表查询')
  64. }
  65. })
  66. }
  67. // 数量修改
  68. export const updateQty = (params) => {
  69. return axios({
  70. url: '/dispatch/detail/updateQty',
  71. data: params,
  72. method: 'post',
  73. headers:{
  74. 'module': encodeURIComponent('修改本次下推数量')
  75. }
  76. })
  77. }