2018-03-14 12:59:01 +00:00
|
|
|
<mg-ajax path="/ticket/api/Tickets/filter" options="vnIndexNonAuto"></mg-ajax>
|
2018-04-19 12:56:05 +00:00
|
|
|
<div margin-large>
|
|
|
|
<div>
|
|
|
|
<vn-card pad-medium>
|
|
|
|
<vn-title>TICKETS</vn-title>
|
|
|
|
<vn-horizontal class="vn-list">
|
2018-03-12 13:02:29 +00:00
|
|
|
<vn-searchbar vn-one
|
|
|
|
index="index"
|
|
|
|
on-search="$ctrl.search(index)"
|
|
|
|
ignore-keys = "['page', 'size', 'search']">
|
|
|
|
</vn-searchbar>
|
|
|
|
</vn-horizontal>
|
2018-04-19 12:56:05 +00:00
|
|
|
<vn-horizontal>
|
|
|
|
<table class="vn-grid">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th></th>
|
|
|
|
<th number translate>ID Ticket</th>
|
|
|
|
<th translate>Comercial</th>
|
|
|
|
<th translate>Date</th>
|
|
|
|
<th translate>Hora</th>
|
|
|
|
<th translate>Alias</th>
|
|
|
|
<th translate>Provincia</th>
|
|
|
|
<th translate>Estado</th>
|
|
|
|
<th translate>Agencia</th>
|
|
|
|
<th translate>Almacen</th>
|
|
|
|
<th number translate>Factura</th>
|
|
|
|
<th number translate>Ruta</th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2018-05-11 06:35:28 +00:00
|
|
|
<tr ng-repeat="ticket in index.model.instances track by ticket.id"
|
2018-04-19 12:56:05 +00:00
|
|
|
class="{{::$ctrl.compareDate(ticket.shipped)}} clickable"
|
|
|
|
ui-sref="ticket.card.summary({id: {{::ticket.id}}})">
|
|
|
|
<td>
|
|
|
|
<!-- <i pointer
|
|
|
|
class="material-icons"
|
|
|
|
vn-tooltip="delete expedition"
|
|
|
|
ng-click="$ctrl.deleteExpedition(expedition)">warning</i> -->
|
|
|
|
</td>
|
|
|
|
<th number>{{::ticket.id}}</th>
|
|
|
|
<td translate>{{::ticket.client.salesPerson.name | dashIfEmpty}}</td>
|
|
|
|
<td translate>{{::ticket.shipped | date:'dd/MM/yyyy'}}</td>
|
|
|
|
<td translate>{{::ticket.shipped | date:'HH:MM'}}</td>
|
|
|
|
<td translate>{{::ticket.nickname}}</td>
|
|
|
|
<td translate>{{::ticket.address.province.name}}</td>
|
2018-05-08 07:40:37 +00:00
|
|
|
<td translate>{{::ticket.tracking.state.name}}</td>
|
2018-04-19 12:56:05 +00:00
|
|
|
<td translate>{{::ticket.agencyMode.name}}</td>
|
|
|
|
<td translate>{{::ticket.warehouse.name}}</td>
|
|
|
|
<td number translate>{{::ticket.refFk | dashIfEmpty}}</td>
|
|
|
|
<td number translate>{{::ticket.routeFk | dashIfEmpty}}</td>
|
|
|
|
<td>
|
|
|
|
<vn-icon-button
|
|
|
|
ng-click="$ctrl.preview($event, ticket)"
|
|
|
|
vn-tooltip="Preview"
|
|
|
|
icon="desktop_windows">
|
|
|
|
</vn-icon-button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</vn-horizontal>
|
2018-03-12 13:02:29 +00:00
|
|
|
</vn-card>
|
2018-05-11 06:35:28 +00:00
|
|
|
<vn-paging vn-one index="index" total="index.model.count"></vn-paging>
|
|
|
|
<!-- <vn-auto-paging vn-one index="index" total="index.model.count" items="$ctrl.tickets"></vn-auto-paging> -->
|
2018-03-12 13:02:29 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-04-23 09:17:30 +00:00
|
|
|
<a ui-sref="ticket.create" vn-bind="+" fixed-bottom-right>
|
2018-03-14 10:41:19 +00:00
|
|
|
<vn-float-button icon="add"></vn-float-button>
|
2018-03-12 13:02:29 +00:00
|
|
|
</a>
|
2018-04-10 05:48:04 +00:00
|
|
|
<vn-dialog class="dialog-summary"
|
|
|
|
vn-id="dialog-summary-ticket">
|
|
|
|
<tpl-body>
|
|
|
|
<vn-ticket-summary ticket="$ctrl.ticketSelected"></vn-ticket-summary>
|
|
|
|
</tpl-body>
|
|
|
|
</vn-dialog>
|