refactor: Change conditions disable
This commit is contained in:
parent
1061eb55d4
commit
9249dfee08
2 changed files with 4 additions and 3 deletions
|
|
@ -11,6 +11,7 @@ const legalPersonNo = defineModel<string | undefined>('legalPersonNo', {
|
||||||
const branchCode = defineModel<string | undefined>('branchCode', {
|
const branchCode = defineModel<string | undefined>('branchCode', {
|
||||||
required: true,
|
required: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
// const customerCode = defineModel<string | undefined>('customerCode', {
|
// const customerCode = defineModel<string | undefined>('customerCode', {
|
||||||
// required: true,
|
// required: true,
|
||||||
// });
|
// });
|
||||||
|
|
@ -54,11 +55,11 @@ defineProps<{
|
||||||
lazy-rules="ondemand"
|
lazy-rules="ondemand"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
disable
|
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
class="col-12 col-md-3"
|
class="col-12 col-md-3"
|
||||||
for="input-branch-code"
|
for="input-branch-code"
|
||||||
:label="$t('customer.form.branchCode')"
|
:label="$t('customer.form.branchCode')"
|
||||||
|
:disable="!readonly"
|
||||||
:readonly="readonly"
|
:readonly="readonly"
|
||||||
:model-value="branchCode"
|
:model-value="branchCode"
|
||||||
/>
|
/>
|
||||||
|
|
@ -68,9 +69,9 @@ defineProps<{
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
disable
|
|
||||||
class="col-12 col-md-3"
|
class="col-12 col-md-3"
|
||||||
for="input-customer-code"
|
for="input-customer-code"
|
||||||
|
:disable="!readonly"
|
||||||
:readonly="readonly"
|
:readonly="readonly"
|
||||||
:label="$t('customer.form.customerCode')"
|
:label="$t('customer.form.customerCode')"
|
||||||
:model-value="customerName"
|
:model-value="customerName"
|
||||||
|
|
|
||||||
|
|
@ -292,7 +292,7 @@ function formatCode(input: string | undefined, type: 'code' | 'number') {
|
||||||
lazy-rules="ondemand"
|
lazy-rules="ondemand"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
disable
|
:disable="!readonly"
|
||||||
:readonly="readonly"
|
:readonly="readonly"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
class="col-12 col-md-2"
|
class="col-12 col-md-2"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue