110 lines
2.8 KiB
TypeScript
110 lines
2.8 KiB
TypeScript
|
|
import request from '@/utils/http'
|
||
|
|
|
||
|
|
export class kpiService {
|
||
|
|
// 月度-业绩 列表
|
||
|
|
static getmonthlylist(params: Api.Common.PaginatingParams) {
|
||
|
|
return request.get<Api.Common.CommonListData>({
|
||
|
|
url: '/admin/targets/monthly/list',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
// 月度-业绩 添加
|
||
|
|
static addmonthly(params: any) {
|
||
|
|
return request.post<Api.Common.AddResponse>({
|
||
|
|
url: '/admin/targets/monthly/store',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
// 月度-业绩 删除
|
||
|
|
static deletemonthly(params: any) {
|
||
|
|
return request.post<Api.Common.AddResponse>({
|
||
|
|
url: '/admin/targets/monthly/destroy',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
// 月度-业绩 修改
|
||
|
|
static updatemonthly(params: any) {
|
||
|
|
return request.post<Api.Common.AddResponse>({
|
||
|
|
url: '/admin/targets/monthly/update',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
// 月度-业绩 详情
|
||
|
|
static detailmonthly(params: any) {
|
||
|
|
return request.get<any>({
|
||
|
|
url: '/admin/targets/monthly/show',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//年度-业绩 列表
|
||
|
|
static getyearlylist(params: Api.Common.PaginatingParams) {
|
||
|
|
return request.get<Api.Common.CommonListData>({
|
||
|
|
url: '/admin/targets/annual/list',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
// 年度-业绩 添加
|
||
|
|
static addyearly(params: any) {
|
||
|
|
return request.post<Api.Common.AddResponse>({
|
||
|
|
url: '/admin/targets/annual/store',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
// 年度-业绩 删除
|
||
|
|
static deleteyearly(params: any) {
|
||
|
|
return request.post<Api.Common.AddResponse>({
|
||
|
|
url: '/admin/targets/annual/destroy',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
// 年度-业绩 详情
|
||
|
|
static detailyearly(params: any) {
|
||
|
|
return request.get<any>({
|
||
|
|
url: '/admin/targets/annual/show',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
// 年度-业绩 修改
|
||
|
|
static updateyearly(params: any) {
|
||
|
|
return request.post<Api.Common.AddResponse>({
|
||
|
|
url: '/admin/targets/annual/update',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//年度-公司目标完成率
|
||
|
|
static statisticstotal(params: any) {
|
||
|
|
return request.get<any>({
|
||
|
|
url: '/admin/targets/statistics/total',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//年度-个人销售数量排名
|
||
|
|
static statisticsranking(params: any) {
|
||
|
|
return request.get<any>({
|
||
|
|
url: '/admin/targets/statistics/ranking',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//年度-业务KPI分月完成数量表
|
||
|
|
static statisticsmonthly(params: any) {
|
||
|
|
return request.get<any>({
|
||
|
|
url: '/admin/targets/statistics/user/month',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//年度-个人年度目标完成度(百分比)
|
||
|
|
static statisticspercentage(params: any) {
|
||
|
|
return request.get<any>({
|
||
|
|
url: '/admin/targets/statistics/user/progressh',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//年度-个人累积完成数量(辆)
|
||
|
|
static statisticscumulative(params: any) {
|
||
|
|
return request.get<any>({
|
||
|
|
url: '/admin/targets/statistics/user/achieved',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
}
|