refactor: refs #7553 requested changes

This commit is contained in:
Jon Elias 2024-09-06 07:16:03 +02:00
parent 102f7fb13e
commit 8ff9dae1d8
3 changed files with 17 additions and 2 deletions

View File

@ -351,7 +351,7 @@ function getNoteValue(description) {
</template>
<template #body="props">
<QTr :props="props">
<QTd>
<QTd class="q-gutter-x-xs">
<QBtn
flat
round
@ -392,6 +392,7 @@ function getNoteValue(description) {
name="warning"
v-show="props.row.visible < 0"
color="primary"
size="xs"
>
<QTooltip>
{{ t('ticket.summary.visible') }}:
@ -402,6 +403,7 @@ function getNoteValue(description) {
name="vn:reserva"
v-show="props.row.reserved"
color="primary"
size="xs"
>
<QTooltip>
{{ t('ticket.summary.reserved') }}
@ -411,6 +413,7 @@ function getNoteValue(description) {
name="vn:unavailable"
v-show="props.row.itemShortage"
color="primary"
size="xs"
>
<QTooltip>
{{ t('ticket.summary.itemShortage') }}
@ -420,6 +423,7 @@ function getNoteValue(description) {
name="vn:components"
v-show="props.row.hasComponentLack"
color="primary"
size="xs"
>
<QTooltip>
{{ t('ticket.summary.hasComponentLack') }}
@ -438,6 +442,7 @@ function getNoteValue(description) {
rounded
v-if="props.row.visible < 0"
:color="'negative'"
text-color="white"
>
{{ props.row.visible }}
</QChip>
@ -448,6 +453,7 @@ function getNoteValue(description) {
rounded
v-if="props.row.available < 0"
:color="'negative'"
text-color="white"
>
{{ props.row.available }}
</QChip>

View File

@ -115,6 +115,15 @@ const warehouses = ref([]);
/>
</QItemSection>
</QItem>
<QItem>
<QItemSection>
<VnInput
v-model="params.scopedDays"
:label="t('Days onward')"
is-outlined
/>
</QItemSection>
</QItem>
<QItem>
<QItemSection>
<QCheckbox
@ -278,4 +287,5 @@ es:
Warehouse: Almacén
Yes: Si
No: No
Days onward: Días adelante
</i18n>

View File

@ -255,7 +255,6 @@ const fetchAddresses = async (formData) => {
}
};
const getColor = (row) => {
// return row?.classColor ? `bg-${row.classColor}` : 'bg-orange';
if (row.alertLevelCode === 'OK') return 'bg-success';
else if (row.alertLevelCode === 'FREE') return 'bg-notice';
else if (row.alertLevel === 1) return 'bg-warning';