refactor: add BusinessRegistration and FormTm6
This commit is contained in:
parent
b308d07430
commit
a3f923d857
2 changed files with 23 additions and 14 deletions
|
|
@ -48,7 +48,7 @@ import SideMenu from 'components/SideMenu.vue';
|
|||
import { AddButton } from 'components/button';
|
||||
import TableEmpoloyee from 'src/components/03_customer-management/TableEmpoloyee.vue';
|
||||
import { calculateAge, toISOStringWithTimezone } from 'src/utils/datetime';
|
||||
import { UploadFileGroup } from 'components/upload-file';
|
||||
import { UploadFileGroup, FormTm6 } from 'components/upload-file';
|
||||
|
||||
import {
|
||||
columnsCustomer,
|
||||
|
|
@ -3867,18 +3867,6 @@ const emptyCreateDialog = ref(false);
|
|||
"
|
||||
>
|
||||
<template #form="{ mode, meta, isEdit }">
|
||||
<FormCitizen
|
||||
v-if="mode === 'citizen' && meta"
|
||||
orc
|
||||
:readonly="!isEdit"
|
||||
v-model:citizen-id="meta.citizenId"
|
||||
v-model:birth-date="meta.birthDate"
|
||||
v-model:first-name="meta.firstName"
|
||||
v-model:first-name-en="meta.firstNameEN"
|
||||
v-model:last-name="meta.lastName"
|
||||
v-model:last-name-en="meta.lastNameEN"
|
||||
v-model:address="meta.address"
|
||||
/>
|
||||
<FormEmployeePassport
|
||||
v-if="mode === 'passport' && meta"
|
||||
prefix-id="drawer-info-employee"
|
||||
|
|
@ -3911,6 +3899,7 @@ const emptyCreateDialog = ref(false);
|
|||
v-model:visa-expiry-date="meta.expireDate"
|
||||
v-model:visa-issuing-place="meta.issuePlace"
|
||||
/>
|
||||
<FormTm6 v-if="mode === 'tm6' && meta" />
|
||||
</template>
|
||||
</UploadFileGroup>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -8,7 +8,11 @@ import EmployerFormAbout from './EmployerFormAbout.vue';
|
|||
import EmployerFormAuthorized from './EmployerFormAuthorized.vue';
|
||||
import { useCustomerForm } from 'src/pages/03_customer-management/form';
|
||||
import { waitAll } from 'src/stores/utils';
|
||||
import { FormCitizen } from 'components/upload-file/';
|
||||
import {
|
||||
FormCitizen,
|
||||
CorpFormBusinessRegistration,
|
||||
PersFormBusinessRegistration,
|
||||
} from 'components/upload-file/';
|
||||
|
||||
import useOcrStore from 'stores/ocr';
|
||||
import useCustomerStore from 'stores/customer';
|
||||
|
|
@ -412,6 +416,22 @@ withDefaults(
|
|||
v-model:visa-expiry-date="meta.expireDate"
|
||||
v-model:visa-issuing-place="meta.issuePlace"
|
||||
/>
|
||||
|
||||
<CorpFormBusinessRegistration
|
||||
v-if="
|
||||
mode === 'commercial-registration' &&
|
||||
meta &&
|
||||
customerType === 'CORP'
|
||||
"
|
||||
/>
|
||||
|
||||
<PersFormBusinessRegistration
|
||||
v-if="
|
||||
mode === 'commercial-registration' &&
|
||||
meta &&
|
||||
customerType === 'PERS'
|
||||
"
|
||||
/>
|
||||
</template>
|
||||
</UploadFileGroup>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue