refactor: by value
This commit is contained in:
parent
bbe7604ab2
commit
f334364e8e
2 changed files with 100 additions and 253 deletions
|
|
@ -9,7 +9,6 @@ import EmployerFormAttachment from './EmployerFormAttachment.vue';
|
|||
import {
|
||||
SaveButton,
|
||||
EditButton,
|
||||
CancelButton,
|
||||
DeleteButton,
|
||||
UndoButton,
|
||||
} from 'components/button';
|
||||
|
|
@ -28,6 +27,8 @@ defineEmits<{
|
|||
}>();
|
||||
|
||||
defineProps<{
|
||||
index: number;
|
||||
customerName: string;
|
||||
readonly?: boolean;
|
||||
prefixId?: string;
|
||||
actionDisabled?: boolean;
|
||||
|
|
@ -39,9 +40,13 @@ defineProps<{
|
|||
<span
|
||||
class="col-12 text-weight-bold row items-center q-mb-sm"
|
||||
:style="{ opacity: actionDisabled ? '.5' : undefined }"
|
||||
:id="`form-branch-customer-no-${item.branchNo}`"
|
||||
:id="`form-branch-customer-no-${index}`"
|
||||
>
|
||||
{{ $t('customer.form.branch.title', { name: item.branchNo || 0 }) }}
|
||||
{{
|
||||
index === 0
|
||||
? $t('customer.form.headQuarters.title')
|
||||
: $t('customer.form.branch.title', { name: index || 0 })
|
||||
}}
|
||||
<EditButton
|
||||
icon-only
|
||||
v-if="readonly"
|
||||
|
|
@ -93,16 +98,19 @@ defineProps<{
|
|||
<q-tab-panels v-model="tab">
|
||||
<q-tab-panel name="main">
|
||||
<EmployerFormAbout
|
||||
:index="index.toString()"
|
||||
:readonly="readonly"
|
||||
:customer-type="customerType"
|
||||
:customer-name="customerName"
|
||||
v-model:citizen-id="item.citizenId"
|
||||
v-model:id="item.id"
|
||||
v-model:branch-no="item.branchNo"
|
||||
v-model:tax-no="item.taxNo"
|
||||
v-model:code="item.code"
|
||||
v-model:name="item.name"
|
||||
v-model:name-en="item.nameEN"
|
||||
v-model:registered-name="item.registerName"
|
||||
v-model:registered-date="item.registerDate"
|
||||
v-model:legal-person-no="item.legalPersonNo"
|
||||
v-model:branch-code="item.code"
|
||||
v-model:customer-code="item.customerCode"
|
||||
v-model:register-company-name="item.registerCompanyName"
|
||||
v-model:register-name="item.registerName"
|
||||
v-model:register-name-en="item.registerNameEN"
|
||||
v-model:register-date="item.registerDate"
|
||||
v-model:authorized-capital="item.authorizedCapital"
|
||||
/>
|
||||
</q-tab-panel>
|
||||
|
|
@ -114,6 +122,8 @@ defineProps<{
|
|||
:readonly="readonly"
|
||||
outlined
|
||||
:title="$t('form.address')"
|
||||
v-model:workplace="item.workplace"
|
||||
v-model:workplace-en="item.workplaceEN"
|
||||
v-model:address="item.address"
|
||||
v-model:addressEN="item.addressEN"
|
||||
v-model:province-id="item.provinceId"
|
||||
|
|
@ -130,8 +140,8 @@ defineProps<{
|
|||
:prefix-id="prefixId || 'employer'"
|
||||
:readonly="readonly"
|
||||
v-model:employment-office="item.employmentOffice"
|
||||
v-model:bussiness-type="item.bussinessType"
|
||||
v-model:bussiness-type-en="item.bussinessTypeEN"
|
||||
v-model:bussiness-type="item.businessType"
|
||||
v-model:bussiness-type-en="item.businessTypeEN"
|
||||
v-model:job-position="item.jobPosition"
|
||||
v-model:job-position-en="item.jobPositionEN"
|
||||
v-model:job-description="item.jobDescription"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue