import { HcApi } from '../../../../request/index'

// 合同工程清单

//获取获取合同工程清单表
// export const getFormTree = (form = {}, msg = true) => HcApi({
//     url: '/api/blade-meter/contractInventoryForm/getFormTree',
//     method: 'get',
//     params: form,
// }, msg)
export const getContrInFormAllByConId = (form = {}, msg = true) => HcApi({
    url: '/api/blade-meter/contractInventoryForm/getContrInFormAllByConId',
    method: 'get',
    params: form,
}, msg)
export const getLazyFormTree = (form = {}, msg = true) => HcApi({
    url: '/api/blade-meter/contractInventoryForm/lazyTree',
    method: 'get',
    params: form,
}, msg)
//获取节点详情
export const getDetail = (form = {}, msg = true) => HcApi({
    url: '/api//blade-meter/contractInventoryForm/detail',
    method: 'get',
    params: form,
}, msg)

//导入清单
export const importExcel = (form, msg = true) => HcApi({
    url: '/api/blade-meter/contractInventoryForm/importExcel',
    method: 'post',
    data: form,
}, msg)
//新增节点
export const addNode = (form, msg = true) => HcApi({
    url: '/api/blade-meter/contractInventoryForm/add',
    method: 'post',
    data: form,
}, msg)
//修改节点
export const updateForm = (form, msg = true) => HcApi({
    url: '/api/blade-meter/contractInventoryForm/updateForm',
    method: 'post',
    data: form,
}, msg)
//排序节点
export const sortForm = (form, msg = true) => HcApi({
    url: '/api/blade-meter/contractInventoryForm/sort',
    method: 'post',
    params: form,
}, msg)
//删除节点
export const deleteNode = (form = {}, msg = true) => HcApi({
    url: '/api/blade-meter/contractInventoryForm/delete',
    method: 'get',
    params: form,
}, msg)
//获取导入模板
export const getImportTemplate = (form = {}, msg = true) => HcApi({
    url: '/api/blade-meter/contractInventoryForm/getImportTemplate',
    method: 'get',
    params: form,
}, msg)
//锁定节点
export const lockNode = (form = {}, msg = true) => HcApi({
    url: '/api/blade-meter/contractInventoryForm/lockNode',
    method: 'get',
    params: form,
}, msg)

//添加同合计量 清单
export const saveInvenFormMeter = (form, msg = true) => HcApi({
    url: '/api/blade-meter/inventoryFormMeter/saveInvenFormMeter',
    method: 'post',
    params: form,
}, msg)