43 lines
1.2 KiB
TypeScript
43 lines
1.2 KiB
TypeScript
export interface GetHomeStatisticParams {
|
|
searchType: string;
|
|
deptIds: string[];
|
|
userField?: string;
|
|
timeField?: string;
|
|
winOrderTimeField?: string; // 赢单维度字段
|
|
priorPeriodEnable?: boolean;
|
|
}
|
|
|
|
export interface DimPeriodValue {
|
|
value: number;
|
|
priorPeriodCompareRate: number;
|
|
}
|
|
// 跟进商机
|
|
export interface FollowOptStatisticDetail {
|
|
todayOpportunity: DimPeriodValue;
|
|
thisWeekOpportunity: DimPeriodValue;
|
|
thisMonthOpportunity: DimPeriodValue;
|
|
thisYearOpportunity: DimPeriodValue;
|
|
thisYearOpportunityAmount: DimPeriodValue;
|
|
thisMonthOpportunityAmount: DimPeriodValue;
|
|
thisWeekOpportunityAmount: DimPeriodValue;
|
|
todayOpportunityAmount: DimPeriodValue;
|
|
}
|
|
// 线索统计
|
|
export interface HomeLeadStatisticDetail {
|
|
thisYearClue: DimPeriodValue;
|
|
thisMonthClue: DimPeriodValue;
|
|
thisWeekClue: DimPeriodValue;
|
|
todayClue: DimPeriodValue;
|
|
}
|
|
// 赢单统计
|
|
export interface HomeWinOrderDetail {
|
|
thisYearOpportunity: DimPeriodValue;
|
|
thisMonthOpportunity: DimPeriodValue;
|
|
thisWeekOpportunity: DimPeriodValue;
|
|
todayOpportunity: DimPeriodValue;
|
|
thisYearOpportunityAmount: DimPeriodValue;
|
|
thisMonthOpportunityAmount: DimPeriodValue;
|
|
thisWeekOpportunityAmount: DimPeriodValue;
|
|
todayOpportunityAmount: DimPeriodValue;
|
|
}
|