0
0
Fork 0

warmFix row

This commit is contained in:
Carlos Satorres 2024-03-01 08:53:53 +01:00
parent ada7dc2cb2
commit 91a137b072
1 changed files with 124 additions and 114 deletions

View File

@ -39,30 +39,47 @@ onMounted(async () => {
const tableColumnComponents = { const tableColumnComponents = {
quantity: { quantity: {
component: () => 'span', component: () => 'span',
props: () => {},
}, },
stickers: { stickers: {
component: () => 'span', component: () => 'span',
props: () => {},
event: () => {},
}, },
packagingFk: { packagingFk: {
component: () => 'span', component: () => 'span',
props: () => {},
event: () => {},
}, },
weight: { weight: {
component: () => 'span', component: () => 'span',
props: () => {},
event: () => {},
}, },
packing: { packing: {
component: () => 'span', component: () => 'span',
props: () => {},
event: () => {},
}, },
grouping: { grouping: {
component: () => 'span', component: () => 'span',
props: () => {},
event: () => {},
}, },
buyingValue: { buyingValue: {
component: () => 'span', component: () => 'span',
props: () => {},
event: () => {},
}, },
amount: { amount: {
component: () => 'span', component: () => 'span',
props: () => {},
event: () => {},
}, },
pvp: { pvp: {
component: () => 'span', component: () => 'span',
props: () => {},
event: () => {},
}, },
}; };
@ -162,125 +179,115 @@ const fetchEntryBuys = async () => {
{{ t('globals.summary.basicData') }} {{ t('globals.summary.basicData') }}
<QIcon name="open_in_new" color="primary" /> <QIcon name="open_in_new" color="primary" />
</a> </a>
<VnRow> <div class="col">
<div class="col"> <VnLv
<VnLv :label="t('entry.summary.commission')"
:label="t('entry.summary.commission')" :value="entry.commission"
:value="entry.commission" />
/> </div>
</div> <div class="col">
<div class="col"> <VnLv
<VnLv :label="t('entry.summary.currency')"
:label="t('entry.summary.currency')" :value="entry.currency.name"
:value="entry.currency.name" />
/> </div>
</div> <div class="col">
<div class="col"> <VnLv
<VnLv :label="t('entry.summary.company')"
:label="t('entry.summary.company')" :value="entry.company.code"
:value="entry.company.code" />
/> </div>
</div> <div class="col">
<div class="col"> <VnLv
<VnLv :label="t('entry.summary.reference')"
:label="t('entry.summary.reference')" :value="entry.reference"
:value="entry.reference" />
/> </div>
</div> <div class="col">
<div class="col"> <VnLv
<VnLv :label="t('entry.summary.invoiceNumber')"
:label="t('entry.summary.invoiceNumber')" :value="entry.invoiceNumber"
:value="entry.invoiceNumber" />
/> </div>
</div> <div class="col">
<div class="col"> <VnLv :label="t('entry.summary.ordered')" :value="entry.isOrdered" />
<VnLv </div>
:label="t('entry.summary.ordered')" <div class="col">
:value="entry.isOrdered" <VnLv
/> :label="t('entry.summary.confirmed')"
</div> :value="entry.isConfirmed"
<div class="col"> />
<VnLv </div>
:label="t('entry.summary.confirmed')" <div class="col">
:value="entry.isConfirmed" <VnLv :label="t('entry.summary.booked')" :value="entry.isBooked" />
/> </div>
</div> <div class="col">
<div class="col"> <VnLv :label="t('entry.summary.raid')" :value="entry.isRaid" />
<VnLv </div>
:label="t('entry.summary.booked')" <div class="col">
:value="entry.isBooked" <VnLv
/> :label="t('entry.summary.excludedFromAvailable')"
</div> :value="entry.isExcludedFromAvailable"
<div class="col"> />
<VnLv :label="t('entry.summary.raid')" :value="entry.isRaid" /> </div>
</div>
<div class="col">
<VnLv
:label="t('entry.summary.excludedFromAvailable')"
:value="entry.isExcludedFromAvailable"
/>
</div>
</VnRow>
</QCard> </QCard>
<QCard class="vn-one"> <QCard class="vn-one">
<a class="header link" :href="entryUrl"> <a class="header link" :href="entryUrl">
{{ t('Travel data') }} {{ t('Travel data') }}
<QIcon name="open_in_new" color="primary" /> <QIcon name="open_in_new" color="primary" />
</a> </a>
<VnRow> <div class="col">
<div class="col"> <VnLv :label="t('entry.summary.travelReference')">
<VnLv :label="t('entry.summary.travelReference')"> <template #value>
<template #value> <span class="link">
<span class="link"> {{ entry.travel.ref }}
{{ entry.travel.ref }} <TravelDescriptorProxy :id="entry.travel.id" />
<TravelDescriptorProxy :id="entry.travel.id" /> </span>
</span> </template>
</template> </VnLv>
</VnLv> </div>
</div> <div class="col">
<div class="col"> <VnLv
<VnLv :label="t('entry.summary.travelAgency')"
:label="t('entry.summary.travelAgency')" :value="entry.travel.agency.name"
:value="entry.travel.agency.name" />
/> </div>
</div> <div class="col">
<div class="col"> <VnLv
<VnLv :label="t('entry.summary.travelShipped')"
:label="t('entry.summary.travelShipped')" :value="toDate(entry.travel.shipped)"
:value="toDate(entry.travel.shipped)" />
/> </div>
</div> <div class="col">
<div class="col"> <VnLv
<VnLv :label="t('entry.summary.travelWarehouseOut')"
:label="t('entry.summary.travelWarehouseOut')" :value="entry.travel.warehouseOut.name"
:value="entry.travel.warehouseOut.name" />
/> </div>
</div> <div class="col">
<div class="col"> <VnLv
<VnLv :label="t('entry.summary.travelDelivered')"
:label="t('entry.summary.travelDelivered')" :value="entry.travel.isDelivered"
:value="entry.travel.isDelivered" />
/> </div>
</div> <div class="col">
<div class="col"> <VnLv
<VnLv :label="t('entry.summary.travelLanded')"
:label="t('entry.summary.travelLanded')" :value="toDate(entry.travel.landed)"
:value="toDate(entry.travel.landed)" />
/> </div>
</div> <div class="col">
<div class="col"> <VnLv
<VnLv :label="t('entry.summary.travelWarehouseIn')"
:label="t('entry.summary.travelWarehouseIn')" :value="entry.travel.warehouseIn.name"
:value="entry.travel.warehouseIn.name" />
/> </div>
</div> <div class="col">
<div class="col"> <VnLv
<VnLv :label="t('entry.summary.travelReceived')"
:label="t('entry.summary.travelReceived')" :value="entry.travel.isReceived"
:value="entry.travel.isReceived" />
/> </div>
</div>
</VnRow>
</QCard> </QCard>
<QCard class="vn-two" style="min-width: 100%"> <QCard class="vn-two" style="min-width: 100%">
<a class="header"> <a class="header">
@ -297,7 +304,10 @@ const fetchEntryBuys = async () => {
<QTr no-hover> <QTr no-hover>
<QTd v-for="col in cols" :key="col.name"> <QTd v-for="col in cols" :key="col.name">
<component <component
:is="tableColumnComponents[col.name].component()" :is="tableColumnComponents[col.name].component(props)"
v-bind="tableColumnComponents[col.name].props(props)"
@click="tableColumnComponents[col.name].event(props)"
class="col-content"
> >
<template <template
v-if=" v-if="