wbs.js 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  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. //获取附件添加列表
  212. async selectTableFileListByTen(form, msg = true) {
  213. return httpApi({
  214. url: '/api/blade-manager/tablefile/selectTableFileListByTen',
  215. method: 'get',
  216. params: form,
  217. }, msg)
  218. },
  219. //逻辑附件添加
  220. async delTabById(form, msg = true) {
  221. return httpApi({
  222. url: '/api/blade-manager/tablefile/delTabById',
  223. method: 'post',
  224. params: form,
  225. }, msg)
  226. },
  227. async getBussFileList1(form, msg = true) {
  228. return httpApi({
  229. url: '/api/blade-business/detection/self/file-list',
  230. method: 'get',
  231. params: form,
  232. }, msg)
  233. },
  234. //逻辑删除
  235. async removeBussFile(form, msg = true) {
  236. return httpApi({
  237. url: '/api/blade-manager/tablefile/remove',
  238. method: 'post',
  239. params: form,
  240. }, msg)
  241. },
  242. //删除试验文件
  243. async removeBussFile1(form, msg = true) {
  244. return httpApi({
  245. url: '/api/blade-manager/tablefile/remove-trial',
  246. method: 'post',
  247. params: form,
  248. }, msg)
  249. },
  250. //用户端删除复制信息表
  251. async removeBussTabInfo(form, msg = true) {
  252. return httpApi({
  253. url: '/api/blade-manager/exceltab/remove-buss-tabInfo',
  254. method: 'post',
  255. params: form,
  256. }, msg)
  257. },
  258. //复制节点填报数据
  259. async copyContractNodeSubmitBusinessData(form, msg = true) {
  260. return httpApi({
  261. url: '/api/blade-business/informationWriteQuery/copyContractNodeSubmitBusinessData',
  262. method: 'post',
  263. data: form,
  264. }, msg)
  265. },
  266. //输入框查询合同段树
  267. async searchContractTree(form, msg = true) {
  268. return httpApi({
  269. url: '/api/blade-business/informationWriteQuery/searchContractTree',
  270. method: 'get',
  271. params: form,
  272. }, msg)
  273. },
  274. //设计值计算
  275. async queryFormulaRange(form, msg = true) {
  276. return httpApi({
  277. url: '/api/blade-manager/formula/range',
  278. method: 'get',
  279. params: form,
  280. }, msg)
  281. },
  282. //获取文件题名
  283. async queryDocumentTitle(form, msg = true) {
  284. return httpApi({
  285. url: '/api/blade-business/informationWriteQuery/queryDocumentTitle',
  286. method: 'get',
  287. params: form,
  288. }, msg)
  289. },
  290. //查询公式参数面板
  291. async queryPanel(form, msg = true) {
  292. return httpApi({
  293. url: '/api/blade-manager/formula/panel',
  294. method: 'get',
  295. params: form,
  296. }, msg)
  297. },
  298. //保存公式参数
  299. async savePanel(form, msg = true) {
  300. return httpApi({
  301. url: '/api/blade-manager/formula/panel-save',
  302. method: 'post',
  303. data: form,
  304. }, msg)
  305. },
  306. //同步质检资料
  307. async syncTbadata(form, msg = true) {
  308. return httpApi({
  309. url: '/api/blade-manager/wbsTreeContract/sync-tab-data',
  310. method: 'post',
  311. params: form,
  312. }, msg)
  313. },
  314. //获取表单详情
  315. async getWbsContractById(form, msg = true) {
  316. return httpApi({
  317. url: '/api/blade-manager/wbsTreeContract/getWbsContractById',
  318. method: 'post',
  319. params: form,
  320. }, msg)
  321. },
  322. //查询当前节点下所有表的附件信息
  323. async tablesAndFile(form, msg = true) {
  324. return httpApi({
  325. url: '/api/blade-manager/wbsTreeContract/search-node-tablesAndFile',
  326. method: 'get',
  327. params: form,
  328. }, msg)
  329. },
  330. //清除表单信息
  331. async rmTabdataInfo(form, msg = true) {
  332. return httpApi({
  333. url: '/api/blade-manager/exceltab/rm-tabdata-info',
  334. method: 'get',
  335. params: form,
  336. }, msg)
  337. },
  338. //下载模板
  339. async downloadExcel(form, msg = true) {
  340. return httpApi({
  341. url: '/api/blade-manager/wbsTreeContract/download-excel',
  342. method: 'get',
  343. responseType: 'blob',
  344. params: form,
  345. }, msg)
  346. },
  347. //导入模板
  348. async importExcel(form, msg = true) {
  349. return httpApi({
  350. url: '/api/blade-manager/wbsTreeContract/import-excel',
  351. method: 'post',
  352. data: form,
  353. }, msg)
  354. },
  355. //计算含水率
  356. async calculateWater(form, msg = true) {
  357. return httpApi({
  358. url: '/api/blade-manager/mixProportion/calculateWater',
  359. method: 'post',
  360. data: form,
  361. }, msg)
  362. },
  363. //批量保存
  364. async save_nodeId(form, msg = true) {
  365. return httpApi({
  366. url: '/api/blade-manager/exceltab/save_nodeId',
  367. method: 'post',
  368. params: form,
  369. }, msg)
  370. },
  371. //获取图纸
  372. async getTreeDrawings(form, msg = true) {
  373. return httpApi({
  374. url: '/api/blade-business/contractTreeDrawings/getTreeDrawings',
  375. method: 'get',
  376. params: form,
  377. }, msg)
  378. },
  379. //保存用户填报历史
  380. async saveUserHistory(form, msg = true) {
  381. return httpApi({
  382. url: '/api/blade-manager/userHistory/saveUserHistory',
  383. method: 'post',
  384. data: form,
  385. }, msg)
  386. },
  387. //回到上次填报历史
  388. async getUserHistory(form, msg = true) {
  389. return httpApi({
  390. url: '/api/blade-manager/userHistory/getUserHistory',
  391. method: 'get',
  392. params: form,
  393. }, msg)
  394. },
  395. //评定汇总
  396. async evaluateTotal(form, msg = true) {
  397. return httpApi({
  398. url: '/api/blade-manager/formula/evaluate',
  399. method: 'get',
  400. params: form,
  401. }, msg)
  402. },
  403. }