refactor: handle mode
This commit is contained in:
parent
5f852b977b
commit
e3210abbd7
1 changed files with 5 additions and 2 deletions
|
|
@ -14,6 +14,7 @@ import { QuotationPayload } from 'stores/quotations/types';
|
||||||
import { formatNumberDecimal } from 'stores/utils';
|
import { formatNumberDecimal } from 'stores/utils';
|
||||||
import { useConfigStore } from 'stores/config';
|
import { useConfigStore } from 'stores/config';
|
||||||
import { Product, Service, Work } from 'src/stores/product-service/types';
|
import { Product, Service, Work } from 'src/stores/product-service/types';
|
||||||
|
import { read } from 'fs';
|
||||||
|
|
||||||
defineProps<{
|
defineProps<{
|
||||||
readonly?: boolean;
|
readonly?: boolean;
|
||||||
|
|
@ -319,9 +320,10 @@ watch(
|
||||||
</q-td>
|
</q-td>
|
||||||
<q-td align="center">
|
<q-td align="center">
|
||||||
<q-input
|
<q-input
|
||||||
|
:readonly="readonly"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
type="number"
|
:type="readonly ? 'text' : 'number'"
|
||||||
style="width: 70px"
|
style="width: 70px"
|
||||||
min="0"
|
min="0"
|
||||||
v-model="props.row.amount"
|
v-model="props.row.amount"
|
||||||
|
|
@ -338,11 +340,12 @@ watch(
|
||||||
</q-td>
|
</q-td>
|
||||||
<q-td align="center">
|
<q-td align="center">
|
||||||
<q-input
|
<q-input
|
||||||
|
:readonly="readonly"
|
||||||
dense
|
dense
|
||||||
min="0"
|
min="0"
|
||||||
outlined
|
outlined
|
||||||
input-class="text-right"
|
input-class="text-right"
|
||||||
type="number"
|
:type="readonly ? 'text' : 'number'"
|
||||||
style="width: 90px"
|
style="width: 90px"
|
||||||
v-model="props.row.discount"
|
v-model="props.row.discount"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue