2019-03-22 10:10:23 +00:00
|
|
|
<vn-card class="summary">
|
2020-11-23 12:41:51 +00:00
|
|
|
<h5>
|
|
|
|
<a ng-if="::$ctrl.summary.route.id"
|
|
|
|
vn-tooltip="Go to the route"
|
|
|
|
ui-sref="route.card.summary({id: {{::$ctrl.summary.route.id}}})"
|
|
|
|
name="goToSummary">
|
|
|
|
<vn-icon-button icon="launch"></vn-icon-button>
|
|
|
|
</a>
|
|
|
|
<span>{{$ctrl.summary.route.id}} - {{$ctrl.summary.route.description}}</span>
|
|
|
|
</h5>
|
2019-03-22 10:10:23 +00:00
|
|
|
<vn-horizontal>
|
|
|
|
<vn-one>
|
2023-01-30 11:19:11 +00:00
|
|
|
<vn-label-value label="Id"
|
2019-03-22 10:10:23 +00:00
|
|
|
value="{{$ctrl.summary.route.id}}">
|
|
|
|
</vn-label-value>
|
2023-01-30 11:19:11 +00:00
|
|
|
<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>
|
2023-01-30 11:19:11 +00:00
|
|
|
<vn-label-value label="Agency"
|
2019-03-22 10:10:23 +00:00
|
|
|
value="{{$ctrl.summary.route.agencyMode.name}}">
|
|
|
|
</vn-label-value>
|
2023-01-30 11:19:11 +00:00
|
|
|
<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>
|
2020-09-03 13:11:16 +00:00
|
|
|
<vn-label-value label="Driver">
|
2023-01-30 11:19:11 +00:00
|
|
|
<span
|
2020-09-03 13:11:16 +00:00
|
|
|
ng-click="workerDescriptor.show($event, $ctrl.summary.route.workerFk)"
|
|
|
|
class="link">
|
|
|
|
{{$ctrl.summary.route.worker.user.name}}
|
|
|
|
</span>
|
2019-03-22 10:10:23 +00:00
|
|
|
</vn-label-value>
|
2023-01-30 11:19:11 +00:00
|
|
|
<vn-label-value label="Cost"
|
2019-03-22 10:10:23 +00:00
|
|
|
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"
|
2024-07-11 07:14:14 +00:00
|
|
|
value="{{$ctrl.summary.route.started | 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"
|
2024-07-11 07:14:14 +00:00
|
|
|
value="{{$ctrl.summary.route.finished | date: 'HH:mm'}}">
|
2019-03-22 10:10:23 +00:00
|
|
|
</vn-label-value>
|
2023-01-30 11:19:11 +00:00
|
|
|
<vn-label-value label="Km Start"
|
2019-03-22 10:10:23 +00:00
|
|
|
value="{{$ctrl.summary.route.kmStart}}">
|
|
|
|
</vn-label-value>
|
2023-01-30 11:19:11 +00:00
|
|
|
<vn-label-value label="Km End"
|
2019-03-22 10:10:23 +00:00
|
|
|
value="{{$ctrl.summary.route.kmEnd}}">
|
|
|
|
</vn-label-value>
|
2023-01-30 11:19:11 +00:00
|
|
|
<vn-label-value label="Volume"
|
2019-03-22 10:10:23 +00:00
|
|
|
value="{{$ctrl.summary.route.m3 | dashIfEmpty}} / {{$ctrl.summary.route.vehicle.m3 | dashIfEmpty}} m³">
|
|
|
|
</vn-label-value>
|
2023-01-30 11:19:11 +00:00
|
|
|
<vn-label-value label="Packages"
|
2019-03-22 10:10:23 +00:00
|
|
|
value="{{$ctrl.packagesTotal}}">
|
|
|
|
</vn-label-value>
|
|
|
|
</vn-one>
|
|
|
|
<vn-one>
|
|
|
|
<vn-textarea
|
|
|
|
disabled="true"
|
2023-01-30 11:19:11 +00:00
|
|
|
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>
|
2021-01-12 06:39:12 +00:00
|
|
|
<h4 ng-show="$ctrl.isDelivery">
|
2023-01-30 11:19:11 +00:00
|
|
|
<a
|
2021-01-12 09:11:37 +00:00
|
|
|
ui-sref="route.card.tickets({id:$ctrl.route.id})"
|
|
|
|
target="_self">
|
2021-01-11 09:36:20 +00:00
|
|
|
<span translate vn-tooltip="Go to">Ticket</span>
|
2021-01-08 14:43:33 +00:00
|
|
|
</a>
|
|
|
|
</h4>
|
2023-01-30 11:19:11 +00:00
|
|
|
<h4
|
2021-01-12 09:11:37 +00:00
|
|
|
translate
|
|
|
|
ng-show="!$ctrl.isDelivery">
|
|
|
|
Ticket
|
2021-01-12 06:39:12 +00:00
|
|
|
</h4>
|
2019-03-22 10:10:23 +00:00
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
2019-03-22 11:34:42 +00:00
|
|
|
<vn-th shrink>Order</vn-th>
|
2023-01-30 11:19:11 +00:00
|
|
|
<vn-th>Street</vn-th>
|
|
|
|
<vn-th>City</vn-th>
|
|
|
|
<vn-th shrink>PC</vn-th>
|
|
|
|
<vn-th>Client</vn-th>
|
2024-04-18 06:17:43 +00:00
|
|
|
<vn-th>State</vn-th>
|
2019-03-22 11:34:42 +00:00
|
|
|
<vn-th number shrink>Packages</vn-th>
|
|
|
|
<vn-th shrink>m³</vn-th>
|
2023-01-30 11:19:11 +00:00
|
|
|
<vn-th shrink>Packaging</vn-th>
|
|
|
|
<vn-th number>Ticket</vn-th>
|
2019-03-22 11:34:42 +00:00
|
|
|
<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>
|
2023-01-30 11:19:11 +00:00
|
|
|
<vn-td expand title="{{ticket.address.street}}">{{ticket.street}}</vn-td>
|
2023-03-01 13:22:25 +00:00
|
|
|
<vn-td
|
|
|
|
expand
|
|
|
|
ng-click="$ctrl.goToBuscaman(ticket)"
|
|
|
|
class="link"
|
|
|
|
vn-tooltip="Open buscaman"
|
|
|
|
tooltip-position="up">
|
|
|
|
{{::ticket.city}}
|
|
|
|
</vn-td>
|
2023-01-30 11:19:11 +00:00
|
|
|
<vn-td shrink>{{ticket.postalCode}}</vn-td>
|
2019-03-22 10:10:23 +00:00
|
|
|
<vn-td>
|
2023-01-30 11:19:11 +00:00
|
|
|
<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>
|
2024-04-18 06:17:43 +00:00
|
|
|
<vn-td>{{ticket.ticketStateName}}</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>
|
2023-01-30 11:19:11 +00:00
|
|
|
<vn-td shrink>{{ticket.ipt}}</vn-td>
|
|
|
|
<vn-td number>
|
|
|
|
<span
|
|
|
|
ng-click="ticketDescriptor.show($event, ticket.id)"
|
|
|
|
class="link">
|
|
|
|
{{ticket.id}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td>
|
|
|
|
<vn-icon-button
|
|
|
|
ng-if="::ticket.description"
|
|
|
|
vn-tooltip="{{::ticket.description}}"
|
|
|
|
icon="icon-notes"
|
|
|
|
tabindex="-1">
|
|
|
|
</vn-icon-button>
|
2019-03-22 11:34:42 +00:00
|
|
|
</vn-td>
|
2019-03-22 10:10:23 +00:00
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
|
|
|
</vn-auto>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-card>
|
2023-01-30 11:19:11 +00:00
|
|
|
<vn-ticket-descriptor-popover
|
2019-03-22 10:10:23 +00:00
|
|
|
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>
|
2023-01-30 11:19:11 +00:00
|
|
|
<vn-worker-descriptor-popover
|
2020-09-03 13:11:16 +00:00
|
|
|
vn-id="workerDescriptor">
|
|
|
|
</vn-worker-descriptor-popover>
|