inventoryTask.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  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 taskComplete = (taskId, config = { custom: { auth: true } }) =>
  16. uni.$u.http.get(`/pda/taskComplete/${taskId}`, config);
  17. //负责人下拉列表
  18. export const creatorSpinnerList = (
  19. taskId,
  20. config = { custom: { auth: true } }
  21. ) => uni.$u.http.get(`/pda/creatorSpinnerList/${taskId}`, config);
  22. //盘点任务详情-商品列表
  23. export const taskStocktakingItemList = (
  24. params,
  25. config = { custom: { auth: true } }
  26. ) => uni.$u.http.post(`/pda/taskStocktakingItemList`, params, config);
  27. //提交盘点
  28. export const stocktaking = (params, config = { custom: { auth: true } }) =>
  29. uni.$u.http.post(`/pda/stocktaking`, params, config);
  30. //获取商品类别树数据
  31. export const getMaterialCategoryTree = (
  32. params,
  33. config = { custom: { auth: true } }
  34. ) => uni.$u.http.get(`/pda/getMaterialCategoryTree?id=`, { params }, config);