refactor: restructure
This commit is contained in:
parent
7a81991c79
commit
11ff03ec50
8 changed files with 16 additions and 9 deletions
|
|
@ -27,9 +27,11 @@ import DialogForm from 'components/DialogForm.vue';
|
|||
import SideMenu from 'src/components/SideMenu.vue';
|
||||
import BasicInformation from 'src/components/03_customer-management/employee/BasicInformation.vue';
|
||||
import FormPerson from 'src/components/02_personnel-management/FormPerson.vue';
|
||||
import FormBasicInfo from './components/FormBasicInfo.vue';
|
||||
import FormBranch from './components/FormBranch.vue';
|
||||
import CustomerInfoComponent from './components/CustomerBranch.vue';
|
||||
import {
|
||||
EmployerFormBasicInfo,
|
||||
EmployerFormBranch,
|
||||
EmployerBranch,
|
||||
} from './components';
|
||||
import FormAddress from 'src/components/02_personnel-management/FormAddress.vue';
|
||||
import FormEmployeePassport from 'src/components/03_customer-management/FormEmployeePassport.vue';
|
||||
import FormEmployeeVisa from 'src/components/03_customer-management/FormEmployeeVisa.vue';
|
||||
|
|
@ -1754,7 +1756,7 @@ watch(
|
|||
</div>
|
||||
|
||||
<div class="col column" v-if="$route.name === 'CustomerBranchManagement'">
|
||||
<CustomerInfoComponent
|
||||
<EmployerBranch
|
||||
v-if="currentCustomer"
|
||||
:customer-id="currentCustomer.id"
|
||||
:customer-type="currentCustomer.customerType"
|
||||
|
|
@ -1865,7 +1867,7 @@ watch(
|
|||
opacity: customerFormState.branchIndex !== -1 ? '0.5' : undefined,
|
||||
}"
|
||||
>
|
||||
<FormBasicInfo
|
||||
<EmployerFormBasicInfo
|
||||
class="q-mb-xl"
|
||||
:readonly="
|
||||
customerFormState.dialogType === 'edit' &&
|
||||
|
|
@ -1920,7 +1922,7 @@ watch(
|
|||
v-if="customerFormData.customerBranch"
|
||||
v-for="(_, idx) in customerFormData.customerBranch"
|
||||
>
|
||||
<FormBranch
|
||||
<EmployerFormBranch
|
||||
v-if="!!customerFormState.editCustomerId"
|
||||
v-model:customer-branch="customerFormData.customerBranch[idx]"
|
||||
:customer-type="customerFormData.customerType"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue