query.js 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. import { HcApi } from '../../request/index'
  2. export default {
  3. //获取当前合同段的划分树
  4. // async queryWbsTreeData(form) {
  5. // return HcApi({
  6. // url: '/api/blade-business/informationWriteQuery/queryContractWbsTreeByContractIdAndType',
  7. // method: 'get',
  8. // params: form,
  9. // })
  10. // },
  11. async queryWbsTreeData(form) {
  12. return HcApi({
  13. url: '/api/blade-user/wbs/lazyQueryContractWbsTree',
  14. method: 'get',
  15. params: form,
  16. })
  17. },
  18. //根据合同段ID获取所有填报人
  19. async getFileUser(form) {
  20. return HcApi({
  21. url: '/api/blade-business/informationWriteQuery/getFileUserByContractId',
  22. method: 'get',
  23. params: form,
  24. })
  25. },
  26. //搜索获取树
  27. async getTreeNodeByQueryValueAndContractId(form) {
  28. return HcApi({
  29. url: '/api/blade-manager/contractInfo/getTreeNodeByQueryValueAndContractId',
  30. method: 'get',
  31. params: form,
  32. })
  33. },
  34. //获取当前合同段下所有的上报批次
  35. // async getReportNumber(form) {
  36. // return HcApi({
  37. // url: '/api/blade-business/informationWriteQuery/getReportNumberByContractId',
  38. // method: 'get',
  39. // params: form
  40. // })
  41. // },
  42. async getReportNumber(form) {
  43. return HcApi({
  44. url: 'api/blade-business/task/query-batch-list-two',
  45. method: 'get',
  46. params: form,
  47. })
  48. },
  49. //获取流程状态分类和文件类型分类
  50. async getDictBizClassify(form) {
  51. return HcApi({
  52. url: '/api/blade-business/informationWriteQuery/getDictBizClassifyByCode',
  53. method: 'get',
  54. params: form,
  55. })
  56. },
  57. //分页数据
  58. async getPageData(form) {
  59. return HcApi({
  60. //url: '/api/blade-business/informationWriteQuery/page',
  61. url: '/api/blade-user/wbs/informationWriteQuery/page',
  62. method: 'post',
  63. data: form,
  64. })
  65. },
  66. //批量废除
  67. async batchAbolish(form) {
  68. return HcApi({
  69. url: '/api/blade-business/informationWriteQuery/batchAbolish',
  70. method: 'post',
  71. params: form,
  72. })
  73. },
  74. //批量下载
  75. async batchDownloadFileToZip(form) {
  76. return HcApi({
  77. url: '/api/blade-business/informationWriteQuery/batchDownloadFileToZip',
  78. method: 'post',
  79. params: form,
  80. responseType: 'blob',
  81. })
  82. },
  83. async downloadNeiYe(form) {
  84. return HcApi({
  85. url: '/api/blade-business/neiYeController/downloadNeiYe',
  86. method: 'post',
  87. data: form,
  88. responseType: 'blob',
  89. })
  90. },
  91. //批量打印
  92. async batchPrint(form) {
  93. return HcApi({
  94. url: '/api/blade-business/informationWriteQuery/batchPrint',
  95. method: 'post',
  96. params: form,
  97. })
  98. },
  99. //本地验签
  100. async localVerify(form) {
  101. return HcApi({
  102. url: '/api/blade-business/informationWriteQuery/localVerify',
  103. method: 'post',
  104. params: form,
  105. responseType: 'blob',
  106. })
  107. },
  108. //在线验签
  109. async onlineVerify(form) {
  110. return HcApi({
  111. url: '/api/blade-business/informationWriteQuery/onlineVerify',
  112. method: 'post',
  113. params: form,
  114. })
  115. },
  116. //输入框查询合同段树
  117. async searchContractTree(form) {
  118. return HcApi({
  119. url: '/api/blade-business/informationWriteQuery/searchContractTree',
  120. method: 'get',
  121. params: form,
  122. })
  123. },
  124. //获取合同段树所有数据
  125. async getTreeall(form) {
  126. return HcApi({
  127. url: '/api/blade-manager/contractInfo/tree-all',
  128. method: 'get',
  129. params: form,
  130. })
  131. },
  132. //获取监理合同段树所有数据
  133. async getTreeallJl(form) {
  134. return HcApi({
  135. url: '/api/blade-manager/contractInfo/tree-all-jl',
  136. method: 'get',
  137. params: form,
  138. })
  139. },
  140. //获取流程状态
  141. async getFirstTaskStatus(form) {
  142. return HcApi({
  143. url: '/api/blade-business/task/query-task-type-status?typeOrStatus=first_task_status',
  144. method: 'get',
  145. params: form,
  146. })
  147. },
  148. //一键重签
  149. async reSigningEVisa(form) {
  150. return HcApi({
  151. url: '/api/blade-business/task/reSigningEVisa',
  152. method: 'post',
  153. data: form,
  154. })
  155. },
  156. async reSigningEVisaStatus0(form) {
  157. return HcApi({
  158. url: '/api/blade-business/task/reSigningEVisaStatus0',
  159. method: 'post',
  160. data: form,
  161. })
  162. },
  163. //重置文件题名
  164. //预览文件题名接口
  165. //文件题名确认修改接口
  166. async flushQueryName(form) {
  167. return HcApi({
  168. url: '/api/blade-business/informationWriteQuery/flushQueryName',
  169. method: 'post',
  170. data: form,
  171. })
  172. },
  173. async previewNodeName(form) {
  174. return HcApi({
  175. url: '/api/blade-business/informationWriteQuery/previewNodeName',
  176. method: 'post',
  177. data: form,
  178. })
  179. },
  180. async getNameRuleList(form) {
  181. return HcApi({
  182. url: '/api/blade-business/informationWriteQuery/getNameRuleList',
  183. method: 'post',
  184. data: form,
  185. })
  186. },
  187. }