dept.js 848 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. import req from '@/utils/request.js'
  2. /**
  3. * 获取生产子计划列表
  4. * @param {Object} data
  5. */
  6. export function getDeptList(data) {
  7. return req.request({
  8. url:'/system/dept/listByPlanDetailsId',
  9. method: 'GET',
  10. data: data
  11. })
  12. }
  13. export function getDeptListInfo(data) {
  14. return req.request({
  15. url:'/system/dept/getDeptListInfo',
  16. method: 'GET',
  17. data: data
  18. })
  19. }
  20. /**
  21. * 获取生产子计划列表
  22. * @param {Object} data
  23. */
  24. export function getDeptOptions(data) {
  25. return req.request({
  26. url:'/system/dept/getList',
  27. method: 'GET',
  28. data: data
  29. })
  30. }
  31. export function getUserDeptList(userId) {
  32. return req.request({
  33. url:'/system/dept/getUserDeptList?userId=' + userId,
  34. method: 'GET',
  35. })
  36. }
  37. export function getTechnicianList(data) {
  38. return req.request({
  39. url:'/system/dept/getTechnicianList',
  40. method: 'GET',
  41. data: data
  42. })
  43. }