index.js 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. import { httpApi } from '../../request/httpApi'
  2. export const ApprovalApi = (url, form) => httpApi({
  3. url: '/api/blade-business/' + url,
  4. method: 'post',
  5. data: form,
  6. })
  7. export const batchApproval = (form) => httpApi({
  8. url: '/api/blade-business/archiveFile/batchApproval',
  9. method: 'post',
  10. data: form,
  11. })
  12. //短信验证
  13. export const sendNotice = (form) => httpApi({
  14. url: '/api/blade-business/task/send-notice',
  15. method: 'post',
  16. params: form,
  17. })
  18. //短信过期时间
  19. export const saveSmsTimeout = (form) => httpApi({
  20. url: '/api/blade-business/task/save-sms-timeout',
  21. method: 'get',
  22. params: form,
  23. })
  24. //用户配置保存
  25. export const userConfigSave = (form) => httpApi({
  26. url: '/api/blade-business/defaultConfig/saveOrUpdate',
  27. method: 'post',
  28. data: form,
  29. })
  30. //用户配置详情
  31. export const userConfigInfo = (form) => httpApi({
  32. url: '/api/blade-business/defaultConfig/detail',
  33. method: 'get',
  34. params: form,
  35. })
  36. //获取上报批次
  37. // export const getReportNumber = (form) => httpApi({
  38. // url: '/api/blade-business/informationWriteQuery/getReportNumberByContractId',
  39. // method: 'get',
  40. // params: form
  41. // });
  42. export const getReportNumber = (form) => httpApi({
  43. url: 'api/blade-business/task/query-batch-list-two',
  44. method: 'get',
  45. params: form,
  46. })
  47. //获取类型
  48. export const getDictionary = (form) => httpApi({
  49. url: '/api/blade-system/dict/dictionary',
  50. method: 'get',
  51. params: form,
  52. })
  53. //获取表单的下拉框测站点数据
  54. export const getDapSiteData = (form) => httpApi({
  55. url: '/api/blade-business/dap/site',
  56. method: 'get',
  57. params: form,
  58. })
  59. //检查当前合同段是否开启电签
  60. export const eVisaTaskCheck = (form) => httpApi({
  61. url: '/api/blade-business/eVisaTaskCheck/checkContractIsOpenEVisa',
  62. method: 'get',
  63. params: form,
  64. })
  65. //检查当前审批人是否存在证书
  66. export const checkFlowUserIsExistPfxFile = (form= {}) => httpApi({
  67. url: '/api/blade-business/eVisaTaskCheck/checkFlowUserIsExistPfxFile',
  68. method: 'get',
  69. params: form,
  70. })
  71. //获取符合条件的预设流程(三大填报页、日志列表的批量上报、首件列表的批量上报)
  72. export const queryFixedFlow = (form) => httpApi({
  73. url: '/api/blade-business/eVisaTaskCheck/queryFixedFlow',
  74. method: 'post',
  75. data: form,
  76. })
  77. //检查所选的流程环节处理人是否具有审批权限(三大填报页、日志列表的批量上报、首件列表的批量上报)
  78. export const checkFlowUser = (form) => httpApi({
  79. url: '/api/blade-business/eVisaTaskCheck/checkCustomFlowUserIsEVisaPermissions',
  80. method: 'post',
  81. data: form,
  82. })
  83. //资料查询页面
  84. export const checkFlowUserQuery = (form) => httpApi({
  85. url: '/api/blade-business/eVisaTaskCheck/batchCheckCustomFlowUserIsEVisaPermissions2',
  86. method: 'post',
  87. data: form,
  88. })
  89. //获取用户列表
  90. export const getContractUserList = (form) => httpApi({
  91. url: '/api/blade-manager/contractInfo/get-contract-userList',
  92. method: 'get',
  93. params: form,
  94. })
  95. //获取租户详情
  96. export const getTenantDetail = (id) => httpApi({
  97. url: '/api/blade-system/tenant/detail',
  98. method: 'get',
  99. params: {
  100. tenantId: id,
  101. },
  102. }, true)
  103. //获取更新信息
  104. export const getVersionJson = () => httpApi({
  105. url: 'version.json?time=' + new Date().getTime(),
  106. method: 'get',
  107. }, false)