import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { QcUnqualifiedReviewVO, QcUnqualifiedReviewForm, QcUnqualifiedReviewQuery, CompleteTaskRequest } from '@/api/qms/qcUnqualifiedReview/types';

export const getWeeklyTestReport = (params: { startTime: string, endTime: string }) => {
  return request({
    url: '/qms/report/weeklyTestReport',
    method: 'get',
    params
  });
};

export const getDefectAnalysisReport = (params: { startTime: string, endTime: string }) => {
  return request({
    url: '/qms/report/defectAnalysisReport',
    method: 'get',
    params
  });
};

// 新增：获取进料检验效率（IQC）报表
export const getIncomingInspectionEfficiency = (params: { startTime: string, endTime: string }) => {
  return request({
    url: '/qms/report/incoming',
    method: 'get',
    params
  });
};
