import request from '@/config/axios'

export interface ProjectOverviewExportReqVO {
  year?: number
  officeId?: number
  sortType?: string
}

export interface EmployeeOutputSummaryExportReqVO {
  year?: number
  officeId?: number
  employeeId?: number
  employeeStatus?: string
  sortType?: string
}

export const exportProjectBudget = (projectId: number) => {
  return request.download({ url: '/tjt/report/project-budget/export-excel', params: { projectId } })
}

export const exportProjectQuarterOutput = (planningId: number) => {
  return request.download({
    url: '/tjt/report/project-quarter-output/export-excel',
    params: { planningId }
  })
}

export const exportProjectLeadQuarterOutput = (planningId: number) => {
  return request.download({
    url: '/tjt/report/project-lead-quarter-output/export-excel',
    params: { planningId }
  })
}

export const exportSpecialtyPersonOutput = (params: {
  planningId: number
  specialtyCode: string
}) => {
  return request.download({ url: '/tjt/report/specialty-person-output/export-excel', params })
}

export const exportProjectOverview = (params: ProjectOverviewExportReqVO) => {
  return request.download({ url: '/tjt/report/project-overview/export-excel', params })
}

export const exportEmployeeOutputSummary = (params: EmployeeOutputSummaryExportReqVO) => {
  return request.download({ url: '/tjt/report/employee-output-summary/export-excel', params })
}
