This commit is contained in:
parent
8d209c9415
commit
da295685a3
|
@ -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,
|
||||||
)} m³`"
|
)} m³`"
|
||||||
/>
|
/>
|
||||||
<VnLv :label="t('Description')" :value="entity?.description" />
|
<VnLv :label="t('Description')" :value="entity?.description" />
|
||||||
|
|
Loading…
Reference in New Issue