wbs.js 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  1. import { httpApi } from '../../request/httpApi'
  2. import { getTokenHeader } from '~src/api/request/header'
  3. export default {
  4. //新增或删除 合同段划分树首件关联
  5. async wbsTreeFirstSave(form, msg = true) {
  6. return httpApi({
  7. url: '/api/blade-business/treeContractFirst/saveOrDelete',
  8. method: 'post',
  9. params: form,
  10. }, msg)
  11. },
  12. //修改树节点
  13. async wbsTreeUpdateNode(form, msg = true) {
  14. return httpApi({
  15. url: '/api/blade-business/informationWriteQuery/updateContractNodeParameter',
  16. method: 'post',
  17. params: form,
  18. }, msg)
  19. },
  20. //导图结构树节点查询
  21. async queryMappingStructureTree(form, msg = true) {
  22. return httpApi({
  23. url: '/api/blade-business/informationWriteQuery/queryMappingStructureTree',
  24. method: 'get',
  25. params: form,
  26. }, msg)
  27. },
  28. //保存或修改节点上传的图纸记录
  29. async saveContractTreeDrawings(form, msg = true) {
  30. return httpApi({
  31. url: '/api/blade-business/contractTreeDrawings/saveContractTreeDrawings',
  32. method: 'post',
  33. params: form,
  34. }, msg)
  35. },
  36. //删除节点
  37. async removeContractTreeNode(form, msg = true) {
  38. return httpApi({
  39. url: '/api/blade-business/informationWriteQuery/removeContractTreeNode',
  40. method: 'post',
  41. params: form,
  42. }, msg)
  43. },
  44. //查询当前节点下所有元素表信息
  45. async searchNodeAllTable(form, msg = true) {
  46. return httpApi({
  47. url: '/api/blade-manager/wbsTreeContract/search-node-tables',
  48. method: 'get',
  49. params: form,
  50. }, msg)
  51. },
  52. //清表生成html
  53. async getExcelHtml(form, msg = true) {
  54. return httpApi({
  55. url: '/api/blade-manager/exceltab/get-excel-html_buss',
  56. method: 'get',
  57. params: form,
  58. }, msg)
  59. },
  60. //获取按键切换输入框的key列表
  61. async getHtmlBussCols(form, msg = true) {
  62. return httpApi({
  63. url: '/api/blade-manager/exceltab/get-html-buss-cols',
  64. method: 'get',
  65. params: form,
  66. }, msg)
  67. },
  68. //填报页面数据保存
  69. async saveExcelBussData(form, msg = true) {
  70. return httpApi({
  71. url: '/api/blade-manager/exceltab/save_buss_data',
  72. method: 'post',
  73. data: form,
  74. }, msg)
  75. },
  76. //懒加载项目级工程划分树
  77. async queryWbsTreePrivateByProjectIdAndId(form, msg = true) {
  78. return httpApi({
  79. url: '/api/blade-business/informationWriteQuery/queryWbsTreePrivateByProjectIdAndId',
  80. method: 'post',
  81. params: form,
  82. }, msg)
  83. },
  84. async queryWbsTreeContractByContractIdAndId(form, msg = true) {
  85. return httpApi({
  86. url: '/api/blade-manager/contractInfo/add-node-tree',
  87. method: 'get',
  88. params: form,
  89. }, msg)
  90. },
  91. //新增节点及其子节点
  92. async saveContractTreeNode(form, msg = true) {
  93. return httpApi({
  94. url: '/api/blade-business/informationWriteQuery/saveContractTreeNode',
  95. method: 'post',
  96. data: form,
  97. }, msg)
  98. },
  99. //复制节点
  100. async copyContractTreeNode(form, msg = true) {
  101. return httpApi({
  102. url: '/api/blade-business/informationWriteQuery/copyContractTreeNode',
  103. method: 'post',
  104. data: form,
  105. }, msg)
  106. },
  107. //自定义排序
  108. async diySortTreeNode(form, msg = true) {
  109. return httpApi({
  110. url: '/api/blade-business/informationWriteQuery/diySort',
  111. method: 'post',
  112. data: form,
  113. }, msg)
  114. },
  115. //获取表单数据
  116. async getBussDataInfo(form, msg = true) {
  117. return httpApi({
  118. url: '/api/blade-manager/exceltab/get-buss-dataInfo',
  119. method: 'get',
  120. params: form,
  121. }, msg)
  122. },
  123. //查询节点状态
  124. async queryNodeStatus(form, msg = true) {
  125. return httpApi({
  126. url: '/api/blade-business/informationWriteQuery/queryNodeStatus',
  127. method: 'post',
  128. params: form,
  129. }, msg)
  130. },
  131. //查询监理节点状态
  132. async queryNodeStatusJl(form, msg = true) {
  133. return httpApi({
  134. url: '/api/blade-business/informationWriteQuery/queryNodeStatus-jl',
  135. method: 'post',
  136. params: form,
  137. }, msg)
  138. },
  139. //查询首件节点状态
  140. async queryNodeStatusSj(form, msg = true) {
  141. return httpApi({
  142. url: '/api/blade-business/informationWriteQuery/queryNodeStatus-sj',
  143. method: 'post',
  144. params: form,
  145. }, msg)
  146. },
  147. //查询试验上报按钮状态
  148. async queryNodeStatusTrial(form, msg = true) {
  149. return httpApi({
  150. url: '/api/blade-business/informationWriteQuery/queryNodeStatus-trial',
  151. method: 'post',
  152. params: form,
  153. }, msg)
  154. },
  155. //单个废除
  156. async abolishOne(form, msg = true) {
  157. return httpApi({
  158. url: '/api/blade-business/informationWriteQuery/abolishOne',
  159. method: 'post',
  160. params: form,
  161. }, msg)
  162. },
  163. //单个废除-首件
  164. async abolishOneSJ(form, msg = true) {
  165. return httpApi({
  166. url: '/api/blade-business/informationWriteQuery/abolishOne-sj',
  167. method: 'post',
  168. params: form,
  169. }, msg)
  170. },
  171. //隐藏表单
  172. async showBussTab(form, msg = true) {
  173. return httpApi({
  174. url: '/api/blade-manager/exceltab/show-buss-tab',
  175. method: 'get',
  176. params: form,
  177. }, msg)
  178. },
  179. //单表pdf预览
  180. async getBussPdfInfo(form, msg = true) {
  181. return httpApi({
  182. url: '/api/blade-manager/exceltab/get-buss-pdfInfo',
  183. method: 'get',
  184. params: form,
  185. }, msg)
  186. },
  187. //表单复制
  188. async copeBussTab(form, msg = true) {
  189. return httpApi({
  190. url: '/api/blade-manager/exceltab/cope-buss-tab',
  191. method: 'get',
  192. params: form,
  193. }, msg)
  194. },
  195. //多表预览
  196. async getBussPdfs(form, msg = true) {
  197. return httpApi({
  198. url: '/api/blade-manager/exceltab/get-buss-pdfs',
  199. method: 'get',
  200. params: form,
  201. }, msg)
  202. },
  203. //获取附件列表
  204. async getBussFileList(form, msg = true) {
  205. return httpApi({
  206. url: '/api/blade-manager/tablefile/get-buss-fileList',
  207. method: 'get',
  208. params: form,
  209. }, msg)
  210. },
  211. async getBussFileList1(form, msg = true) {
  212. return httpApi({
  213. url: '/api/blade-business/detection/self/file-list',
  214. method: 'get',
  215. params: form,
  216. }, msg)
  217. },
  218. //逻辑删除
  219. async removeBussFile(form, msg = true) {
  220. return httpApi({
  221. url: '/api/blade-manager/tablefile/remove',
  222. method: 'post',
  223. params: form,
  224. }, msg)
  225. },
  226. //删除试验文件
  227. async removeBussFile1(form, msg = true) {
  228. return httpApi({
  229. url: '/api/blade-manager/tablefile/remove-trial',
  230. method: 'post',
  231. params: form,
  232. }, msg)
  233. },
  234. //用户端删除复制信息表
  235. async removeBussTabInfo(form, msg = true) {
  236. return httpApi({
  237. url: '/api/blade-manager/exceltab/remove-buss-tabInfo',
  238. method: 'post',
  239. params: form,
  240. }, msg)
  241. },
  242. //复制节点填报数据
  243. async copyContractNodeSubmitBusinessData(form, msg = true) {
  244. return httpApi({
  245. url: '/api/blade-business/informationWriteQuery/copyContractNodeSubmitBusinessData',
  246. method: 'post',
  247. data: form,
  248. }, msg)
  249. },
  250. //输入框查询合同段树
  251. async searchContractTree(form, msg = true) {
  252. return httpApi({
  253. url: '/api/blade-business/informationWriteQuery/searchContractTree',
  254. method: 'get',
  255. params: form,
  256. }, msg)
  257. },
  258. //设计值计算
  259. async queryFormulaRange(form, msg = true) {
  260. return httpApi({
  261. url: '/api/blade-manager/formula/range',
  262. method: 'get',
  263. params: form,
  264. }, msg)
  265. },
  266. //获取文件题名
  267. async queryDocumentTitle(form, msg = true) {
  268. return httpApi({
  269. url: '/api/blade-business/informationWriteQuery/queryDocumentTitle',
  270. method: 'get',
  271. params: form,
  272. }, msg)
  273. },
  274. //查询公式参数面板
  275. async queryPanel(form, msg = true) {
  276. return httpApi({
  277. url: '/api/blade-manager/formula/panel',
  278. method: 'get',
  279. params: form,
  280. }, msg)
  281. },
  282. //保存公式参数
  283. async savePanel(form, msg = true) {
  284. return httpApi({
  285. url: '/api/blade-manager/formula/panel-save',
  286. method: 'post',
  287. data: form,
  288. }, msg)
  289. },
  290. //同步质检资料
  291. async syncTbadata(form, msg = true) {
  292. return httpApi({
  293. url: '/api/blade-manager/wbsTreeContract/sync-tab-data',
  294. method: 'post',
  295. params: form,
  296. }, msg)
  297. },
  298. //获取表单详情
  299. async getWbsContractById(form, msg = true) {
  300. return httpApi({
  301. url: '/api/blade-manager/wbsTreeContract/getWbsContractById',
  302. method: 'post',
  303. params: form,
  304. }, msg)
  305. },
  306. //查询当前节点下所有表的附件信息
  307. async tablesAndFile(form, msg = true) {
  308. return httpApi({
  309. url: '/api/blade-manager/wbsTreeContract/search-node-tablesAndFile',
  310. method: 'get',
  311. params: form,
  312. }, msg)
  313. },
  314. //清除表单信息
  315. async rmTabdataInfo(form, msg = true) {
  316. return httpApi({
  317. url: '/api/blade-manager/exceltab/rm-tabdata-info',
  318. method: 'get',
  319. params: form,
  320. }, msg)
  321. },
  322. //下载模板
  323. async downloadExcel(form, msg = true) {
  324. return httpApi({
  325. url: '/api/blade-manager/wbsTreeContract/download-excel',
  326. method: 'get',
  327. responseType: 'blob',
  328. params: form,
  329. }, msg)
  330. },
  331. //导入模板
  332. async importExcel(form, msg = true) {
  333. return httpApi({
  334. url: '/api/blade-manager/wbsTreeContract/import-excel',
  335. method: 'post',
  336. data: form,
  337. }, msg)
  338. },
  339. }