feat: add employee under employer (#35)

* refactor: btn add in table

* refactor: Emits addEmployee

* fix: visa can is null

* refactor: update data

* fix: number not update

---------

Co-authored-by: Thanaphon Frappet <thanaphon@frappet.com>
This commit is contained in:
Methapon Metanipat 2024-10-31 17:43:56 +07:00 committed by GitHub
parent a9c9467643
commit 05c1c07384
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 61 additions and 20 deletions

View file

@ -612,7 +612,6 @@ export const useEmployeeForm = defineStore('form-employee', () => {
provinceId: string;
districtId: string;
subDistrictId: string;
zipCode: string;
}
| undefined;
ocr: boolean;
@ -1126,7 +1125,6 @@ export const useEmployeeForm = defineStore('form-employee', () => {
currentFromDataEmployee.value = structuredClone(resetEmployeeData);
state.value.currentIndexPassport =
(currentFromDataEmployee.value.employeePassport?.length || 0) - 1;