0
0
Fork 0

Add new card to entry summary and fix links redirections

This commit is contained in:
William Buezas 2024-02-26 10:52:24 -03:00
parent 740eedbe44
commit 84a0be0a5c
1 changed files with 29 additions and 9 deletions

View File

@ -148,9 +148,13 @@ const fetchEntryBuys = async () => {
@on-fetch="(data) => setEntryData(data)" @on-fetch="(data) => setEntryData(data)"
> >
<template #header-left> <template #header-left>
<a class="header link" :href="entryUrl"> <router-link
:to="{ name: 'EntrySummary', params: { id: entityId } }"
class="header link"
:href="entryUrl"
>
<QIcon name="open_in_new" color="white" size="sm" /> <QIcon name="open_in_new" color="white" size="sm" />
</a> </router-link>
</template> </template>
<template #header> <template #header>
<span>{{ entry.id }} - {{ entry.supplier.nickname }}</span> <span>{{ entry.id }} - {{ entry.supplier.nickname }}</span>
@ -158,10 +162,13 @@ const fetchEntryBuys = async () => {
<template #body> <template #body>
<QCard class="vn-one"> <QCard class="vn-one">
<a class="header link" :href="entryUrl"> <router-link
:to="{ name: 'EntryBasicData', params: { id: entityId } }"
class="header link"
>
{{ t('globals.summary.basicData') }} {{ t('globals.summary.basicData') }}
<QIcon name="open_in_new" color="primary" /> <QIcon name="open_in_new" color="primary" />
</a> </router-link>
<VnRow> <VnRow>
<div class="col"> <div class="col">
<VnLv <VnLv
@ -193,6 +200,17 @@ const fetchEntryBuys = async () => {
:value="entry.invoiceNumber" :value="entry.invoiceNumber"
/> />
</div> </div>
</VnRow>
</QCard>
<QCard class="vn-one">
<router-link
:to="{ name: 'EntryBasicData', params: { id: entityId } }"
class="header link"
>
{{ t('globals.summary.basicData') }}
<QIcon name="open_in_new" color="primary" />
</router-link>
<VnRow>
<div class="col"> <div class="col">
<VnLv <VnLv
:label="t('entry.summary.ordered')" :label="t('entry.summary.ordered')"
@ -218,15 +236,17 @@ const fetchEntryBuys = async () => {
<VnLv <VnLv
:label="t('entry.summary.excludedFromAvailable')" :label="t('entry.summary.excludedFromAvailable')"
:value="entry.isExcludedFromAvailable" :value="entry.isExcludedFromAvailable"
/> /></div
</div> ></VnRow>
</VnRow>
</QCard> </QCard>
<QCard class="vn-one"> <QCard class="vn-one">
<a class="header link" :href="entryUrl"> <router-link
:to="{ name: 'TravelSummary', params: { id: entry.travel.id } }"
class="header link"
>
{{ t('Travel data') }} {{ t('Travel data') }}
<QIcon name="open_in_new" color="primary" /> <QIcon name="open_in_new" color="primary" />
</a> </router-link>
<VnRow> <VnRow>
<div class="col"> <div class="col">
<VnLv :label="t('entry.summary.travelReference')"> <VnLv :label="t('entry.summary.travelReference')">