import https from '../utils/https'

// 获取全公司当月单数、当月完成度及其与上月对比情况   /api/v1/level_five/overview/overall_company_performance
export const getOverallCompanyPerformance = () => {
  return https.get('/api/v1/level_five/overview/overall_company_performance')
}

// 获取全公司当月定金转化率、上月定金转化率以及对比情况  /api/v1/level_five/overview/company_deposit_conversion_rate
export const getCompanyDepositConversionRate = () => {
  return https.get('/api/v1/level_five/overview/company_deposit_conversion_rate')
}

// 获取全公司当月总通话次数、当月有效通话次数以及对比情况   /api/v1/level_five/overview/company_total_call_count
export const getCompanyTotalCallCount = () => {
  return https.get('/api/v1/level_five/overview/company_total_call_count')
}
 
// 获取全公司当月新增客户、当月意向客户以及新增客户的对比情况   /api/v1/level_five/overview/company_new_customer
export const getCompanyNewCustomer = () => {
  return https.get('/api/v1/level_five/overview/company_new_customer')
}

// 获取全公司当月转化率以及与上月的对比情况   /api/v1/level_five/overview/company_conversion_rate
export const getCompanyConversionRate = () => {
  return https.get('/api/v1/level_five/overview/company_conversion_rate')
}

// 获取各中心实时进度   /api/v1/level_five/overview/company_real_time_progress
export const getCompanyRealTimeProgress = () => {
  return https.get('/api/v1/level_five/overview/company_real_time_progress')
}

// 获取全公司转化对比   /api/v1/level_five/overview/company_conversion_rate_vs_last
export const getCompanyConversionRateVsLast = (params) => {
  return https.post('/api/v1/level_five/overview/company_conversion_rate_vs_last', params)
}

// 获取全公司销售月度业绩红黑榜   /api/v1/level_five/overview/sales_monthly_performance
export const getSalesMonthlyPerformance = (params) => {
  return https.post('/api/v1/level_five/overview/sales_monthly_performance', params)
}

// 获取全中心业绩排行榜    /api/v1/level_five/overview/center_performance_rank
export const getCenterPerformanceRank = (params) => {
  return https.post('/api/v1/level_five/overview/center_performance_rank', params)
}

// 获取全公司客户类型分布   /api/v1/level_five/overview/customer_type_distribution
export const getCustomerTypeDistribution = (params) => {
  return https.post('/api/v1/level_five/overview/customer_type_distribution', params)
}

// 获取全公司的客户迫切解决的问题   /api/v1/level_five/overview/urgent_need_to_address
export const getUrgentNeedToAddress = () => {
  return https.get('/api/v1/level_five/overview/urgent_need_to_address')
}

// 获取级别树  /api/v1/level_five/overview/level_tree
export const getLevelTree = () => {
  return https.get('/api/v1/level_five/overview/level_tree')
}

// 获取详细数据表格  /api/v1/level_five/overview/detailed_data_table
export const getDetailedDataTable = (params) => {
  return https.post('/api/v1/level_five/overview/detailed_data_table', params)
}

// 获取各中心营期阶段  /api/v1/level_five/overview/get_period_stage
export const getPeriodStage = (params) => {
  return https.get('/api/v1/level_five/overview/get_period_stage', params)
}
// 获取优秀录音文件  /api/v1/level_four/overview/get_excellent_record_file
export const getExcellentRecordFile = (params) => {
  return https.post('/api/v1/common/get_excellent_record_file', params)
}

