index.js 553 B

123456789101112131415161718192021
  1. import request from '@/utils/request'
  2. export const materialPage = (params) =>
  3. request({
  4. url: '/tofly-flow/tfprojectmaterialw/page',
  5. method: 'get',
  6. params
  7. })
  8. export const fetchRestMaterial = (processId) =>
  9. request({
  10. url: '/tofly-flow/tfprojectmaterialw/getListByMatter',
  11. method: 'get',
  12. params: { processId }
  13. })
  14. export const fetchDispatchedMaterial = (processId) =>
  15. request({
  16. url: '/tofly-flow/tfprojectmaterialw/page',
  17. method: 'get',
  18. params: { processId, materialTypeList: 2, current: 1, size: 9999 }
  19. })