refactor: Change conditions disable

This commit is contained in:
Net 2024-08-23 09:51:00 +07:00 committed by Methapon Metanipat
parent 1061eb55d4
commit 9249dfee08
2 changed files with 4 additions and 3 deletions

View file

@ -11,6 +11,7 @@ const legalPersonNo = defineModel<string | undefined>('legalPersonNo', {
const branchCode = defineModel<string | undefined>('branchCode', {
required: true,
});
// const customerCode = defineModel<string | undefined>('customerCode', {
// required: true,
// });
@ -54,11 +55,11 @@ defineProps<{
lazy-rules="ondemand"
dense
outlined
disable
hide-bottom-space
class="col-12 col-md-3"
for="input-branch-code"
:label="$t('customer.form.branchCode')"
:disable="!readonly"
:readonly="readonly"
:model-value="branchCode"
/>
@ -68,9 +69,9 @@ defineProps<{
dense
outlined
hide-bottom-space
disable
class="col-12 col-md-3"
for="input-customer-code"
:disable="!readonly"
:readonly="readonly"
:label="$t('customer.form.customerCode')"
:model-value="customerName"

View file

@ -292,7 +292,7 @@ function formatCode(input: string | undefined, type: 'code' | 'number') {
lazy-rules="ondemand"
dense
outlined
disable
:disable="!readonly"
:readonly="readonly"
hide-bottom-space
class="col-12 col-md-2"