purchase.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // 采购入库
  2. export const purchaseInventory = (
  3. params,
  4. config = { custom: { auth: true } }
  5. ) =>
  6. uni.$u.http.post(
  7. `/pda/purchaseInventory?currentPage=${params.currentPage}&pageSize=${params.pageSize}`,
  8. params,
  9. config
  10. );
  11. // 订单明细
  12. export const orderDetail = (urlparams, config = { custom: { auth: true } }) =>
  13. uni.$u.http.get(`/pda/orderDetail/${urlparams}`, config);
  14. // 订单明细上部
  15. export const orderInfo = (urlparams, config = { custom: { auth: true } }) =>
  16. uni.$u.http.get(`/pda/orderInfo/${urlparams}`, config);
  17. // 订单操作、去入库/去拣货
  18. export const orderStartHandle = (
  19. urlparams,
  20. config = { custom: { auth: true } }
  21. ) => uni.$u.http.get(`/pda/orderStartHandle/${urlparams}`, config);
  22. // 商品详情
  23. export const materialDetail = (
  24. urlparams,
  25. config = { custom: { auth: true } }
  26. ) => uni.$u.http.get(`/pda/materialDetail/${urlparams}`, config);
  27. // 商品库存详情
  28. export const materialDepotDetail = (
  29. urlparams,
  30. data,
  31. config = { custom: { auth: true } }
  32. ) =>
  33. uni.$u.http.get(
  34. `/pda/materialDepotDetail/${urlparams.type}/${urlparams.materialId}/${urlparams.depotId}`,
  35. { data, config }
  36. );
  37. // 商品入库
  38. export const orderSubmit = (params, config = { custom: { auth: true } }) =>
  39. uni.$u.http.post(`/pda/orderSubmit`, params, config);
  40. // 仓库下拉框
  41. export const depotSpinnerList = (
  42. urlparams,
  43. data,
  44. config = { custom: { auth: true } }
  45. ) => uni.$u.http.get(`/pda/depotSpinnerList`, { data, config });