transferOrder.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. import request from '@/utils/request'
  2. // 调拨订单列表
  3. export function getOrderList(data) {
  4. return request({
  5. url: `/pu/allot/list?pageSize=${data.pageSize}&pageNum=${data.pageNum}&isAsc=desc&orderByColumn=updateTime`,
  6. method: 'post',
  7. data: data
  8. })
  9. }
  10. // 调拨订单新增
  11. export function addOrder(data) {
  12. return request({
  13. url: `/pu/allot/add`,
  14. method: 'post',
  15. data: data
  16. })
  17. }
  18. // 调拨订单编辑
  19. export function editOrder(data) {
  20. return request({
  21. url: `/pu/allot/edit`,
  22. method: 'put',
  23. data: data
  24. })
  25. }
  26. // 调拨订单提交
  27. export function submitOrder(data) {
  28. return request({
  29. url: `/pu/allot/submit`,
  30. method: 'post',
  31. data: data
  32. })
  33. }
  34. // 调拨订单详情
  35. export function getOrderDetail(id) {
  36. return request({
  37. url: `/pu/allot/detail/${id}`,
  38. method: 'get',
  39. })
  40. }
  41. // 调拨订单删除
  42. export function delOrder(ids) {
  43. return request({
  44. url: `/pu/allot/delete/${ids}`,
  45. method: 'delete',
  46. })
  47. }
  48. // 调拨订单重传NC
  49. export function againToNC(data) {
  50. return request({
  51. url: `/pu/allot/toNC`,
  52. method: 'post',
  53. data: data
  54. })
  55. }
  56. // 货权预留单详情
  57. export function getResevedDetail(id) {
  58. return request({
  59. url: `/pu/ownership/detail/${id}`,
  60. method: 'get',
  61. })
  62. }
  63. // 查询调拨物料明细列表
  64. export function listStAllotItem(pid) {
  65. return request({
  66. url: `/pu/allot/material/byPid/${pid}`,
  67. method: 'get',
  68. })
  69. }