refactor: refs #7553 requested changes
This commit is contained in:
parent
102f7fb13e
commit
8ff9dae1d8
|
@ -351,7 +351,7 @@ function getNoteValue(description) {
|
||||||
</template>
|
</template>
|
||||||
<template #body="props">
|
<template #body="props">
|
||||||
<QTr :props="props">
|
<QTr :props="props">
|
||||||
<QTd>
|
<QTd class="q-gutter-x-xs">
|
||||||
<QBtn
|
<QBtn
|
||||||
flat
|
flat
|
||||||
round
|
round
|
||||||
|
@ -392,6 +392,7 @@ function getNoteValue(description) {
|
||||||
name="warning"
|
name="warning"
|
||||||
v-show="props.row.visible < 0"
|
v-show="props.row.visible < 0"
|
||||||
color="primary"
|
color="primary"
|
||||||
|
size="xs"
|
||||||
>
|
>
|
||||||
<QTooltip>
|
<QTooltip>
|
||||||
{{ t('ticket.summary.visible') }}:
|
{{ t('ticket.summary.visible') }}:
|
||||||
|
@ -402,6 +403,7 @@ function getNoteValue(description) {
|
||||||
name="vn:reserva"
|
name="vn:reserva"
|
||||||
v-show="props.row.reserved"
|
v-show="props.row.reserved"
|
||||||
color="primary"
|
color="primary"
|
||||||
|
size="xs"
|
||||||
>
|
>
|
||||||
<QTooltip>
|
<QTooltip>
|
||||||
{{ t('ticket.summary.reserved') }}
|
{{ t('ticket.summary.reserved') }}
|
||||||
|
@ -411,6 +413,7 @@ function getNoteValue(description) {
|
||||||
name="vn:unavailable"
|
name="vn:unavailable"
|
||||||
v-show="props.row.itemShortage"
|
v-show="props.row.itemShortage"
|
||||||
color="primary"
|
color="primary"
|
||||||
|
size="xs"
|
||||||
>
|
>
|
||||||
<QTooltip>
|
<QTooltip>
|
||||||
{{ t('ticket.summary.itemShortage') }}
|
{{ t('ticket.summary.itemShortage') }}
|
||||||
|
@ -420,6 +423,7 @@ function getNoteValue(description) {
|
||||||
name="vn:components"
|
name="vn:components"
|
||||||
v-show="props.row.hasComponentLack"
|
v-show="props.row.hasComponentLack"
|
||||||
color="primary"
|
color="primary"
|
||||||
|
size="xs"
|
||||||
>
|
>
|
||||||
<QTooltip>
|
<QTooltip>
|
||||||
{{ t('ticket.summary.hasComponentLack') }}
|
{{ t('ticket.summary.hasComponentLack') }}
|
||||||
|
@ -438,6 +442,7 @@ function getNoteValue(description) {
|
||||||
rounded
|
rounded
|
||||||
v-if="props.row.visible < 0"
|
v-if="props.row.visible < 0"
|
||||||
:color="'negative'"
|
:color="'negative'"
|
||||||
|
text-color="white"
|
||||||
>
|
>
|
||||||
{{ props.row.visible }}
|
{{ props.row.visible }}
|
||||||
</QChip>
|
</QChip>
|
||||||
|
@ -448,6 +453,7 @@ function getNoteValue(description) {
|
||||||
rounded
|
rounded
|
||||||
v-if="props.row.available < 0"
|
v-if="props.row.available < 0"
|
||||||
:color="'negative'"
|
:color="'negative'"
|
||||||
|
text-color="white"
|
||||||
>
|
>
|
||||||
{{ props.row.available }}
|
{{ props.row.available }}
|
||||||
</QChip>
|
</QChip>
|
||||||
|
|
|
@ -115,6 +115,15 @@ const warehouses = ref([]);
|
||||||
/>
|
/>
|
||||||
</QItemSection>
|
</QItemSection>
|
||||||
</QItem>
|
</QItem>
|
||||||
|
<QItem>
|
||||||
|
<QItemSection>
|
||||||
|
<VnInput
|
||||||
|
v-model="params.scopedDays"
|
||||||
|
:label="t('Days onward')"
|
||||||
|
is-outlined
|
||||||
|
/>
|
||||||
|
</QItemSection>
|
||||||
|
</QItem>
|
||||||
<QItem>
|
<QItem>
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<QCheckbox
|
<QCheckbox
|
||||||
|
@ -278,4 +287,5 @@ es:
|
||||||
Warehouse: Almacén
|
Warehouse: Almacén
|
||||||
Yes: Si
|
Yes: Si
|
||||||
No: No
|
No: No
|
||||||
|
Days onward: Días adelante
|
||||||
</i18n>
|
</i18n>
|
||||||
|
|
|
@ -255,7 +255,6 @@ const fetchAddresses = async (formData) => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const getColor = (row) => {
|
const getColor = (row) => {
|
||||||
// return row?.classColor ? `bg-${row.classColor}` : 'bg-orange';
|
|
||||||
if (row.alertLevelCode === 'OK') return 'bg-success';
|
if (row.alertLevelCode === 'OK') return 'bg-success';
|
||||||
else if (row.alertLevelCode === 'FREE') return 'bg-notice';
|
else if (row.alertLevelCode === 'FREE') return 'bg-notice';
|
||||||
else if (row.alertLevel === 1) return 'bg-warning';
|
else if (row.alertLevel === 1) return 'bg-warning';
|
||||||
|
|
Loading…
Reference in New Issue