import request from '@/utils/request'

// :明细界面
export function getList(query) {
  return request({
    url: "/report/pro/delayWorkingHours/getList",
    method: "post",
    data: query,
  });
}


// :统计方式工序
export function getListByProcess(query) {
  return request({
    url: '/report/pro/feedback/getListByProcess',
    method: "post",
    data: query
  });
}

// :统计方式用户
export function getResponsibilityRanking(query) {
    return request({
      url: '/report/pro/delayWorkingHours/getResponsibilityRanking',
      method: "post",
      data: query
    });
  }
  // :统计方式车间
export function getLossRanking(query) {
    return request({
      url: '/report/pro/delayWorkingHours/getLossRanking',
      method: "post",
      data: query
    });
  }

// :统计方式主要异常原因分析
export function getReasonRanking(query) {
    return request({
      url: '/report/pro/delayWorkingHours/getReasonRanking',
      method: "post",
      data: query
    });
  }

  // :统计方式工作中心
export function getListByWorkstation(query) {
    return request({
      url: '/report/pro/feedback/getListByWorkstation',
      method: "post",
      data: query
    });
  }

    // :统计方式工作单元
export function getListByWorkunit(query) {
    return request({
      url: '/report/pro/feedback/getListByWorkunit',
      method: "post",
      data: query
    });
  }

// :统计方式不合格原因
export function getListByDefect(query) {
  return request({
    url: '/report/pro/feedback/getListByDefect',
    method: "post",
    data: query
  });
}