materialFlow.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import request from "@/utils/request";
  2. // 获取物料流转终点,有仓库,也有工位
  3. export function getDestinationList() {
  4. return request({
  5. url: `/api/v1/process/circulation/target`,
  6. method: "get",
  7. });
  8. }
  9. // 根据仓库获取具体的坐标列表
  10. export function getStoreListByNo(no: string) {
  11. return request({
  12. url: `/api/v1/wms/position/list`,
  13. method: "post",
  14. data: { houseNo: no },
  15. });
  16. }
  17. // 扫码料箱获取料箱详情
  18. export function getBoxDetailByLabel(label: string) {
  19. return request({
  20. url: `/api/v1/process/circulation/vehicle/${label}`,
  21. method: "get",
  22. });
  23. }
  24. // 通过扫码获取物料信息
  25. export function getMaterialInfoByLabel(label: string) {
  26. return request({
  27. url: `/api/v1/process/circulation/material`,
  28. method: "post",
  29. data: { label },
  30. });
  31. }
  32. //新增物料流转过程
  33. export function addMaterialFlow(data: any) {
  34. return request({
  35. url: `/api/v1/process/circulation/add`,
  36. method: "post",
  37. data,
  38. });
  39. }
  40. //获取物料流转历史记录列表
  41. export function getMaterialFlowHistoryList(data?: any) {
  42. return request({
  43. url: `/api/v1/process/circulation/page`,
  44. method: "post",
  45. data,
  46. });
  47. }