fix: refs #8227 warmfix
gitea/salix-front/pipeline/pr-test This commit looks good Details

This commit is contained in:
Carlos Satorres 2025-02-13 10:38:30 +01:00
parent 8d209c9415
commit da295685a3
1 changed files with 9 additions and 4 deletions

View File

@ -38,7 +38,6 @@ const filter = {
'started', 'started',
'finished', 'finished',
'cost', 'cost',
'zoneFk',
'isOk', 'isOk',
], ],
include: [ include: [
@ -47,7 +46,13 @@ const filter = {
relation: 'vehicle', relation: 'vehicle',
scope: { fields: ['id', 'm3'] }, scope: { fields: ['id', 'm3'] },
}, },
{ relation: 'zone', scope: { fields: ['id', 'name'] } }, {
relation: 'ticket',
scope: {
fields: ['id', 'name', 'routeFk'],
include: { relation: 'route', scope: { fields: ['id', 'name'] } },
},
},
{ {
relation: 'worker', relation: 'worker',
scope: { scope: {
@ -81,11 +86,11 @@ const setData = (entity) => (data.value = useCardDescription(entity.code, entity
<template #body="{ entity }"> <template #body="{ entity }">
<VnLv :label="t('Date')" :value="toDate(entity?.dated)" /> <VnLv :label="t('Date')" :value="toDate(entity?.dated)" />
<VnLv :label="t('Agency')" :value="entity?.agencyMode?.name" /> <VnLv :label="t('Agency')" :value="entity?.agencyMode?.name" />
<VnLv :label="t('Zone')" :value="entity?.zone?.name" /> <VnLv :label="t('Zone')" :value="entity?.ticket?.route?.name" />
<VnLv <VnLv
:label="t('Volume')" :label="t('Volume')"
:value="`${dashIfEmpty(entity?.m3)} / ${dashIfEmpty( :value="`${dashIfEmpty(entity?.m3)} / ${dashIfEmpty(
entity?.vehicle?.m3 entity?.vehicle?.m3,
)} `" )} `"
/> />
<VnLv :label="t('Description')" :value="entity?.description" /> <VnLv :label="t('Description')" :value="entity?.description" />