wbs.js 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646
  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. })
  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. })
  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. })
  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. })
  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. })
  217. },
  218. //表单批量复制
  219. async copeBussTabList(form) {
  220. return HcApi({
  221. url: '/api/blade-manager/exceltab/cope-buss-tab-list',
  222. method: 'get',
  223. params: form,
  224. })
  225. },
  226. //多表预览
  227. async getBussPdfs(form) {
  228. return HcApi({
  229. url: '/api/blade-manager/exceltab/get-buss-pdfs',
  230. method: 'get',
  231. params: form,
  232. })
  233. },
  234. //获取附件列表
  235. async getBussFileList(form) {
  236. return HcApi({
  237. url: '/api/blade-manager/tablefile/get-buss-fileList',
  238. method: 'get',
  239. params: form,
  240. })
  241. },
  242. //获取附件添加列表
  243. async selectTableFileListByTen(form) {
  244. return HcApi({
  245. url: '/api/blade-manager/tablefile/selectTableFileListByTen',
  246. method: 'get',
  247. params: form,
  248. })
  249. },
  250. //逻辑附件添加
  251. async delTabById(form) {
  252. return HcApi({
  253. url: '/api/blade-manager/tablefile/delTabById',
  254. method: 'post',
  255. params: form,
  256. })
  257. },
  258. async getBussFileList1(form) {
  259. return HcApi({
  260. url: '/api/blade-business/detection/self/file-list',
  261. method: 'get',
  262. params: form,
  263. })
  264. },
  265. //逻辑删除
  266. async removeBussFile(form) {
  267. return HcApi({
  268. url: '/api/blade-manager/tablefile/remove',
  269. method: 'post',
  270. params: form,
  271. })
  272. },
  273. //删除试验文件
  274. async removeBussFile1(form) {
  275. return HcApi({
  276. url: '/api/blade-manager/tablefile/remove-trial',
  277. method: 'post',
  278. params: form,
  279. })
  280. },
  281. //用户端删除复制信息表
  282. async removeBussTabInfo(form) {
  283. return HcApi({
  284. url: '/api/blade-manager/exceltab/remove-buss-tabInfo',
  285. method: 'post',
  286. params: form,
  287. })
  288. },
  289. //复制节点填报数据
  290. async copyContractNodeSubmitBusinessData(form) {
  291. return HcApi({
  292. url: '/api/blade-business/informationWriteQuery/copyContractNodeSubmitBusinessData',
  293. method: 'post',
  294. data: form,
  295. })
  296. },
  297. //输入框查询合同段树
  298. async searchContractTree(form) {
  299. return HcApi({
  300. url: '/api/blade-business/informationWriteQuery/searchContractTree',
  301. method: 'get',
  302. params: form,
  303. })
  304. },
  305. //设计值计算
  306. async queryFormulaRange(form) {
  307. return HcApi({
  308. url: '/api/blade-manager/formula/range',
  309. method: 'get',
  310. params: form,
  311. })
  312. },
  313. //获取文件题名
  314. async queryDocumentTitle(form) {
  315. return HcApi({
  316. url: '/api/blade-business/informationWriteQuery/queryDocumentTitle',
  317. method: 'get',
  318. params: form,
  319. })
  320. },
  321. //查询公式参数面板
  322. async queryPanel(form) {
  323. return HcApi({
  324. url: '/api/blade-manager/formula/panel',
  325. method: 'get',
  326. params: form,
  327. })
  328. },
  329. //保存公式参数
  330. async savePanel(form) {
  331. return HcApi({
  332. url: '/api/blade-manager/formula/panel-save',
  333. method: 'post',
  334. data: form,
  335. })
  336. },
  337. //批量保存
  338. async savePanelList(form) {
  339. return HcApi({
  340. url: '/api/blade-manager/formula/panel-save-list',
  341. method: 'post',
  342. data: form,
  343. })
  344. },
  345. //同步质检资料
  346. async syncTbadata(form) {
  347. return HcApi({
  348. url: '/api/blade-manager/wbsTreeContract/sync-tab-data',
  349. method: 'post',
  350. params: form,
  351. })
  352. },
  353. //同步工序资料
  354. async syncWorkDate(form) {
  355. return HcApi({
  356. url: '/api/blade-manager/formula/syncWorkDate',
  357. method: 'get',
  358. params: form,
  359. })
  360. },
  361. //获取表单详情
  362. async getWbsContractById(form) {
  363. return HcApi({
  364. url: '/api/blade-manager/wbsTreeContract/getWbsContractById',
  365. method: 'post',
  366. params: form,
  367. })
  368. },
  369. //查询当前节点下所有表的附件信息
  370. async tablesAndFile(form) {
  371. return HcApi({
  372. url: '/api/blade-manager/wbsTreeContract/search-node-tablesAndFile',
  373. method: 'get',
  374. params: form,
  375. })
  376. },
  377. //清除表单信息
  378. async rmTabdataInfo(form) {
  379. return HcApi({
  380. url: '/api/blade-manager/exceltab/rm-tabdata-info',
  381. method: 'get',
  382. params: form,
  383. })
  384. },
  385. //下载模板
  386. async downloadExcel(form) {
  387. return HcApi({
  388. url: '/api/blade-manager/wbsTreeContract/download-excel',
  389. method: 'get',
  390. responseType: 'blob',
  391. params: form,
  392. })
  393. },
  394. //导入模板
  395. async importExcel(form) {
  396. return HcApi({
  397. url: '/api/blade-manager/wbsTreeContract/import-excel',
  398. method: 'post',
  399. data: form,
  400. })
  401. },
  402. //计算含水率
  403. async calculateWater(form) {
  404. return HcApi({
  405. url: '/api/blade-manager/mixProportion/calculateWater',
  406. method: 'post',
  407. data: form,
  408. })
  409. },
  410. //批量保存
  411. async save_nodeId(form) {
  412. return HcApi({
  413. url: '/api/blade-manager/exceltab/save_nodeId',
  414. method: 'post',
  415. params: form,
  416. })
  417. },
  418. //批量隐藏节点
  419. async updateNodeStates(form) {
  420. return HcApi({
  421. url: '/api/blade-manager/wbsTreeContract/updateNodeStates',
  422. method: 'post',
  423. params: form,
  424. })
  425. },
  426. //获取图纸
  427. async getTreeDrawings(form) {
  428. return HcApi({
  429. url: '/api/blade-business/contractTreeDrawings/getTreeDrawings',
  430. method: 'get',
  431. params: form,
  432. })
  433. },
  434. //保存用户填报历史
  435. async saveUserHistory(form) {
  436. return HcApi({
  437. url: '/api/blade-manager/userHistory/saveUserHistory',
  438. method: 'post',
  439. data: form,
  440. })
  441. },
  442. //回到上次填报历史
  443. async getUserHistory(form) {
  444. return HcApi({
  445. url: '/api/blade-manager/userHistory/getUserHistory',
  446. method: 'get',
  447. params: form,
  448. })
  449. },
  450. //评定汇总
  451. async evaluateTotal(form) {
  452. return HcApi({
  453. url: '/api/blade-manager/formula/evaluate',
  454. method: 'get',
  455. params: form,
  456. })
  457. },
  458. async evaluateTotalNew(form) {
  459. return HcApi({
  460. url: '/api/blade-manager/formula/newEvaluate',
  461. method: 'get',
  462. params: form,
  463. })
  464. },
  465. async evaluateIsWater(form) {
  466. return HcApi({
  467. url: '/api/blade-manager/formula/isWaterProject',
  468. method: 'get',
  469. params: form,
  470. })
  471. },
  472. //排序
  473. async formTableSort(form) {
  474. return HcApi({
  475. url: '/api/blade-manager/wbsTreeContract/table-sort',
  476. method: 'post',
  477. data: form,
  478. })
  479. },
  480. //删除节点前
  481. async removeContractTreeNodeJudge(form) {
  482. return HcApi(
  483. {
  484. url: '/api/blade-business/informationWriteQuery/removeContractTreeNodeJudge',
  485. method: 'post',
  486. params: form,
  487. },
  488. false,
  489. )
  490. },
  491. //节点导入
  492. async importTree(form) {
  493. return HcApi(
  494. {
  495. url: '/api/blade-business/informationWriteQuery/importTree',
  496. method: 'post',
  497. data: form,
  498. },
  499. false,
  500. )
  501. },
  502. //获取文件题名
  503. async getDICengNodeName(form) {
  504. return HcApi(
  505. {
  506. url: '/api/blade-business/informationWriteQuery/getDICengNodeName',
  507. method: 'get',
  508. params: form,
  509. },
  510. false,
  511. )
  512. },
  513. //附件跳转排序
  514. async sortPdf(form) {
  515. return HcApi(
  516. {
  517. url: '/api/blade-manager/tablefile/sort',
  518. method: 'post',
  519. data: form,
  520. },
  521. false,
  522. )
  523. },
  524. //上传文件
  525. async addBussFileNode(form) {
  526. return HcApi({
  527. headers: {
  528. 'Content-Type': 'multipart/form-data',
  529. },
  530. url: '/api/blade-manager/exceltab/add-bussfile-node',
  531. method: 'post',
  532. data: form,
  533. })
  534. },
  535. async addBussFile(form) {
  536. return HcApi({
  537. headers: {
  538. 'Content-Type': 'multipart/form-data',
  539. },
  540. url: '/api/blade-manager/exceltab/add-buss-file',
  541. method: 'post',
  542. data: form,
  543. })
  544. },
  545. //上传文件后排序接口
  546. async addFileSort(form) {
  547. return HcApi(
  548. {
  549. url: '/api/blade-manager/exceltab/add-bussfile-node-sort',
  550. method: 'post',
  551. data: form,
  552. },
  553. false,
  554. )
  555. },
  556. //上传文件后转pdf
  557. async previewBussfile(form) {
  558. return HcApi({
  559. headers: {
  560. 'Content-Type': 'multipart/form-data',
  561. },
  562. url: '/api/blade-manager/exceltab/previewBussfile',
  563. method: 'post',
  564. data: form,
  565. })
  566. },
  567. //删除试验关联附件
  568. async clearTrialAssociation(form) {
  569. return HcApi({
  570. url: '/api//blade-business/cyTrial/clearTrialAssociation',
  571. method: 'get',
  572. params: form,
  573. })
  574. },
  575. //批量插入编号
  576. async batchAddNumbers(form) {
  577. return HcApi({
  578. url: '/api/blade-manager/exceltab/batchAddNumbers',
  579. method: 'post',
  580. data: form,
  581. })
  582. },
  583. //获取偏差范围
  584. async getDeviationRange(form) {
  585. return HcApi({
  586. url: '/api/blade-manager/param/getDeviationRange',
  587. method: 'get',
  588. params: form,
  589. })
  590. },
  591. //设置偏差值范围
  592. async setDeviationRange(form) {
  593. return HcApi({
  594. url: '/api/blade-manager/param/setDeviationRange ',
  595. method: 'post',
  596. data: form,
  597. })
  598. },
  599. //搜索
  600. async getQueryValueByType(form) {
  601. return HcApi({
  602. url: '/api/blade-manager/wbsTree/getQueryValueByType',
  603. method: 'get',
  604. params: form,
  605. })
  606. },
  607. //公式引用
  608. async setFormulaReference(form) {
  609. return HcApi({
  610. url: '/api/blade-manager/wbsTreeContract/setFormulaReference',
  611. method: 'post',
  612. data: form,
  613. })
  614. },
  615. //获取第三方树根节点
  616. async getChildNodes(form) {
  617. return HcApi({
  618. url: '/api/blade-manager/wbsDivide/getChildNodes',
  619. method: 'get',
  620. params: form,
  621. })
  622. },
  623. //绑定阶段
  624. async batchBind(form, form2) {
  625. return HcApi({
  626. url: `/api/blade-manager/wbsDivide/batchBind?contractId=${form2.contractId}&pKeyId=${form2.pKeyId}&projectId=${form2.projectId}`,
  627. method: 'post',
  628. data: form,
  629. })
  630. },
  631. //获取公式说明
  632. async getFormulaData(form) {
  633. return HcApi({
  634. url: '/api/blade-manager/exceltab/getFormulaData',
  635. method: 'post',
  636. data: form,
  637. })
  638. },
  639. }