import axiosInstance from './request'; 
 | 
  
 | 
// 员工产品统计TOP10 
 | 
export function getTop (companyId, departId, params) { 
 | 
    return axiosInstance.get(`statistics/userProduceTop/${companyId}/${departId}`, { params }) 
 | 
} 
 | 
  
 | 
// 成品计划-实时仓库余量统计 
 | 
export function getStockList (companyId, departId) { 
 | 
    return axiosInstance.get(`statistics/getStockList/${companyId}/${departId}`) 
 | 
} 
 | 
  
 | 
// 成品计划进度查询 
 | 
export function getWorkPlansList (companyId, departId) { 
 | 
    return axiosInstance.get(`statistics/getWorkPlansList/${companyId}/${departId}`) 
 | 
} 
 | 
  
 | 
// 工序计划进度查询 
 | 
export function getProcedureProcessList (companyId, departId) { 
 | 
    return axiosInstance.get(`statistics/getProcedureProcessList/${companyId}/${departId}`) 
 | 
} 
 | 
  
 | 
// 报工日志分页查询 
 | 
export function getRecordLogPage (companyId, departId, data) { 
 | 
    return axiosInstance.post(`statistics/getRecordLogPage/${companyId}/${departId}`, data) 
 | 
} 
 | 
  
 | 
// 巡检记录分页查询 
 | 
export function getDeviceCheckPage (companyId, departId, data) { 
 | 
    return axiosInstance.post(`statistics/getDeviceCheckPage/${companyId}/${departId}`, data) 
 | 
} 
 | 
  
 | 
// 近7天不良品分布-不良品数量统计 
 | 
export function getUnqualified7DayData (companyId, departId, procedureId) { 
 | 
    return axiosInstance.get(`statistics/getUnqualified7DayData/${companyId}/${departId}?procedureId=${procedureId}`) 
 | 
} 
 | 
  
 | 
// 近7天不良品分布-不良品数量-按不良项统计 
 | 
export function getUnqualifiedCateData (companyId, departId, procedureId) { 
 | 
    return axiosInstance.get(`statistics/getUnqualifiedCateData/${companyId}/${departId}?procedureId=${procedureId}`) 
 | 
} 
 | 
  
 | 
  
 | 
// 数据统计-成品计划,执行中、延期计划数、今日生产人数、今日生产设备数、今日不良品 
 | 
export function getProcedurePlansList (companyId, departId, params) { 
 | 
  return axiosInstance.get(`statistics/getProcedurePlansList/${companyId}/${departId}`, {params} ) 
 | 
} 
 | 
  
 | 
// 查询企业全部公司部门 
 | 
export function getDepartmentList (companyId) { 
 | 
  return axiosInstance.get(`statistics/getDepartmentList/${companyId}`) 
 | 
} 
 | 
  
 | 
// 数据统计-成品计划,执行中、延期计划数、今日生产人数、今日生产设备数、今日不良品 
 | 
export function getProcedurePlanData (companyId, departId, params) { 
 | 
  return axiosInstance.get(`statistics/getProcedurePlanData/${companyId}/${departId}`, {params} ) 
 | 
} 
 | 
  
 | 
// 数据统计-成品计划,执行中、延期计划数、今日生产人数、今日生产设备数、今日不良品 
 | 
export function getPlanData (companyId, departId) { 
 | 
    return axiosInstance.get(`statistics/getPlanData/${companyId}/${departId}`) 
 | 
} 
 |