refactor: move form address to shared component

This commit is contained in:
Methapon2001 2024-08-09 14:00:57 +07:00
parent 0a5e6c48ea
commit 93f75d813b
6 changed files with 548 additions and 11 deletions

View file

@ -32,7 +32,7 @@ import {
EmployerFormBranch,
EmployerBranch,
} from './components';
import FormAddress from 'src/components/02_personnel-management/FormAddress.vue';
import { AddressForm } from 'src/components/form';
import FormEmployeePassport from 'src/components/03_customer-management/FormEmployeePassport.vue';
import FormEmployeeVisa from 'src/components/03_customer-management/FormEmployeeVisa.vue';
import { AddButton } from 'src/components/button';
@ -2240,7 +2240,7 @@ watch(
v-model:birthDate="currentFromDataEmployee.dateOfBirth"
v-model:nationality="currentFromDataEmployee.nationality"
/>
<FormAddress
<AddressForm
id="form-personal-address"
prefix-id="form-employee"
v-model:same-with-employer="
@ -2583,7 +2583,7 @@ watch(
v-model:birthDate="currentFromDataEmployee.dateOfBirth"
v-model:nationality="currentFromDataEmployee.nationality"
/>
<FormAddress
<AddressForm
id="form-personal-address"
employee
v-model:address="currentFromDataEmployee.address"