risk-identification-service.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. import axios from '@/common/services/axios-instance'
  2. class RiskIdentificationService {
  3. // 获取当前用户风控机构
  4. findIamOrgId(deptId, moduleId = 'riskLibraryVersion') {
  5. // const params = {
  6. // findFkOrgId: deptId,
  7. // moduleId,
  8. // }
  9. return axios({
  10. method: 'post',
  11. url: `api/xcoa-mobile/v1/riskdutie/findFkOrgId`,
  12. // params,
  13. })
  14. }
  15. // 获取当前人所属公司
  16. getCompany() {
  17. return axios({
  18. method: 'post',
  19. url: `api/xcoa-mobile/v1/icmtxversion/getBelongUnit`,
  20. })
  21. }
  22. // 分配识别人
  23. setIdentifyUser(data) {
  24. return axios({
  25. method: 'get',
  26. url: `api/xcoa-mobile/v1/riskidentify/getContactsAccount?userAccounts=${data.account}&taskId=${data.taskId}&identifyId=${data.identifyId}`,
  27. })
  28. }
  29. // 获取风险事项内容
  30. getRiskEventInfo(id) {
  31. return axios({
  32. method: 'get',
  33. url: `api/framework/v1/page/wp/risk/event/riskEvent?id=${id}`,
  34. })
  35. }
  36. // 获取风险识别新增子表
  37. getRiskAddChildInfo(data) {
  38. return axios({
  39. method: 'post',
  40. url: `api/xcoa-mobile/v1/riskidentifyinsertmatter/getInsertMatterBean`,
  41. data,
  42. })
  43. }
  44. // 获取风险识别修改子表
  45. getRiskUpdateChildInfo(data) {
  46. return axios({
  47. method: 'post',
  48. url: `api/xcoa-mobile/v1/riskidentifyupdatematter/getUpdateMatterBean`,
  49. data,
  50. })
  51. }
  52. // 获取风险识别废弃子表
  53. getRiskRemoveChildInfo(data) {
  54. return axios({
  55. method: 'post',
  56. url: `api/xcoa-mobile/v1/riskidentifydeletematter/getDeleteMatterBean`,
  57. data,
  58. })
  59. }
  60. // 检查编号唯一
  61. checkMeasurecode(eventCode) {
  62. return axios({
  63. method: 'get',
  64. url: 'api/xcoa-mobile/v1/riskidentifyinsertmatter/findEventCode',
  65. params: {
  66. eventCode: eventCode,
  67. },
  68. })
  69. }
  70. // 保存修改事项子表
  71. saveUpdateMatter(list, identifyId) {
  72. return axios({
  73. method: 'post',
  74. url: 'api/xcoa-mobile/v1/riskidentifyupdatematter/saveUpdateMatter?identifyId=' + identifyId,
  75. data: list,
  76. })
  77. }
  78. // 保存废弃事项子表
  79. saveRemoveMatter(list, identifyId) {
  80. return axios({
  81. method: 'post',
  82. url: 'api/xcoa-mobile/v1/riskidentifydeletematter/saveRemoveMatter?identifyId=' + identifyId,
  83. data: list,
  84. })
  85. }
  86. // 删除识别
  87. deletIdentify(params, formId) {
  88. return axios({
  89. url: `api/xcoa-mobile/v1/riskidentify/${formId}`,
  90. method: 'delete',
  91. params,
  92. })
  93. }
  94. }
  95. export default new RiskIdentificationService()