salix/print/templates/reports/driver-route/driver-route.html

161 lines
9.4 KiB
HTML
Raw Normal View History

2019-04-10 07:45:45 +00:00
<!DOCTYPE html>
2019-11-04 12:55:20 +00:00
<html v-bind:lang="locale">
2019-04-10 07:45:45 +00:00
<body>
<section class="container" id="report">
2019-04-15 12:34:33 +00:00
<!-- Header component -->
2019-11-04 12:55:20 +00:00
<report-header
v-bind:is-preview="isPreview"
v-bind:locale="locale">
</report-header>
2019-04-15 12:34:33 +00:00
<!-- End header component -->
2019-04-10 07:45:45 +00:00
<section class="main">
2019-11-04 12:55:20 +00:00
<h1 class="title uppercase">{{$t('title')}}</h1>
2019-04-15 12:34:33 +00:00
<section class="panel">
2019-11-04 12:55:20 +00:00
<section class="header">{{$t('information')}}</section>
2019-04-15 12:34:33 +00:00
<section class="body">
<section>
<table width="100%">
<tbody>
<tr>
2019-11-04 12:55:20 +00:00
<th class="font gray align-right">{{$t('route')}}</th>
2019-04-15 12:34:33 +00:00
<td>{{route.id}}</td>
2019-11-04 12:55:20 +00:00
<th class="font gray align-right">{{$t('driver')}}</th>
2019-04-15 12:34:33 +00:00
<td>{{route.userNickName}}</td>
</tr>
<tr>
2019-11-04 12:55:20 +00:00
<th class="font gray align-right">{{$t('date')}}</th>
<td>{{route.created | date('%d-%m-%Y')}}</td>
<th class="font gray align-right">{{$t('vehicle')}}</th>
2019-04-15 12:34:33 +00:00
<td>{{route.vehicleTradeMark}} {{route.vehicleModel}}</td>
</tr>
<tr>
2019-11-04 12:55:20 +00:00
<th class="font gray align-right">{{$t('time')}}</th>
<td>{{route.time | date('%H:%M')}}</td>
2019-04-15 12:34:33 +00:00
<td></td>
<td>{{route.plateNumber}}</td>
</tr>
<tr>
2019-11-04 12:55:20 +00:00
<th class="font gray align-right">{{$t('volume')}}</th>
2019-04-15 12:34:33 +00:00
<td>{{route.m3}}</td>
2019-11-04 12:55:20 +00:00
<th class="font gray align-right">{{$t('agency')}}</th>
2019-04-15 12:34:33 +00:00
<td>{{route.agencyName}}</td>
</tr>
</tbody>
</table>
<section class="contained">
<table class="middle centered" width="70%">
<tbody>
<tr>
<td>
<p class="small">Hora inicio</p>
</td>
<td>
<p class="small">Hora fin</p>
</td>
<td class="gap"></td>
<td>
<p class="small">Km inicio</p>
</td>
<td>
<p class="small">Km fin</p>
</td>
</tr>
<tr>
<td v-for="i in 2">
<section class="field rectangle">
<span></span>
</section>
</td>
<td class="gap"></td>
<td v-for="i in 2">
<section class="field rectangle">
<span></span>
</section>
</td>
</tr>
</tbody>
</table>
</section>
</section>
</section>
</section>
<section class="non-page-break" v-for="ticket in tickets">
<section>
<table class="column-oriented repeatable">
<thead>
<tr>
2019-11-04 12:55:20 +00:00
<td class="number">{{$t('order')}}</td>
<td class="number">{{$t('ticket')}}</td>
<td>{{$t('client')}}</td>
<td class="number">{{$t('address')}}</td>
<td class="number">{{$t('packages')}}</td>
2019-04-15 12:34:33 +00:00
</tr>
</thead>
<tbody>
<tr>
<td class="number">{{ticket.priority}}</td>
<td class="number">{{ticket.id}}</td>
<td>{{ticket.clientFk}} {{ticket.addressName}}</td>
<td v-if="ticket.addressFk" class="number">
{{ticket.addressFk.toString().substr(0, ticket.addressFk.toString().length - 3)}}
<span class="black-container">
{{ticket.addressFk.toString().substr(-3, 3)}}
</span>
</td>
<td class="number">{{ticket.packages}}</td>
</tr>
</tbody>
</table>
</section>
<section>
<table width="100%">
<tbody>
<tr>
2019-11-04 12:55:20 +00:00
<th class="font gray align-right">{{$t('street')}}</th>
2019-04-15 12:34:33 +00:00
<td>{{ticket.street}}</td>
2019-11-04 12:55:20 +00:00
<th class="font gray align-right">{{$t('postcode')}}</th>
2019-04-15 12:34:33 +00:00
<td>{{ticket.postalCode}}</td>
</tr>
<tr>
2019-11-04 12:55:20 +00:00
<th class="font gray align-right">{{$t('city')}}</th>
2019-04-15 12:34:33 +00:00
<td>{{ticket.city}}</td>
2019-11-04 12:55:20 +00:00
<th class="font gray align-right">{{$t('agency')}}</th>
2019-04-15 12:34:33 +00:00
<td>{{ticket.ticketAgency}}</td>
</tr>
<tr>
2019-11-04 12:55:20 +00:00
<th class="font gray align-right">{{$t('mobile')}}</th>
2019-04-15 12:34:33 +00:00
<td>{{ticket.mobile}}</td>
2019-11-04 12:55:20 +00:00
<th class="font gray align-right">{{$t('phone')}}</th>
2019-04-15 12:34:33 +00:00
<td>{{ticket.phone}}</td>
</tr>
<tr>
2019-11-04 12:55:20 +00:00
<th class="font gray align-right">{{$t('warehouse')}}</th>
2019-04-15 12:34:33 +00:00
<td>{{ticket.warehouseName}}</td>
<th class="font gray align-right">{{$t('salesPerson')}}</th>
<td>{{ticket.salesPersonName}}</td>
</tr>
<tr>
2019-11-04 12:55:20 +00:00
<th class="font gray align-right">{{$t('import')}}</th>
2019-04-15 12:34:33 +00:00
<td>{{ticket.import}}</td>
</tr>
</tbody>
</table>
<section v-if="ticket.description || ticket.shipFk" class="text-area">
<p>{{ticket.description}}</p>
<p v-if="ticket.shipFk">{{$t('stowaway')}}: {{ticket.shipFk}}</p>
</section>
</section>
</section>
</section>
2019-04-10 07:45:45 +00:00
</section>
2019-04-15 12:34:33 +00:00
<!-- Footer component -->
<report-footer id="pageFooter"
2019-11-04 12:55:20 +00:00
v-bind:left-text="$t('routeId', [route.id])"
v-bind:is-preview="isPreview"
v-bind:locale="locale">
2019-04-15 12:34:33 +00:00
</report-footer>
<!-- End footer component -->
2019-04-10 07:45:45 +00:00
</section>
</body>
2019-04-15 12:34:33 +00:00
</html>