iam-audit-preparation-service.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. import axios from '@/common/services/axios-instance'
  2. class IamAuditPreparationService {
  3. // 获取项目信息
  4. getProjectInfoById(id) {
  5. return axios({
  6. url: `api/xcoa-mobile/v1/iamauditproject/getProjectInfoById?id=` + id,
  7. })
  8. }
  9. // 获取被审计单位默认值
  10. getAuditedUnitById(id) {
  11. return axios({
  12. url: `api/xcoa-mobile/v1/iam-material/audit-unit/${id}`,
  13. method: 'post',
  14. })
  15. }
  16. // 校验下发单位是否已下发过审前资料清单
  17. checkMaterial(projectId, unitCode, entityId) {
  18. return axios({
  19. url: `api/xcoa-mobile/v1/iam-material-list/audit-unit-verify/${projectId}/${unitCode}/${entityId}`,
  20. method: 'post',
  21. })
  22. }
  23. // 获取导入模板信息
  24. importMaterialInfo(attachment, projectId) {
  25. return axios({
  26. url: `api/xcoa-mobile/v1/iam-material/material-by-template/${attachment}/${projectId}`,
  27. method: 'post',
  28. })
  29. }
  30. // 获取资料编号
  31. getMaterialCode(id) {
  32. return axios({
  33. url: `api/xcoa-mobile/v1/iam-material/material-code/${id}`,
  34. method: 'post',
  35. })
  36. }
  37. // 检查是否存在附件
  38. checkAttachment(attachmentId, beanId, instId, formId) {
  39. return axios({
  40. url: `api/xcoa-mobile/v1/attachment-extend/attachments-info-perm/${attachmentId}?formId=${formId}&beanId=${beanId}&instId=${instId}`,
  41. })
  42. }
  43. checkLargeAttachment(attachmentId, beanId, instId, formId) {
  44. return axios({
  45. url: `api/framework/v1/large-file/attachments-info-perm/${attachmentId}?formId=${formId}&beanId=${beanId}&instId=${instId}`,
  46. })
  47. }
  48. }
  49. export default new IamAuditPreparationService()