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 #body>
<QCard class="vn-one row justify-around" style="min-width: 100%">
<VnRow>
<div class="col">
<QCard class="vn-one">
<VnLv
:label="t('globals.shipped')"
:value="toDate(travel.shipped)"
/>
</div>
<div class="col">
<VnLv
:label="t('globals.wareHouseOut')"
:value="travel.warehouseOut?.name"
/>
</div>
<div class="col">
<VnLv :label="t('travel.summary.delivered')" class="q-mb-xs">
<template #value>
<QCheckbox
@ -243,22 +237,16 @@ const openEntryDescriptor = () => {};
/>
</template>
</VnLv>
</div>
</VnRow>
<VnRow>
<div class="col">
</QCard>
<QCard class="vn-one">
<VnLv
:label="t('globals.landed')"
:value="toDate(travel.landed)"
/>
</div>
<div class="col">
<VnLv
:label="t('globals.wareHouseIn')"
:value="travel.warehouseIn?.name"
/>
</div>
<div class="col">
<VnLv :label="t('travel.summary.received')" class="q-mb-xs">
<template #value>
<QCheckbox
@ -269,24 +257,14 @@ const openEntryDescriptor = () => {};
/>
</template>
</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 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'">
{{ t('travel.summary.entries') }}
<QIcon name="open_in_new" color="primary" />