R39: 完成员工档案汇报链查询

这个提交包含在:
2026-03-28 17:42:09 +08:00
父节点 f33431fdb8
当前提交 1cac1447b1
共修改 6 个文件,包含 347 行新增和 9 行删除
+13
查看文件
@@ -55,6 +55,15 @@ export type EmployeeChecklistTask = {
createdAt: string | null;
};
export type EmployeeOrganizationNode = {
id: string;
employeeNo: string;
name: string;
title: string;
status: EmployeeStatus;
department: { id: string; name: string } | null;
};
export type EmployeeProfile = {
employee: {
id: string;
@@ -95,6 +104,10 @@ export type EmployeeProfile = {
status: string;
location: string | null;
}>;
organization: {
reportingChain: EmployeeOrganizationNode[];
directReports: EmployeeOrganizationNode[];
};
};
export async function fetchEmployees(params: {