inventoryTask.js 1.2 KB

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