Add employee code assignment function

This commit is contained in:
2026-03-02 12:58:05 +08:00
parent d2dac6091e
commit 76ea5a2e06
9 changed files with 1068 additions and 160 deletions
+29
View File
@@ -74,6 +74,7 @@ export interface ApiResponse<T> {
export interface DashboardStats {
totalCompanies: number;
totalSerials: number;
totalEmployeeSerials: number;
activeSerials: number;
inactiveSerials: number;
monthlyData: Array<{
@@ -88,4 +89,32 @@ export interface DashboardStats {
export interface CompanyFilter {
search?: string;
status?: 'all' | 'active' | 'expired';
}
export interface EmployeeSerial {
serialNumber: string;
companyName: string;
department: string;
employeeName: string;
isActive: boolean;
createdAt: string;
updatedAt?: string;
}
export interface EmployeeSerialFilter {
search?: string;
page?: number;
limit?: number;
}
export interface EmployeeSerialPagination {
page: number;
limit: number;
total: number;
totalPages: number;
}
export interface EmployeeSerialResponse {
data: EmployeeSerial[];
pagination: EmployeeSerialPagination;
}