2019-03-22 10:10:23 +00:00
|
|
|
<vn-card class="summary">
|
|
|
|
<h5>{{$ctrl.summary.route.id}} - {{$ctrl.summary.route.description}}</h5>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-one>
|
|
|
|
<vn-label-value label="Id"
|
|
|
|
value="{{$ctrl.summary.route.id}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Date"
|
2019-10-18 23:18:25 +00:00
|
|
|
value="{{$ctrl.summary.route.created | date: 'dd/MM/yyyy'}}">
|
2019-03-22 10:10:23 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Agency"
|
|
|
|
value="{{$ctrl.summary.route.agencyMode.name}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Vehicle"
|
2019-03-22 11:34:42 +00:00
|
|
|
value="{{$ctrl.summary.route.vehicle.numberPlate}}">
|
2019-03-22 10:10:23 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Driver"
|
|
|
|
value="{{$ctrl.summary.route.worker.user.nickname}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Cost"
|
|
|
|
value="{{$ctrl.summary.route.cost | currency: 'EUR':2}}">
|
|
|
|
</vn-label-value>
|
|
|
|
</vn-one>
|
|
|
|
<vn-one>
|
2019-03-25 14:45:59 +00:00
|
|
|
<vn-label-value label="Starting time"
|
2019-10-18 23:18:25 +00:00
|
|
|
value="{{$ctrl.summary.route.time | date: 'HH:MM'}}">
|
2019-03-22 10:10:23 +00:00
|
|
|
</vn-label-value>
|
2019-03-25 14:45:59 +00:00
|
|
|
<vn-label-value label="Finishing time"
|
2019-10-18 23:18:25 +00:00
|
|
|
value="{{$ctrl.summary.route.finished | date: 'HH:MM'}}">
|
2019-03-22 10:10:23 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Km Start"
|
|
|
|
value="{{$ctrl.summary.route.kmStart}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Km End"
|
|
|
|
value="{{$ctrl.summary.route.kmEnd}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Volume"
|
|
|
|
value="{{$ctrl.summary.route.m3 | dashIfEmpty}} / {{$ctrl.summary.route.vehicle.m3 | dashIfEmpty}} m³">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Packages"
|
|
|
|
value="{{$ctrl.packagesTotal}}">
|
|
|
|
</vn-label-value>
|
|
|
|
</vn-one>
|
|
|
|
<vn-one>
|
|
|
|
<vn-textarea
|
|
|
|
disabled="true"
|
|
|
|
label="Description"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.summary.route.description">
|
2019-03-22 10:10:23 +00:00
|
|
|
</vn-textarea>
|
|
|
|
</vn-one>
|
|
|
|
<vn-auto>
|
|
|
|
<h4 translate>Ticket</h4>
|
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
2019-03-22 11:34:42 +00:00
|
|
|
<vn-th shrink>Order</vn-th>
|
2019-03-22 10:10:23 +00:00
|
|
|
<vn-th number>Ticket id</vn-th>
|
|
|
|
<vn-th>Alias</vn-th>
|
2019-03-22 11:34:42 +00:00
|
|
|
<vn-th number shrink>Packages</vn-th>
|
|
|
|
<vn-th shrink>m³</vn-th>
|
|
|
|
<vn-th shrink>Warehouse</vn-th>
|
|
|
|
<vn-th shrink>PC</vn-th>
|
|
|
|
<vn-th>Street</vn-th>
|
|
|
|
<vn-th shrink></vn-th>
|
2019-03-22 10:10:23 +00:00
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
2019-03-25 12:16:34 +00:00
|
|
|
<vn-tr ng-repeat="ticket in $ctrl.summary.tickets">
|
|
|
|
<vn-td shrink>{{ticket.priority | dashIfEmpty}}</vn-td>
|
2019-03-22 10:10:23 +00:00
|
|
|
<vn-td number>
|
|
|
|
<span
|
2020-04-25 09:50:04 +00:00
|
|
|
ng-click="ticketDescriptor.show($event, ticket.id)"
|
2019-03-22 10:10:23 +00:00
|
|
|
class="link">
|
|
|
|
{{ticket.id | zeroFill:6}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td>
|
|
|
|
<span
|
2020-04-25 09:50:04 +00:00
|
|
|
ng-click="clientDescriptor.show($event, ticket.clientFk)"
|
2019-03-22 10:10:23 +00:00
|
|
|
class="link">
|
|
|
|
{{ticket.nickname}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
2019-03-22 11:34:42 +00:00
|
|
|
<vn-td number shrink>{{ticket.packages}}</vn-td>
|
|
|
|
<vn-td shrink>{{ticket.volume}}</vn-td>
|
|
|
|
<vn-td shrink>{{ticket.warehouse.name}}</vn-td>
|
2020-02-12 13:36:05 +00:00
|
|
|
<vn-td shrink>{{ticket.address.postalCode}}</vn-td>
|
|
|
|
<vn-td expand title="{{ticket.address.street}}">{{ticket.address.street}}</vn-td>
|
2019-03-22 11:34:42 +00:00
|
|
|
<vn-td shrink>
|
|
|
|
<vn-icon
|
|
|
|
ng-if="ticket.notes.length"
|
|
|
|
vn-tooltip="{{ticket.notes[0].description}}"
|
2020-05-06 12:38:09 +00:00
|
|
|
icon="insert_drive_file"
|
|
|
|
class="bright">
|
2019-03-22 11:34:42 +00:00
|
|
|
</vn-icon>
|
|
|
|
</vn-td>
|
2019-03-22 10:10:23 +00:00
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
|
|
|
</vn-auto>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-card>
|
|
|
|
<vn-ticket-descriptor-popover
|
|
|
|
vn-id="ticketDescriptor">
|
|
|
|
</vn-ticket-descriptor-popover>
|
|
|
|
<vn-client-descriptor-popover
|
|
|
|
vn-id="clientDescriptor">
|
2020-04-30 10:48:52 +00:00
|
|
|
</vn-client-descriptor-popover>
|