forked from verdnatura/salix-front
cambios varios en id de cards y travel summary layout data
This commit is contained in:
parent
bc6ef24cd8
commit
02e220ea42
|
@ -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>
|
||||||
|
|
|
@ -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,43 +208,73 @@ 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
|
||||||
<VnLv
|
:label="t('globals.shipped')"
|
||||||
:label="t('globals.wareHouseOut')"
|
:value="toDate(travel.shipped)"
|
||||||
:value="travel.warehouseOut?.name"
|
|
||||||
/>
|
|
||||||
<VnLv
|
|
||||||
:label="t('globals.wareHouseIn')"
|
|
||||||
: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">
|
|
||||||
<template #value>
|
|
||||||
<QCheckbox
|
|
||||||
v-model="travel.isDelivered"
|
|
||||||
disable
|
|
||||||
dense
|
|
||||||
class="full-width q-my-xs"
|
|
||||||
/>
|
/>
|
||||||
</template>
|
</div>
|
||||||
</VnLv>
|
<div class="col">
|
||||||
<VnLv :label="t('travel.summary.received')" class="q-mb-xs">
|
<VnLv
|
||||||
<template #value>
|
:label="t('globals.wareHouseOut')"
|
||||||
<QCheckbox
|
:value="travel.warehouseOut?.name"
|
||||||
v-model="travel.isReceived"
|
|
||||||
disable
|
|
||||||
dense
|
|
||||||
class="full-width q-mb-xs"
|
|
||||||
/>
|
/>
|
||||||
</template>
|
</div>
|
||||||
</VnLv>
|
<div class="col">
|
||||||
|
<VnLv :label="t('travel.summary.delivered')" class="q-mb-xs">
|
||||||
|
<template #value>
|
||||||
|
<QCheckbox
|
||||||
|
v-model="travel.isDelivered"
|
||||||
|
disable
|
||||||
|
dense
|
||||||
|
class="full-width q-my-xs"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
</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">
|
||||||
|
<template #value>
|
||||||
|
<QCheckbox
|
||||||
|
v-model="travel.isReceived"
|
||||||
|
disable
|
||||||
|
dense
|
||||||
|
class="full-width q-mb-xs"
|
||||||
|
/>
|
||||||
|
</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>
|
||||||
<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'">
|
||||||
|
|
|
@ -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')"
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue