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">
|
|
|
|
<vn-card pad-large>
|
|
|
|
<vn-tool-bar margin-small-bottom >
|
|
|
|
<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>
|
|
|
|
<vn-th number>Ticket id</vn-th>
|
|
|
|
<vn-th>Alias</vn-th>
|
|
|
|
<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
|
|
|
|
field="ticket.checked">
|
|
|
|
</vn-check>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td>
|
|
|
|
<vn-textfield
|
|
|
|
vn-tab-index="-1"
|
|
|
|
type="number"
|
|
|
|
on-change="$ctrl.setPriority(ticket.id, ticket.priority)"
|
|
|
|
model="ticket.priority"
|
|
|
|
rule="ticket.priority">
|
|
|
|
</vn-textfield>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td number>
|
|
|
|
<span
|
|
|
|
ng-click="$ctrl.showTicketDescriptor($event, ticket.id)"
|
|
|
|
class="link">
|
|
|
|
{{ticket.id | zeroFill:6}}
|
|
|
|
</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>
|
|
|
|
<vn-icon
|
|
|
|
ng-if="ticket.notes.length"
|
|
|
|
vn-tooltip="{{ticket.notes[0].description}}"
|
|
|
|
icon="insert_drive_file">
|
|
|
|
</vn-icon>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td>
|
|
|
|
<vn-icon-button
|
|
|
|
vn-tooltip="Remove ticket"
|
|
|
|
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>
|