68 lines
3.1 KiB
HTML
68 lines
3.1 KiB
HTML
<report-body v-bind="$props">
|
|
<div class="grid-row">
|
|
<div class="grid-block">
|
|
<h1 class="title uppercase">{{$t('title')}}</h1>
|
|
</div>
|
|
</div>
|
|
<div class="grid-row vn-mb-lg" v-for="travel in travels">
|
|
<div class="grid-block">
|
|
<div class="panel">
|
|
<div class="header">{{$t('information')}}</div>
|
|
<div class="body">
|
|
<div>
|
|
<table width="100%">
|
|
<tbody>
|
|
<tr>
|
|
<th class="font gray align-right">{{$t('reference')}}</th>
|
|
<td>{{travel.ref}}</td>
|
|
<th class="font gray align-right">{{$t('blockedKg')}}</th>
|
|
<td>{{travel.kg | number($i18n.locale)}}</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="font gray align-right">{{$t('packages')}}</th>
|
|
<td>{{travel.stickers}}</td>
|
|
<th class="font gray align-right">{{$t('volumeKg')}}</th>
|
|
<td>{{travel.volumeKg | number($i18n.locale)}}</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="font gray align-right">{{$t('shipped')}}</th>
|
|
<td>{{travel.shipped | date('%d-%m-%Y')}}</td>
|
|
<th class="font gray align-right">{{$t('physicalKg')}}</th>
|
|
<td>{{travel.loadedKg | number($i18n.locale)}}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<table class="column-oriented">
|
|
<thead>
|
|
<tr>
|
|
<th>{{$t('supplier')}}</th>
|
|
<th>{{$t('reference')}}</th>
|
|
<th class="number">{{$t('volKg')}}</th>
|
|
<th class="number">{{$t('phyKg')}}</th>
|
|
<th class="number">{{$t('packages')}}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr v-for="entry in travel.entries">
|
|
<td>{{entry.supplierName}}</td>
|
|
<td>{{entry.reference}}</td>
|
|
<td class="number">{{entry.volumeKg | number($i18n.locale)}}</td>
|
|
<td class="number">{{entry.loadedKg | number($i18n.locale)}}</td>
|
|
<td class="number">{{entry.stickers}}</td>
|
|
</tr>
|
|
<tr v-if="!travel.entries">
|
|
<td colspan="5" class="centered">{{$t('noRows')}}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<template v-slot:footer>
|
|
<report-footer id="pageFooter" v-bind:left-text="dated" v-bind="$props"></report-footer>
|
|
</template>
|
|
</report-body>
|