import $http from '../index'

/**
 * 绩效点管理接口
 */
// 绩效点列表查询
export const PerformancePoints_List = (params: any) => $http.post('/salary/PerformancePoints/List', params)
// 新增绩效点
export const PerformancePoints_Add = (params: any) => $http.post('/salary/PerformancePoints/Add', params)
// 修改绩效点
export const PerformancePoints_Edit = (params: any) => $http.post('/salary/PerformancePoints/Edit', params)
// 删除绩效点
export const PerformancePoints_Del = (params: any) => $http.post('/salary/PerformancePoints/Del', params)

/**
 * 绩效考核管理接口
 */
// 绩效考核列表查询
export const Performance_List = (params: any) => $http.post('/salary/Performance/List', params)
export const Performance_User_List = (params: any) => $http.post('/salary/Performance/User_List', params)
// 新增绩效考核
export const Performance_Add = (params: any) => $http.post('/salary/Performance/Add', params)
// 修改绩效考核
export const Performance_Edit = (params: any) => $http.post('/salary/Performance/Edit', params)
// 删除绩效考核
export const Performance_Del = (params: any) => $http.post('/salary/Performance/Del', params)
// 绩效考核详情
export const Performance_Detail = (params: any) => $http.post('/salary/Performance/Detail', params)
// 绩效搜索框列表
export const Performance_Submit_User = (params: any) => $http.post('/salary/Performance/Submit_User', params)
// 提交审核
export const Performance_Edit_Audit = (params: any) => $http.post('/salary/Performance/Edit_Audit', params)
// 导出Excel
export const Performance_User_Excel = (params: any) => $http.post('/salary/Performance/User_Excel', params, { responseType: 'blob' })
export const Performance_Excel = (params: any) => $http.post('/salary/Performance/Excel', params, { responseType: 'blob' })

/**
 * 绩效指标管理接口
 */
// 绩效指标列表查询
export const PerformanceTarget_List = (params: any) => $http.post('/salary/PerformanceTarget/List', params)
// 新增绩效指标
export const PerformanceTarget_Add = (params: any) => $http.post('/salary/PerformanceTarget/Add', params)
// 修改绩效指标
export const PerformanceTarget_Edit = (params: any) => $http.post('/salary/PerformanceTarget/Edit', params)
// 删除绩效指标
export const PerformanceTarget_Del = (params: any) => $http.post('/salary/PerformanceTarget/Del', params)