switchDept.js 685 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import req from '@/utils/request.js'
  2. /**
  3. * 查询外协单
  4. * @param {Object} data
  5. */
  6. export function getDayworkByCarrierCode(data) {
  7. return req.request({
  8. url: '/business/switch/getDayworkByCarrierCode',
  9. method: 'POST',
  10. data: data
  11. })
  12. }
  13. /**
  14. * 获取所有的工段
  15. */
  16. export function getAllDeptList() {
  17. return req.request({
  18. url: '/business/switch/listAllDepts',
  19. method: 'GET'
  20. })
  21. }
  22. export function turnoverAll(data) {
  23. return req.request({
  24. url: '/business/switch/turnoverAll',
  25. method: 'POST',
  26. data: data
  27. })
  28. }
  29. export function turnoverOutsourceAll(data) {
  30. return req.request({
  31. url: '/business/switch/turnoverOutsourceAll',
  32. method: 'POST',
  33. data: data
  34. })
  35. }