feat: refs #7385 add delivery forecast and delivered fields to route summary and descriptor
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
dea2ddcd6c
commit
b25bd19bb5
|
@ -68,6 +68,19 @@ onMounted(async () => {
|
|||
<template #menu="{ entity }">
|
||||
<RouteDescriptorMenu :route="entity" />
|
||||
</template>
|
||||
<template #actions="{ entity }">
|
||||
<QCardActions class="flex justify-center" style="padding-inline: 0">
|
||||
<QBtn
|
||||
size="md"
|
||||
icon="vn:delivery"
|
||||
color="primary"
|
||||
:href="`https://grafana.verdnatura.es/d/edkvyi479dbeob/pronostico-de-entregas?orgId=1&var-vRouteFk=${entity.id}`"
|
||||
target="_blank"
|
||||
>
|
||||
<QTooltip>{{ $t('route.deliveryForecast') }}</QTooltip>
|
||||
</QBtn>
|
||||
</QCardActions>
|
||||
</template>
|
||||
</EntityDescriptor>
|
||||
</template>
|
||||
<i18n>
|
||||
|
|
|
@ -80,6 +80,20 @@ const ticketColumns = ref([
|
|||
sortable: false,
|
||||
align: 'left',
|
||||
},
|
||||
{
|
||||
name: 'dated',
|
||||
label: t('route.delivered'),
|
||||
field: (row) => dashIfEmpty(toDate(row?.landed)),
|
||||
sortable: false,
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
name: 'prevision',
|
||||
label: t('route.forecast'),
|
||||
field: (row) => dashIfEmpty(toDate(row?.eta)),
|
||||
sortable: false,
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
name: 'packages',
|
||||
label: t('route.summary.packages'),
|
||||
|
|
|
@ -70,6 +70,8 @@ route:
|
|||
searchInfo: You can search by route reference
|
||||
dated: Dated
|
||||
preview: Preview
|
||||
delivered: Delivered
|
||||
forecast: Forecast
|
||||
cmr:
|
||||
search: Search Cmr
|
||||
searchInfo: You can search Cmr by Id
|
||||
|
|
|
@ -71,6 +71,8 @@ route:
|
|||
searchInfo: Puedes buscar por referencia de la ruta
|
||||
dated: Fecha
|
||||
preview: Vista previa
|
||||
delivered: Entregado
|
||||
forecast: Pronóstico
|
||||
cmr:
|
||||
list:
|
||||
results: resultados
|
||||
|
|
Loading…
Reference in New Issue