wbs.js 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448
  1. import { HcApi } from '../../request/index'
  2. import { getHeader } from 'hc-vue3-ui'
  3. export default {
  4. //新增或删除 合同段划分树首件关联
  5. async wbsTreeFirstSave(form) {
  6. return HcApi({
  7. url: '/api/blade-business/treeContractFirst/saveOrDelete',
  8. method: 'post',
  9. params: form,
  10. })
  11. },
  12. //修改树节点
  13. async wbsTreeUpdateNode(form) {
  14. return HcApi({
  15. url: '/api/blade-business/informationWriteQuery/updateContractNodeParameter',
  16. method: 'post',
  17. params: form,
  18. })
  19. },
  20. //导图结构树节点查询
  21. // async queryMappingStructureTree(form) {
  22. // return HcApi({
  23. // url: '/api/blade-business/informationWriteQuery/queryMappingStructureTree',
  24. // method: 'get',
  25. // params: form,
  26. // })
  27. // },
  28. async queryMappingStructureTree(form) {
  29. return HcApi({
  30. url: '/api/blade-user/wbs/lazyQueryContractWbsTree',
  31. method: 'get',
  32. params: form,
  33. })
  34. },
  35. //保存或修改节点上传的图纸记录
  36. async saveContractTreeDrawings(form) {
  37. return HcApi({
  38. url: '/api/blade-business/contractTreeDrawings/saveContractTreeDrawings',
  39. method: 'post',
  40. params: form,
  41. })
  42. },
  43. //删除节点
  44. async removeContractTreeNode(form) {
  45. return HcApi({
  46. url: '/api/blade-business/informationWriteQuery/removeContractTreeNode',
  47. method: 'post',
  48. params: form,
  49. }, false)
  50. },
  51. //查询当前节点下所有元素表信息
  52. async searchNodeAllTable(form) {
  53. return HcApi({
  54. url: '/api/blade-manager/wbsTreeContract/search-node-tables',
  55. method: 'get',
  56. params: form,
  57. })
  58. },
  59. //清表生成html
  60. async getExcelHtml(form) {
  61. return HcApi({
  62. url: '/api/blade-manager/exceltab/get-excel-html_buss',
  63. method: 'get',
  64. params: form,
  65. })
  66. },
  67. //获取按键切换输入框的key列表
  68. async getHtmlBussCols(form) {
  69. return HcApi({
  70. url: '/api/blade-manager/exceltab/get-html-buss-cols',
  71. method: 'get',
  72. params: form,
  73. })
  74. },
  75. //填报页面数据保存
  76. async saveExcelBussData(form) {
  77. return HcApi({
  78. url: '/api/blade-manager/exceltab/save_buss_data',
  79. method: 'post',
  80. data: form,
  81. }, false)
  82. },
  83. //懒加载项目级工程划分树
  84. async queryWbsTreePrivateByProjectIdAndId(form) {
  85. return HcApi({
  86. url: '/api/blade-business/informationWriteQuery/queryWbsTreePrivateByProjectIdAndId',
  87. method: 'post',
  88. params: form,
  89. })
  90. },
  91. async queryWbsTreeContractByContractIdAndId(form) {
  92. return HcApi({
  93. url: '/api/blade-manager/contractInfo/add-node-tree',
  94. method: 'get',
  95. params: form,
  96. })
  97. },
  98. //新增自定义节点项目全加载树
  99. async queryPriateTree(form) {
  100. return HcApi({
  101. url: '/api/blade-user/wbs/private/tree',
  102. method: 'get',
  103. params: form,
  104. })
  105. },
  106. //新增节点及其子节点
  107. async saveContractTreeNode(form) {
  108. return HcApi({
  109. url: '/api/blade-business/informationWriteQuery/saveContractTreeNode',
  110. method: 'post',
  111. data: form,
  112. })
  113. },
  114. //新增自定义节点
  115. async saveCustomAddContractNode(form) {
  116. return HcApi({
  117. url: '/api/blade-business/informationWriteQuery/customAddContractNode',
  118. method: 'post',
  119. data: form,
  120. })
  121. },
  122. //复制节点
  123. async copyContractTreeNode(form) {
  124. return HcApi({
  125. url: '/api/blade-business/informationWriteQuery/copyContractTreeNode',
  126. method: 'post',
  127. data: form,
  128. })
  129. },
  130. //自定义排序
  131. async diySortTreeNode(form) {
  132. return HcApi({
  133. url: '/api/blade-business/informationWriteQuery/diySort',
  134. method: 'post',
  135. data: form,
  136. }, false)
  137. },
  138. //获取表单数据
  139. async getBussDataInfo(form) {
  140. return HcApi({
  141. url: '/api/blade-manager/exceltab/get-buss-dataInfo',
  142. method: 'get',
  143. params: form,
  144. })
  145. },
  146. //查询节点状态
  147. async queryNodeStatus(form) {
  148. return HcApi({
  149. url: '/api/blade-business/informationWriteQuery/queryNodeStatus',
  150. method: 'post',
  151. params: form,
  152. })
  153. },
  154. //查询监理节点状态
  155. async queryNodeStatusJl(form) {
  156. return HcApi({
  157. url: '/api/blade-business/informationWriteQuery/queryNodeStatus-jl',
  158. method: 'post',
  159. params: form,
  160. })
  161. },
  162. //查询首件节点状态
  163. async queryNodeStatusSj(form) {
  164. return HcApi({
  165. url: '/api/blade-business/informationWriteQuery/queryNodeStatus-sj',
  166. method: 'post',
  167. params: form,
  168. })
  169. },
  170. //查询试验上报按钮状态
  171. async queryNodeStatusTrial(form) {
  172. return HcApi({
  173. url: '/api/blade-business/informationWriteQuery/queryNodeStatus-trial',
  174. method: 'post',
  175. params: form,
  176. })
  177. },
  178. //单个废除
  179. async abolishOne(form) {
  180. return HcApi({
  181. url: '/api/blade-business/informationWriteQuery/abolishOne',
  182. method: 'post',
  183. params: form,
  184. })
  185. },
  186. //单个废除-首件
  187. async abolishOneSJ(form) {
  188. return HcApi({
  189. url: '/api/blade-business/informationWriteQuery/abolishOne-sj',
  190. method: 'post',
  191. params: form,
  192. })
  193. },
  194. //隐藏表单
  195. async showBussTab(form) {
  196. return HcApi({
  197. url: '/api/blade-manager/exceltab/show-buss-tab',
  198. method: 'get',
  199. params: form,
  200. }, false)
  201. },
  202. //单表pdf预览
  203. async getBussPdfInfo(form) {
  204. return HcApi({
  205. url: '/api/blade-manager/exceltab/get-buss-pdfInfo',
  206. method: 'get',
  207. params: form,
  208. })
  209. },
  210. //表单复制
  211. async copeBussTab(form) {
  212. return HcApi({
  213. url: '/api/blade-manager/exceltab/cope-buss-tab',
  214. method: 'get',
  215. params: form,
  216. }, false)
  217. },
  218. //多表预览
  219. async getBussPdfs(form) {
  220. return HcApi({
  221. url: '/api/blade-manager/exceltab/get-buss-pdfs',
  222. method: 'get',
  223. params: form,
  224. })
  225. },
  226. //获取附件列表
  227. async getBussFileList(form) {
  228. return HcApi({
  229. url: '/api/blade-manager/tablefile/get-buss-fileList',
  230. method: 'get',
  231. params: form,
  232. })
  233. },
  234. //获取附件添加列表
  235. async selectTableFileListByTen(form) {
  236. return HcApi({
  237. url: '/api/blade-manager/tablefile/selectTableFileListByTen',
  238. method: 'get',
  239. params: form,
  240. })
  241. },
  242. //逻辑附件添加
  243. async delTabById(form) {
  244. return HcApi({
  245. url: '/api/blade-manager/tablefile/delTabById',
  246. method: 'post',
  247. params: form,
  248. })
  249. },
  250. async getBussFileList1(form) {
  251. return HcApi({
  252. url: '/api/blade-business/detection/self/file-list',
  253. method: 'get',
  254. params: form,
  255. })
  256. },
  257. //逻辑删除
  258. async removeBussFile(form) {
  259. return HcApi({
  260. url: '/api/blade-manager/tablefile/remove',
  261. method: 'post',
  262. params: form,
  263. }, false)
  264. },
  265. //删除试验文件
  266. async removeBussFile1(form) {
  267. return HcApi({
  268. url: '/api/blade-manager/tablefile/remove-trial',
  269. method: 'post',
  270. params: form,
  271. })
  272. },
  273. //用户端删除复制信息表
  274. async removeBussTabInfo(form) {
  275. return HcApi({
  276. url: '/api/blade-manager/exceltab/remove-buss-tabInfo',
  277. method: 'post',
  278. params: form,
  279. }, false)
  280. },
  281. //复制节点填报数据
  282. async copyContractNodeSubmitBusinessData(form) {
  283. return HcApi({
  284. url: '/api/blade-business/informationWriteQuery/copyContractNodeSubmitBusinessData',
  285. method: 'post',
  286. data: form,
  287. })
  288. },
  289. //输入框查询合同段树
  290. async searchContractTree(form) {
  291. return HcApi({
  292. url: '/api/blade-business/informationWriteQuery/searchContractTree',
  293. method: 'get',
  294. params: form,
  295. })
  296. },
  297. //设计值计算
  298. async queryFormulaRange(form) {
  299. return HcApi({
  300. url: '/api/blade-manager/formula/range',
  301. method: 'get',
  302. params: form,
  303. })
  304. },
  305. //获取文件题名
  306. async queryDocumentTitle(form) {
  307. return HcApi({
  308. url: '/api/blade-business/informationWriteQuery/queryDocumentTitle',
  309. method: 'get',
  310. params: form,
  311. })
  312. },
  313. //查询公式参数面板
  314. async queryPanel(form) {
  315. return HcApi({
  316. url: '/api/blade-manager/formula/panel',
  317. method: 'get',
  318. params: form,
  319. })
  320. },
  321. //保存公式参数
  322. async savePanel(form) {
  323. return HcApi({
  324. url: '/api/blade-manager/formula/panel-save',
  325. method: 'post',
  326. data: form,
  327. })
  328. },
  329. //同步质检资料
  330. async syncTbadata(form) {
  331. return HcApi({
  332. url: '/api/blade-manager/wbsTreeContract/sync-tab-data',
  333. method: 'post',
  334. params: form,
  335. })
  336. },
  337. //获取表单详情
  338. async getWbsContractById(form) {
  339. return HcApi({
  340. url: '/api/blade-manager/wbsTreeContract/getWbsContractById',
  341. method: 'post',
  342. params: form,
  343. })
  344. },
  345. //查询当前节点下所有表的附件信息
  346. async tablesAndFile(form) {
  347. return HcApi({
  348. url: '/api/blade-manager/wbsTreeContract/search-node-tablesAndFile',
  349. method: 'get',
  350. params: form,
  351. })
  352. },
  353. //清除表单信息
  354. async rmTabdataInfo(form) {
  355. return HcApi({
  356. url: '/api/blade-manager/exceltab/rm-tabdata-info',
  357. method: 'get',
  358. params: form,
  359. }, false)
  360. },
  361. //下载模板
  362. async downloadExcel(form) {
  363. return HcApi({
  364. url: '/api/blade-manager/wbsTreeContract/download-excel',
  365. method: 'get',
  366. responseType: 'blob',
  367. params: form,
  368. })
  369. },
  370. //导入模板
  371. async importExcel(form) {
  372. return HcApi({
  373. url: '/api/blade-manager/wbsTreeContract/import-excel',
  374. method: 'post',
  375. data: form,
  376. })
  377. },
  378. //计算含水率
  379. async calculateWater(form) {
  380. return HcApi({
  381. url: '/api/blade-manager/mixProportion/calculateWater',
  382. method: 'post',
  383. data: form,
  384. })
  385. },
  386. //批量保存
  387. async save_nodeId(form) {
  388. return HcApi({
  389. url: '/api/blade-manager/exceltab/save_nodeId',
  390. method: 'post',
  391. params: form,
  392. })
  393. },
  394. //批量隐藏节点
  395. async updateNodeStates(form) {
  396. return HcApi({
  397. url: '/api/blade-manager/wbsTreeContract/updateNodeStates',
  398. method: 'post',
  399. params: form,
  400. })
  401. },
  402. //获取图纸
  403. async getTreeDrawings(form) {
  404. return HcApi({
  405. url: '/api/blade-business/contractTreeDrawings/getTreeDrawings',
  406. method: 'get',
  407. params: form,
  408. })
  409. },
  410. //保存用户填报历史
  411. async saveUserHistory(form) {
  412. return HcApi({
  413. url: '/api/blade-manager/userHistory/saveUserHistory',
  414. method: 'post',
  415. data: form,
  416. })
  417. },
  418. //回到上次填报历史
  419. async getUserHistory(form) {
  420. return HcApi({
  421. url: '/api/blade-manager/userHistory/getUserHistory',
  422. method: 'get',
  423. params: form,
  424. })
  425. },
  426. //评定汇总
  427. async evaluateTotal(form) {
  428. return HcApi({
  429. url: '/api/blade-manager/formula/evaluate',
  430. method: 'get',
  431. params: form,
  432. })
  433. },
  434. //排序
  435. async formTableSort(form) {
  436. return HcApi({
  437. url: '/api/blade-manager/wbsTreeContract/table-sort',
  438. method: 'post',
  439. data: form,
  440. })
  441. },
  442. }