chore: initial commit
Some checks failed
Synchronize to Gitee / repo-sync (push) Has been cancelled
Typos Checking / Spell Check with Typos (push) Has been cancelled

This commit is contained in:
2026-06-23 11:56:23 +08:00
commit 72e2110987
2883 changed files with 367388 additions and 0 deletions

View File

@@ -0,0 +1,89 @@
import type { CustomerSearchTypeEnum } from '../../enums/customerEnum';
import type { ModuleField, TableQueryParams } from '../common';
import type { SaveCustomerParams } from '@lib/shared/models/customer';
export interface SaveClueParams extends SaveCustomerParams {
contact?: string;
phone?: string;
}
export interface UpdateClueParams extends SaveClueParams {
id: string;
}
export interface ClueTransitionCustomerParams extends SaveCustomerParams {
clueId: string;
}
export interface ClueDetail {
id: string;
name: string;
owner: string;
ownerName: string;
contact: string;
phone: string;
departmentId: string;
departmentName: string;
stage: string;
lastStage: string;
createUser: string;
updateUser: string;
createTime: number;
updateTime: number;
createUserName: string;
updateUserName: string;
moduleFields: ModuleField[];
transitionType?: 'CUSTOMER' | 'OPPORTUNITY';
}
export interface ClueListItem extends ClueDetail {
inSharedPool: boolean;
latestFollowUpTime: number;
collectionTime: number;
reservedDays: number;
reasonName?: string;
hasPermission?: boolean;
}
export interface CluePoolTableParams extends TableQueryParams {
searchType?: CustomerSearchTypeEnum;
poolId?: string;
}
// 线索池线索列表项
export interface CluePoolListItem extends ClueListItem {
follower: string; // 最新跟进人
followerName: string; // 最新跟进人名称
followTime: number; // 最新跟进日期
poolId: string;
recyclePoolName: string; // 默认回收公海名称
}
export interface PickClueParams {
clueId: string;
poolId: string;
}
// 批量领取线索的请求参数
export interface BatchPickClueParams {
batchIds: (string | number)[];
poolId: string;
}
// 分配线索的请求参数
export interface AssignClueParams {
clueId: string;
assignUserId: string;
}
// 批量分配线索的请求参数
export interface BatchAssignClueParams {
batchIds: (string | number)[];
assignUserId: string;
}
export interface ConvertClueParams {
clueId: string;
oppCreated: boolean;
oppName: string;
}