0
0
Fork 0

cambios varios en id de cards y travel summary layout data

This commit is contained in:
William Buezas 2023-12-11 09:47:51 -03:00
parent bc6ef24cd8
commit 02e220ea42
4 changed files with 69 additions and 41 deletions

View File

@ -72,10 +72,10 @@ function viewSummary(id) {
v-for="row of rows" v-for="row of rows"
:key="row.id" :key="row.id"
:title="row.name" :title="row.name"
:id="row.id"
@click="navigate(row.id)" @click="navigate(row.id)"
> >
<template #list-items> <template #list-items>
<VnLv label="ID" :value="row.id" />
<VnLv :label="t('customer.list.email')" :value="row.email" /> <VnLv :label="t('customer.list.email')" :value="row.email" />
<VnLv :label="t('customer.list.phone')" :value="row.phone" /> <VnLv :label="t('customer.list.phone')" :value="row.phone" />
</template> </template>

View File

@ -9,6 +9,7 @@ import { toDate } from 'src/filters';
import travelService from 'src/services/travel.service'; import travelService from 'src/services/travel.service';
import { QCheckbox, QIcon } from 'quasar'; import { QCheckbox, QIcon } from 'quasar';
import { toCurrency } from 'filters/index'; import { toCurrency } from 'filters/index';
import VnRow from 'components/ui/VnRow.vue';
onUpdated(() => summaryRef.value.fetch()); onUpdated(() => summaryRef.value.fetch());
@ -207,23 +208,21 @@ const openEntryDescriptor = () => {};
</template> </template>
<template #body> <template #body>
<QCard class="vn-one"> <QCard class="vn-one row justify-around" style="min-width: 100%">
<VnLv :label="t('globals.shipped')" :value="toDate(travel.shipped)" /> <VnRow>
<VnLv :label="t('globals.landed')" :value="toDate(travel.landed)" /> <div class="col">
<VnLv :label="t('globals.agency')" :value="travel.agency?.name" /> <VnLv
:label="t('globals.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"
/> />
<VnLv </div>
:label="t('globals.wareHouseIn')" <div class="col">
:value="travel.warehouseIn?.name"
/>
<VnLv :label="t('globals.reference')" :value="travel.ref" />
<VnLv label="m³" :value="travel.m3" />
<VnLv :label="t('globals.totalEntries')" :value="travel.m3" />
<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
@ -234,6 +233,22 @@ const openEntryDescriptor = () => {};
/> />
</template> </template>
</VnLv> </VnLv>
</div>
</VnRow>
<VnRow>
<div class="col">
<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"> <VnLv :label="t('travel.summary.received')" class="q-mb-xs">
<template #value> <template #value>
<QCheckbox <QCheckbox
@ -244,6 +259,22 @@ 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-two" v-if="entriesTableRows.length > 0">
<a class="header" :href="travelUrl + 'entry'"> <a class="header" :href="travelUrl + 'entry'">

View File

@ -57,9 +57,6 @@ async function remove(row) {
:id="row.id" :id="row.id"
@click="navigate(row.id)" @click="navigate(row.id)"
> >
<template #list-items>
<VnLv label="ID" :value="row.id" />
</template>
<template #actions> <template #actions>
<QBtn <QBtn
:label="t('components.smartCard.openCard')" :label="t('components.smartCard.openCard')"

View File

@ -71,11 +71,11 @@ function viewSummary(id) {
<CardList <CardList
v-for="row of rows" v-for="row of rows"
:key="row.id" :key="row.id"
@click="navigate(row.id)" :id="row.id"
:title="row.nickname" :title="row.nickname"
@click="navigate(row.id)"
> >
<template #list-items> <template #list-items>
<VnLv label="ID" :value="row.id" />
<VnLv :label="t('worker.list.name')" :value="row.userName" /> <VnLv :label="t('worker.list.name')" :value="row.userName" />
<VnLv :label="t('worker.list.email')" :value="row.email" /> <VnLv :label="t('worker.list.email')" :value="row.email" />
<VnLv <VnLv