wbs.js 13 KB

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