import { getAction, deleteAction, putAction, postAction, httpAction } from '@/api/manage'

// const addRole = (params)=>postAction("/sys/role/add",params);
// const checkRoleCode = (params)=>getAction("/sys/role/checkRoleCode",params);
// const addPermission= (params)=>postAction("/sys/permission/add",params);
// const deleteByDepartId   = (params)=>deleteAction("/sys/sysDepart/delete",params);

// 项目成本自定义列
const columnsSelect = (params)=>getAction("/customColumns/customColumns/select", params);
const columnsEdit = (params)=>postAction("/customColumns/customColumns/update", params);

// 项目成本成本汇集
// const projectCostHuiji = (params)=>getAction("/projectCostHuiji/projectCostHuiji/list", params);

// 项目成本成本详情-合同额
const proCostContractdetail = (params)=>getAction("/xmcbDetail/comContractInfoExchange/getCrmHteDetail", params);
// 项目成本成本详情-已收款
const proCostYSKdetail = (params)=>getAction("/xmcbDetail/comContractInfoExchange/getCrmYskDetail", params);

// 项目成本对比————总体对比
const getDbList = (params)=>getAction("/projectCost/projectCost/compareList", params);
// 项目汇集对比————总体对比
const getHjList = (params)=>getAction("/projectCostHuiji/projectCostHuiji/compareList", params);
// 项目成本对比————材料费对比
const getDbClList = (params)=>getAction("wzOutboundOrder/wzOutboundOrderH/compareCLFDetailList", params);
// 成本模型——通过id查询详情
const getModalIdList = (params)=>getAction("/costModelList/costModelList/queryByIdBeforeEdit", params);


// 成本模型知会
const costModelInform = (params)=>postAction("/costModelList/costModelList/inform", params);

// 首页/报表/驾驶舱
const getZhibiaoCollect = (params)=>getAction("/index/getCollect", params);
const getdataByHt = (params)=>postAction("/index/getContractAmountInfo", params);
const getdataByChb = (params)=>getAction("/index/getEightCost", params);
const getdataByLr = (params)=>getAction("/index/countLreByDate", params);
const getdataBySk = (params)=>getAction("/index/countTotalReceivedByDate", params);


export {
  columnsSelect,
  columnsEdit,
  // projectCostHuiji,
  proCostContractdetail,
  proCostYSKdetail,
  getDbList,
  getHjList,
  getDbClList,
  costModelInform,
  getModalIdList,
  getZhibiaoCollect,
  getdataByHt,
  getdataByLr,
  getdataByChb,
  getdataBySk,
}



