refactor: use work place for employer
This commit is contained in:
parent
488d87108a
commit
03560914ac
2 changed files with 5 additions and 2 deletions
|
|
@ -21,6 +21,8 @@ defineProps<{
|
||||||
indexId?: number;
|
indexId?: number;
|
||||||
prefixId: string;
|
prefixId: string;
|
||||||
hideTitle?: boolean;
|
hideTitle?: boolean;
|
||||||
|
|
||||||
|
useWorkPlace?: boolean;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const adrressStore = useAddressStore();
|
const adrressStore = useAddressStore();
|
||||||
|
|
@ -202,7 +204,7 @@ watch(districtId, fetchSubDistrict);
|
||||||
{{ addressTitle || $t('formDialogTitleAddressPure') }}
|
{{ addressTitle || $t('formDialogTitleAddressPure') }}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12 row q-col-gutter-sm">
|
<div class="col-12 row q-col-gutter-sm">
|
||||||
<div class="row col-12">
|
<div class="row col-12" v-if="useWorkPlace">
|
||||||
<q-input
|
<q-input
|
||||||
outlined
|
outlined
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
|
|
@ -390,7 +392,7 @@ watch(districtId, fetchSubDistrict);
|
||||||
{{ addressTitleEN || $t('formDialogTitleAddressPureEN') }}
|
{{ addressTitleEN || $t('formDialogTitleAddressPureEN') }}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12 row q-col-gutter-sm">
|
<div class="col-12 row q-col-gutter-sm">
|
||||||
<div class="row col-12">
|
<div class="row col-12" v-if="useWorkPlace">
|
||||||
<q-input
|
<q-input
|
||||||
outlined
|
outlined
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
|
|
|
||||||
|
|
@ -2114,6 +2114,7 @@ const emptyCreateDialog = ref(false);
|
||||||
class="q-mb-xl"
|
class="q-mb-xl"
|
||||||
/>
|
/>
|
||||||
<AddressForm
|
<AddressForm
|
||||||
|
use-work-place
|
||||||
id="form-personal-address"
|
id="form-personal-address"
|
||||||
prefix-id="form-employee"
|
prefix-id="form-employee"
|
||||||
v-model:same-with-employer="
|
v-model:same-with-employer="
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue