0
0
Fork 0

Fix travel summary cards

This commit is contained in:
Kevin Martinez 2024-01-04 00:58:08 -04:00
parent bdbc3209f4
commit 5e9006bf33
1 changed files with 45 additions and 67 deletions

View File

@ -218,21 +218,15 @@ const openEntryDescriptor = () => {};
</template> </template>
<template #body> <template #body>
<QCard class="vn-one row justify-around" style="min-width: 100%"> <QCard class="vn-one">
<VnRow>
<div class="col">
<VnLv <VnLv
:label="t('globals.shipped')" :label="t('globals.shipped')"
:value="toDate(travel.shipped)" :value="toDate(travel.shipped)"
/> />
</div>
<div class="col">
<VnLv <VnLv
:label="t('globals.wareHouseOut')" :label="t('globals.wareHouseOut')"
:value="travel.warehouseOut?.name" :value="travel.warehouseOut?.name"
/> />
</div>
<div class="col">
<VnLv :label="t('travel.summary.delivered')" class="q-mb-xs"> <VnLv :label="t('travel.summary.delivered')" class="q-mb-xs">
<template #value> <template #value>
<QCheckbox <QCheckbox
@ -243,22 +237,16 @@ const openEntryDescriptor = () => {};
/> />
</template> </template>
</VnLv> </VnLv>
</div> </QCard>
</VnRow> <QCard class="vn-one">
<VnRow>
<div class="col">
<VnLv <VnLv
:label="t('globals.landed')" :label="t('globals.landed')"
:value="toDate(travel.landed)" :value="toDate(travel.landed)"
/> />
</div>
<div class="col">
<VnLv <VnLv
:label="t('globals.wareHouseIn')" :label="t('globals.wareHouseIn')"
:value="travel.warehouseIn?.name" :value="travel.warehouseIn?.name"
/> />
</div>
<div class="col">
<VnLv :label="t('travel.summary.received')" class="q-mb-xs"> <VnLv :label="t('travel.summary.received')" class="q-mb-xs">
<template #value> <template #value>
<QCheckbox <QCheckbox
@ -269,24 +257,14 @@ const openEntryDescriptor = () => {};
/> />
</template> </template>
</VnLv> </VnLv>
</div>
</VnRow>
<VnRow>
<div class="col">
<VnLv :label="t('globals.agency')" :value="travel.agency?.name" />
</div>
<div class="col">
<VnLv :label="t('globals.reference')" :value="travel.ref" />
</div>
<div class="col">
<VnLv label="m³" :value="travel.m3" />
</div>
<div class="col">
<VnLv :label="t('globals.totalEntries')" :value="travel.m3" />
</div>
</VnRow>
</QCard> </QCard>
<QCard class="vn-two" v-if="entriesTableRows.length > 0"> <QCard class="vn-one">
<VnLv :label="t('globals.agency')" :value="travel.agency?.name" />
<VnLv :label="t('globals.reference')" :value="travel.ref" />
<VnLv label="m³" :value="travel.m3" />
<VnLv :label="t('globals.totalEntries')" :value="travel.m3" />
</QCard>
<QCard class="full-width" v-if="entriesTableRows.length > 0">
<a class="header" :href="travelUrl + 'entry'"> <a class="header" :href="travelUrl + 'entry'">
{{ t('travel.summary.entries') }} {{ t('travel.summary.entries') }}
<QIcon name="open_in_new" color="primary" /> <QIcon name="open_in_new" color="primary" />