other.js 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. import { httpApi } from '../request/httpApi'
  2. export const ApprovalApi = (url, form, msg = true) => httpApi({
  3. url: '/api/blade-business/' + url,
  4. method: 'post',
  5. data: form,
  6. }, msg)
  7. export const batchApproval = (form, msg = true) => httpApi({
  8. url: '/api/blade-business/archiveFile/batchApproval',
  9. method: 'post',
  10. data: form,
  11. }, msg)
  12. //短信验证
  13. export const sendNotice = (form, msg = true) => httpApi({
  14. url: '/api/blade-business/task/send-notice',
  15. method: 'post',
  16. params: form,
  17. }, msg)
  18. //短信过期时间
  19. export const saveSmsTimeout = (form, msg = true) => httpApi({
  20. url: '/api/blade-business/task/save-sms-timeout',
  21. method: 'get',
  22. params: form,
  23. }, msg)
  24. //用户配置保存
  25. export const userConfigSave = (form, msg = true) => httpApi({
  26. url: '/api/blade-business/defaultConfig/saveOrUpdate',
  27. method: 'post',
  28. data: form,
  29. }, msg)
  30. //用户配置详情
  31. export const userConfigInfo = (form, msg = true) => httpApi({
  32. url: '/api/blade-business/defaultConfig/detail',
  33. method: 'get',
  34. params: form,
  35. }, msg)
  36. //获取上报批次
  37. // export const getReportNumber = (form, msg = true) => httpApi({
  38. // url: '/api/blade-business/informationWriteQuery/getReportNumberByContractId',
  39. // method: 'get',
  40. // params: form
  41. // }, msg);
  42. export const getReportNumber = (form, msg = true) => httpApi({
  43. url: 'api/blade-business/task/query-batch-list-two',
  44. method: 'get',
  45. params: form,
  46. }, msg)
  47. //获取类型
  48. export const getDictionary = (form, msg = true) => httpApi({
  49. url: '/api/blade-system/dict/dictionary',
  50. method: 'get',
  51. params: form,
  52. }, msg)
  53. //获取表单的下拉框测站点数据
  54. export const getDapSiteData = (form, msg = true) => httpApi({
  55. url: '/api/blade-business/dap/site',
  56. method: 'get',
  57. params: form,
  58. }, msg)
  59. //获取表单下的设计强度列表
  60. export const getDesignStrengthList = (form, msg = true) => httpApi({
  61. url: '/api/blade-manager/mixProportion/designStrengthList',
  62. method: 'get',
  63. params: form,
  64. }, msg)
  65. //检查当前合同段是否开启电签
  66. export const eVisaTaskCheck = (form, msg = true) => httpApi({
  67. url: '/api/blade-business/eVisaTaskCheck/checkContractIsOpenEVisa',
  68. method: 'get',
  69. params: form,
  70. }, msg)
  71. export const eVisaTaskCheckApi = async (form) => {
  72. const { error, code, msg, data } = await eVisaTaskCheck(form)
  73. //判断数据
  74. if (!error && code === 200 && data === true) {
  75. return true
  76. } else {
  77. window.$message?.warning(msg)
  78. return false
  79. }
  80. }
  81. //检查当前审批人是否存在证书
  82. export const checkFlowUserIsExistPfxFile = (form, msg = true) => httpApi({
  83. url: '/api/blade-business/eVisaTaskCheck/checkFlowUserIsExistPfxFile',
  84. method: 'get',
  85. params: form,
  86. }, msg)
  87. //获取符合条件的预设流程(三大填报页、日志列表的批量上报、首件列表的批量上报)
  88. export const queryFixedFlow = (form, msg = true) => httpApi({
  89. url: '/api/blade-business/eVisaTaskCheck/queryFixedFlow',
  90. method: 'post',
  91. data: form,
  92. }, msg)
  93. //资料查询获取任务流程
  94. export const queryFixedFlow1 = (form, msg = true) => httpApi({
  95. url: '/api/blade-business/eVisaTaskCheck/queryFixedFlow2',
  96. method: 'post',
  97. data: form,
  98. }, msg)
  99. //日志填报获取任务流程
  100. export const queryFixedFlow3 = (form, msg = true) => httpApi({
  101. url: '/api/blade-business/eVisaTaskCheck/queryFixedFlow3',
  102. method: 'post',
  103. data: form,
  104. }, msg)
  105. //检查所选的流程环节处理人是否具有审批权限(三大填报页、日志列表的批量上报、首件列表的批量上报)
  106. export const checkCustomFlowUserIsEVisaPermissions = (form, msg = true) => httpApi({
  107. url: '/api/blade-business/eVisaTaskCheck/checkCustomFlowUserIsEVisaPermissions',
  108. method: 'post',
  109. data: form,
  110. }, msg)
  111. //检查所选的流程环节处理人是否具有审批权限(日志和首件)
  112. export const checkCustomFlowUserIsEVisaPermissions3 = (form, msg = true) => httpApi({
  113. url: '/api/blade-business/eVisaTaskCheck/checkCustomFlowUserIsEVisaPermissions3',
  114. method: 'post',
  115. data: form,
  116. }, msg)
  117. //资料查询页面
  118. export const checkCustomFlowUserIsEVisaPermissionsquery = (form, msg = true) => httpApi({
  119. url: '/api/blade-business/eVisaTaskCheck/batchCheckCustomFlowUserIsEVisaPermissions2',
  120. method: 'post',
  121. data: form,
  122. }, msg)
  123. //获取用户列表
  124. export const getContractUserList = (form, msg = true) => httpApi({
  125. url: '/api/blade-manager/contractInfo/get-contract-userList',
  126. method: 'get',
  127. params: form,
  128. }, msg)
  129. //获取租户详情
  130. export const getTenantDetail = (id) => httpApi({
  131. url: '/api/blade-system/tenant/detail',
  132. method: 'get',
  133. params: {
  134. tenantId: id,
  135. },
  136. }, true)
  137. //获取更新信息
  138. export const getVersionJson = () => httpApi({
  139. url: 'version.json?time=' + new Date().getTime(),
  140. method: 'get',
  141. }, false)
  142. //获取项目下的合同段信息
  143. export const getContractInfo = (form, msg = true) => httpApi({
  144. url: '/api/blade-manager/contractInfo/get-contractInfo',
  145. method: 'get',
  146. params: form,
  147. }, msg)