iam-audit-scheme-service.js 845 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. import axios from '@/common/services/axios-instance'
  2. class AuditReportService {
  3. // 获取被审计单位默认值
  4. getAuditedUnitById(id) {
  5. return axios({
  6. url: `api/xcoa-mobile/v1/iam-material/audit-unit/${id}`,
  7. method: 'post',
  8. })
  9. }
  10. // 获取文件编号
  11. getFileCode( params ) {
  12. return axios({
  13. url: `api/xcoa-mobile/v1/iam-audit-discover/nextNumber`,
  14. method: 'post',
  15. data: params,
  16. })
  17. }
  18. // 获取数据字典配置
  19. getDictionary(id) {
  20. return axios({
  21. url: `api/xcoa-mobile/v1/iam-law/dictionary?key=${id}`,
  22. method: 'get',
  23. })
  24. }
  25. // 获取当前用户的项目角色
  26. getUserRoles(id) {
  27. return axios({
  28. url: `api/xcoa-mobile/v1/iamprojectuser/userProject?projectId=${id}`,
  29. method: 'get',
  30. })
  31. }
  32. }
  33. export default new AuditReportService()