refactor: add readonly and disable properties to checkboxes and selects in PriceDataComponent
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 7s
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 7s
This commit is contained in:
parent
0a5b6af649
commit
af37904ce0
1 changed files with 9 additions and 0 deletions
|
|
@ -244,16 +244,19 @@ withDefaults(
|
||||||
<template v-if="col.name === '#calcVat'">
|
<template v-if="col.name === '#calcVat'">
|
||||||
<q-checkbox
|
<q-checkbox
|
||||||
v-if="priceDisplay?.price && props.rowIndex === 0"
|
v-if="priceDisplay?.price && props.rowIndex === 0"
|
||||||
|
:disable="readonly"
|
||||||
v-model="calcVat"
|
v-model="calcVat"
|
||||||
size="xs"
|
size="xs"
|
||||||
/>
|
/>
|
||||||
<q-checkbox
|
<q-checkbox
|
||||||
v-if="priceDisplay?.agentPrice && props.rowIndex === 1"
|
v-if="priceDisplay?.agentPrice && props.rowIndex === 1"
|
||||||
|
:disable="readonly"
|
||||||
v-model="agentPriceCalcVat"
|
v-model="agentPriceCalcVat"
|
||||||
size="xs"
|
size="xs"
|
||||||
/>
|
/>
|
||||||
<q-checkbox
|
<q-checkbox
|
||||||
v-if="priceDisplay?.serviceCharge && props.rowIndex === 2"
|
v-if="priceDisplay?.serviceCharge && props.rowIndex === 2"
|
||||||
|
:disable="readonly"
|
||||||
v-model="serviceChargeCalcVat"
|
v-model="serviceChargeCalcVat"
|
||||||
size="xs"
|
size="xs"
|
||||||
/>
|
/>
|
||||||
|
|
@ -271,6 +274,8 @@ withDefaults(
|
||||||
flat
|
flat
|
||||||
outlined
|
outlined
|
||||||
dense
|
dense
|
||||||
|
:readonly
|
||||||
|
:hide-dropdown-icon="readonly"
|
||||||
v-model="vatIncluded"
|
v-model="vatIncluded"
|
||||||
></q-select>
|
></q-select>
|
||||||
<q-select
|
<q-select
|
||||||
|
|
@ -285,6 +290,8 @@ withDefaults(
|
||||||
flat
|
flat
|
||||||
outlined
|
outlined
|
||||||
dense
|
dense
|
||||||
|
:readonly
|
||||||
|
:hide-dropdown-icon="readonly"
|
||||||
v-model="agentPriceVatIncluded"
|
v-model="agentPriceVatIncluded"
|
||||||
></q-select>
|
></q-select>
|
||||||
<q-select
|
<q-select
|
||||||
|
|
@ -299,6 +306,8 @@ withDefaults(
|
||||||
flat
|
flat
|
||||||
outlined
|
outlined
|
||||||
dense
|
dense
|
||||||
|
:readonly
|
||||||
|
:hide-dropdown-icon="readonly"
|
||||||
v-model="serviceChargeVatIncluded"
|
v-model="serviceChargeVatIncluded"
|
||||||
></q-select>
|
></q-select>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue