refactor(04): disable code when edit
This commit is contained in:
parent
efb638f8ae
commit
0b7d94f6dc
2 changed files with 5 additions and 1 deletions
|
|
@ -24,6 +24,7 @@ defineProps<{
|
|||
outlined?: boolean;
|
||||
readonly?: boolean;
|
||||
isType?: boolean;
|
||||
disableCode?: boolean;
|
||||
}>();
|
||||
|
||||
onMounted(async () => {
|
||||
|
|
@ -74,6 +75,7 @@ const branchFilter = selectFilterOptionRefMod(
|
|||
hide-selected
|
||||
hide-bottom-space
|
||||
input-debounce="0"
|
||||
:disable="!readonly && disableCode"
|
||||
class="col-3"
|
||||
v-model="code"
|
||||
id="select-br-id"
|
||||
|
|
@ -84,7 +86,7 @@ const branchFilter = selectFilterOptionRefMod(
|
|||
:readonly="readonly"
|
||||
:options="codeOptions"
|
||||
:label="$t('productCode')"
|
||||
:hide-dropdown-icon="readonly"
|
||||
:hide-dropdown-icon="readonly || disableCode"
|
||||
:rules="[(val: string) => !!val]"
|
||||
@filter="codeFilter"
|
||||
>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ defineProps<{
|
|||
readonly?: boolean;
|
||||
separator?: boolean;
|
||||
isType?: boolean;
|
||||
disableCode?: boolean;
|
||||
service?: boolean;
|
||||
}>();
|
||||
|
||||
|
|
@ -112,6 +113,7 @@ const branchFilter = selectFilterOptionRefMod(
|
|||
lazy-rules="ondemand"
|
||||
id="input-service-code"
|
||||
for="input-service-code"
|
||||
:disable="!readonly && disableCode"
|
||||
:dense="dense"
|
||||
outlined
|
||||
:readonly="readonly"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue