2019-04-04 11:06:41 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
|
|
|
url="/api/Routes/{{$ctrl.$stateParams.id}}/getTickets"
|
|
|
|
order="priority ASC"
|
|
|
|
data="$ctrl.tickets"
|
|
|
|
auto-load="true">
|
|
|
|
</vn-crud-model>
|
|
|
|
<form name="form">
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-card class="vn-pa-lg">
|
|
|
|
<vn-tool-bar class="vn-mb-sm">
|
2019-04-04 11:06:41 +00:00
|
|
|
<vn-button
|
2019-04-10 08:02:28 +00:00
|
|
|
icon="icon-wand"
|
2019-04-04 11:06:41 +00:00
|
|
|
ng-click="$ctrl.guessPriority()"
|
2019-04-10 08:02:28 +00:00
|
|
|
vn-tooltip="Sort routes">
|
2019-04-04 11:06:41 +00:00
|
|
|
</vn-button>
|
|
|
|
<vn-button
|
|
|
|
disabled="!$ctrl.isChecked"
|
|
|
|
ng-click="$ctrl.goToBuscaman()"
|
|
|
|
vn-tooltip="Open buscaman"
|
|
|
|
tooltip-position="up"
|
|
|
|
icon="icon-buscaman">
|
|
|
|
</vn-button>
|
|
|
|
</vn-tool-bar>
|
|
|
|
<vn-icon-button
|
|
|
|
vn-tooltip="Load more"
|
|
|
|
ng-click="$ctrl.goToBuscaman()">
|
|
|
|
</vn-icon-button>
|
|
|
|
<vn-table model="model" auto-load="false">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th shrink>
|
|
|
|
<vn-multi-check
|
2019-04-30 06:00:27 +00:00
|
|
|
model="model">
|
2019-04-04 11:06:41 +00:00
|
|
|
</vn-multi-check>
|
|
|
|
</vn-th>
|
|
|
|
<vn-th>Order</vn-th>
|
2019-10-16 05:18:05 +00:00
|
|
|
<vn-th number>Ticket</vn-th>
|
|
|
|
<vn-th>Client</vn-th>
|
2019-04-04 11:06:41 +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>
|
|
|
|
<vn-th shrink></vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="ticket in $ctrl.tickets">
|
|
|
|
<vn-td shrink>
|
|
|
|
<vn-check
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="ticket.checked">
|
2019-04-04 11:06:41 +00:00
|
|
|
</vn-check>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td>
|
2019-10-16 05:18:05 +00:00
|
|
|
<vn-input-number
|
2019-04-04 11:06:41 +00:00
|
|
|
on-change="$ctrl.setPriority(ticket.id, ticket.priority)"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="ticket.priority"
|
2019-10-11 15:38:04 +00:00
|
|
|
rule="Ticket">
|
2019-10-16 05:18:05 +00:00
|
|
|
</vn-input-number>
|
2019-04-04 11:06:41 +00:00
|
|
|
</vn-td>
|
|
|
|
<vn-td number>
|
|
|
|
<span
|
|
|
|
ng-click="$ctrl.showTicketDescriptor($event, ticket.id)"
|
|
|
|
class="link">
|
2019-09-03 08:54:52 +00:00
|
|
|
{{ticket.id}}
|
2019-04-04 11:06:41 +00:00
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td>
|
|
|
|
<span
|
|
|
|
ng-click="$ctrl.showClientDescriptor($event, ticket.clientFk)"
|
|
|
|
class="link">
|
|
|
|
{{ticket.nickname}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td number shrink>{{ticket.packages}}</vn-td>
|
|
|
|
<vn-td shrink>{{ticket.volume}}</vn-td>
|
|
|
|
<vn-td shrink>{{ticket.warehouse.name}}</vn-td>
|
|
|
|
<vn-td shrink>{{ticket.client.postcode}}</vn-td>
|
|
|
|
<vn-td expand title="{{ticket.client.street}}">{{ticket.client.street}}</vn-td>
|
|
|
|
<vn-td shrink>
|
2019-10-16 05:18:05 +00:00
|
|
|
<vn-icon-button
|
2019-04-04 11:06:41 +00:00
|
|
|
ng-if="ticket.notes.length"
|
2019-10-16 05:18:05 +00:00
|
|
|
title="::{{ticket.notes[0].description}}"
|
2019-04-04 11:06:41 +00:00
|
|
|
icon="insert_drive_file">
|
2019-10-16 05:18:05 +00:00
|
|
|
</vn-icon-button>
|
2019-04-04 11:06:41 +00:00
|
|
|
</vn-td>
|
|
|
|
<vn-td>
|
|
|
|
<vn-icon-button
|
2019-10-16 05:18:05 +00:00
|
|
|
translate-attr="::{title: 'Remove ticket'}"
|
2019-04-04 11:06:41 +00:00
|
|
|
icon="delete"
|
|
|
|
ng-click="$ctrl.showDeleteConfirm(ticket.id)"
|
|
|
|
tabindex="-1">
|
|
|
|
</vn-icon-button>
|
|
|
|
</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
|
|
|
</vn-card>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<vn-ticket-descriptor-popover
|
|
|
|
vn-id="ticketDescriptor">
|
|
|
|
</vn-ticket-descriptor-popover>
|
|
|
|
<vn-client-descriptor-popover
|
|
|
|
vn-id="clientDescriptor">
|
|
|
|
</vn-client-descriptor-popover>
|
|
|
|
<vn-confirm
|
|
|
|
vn-id="confirm"
|
|
|
|
question="Delete ticket from route?"
|
2019-06-06 11:50:12 +00:00
|
|
|
on-response="$ctrl.removeTicketFromRoute(response)">
|
2019-04-04 11:06:41 +00:00
|
|
|
</vn-confirm>
|