inventoryTask.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //盘点任务列表
  2. export const taskStocktakingList = (
  3. params,
  4. config = { custom: { auth: true } }
  5. ) =>
  6. uni.$u.http.post(
  7. `/pda/taskStocktakingList?currentPage=${params.currentPage}&pageSize=${params.pageSize}`,
  8. params,
  9. config
  10. );
  11. //盘点任务详情
  12. export const taskStocktakingDetail = (
  13. taskId,
  14. config = { custom: { auth: true } }
  15. ) => uni.$u.http.get(`/pda/taskStocktakingDetail/${taskId}`, config);
  16. //开始任务
  17. export const startTask = (taskId, config = { custom: { auth: true } }) =>
  18. uni.$u.http.get(`/pda/startTask/${taskId}`, config);
  19. //完成任务
  20. export const taskComplete = (taskId, config = { custom: { auth: true } }) =>
  21. uni.$u.http.get(`/pda/taskComplete/${taskId}`, config);
  22. //负责人下拉列表
  23. export const creatorSpinnerList = (
  24. taskId,
  25. config = { custom: { auth: true } }
  26. ) => uni.$u.http.get(`/pda/creatorSpinnerList/${taskId}`, config);
  27. //盘点任务详情-商品列表
  28. export const taskStocktakingItemList = (
  29. params,
  30. config = { custom: { auth: true } }
  31. ) =>
  32. uni.$u.http.post(
  33. `/pda/taskStocktakingItemList?currentPage=${params.currentPage}&pageSize=${params.pageSize}`,
  34. params,
  35. config
  36. );
  37. //提交盘点
  38. export const stocktaking = (params, config = { custom: { auth: true } }) =>
  39. uni.$u.http.post(`/pda/stocktaking`, params, config);
  40. //获取商品类别树数据
  41. export const getMaterialCategoryTree = (
  42. params,
  43. config = { custom: { auth: true } }
  44. ) => uni.$u.http.get(`/pda/getMaterialCategoryTree?id=`, { params }, config);