diff --git a/src/pages/03_customer-management/form.ts b/src/pages/03_customer-management/form.ts index 29cd75ff..672a03ed 100644 --- a/src/pages/03_customer-management/form.ts +++ b/src/pages/03_customer-management/form.ts @@ -1241,8 +1241,6 @@ export const useEmployeeForm = defineStore('form-employee', () => { type: '', expireDate: new Date(), birthDate: new Date(), - updatedAt: new Date(), - createdAt: new Date(), workerStatus: '', nationality: '', gender: '', @@ -1253,7 +1251,6 @@ export const useEmployeeForm = defineStore('form-employee', () => { firstNameEN: '', firstName: '', namePrefix: '', - employeeId: '', number: '', }); diff --git a/src/stores/employee/types.ts b/src/stores/employee/types.ts index d2320713..83932ee7 100644 --- a/src/stores/employee/types.ts +++ b/src/stores/employee/types.ts @@ -313,8 +313,8 @@ export type EmployeePassportPayload = { type: string; expireDate: Date; birthDate: Date; - updatedAt: Date; - createdAt: Date; + updatedAt?: Date; + createdAt?: Date; workerStatus: string; nationality: string; gender: string; @@ -325,7 +325,7 @@ export type EmployeePassportPayload = { firstNameEN: string; firstName: string; namePrefix: string; - employeeId: string; + employeeId?: string; number: string; id?: string; };