fix: 'shippedDate' filter
gitea/salix-front/pipeline/head This commit looks good Details

This commit is contained in:
Javier Segarra 2025-04-10 14:59:52 +02:00
parent 5e0f0caa2e
commit 31451a86ed
2 changed files with 7 additions and 5 deletions

View File

@ -273,6 +273,7 @@ en:
orderFk: Order
from: From
shipped: Shipped
shippedDate: Shipped date
to: To
stateFk: State
groupedStates: Grouped State
@ -300,6 +301,7 @@ es:
orderFk: Pedido
from: Desde
shipped: F. envío
shippedDate: F. envío
to: Hasta
stateFk: Estado
groupedStates: Estado agrupado

View File

@ -113,13 +113,13 @@ const columns = computed(() => [
},
{
align: 'left',
name: 'shippedDate',
name: 'shipped',
cardVisible: true,
label: t('ticketList.shipped'),
columnFilter: {
component: 'date',
},
format: ({ shippedDate }) => toDate(shippedDate),
format: ({ shipped }) => toDate(shipped),
},
{
align: 'left',
@ -477,7 +477,7 @@ function setReference(data) {
prefix="card"
:array-data-props="{
url: 'Tickets/filter',
order: ['shippedDate DESC', 'shippedHour ASC', 'zoneLanding ASC', 'id'],
order: ['shipped DESC', 'shippedHour ASC', 'zoneLanding ASC', 'id'],
exprBuilder,
}"
>
@ -515,10 +515,10 @@ function setReference(data) {
<DepartmentDescriptorProxy :id="row.departmentFk" />
</span>
</template>
<template #column-shippedDate="{ row }">
<template #column-shipped="{ row }">
<span v-if="getDateColor(row.shipped)">
<QChip :class="getDateColor(row.shipped)" dense square>
{{ toDate(row.shippedDate) }}
{{ toDate(row.shipped) }}
</QChip>
</span>
</template>