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', {
|
||||
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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue