123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432 |
- import { httpApi } from '../../request/httpApi'
- import { getTokenHeader } from '~src/api/request/header'
- export default {
- //新增或删除 合同段划分树首件关联
- async wbsTreeFirstSave(form, msg = true) {
- return httpApi({
- url: '/api/blade-business/treeContractFirst/saveOrDelete',
- method: 'post',
- params: form,
- }, msg)
- },
- //修改树节点
- async wbsTreeUpdateNode(form, msg = true) {
- return httpApi({
- url: '/api/blade-business/informationWriteQuery/updateContractNodeParameter',
- method: 'post',
- params: form,
- }, msg)
- },
- //导图结构树节点查询
- // async queryMappingStructureTree(form, msg = true) {
- // return httpApi({
- // url: '/api/blade-business/informationWriteQuery/queryMappingStructureTree',
- // method: 'get',
- // params: form,
- // }, msg)
- // },
- async queryMappingStructureTree(form, msg = true) {
- return httpApi({
- url: '/api/blade-user/wbs/lazyQueryContractWbsTree',
- method: 'get',
- params: form,
- }, msg)
- },
- //保存或修改节点上传的图纸记录
- async saveContractTreeDrawings(form, msg = true) {
- return httpApi({
- url: '/api/blade-business/contractTreeDrawings/saveContractTreeDrawings',
- method: 'post',
- params: form,
- }, msg)
- },
- //删除节点
- async removeContractTreeNode(form, msg = true) {
- return httpApi({
- url: '/api/blade-business/informationWriteQuery/removeContractTreeNode',
- method: 'post',
- params: form,
- }, msg)
- },
- //查询当前节点下所有元素表信息
- async searchNodeAllTable(form, msg = true) {
- return httpApi({
- url: '/api/blade-manager/wbsTreeContract/search-node-tables',
- method: 'get',
- params: form,
- }, msg)
- },
- //清表生成html
- async getExcelHtml(form, msg = true) {
- return httpApi({
- url: '/api/blade-manager/exceltab/get-excel-html_buss',
- method: 'get',
- params: form,
- }, msg)
- },
- //获取按键切换输入框的key列表
- async getHtmlBussCols(form, msg = true) {
- return httpApi({
- url: '/api/blade-manager/exceltab/get-html-buss-cols',
- method: 'get',
- params: form,
- }, msg)
- },
- //填报页面数据保存
- async saveExcelBussData(form, msg = true) {
- return httpApi({
- url: '/api/blade-manager/exceltab/save_buss_data',
- method: 'post',
- data: form,
- }, msg)
- },
- //懒加载项目级工程划分树
- async queryWbsTreePrivateByProjectIdAndId(form, msg = true) {
- return httpApi({
- url: '/api/blade-business/informationWriteQuery/queryWbsTreePrivateByProjectIdAndId',
- method: 'post',
- params: form,
- }, msg)
- },
- async queryWbsTreeContractByContractIdAndId(form, msg = true) {
- return httpApi({
- url: '/api/blade-manager/contractInfo/add-node-tree',
- method: 'get',
- params: form,
- }, msg)
- },
- //新增自定义节点项目全加载树
- async queryPriateTree(form, msg = true) {
- return httpApi({
- url: '/apiblade-user/wbs/private/tree',
- method: 'get',
- params: form,
- }, msg)
- },
- //新增节点及其子节点
- async saveContractTreeNode(form, msg = true) {
- return httpApi({
- url: '/api/blade-business/informationWriteQuery/saveContractTreeNode',
- method: 'post',
- data: form,
- }, msg)
- },
- //新增自定义节点
- async saveCustomAddContractNode(form, msg = true) {
- return httpApi({
- url: '/api/blade-business/informationWriteQuery/customAddContractNode',
- method: 'post',
- data: form,
- }, msg)
- },
- //复制节点
- async copyContractTreeNode(form, msg = true) {
- return httpApi({
- url: '/api/blade-business/informationWriteQuery/copyContractTreeNode',
- method: 'post',
- data: form,
- }, msg)
- },
- //自定义排序
- async diySortTreeNode(form, msg = true) {
- return httpApi({
- url: '/api/blade-business/informationWriteQuery/diySort',
- method: 'post',
- data: form,
- }, msg)
- },
- //获取表单数据
- async getBussDataInfo(form, msg = true) {
- return httpApi({
- url: '/api/blade-manager/exceltab/get-buss-dataInfo',
- method: 'get',
- params: form,
- }, msg)
- },
- //查询节点状态
- async queryNodeStatus(form, msg = true) {
- return httpApi({
- url: '/api/blade-business/informationWriteQuery/queryNodeStatus',
- method: 'post',
- params: form,
- }, msg)
- },
- //查询监理节点状态
- async queryNodeStatusJl(form, msg = true) {
- return httpApi({
- url: '/api/blade-business/informationWriteQuery/queryNodeStatus-jl',
- method: 'post',
- params: form,
- }, msg)
- },
- //查询首件节点状态
- async queryNodeStatusSj(form, msg = true) {
- return httpApi({
- url: '/api/blade-business/informationWriteQuery/queryNodeStatus-sj',
- method: 'post',
- params: form,
- }, msg)
- },
- //查询试验上报按钮状态
- async queryNodeStatusTrial(form, msg = true) {
- return httpApi({
- url: '/api/blade-business/informationWriteQuery/queryNodeStatus-trial',
- method: 'post',
- params: form,
- }, msg)
- },
- //单个废除
- async abolishOne(form, msg = true) {
- return httpApi({
- url: '/api/blade-business/informationWriteQuery/abolishOne',
- method: 'post',
- params: form,
- }, msg)
- },
- //单个废除-首件
- async abolishOneSJ(form, msg = true) {
- return httpApi({
- url: '/api/blade-business/informationWriteQuery/abolishOne-sj',
- method: 'post',
- params: form,
- }, msg)
- },
- //隐藏表单
- async showBussTab(form, msg = true) {
- return httpApi({
- url: '/api/blade-manager/exceltab/show-buss-tab',
- method: 'get',
- params: form,
- }, msg)
- },
- //单表pdf预览
- async getBussPdfInfo(form, msg = true) {
- return httpApi({
- url: '/api/blade-manager/exceltab/get-buss-pdfInfo',
- method: 'get',
- params: form,
- }, msg)
- },
- //表单复制
- async copeBussTab(form, msg = true) {
- return httpApi({
- url: '/api/blade-manager/exceltab/cope-buss-tab',
- method: 'get',
- params: form,
- }, msg)
- },
- //多表预览
- async getBussPdfs(form, msg = true) {
- return httpApi({
- url: '/api/blade-manager/exceltab/get-buss-pdfs',
- method: 'get',
- params: form,
- }, msg)
- },
- //获取附件列表
- async getBussFileList(form, msg = true) {
- return httpApi({
- url: '/api/blade-manager/tablefile/get-buss-fileList',
- method: 'get',
- params: form,
- }, msg)
- },
- //获取附件添加列表
- async selectTableFileListByTen(form, msg = true) {
- return httpApi({
- url: '/api/blade-manager/tablefile/selectTableFileListByTen',
- method: 'get',
- params: form,
- }, msg)
- },
- //逻辑附件添加
- async delTabById(form, msg = true) {
- return httpApi({
- url: '/api/blade-manager/tablefile/delTabById',
- method: 'post',
- params: form,
- }, msg)
- },
- async getBussFileList1(form, msg = true) {
- return httpApi({
- url: '/api/blade-business/detection/self/file-list',
- method: 'get',
- params: form,
- }, msg)
- },
- //逻辑删除
- async removeBussFile(form, msg = true) {
- return httpApi({
- url: '/api/blade-manager/tablefile/remove',
- method: 'post',
- params: form,
- }, msg)
- },
- //删除试验文件
- async removeBussFile1(form, msg = true) {
- return httpApi({
- url: '/api/blade-manager/tablefile/remove-trial',
- method: 'post',
- params: form,
- }, msg)
- },
- //用户端删除复制信息表
- async removeBussTabInfo(form, msg = true) {
- return httpApi({
- url: '/api/blade-manager/exceltab/remove-buss-tabInfo',
- method: 'post',
- params: form,
- }, msg)
- },
- //复制节点填报数据
- async copyContractNodeSubmitBusinessData(form, msg = true) {
- return httpApi({
- url: '/api/blade-business/informationWriteQuery/copyContractNodeSubmitBusinessData',
- method: 'post',
- data: form,
- }, msg)
- },
- //输入框查询合同段树
- async searchContractTree(form, msg = true) {
- return httpApi({
- url: '/api/blade-business/informationWriteQuery/searchContractTree',
- method: 'get',
- params: form,
- }, msg)
- },
- //设计值计算
- async queryFormulaRange(form, msg = true) {
- return httpApi({
- url: '/api/blade-manager/formula/range',
- method: 'get',
- params: form,
- }, msg)
- },
- //获取文件题名
- async queryDocumentTitle(form, msg = true) {
- return httpApi({
- url: '/api/blade-business/informationWriteQuery/queryDocumentTitle',
- method: 'get',
- params: form,
- }, msg)
- },
- //查询公式参数面板
- async queryPanel(form, msg = true) {
- return httpApi({
- url: '/api/blade-manager/formula/panel',
- method: 'get',
- params: form,
- }, msg)
- },
- //保存公式参数
- async savePanel(form, msg = true) {
- return httpApi({
- url: '/api/blade-manager/formula/panel-save',
- method: 'post',
- data: form,
- }, msg)
- },
- //同步质检资料
- async syncTbadata(form, msg = true) {
- return httpApi({
- url: '/api/blade-manager/wbsTreeContract/sync-tab-data',
- method: 'post',
- params: form,
- }, msg)
- },
- //获取表单详情
- async getWbsContractById(form, msg = true) {
- return httpApi({
- url: '/api/blade-manager/wbsTreeContract/getWbsContractById',
- method: 'post',
- params: form,
- }, msg)
- },
- //查询当前节点下所有表的附件信息
- async tablesAndFile(form, msg = true) {
- return httpApi({
- url: '/api/blade-manager/wbsTreeContract/search-node-tablesAndFile',
- method: 'get',
- params: form,
- }, msg)
- },
- //清除表单信息
- async rmTabdataInfo(form, msg = true) {
- return httpApi({
- url: '/api/blade-manager/exceltab/rm-tabdata-info',
- method: 'get',
- params: form,
- }, msg)
- },
- //下载模板
- async downloadExcel(form, msg = true) {
- return httpApi({
- url: '/api/blade-manager/wbsTreeContract/download-excel',
- method: 'get',
- responseType: 'blob',
- params: form,
- }, msg)
- },
- //导入模板
- async importExcel(form, msg = true) {
- return httpApi({
- url: '/api/blade-manager/wbsTreeContract/import-excel',
- method: 'post',
- data: form,
- }, msg)
- },
- //计算含水率
- async calculateWater(form, msg = true) {
- return httpApi({
- url: '/api/blade-manager/mixProportion/calculateWater',
- method: 'post',
- data: form,
- }, msg)
- },
- //批量保存
- async save_nodeId(form, msg = true) {
- return httpApi({
- url: '/api/blade-manager/exceltab/save_nodeId',
- method: 'post',
- params: form,
- }, msg)
- },
- //获取图纸
- async getTreeDrawings(form, msg = true) {
- return httpApi({
- url: '/api/blade-business/contractTreeDrawings/getTreeDrawings',
- method: 'get',
- params: form,
- }, msg)
- },
- //保存用户填报历史
- async saveUserHistory(form, msg = true) {
- return httpApi({
- url: '/api/blade-manager/userHistory/saveUserHistory',
- method: 'post',
- data: form,
- }, msg)
- },
- //回到上次填报历史
- async getUserHistory(form, msg = true) {
- return httpApi({
- url: '/api/blade-manager/userHistory/getUserHistory',
- method: 'get',
- params: form,
- }, msg)
- },
- //评定汇总
- async evaluateTotal(form, msg = true) {
- return httpApi({
- url: '/api/blade-manager/formula/evaluate',
- method: 'get',
- params: form,
- }, msg)
- },
- }
|