chore: initial commit
This commit is contained in:
42
frontend/packages/lib-shared/models/home.ts
Normal file
42
frontend/packages/lib-shared/models/home.ts
Normal file
@@ -0,0 +1,42 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user