refactor: edit type
This commit is contained in:
parent
79cfdf859c
commit
3586a623de
2 changed files with 2 additions and 36 deletions
|
|
@ -645,24 +645,6 @@ export const useEmployeeForm = defineStore('form-employee', () => {
|
|||
address: '',
|
||||
zipCode: '',
|
||||
|
||||
passportType: '',
|
||||
passportNumber: '',
|
||||
passportIssueDate: null,
|
||||
passportExpiryDate: null,
|
||||
passportIssuingCountry: '',
|
||||
passportIssuingPlace: '',
|
||||
previousPassportReference: '',
|
||||
|
||||
visaType: '',
|
||||
visaNumber: '',
|
||||
visaIssueDate: null,
|
||||
visaExpiryDate: null,
|
||||
visaIssuingPlace: '',
|
||||
visaStayUntilDate: null,
|
||||
tm6Number: '',
|
||||
entryDate: null,
|
||||
workerStatus: '',
|
||||
|
||||
subDistrictId: '',
|
||||
districtId: '',
|
||||
provinceId: '',
|
||||
|
|
@ -898,6 +880,7 @@ export const useEmployeeForm = defineStore('form-employee', () => {
|
|||
if (res) {
|
||||
await assignFormDataEmployee(res.id);
|
||||
currentFromDataEmployee.value.id = res.id;
|
||||
currentFromDataEmployee.value.file = res.file;
|
||||
state.value.statusSavePersonal = true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -82,24 +82,6 @@ export type EmployeeCreate = {
|
|||
address: string;
|
||||
zipCode: string;
|
||||
|
||||
passportType: string;
|
||||
passportNumber: string;
|
||||
passportIssueDate: Date | null;
|
||||
passportExpiryDate: Date | null;
|
||||
passportIssuingCountry: string;
|
||||
passportIssuingPlace: string;
|
||||
previousPassportReference?: string;
|
||||
|
||||
visaType: string;
|
||||
visaNumber: string;
|
||||
visaIssueDate: Date | null;
|
||||
visaExpiryDate: Date | null;
|
||||
visaIssuingPlace: string;
|
||||
visaStayUntilDate: Date | null;
|
||||
tm6Number: string;
|
||||
entryDate: Date | null;
|
||||
workerStatus: string;
|
||||
|
||||
subDistrictId?: string | null;
|
||||
districtId?: string | null;
|
||||
provinceId?: string | null;
|
||||
|
|
@ -115,6 +97,7 @@ export type EmployeeCreate = {
|
|||
group?: string;
|
||||
url?: string;
|
||||
file?: File;
|
||||
_meta?: Record<string, any>;
|
||||
}[];
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue