/**
 * 年度任务类型定义
 */
export interface AnnualTaskVO {
    id: string | number;
    deptId?: string | number;
    deptName?: string;
    industryLine?: string;
    year?: number;
    targetTask?: number; // 年度总目标任务
    sprintTask?: number; // 年度总冲刺任务
    salesUserId?: string | number;
    salesUserName?: string;
    serviceUserId?: string | number;
    serviceUserName?: string;
    actualAchievement?: number;
    achievementRate?: string;
    lastYearTarget?: number;
    lastYearActual?: number;
    yoy?: string;
    details?: AnnualTaskDetailVO[];
}

/**
 * 任务分解明细类型定义
 */
export interface AnnualTaskDetailVO {
    id?: string | number;
    parentTaskId?: string | number;
    targetTask?: number;
    customerName?: string;
    sprintTask?: number;
    keyProject?: string;
    salesName?: string;
    csName?: string;
}

/**
 * 年度任务查询对象
 */
export interface AnnualTaskQuery extends PageQuery {
    deptId?: string | number;
    industryLine?: string;
    salesUserName?: string;
    serviceUserName?: string;
    year?: string;
}

/**
 * 年度任务表单对象
 */
export interface AnnualTaskForm {
    id?: string | number;
    year: string;
    deptId: string | number;
    industryLine: string;
    targetTask: number;
    sprintTask: number;
    details: AnnualTaskDetailVO[];
}
