refactor: edit type

This commit is contained in:
Net 2024-09-19 10:15:23 +07:00
parent 79cfdf859c
commit 3586a623de
2 changed files with 2 additions and 36 deletions

View file

@ -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;
}
}