refactor: add BusinessRegistration and FormTm6

This commit is contained in:
Net 2024-09-23 12:56:12 +07:00
parent b308d07430
commit a3f923d857
2 changed files with 23 additions and 14 deletions

View file

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