2018-06-07 21:47:19 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
|
|
|
url="/ticket/api/Tickets"
|
|
|
|
filter="::$ctrl.filter"
|
2018-06-08 11:26:06 +00:00
|
|
|
limit="20"
|
2018-06-07 21:47:19 +00:00
|
|
|
data="tickets"
|
|
|
|
auto-load="false">
|
|
|
|
</vn-crud-model>
|
|
|
|
<div margin-medium>
|
|
|
|
<div class="vn-list">
|
|
|
|
<vn-card pad-medium-h>
|
|
|
|
<vn-searchbar
|
|
|
|
panel="vn-ticket-search-panel"
|
|
|
|
model="model"
|
|
|
|
expr-builder="$ctrl.exprBuilder(param, value)">
|
|
|
|
</vn-searchbar>
|
2018-03-12 13:02:29 +00:00
|
|
|
</vn-card>
|
|
|
|
</div>
|
2018-06-07 21:47:19 +00:00
|
|
|
<vn-card margin-medium-v pad-medium>
|
|
|
|
<table class="vn-grid">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th translate number>Id</th>
|
|
|
|
<th translate>Salesperson</th>
|
|
|
|
<th translate>Date</th>
|
|
|
|
<th translate>Hour</th>
|
|
|
|
<th translate>Alias</th>
|
|
|
|
<th translate>Province</th>
|
|
|
|
<th translate>State</th>
|
|
|
|
<th translate>Agency</th>
|
|
|
|
<th translate>Warehouse</th>
|
|
|
|
<th translate number>Invoice</th>
|
|
|
|
<th translate number>Route</th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr ng-repeat="ticket in tickets"
|
|
|
|
class="{{::$ctrl.compareDate(ticket.shipped)}} clickable"
|
|
|
|
ui-sref="ticket.card.summary({id: {{::ticket.id}}})">
|
|
|
|
<th number>{{::ticket.id}}</th>
|
2018-07-06 14:32:23 +00:00
|
|
|
<td>{{::ticket.client.salesPerson.name | dashIfEmpty}}</td>
|
|
|
|
<td>{{::ticket.shipped | date:'dd/MM/yyyy'}}</td>
|
2018-07-09 10:35:06 +00:00
|
|
|
<td>{{::ticket.shipped | date:'HH:mm'}}</td>
|
2018-07-06 14:32:23 +00:00
|
|
|
<td>{{::ticket.nickname}}</td>
|
|
|
|
<td>{{::ticket.address.province.name}}</td>
|
|
|
|
<td>{{::ticket.tracking.state.name}}</td>
|
|
|
|
<td>{{::ticket.agencyMode.name}}</td>
|
|
|
|
<td>{{::ticket.warehouse.name}}</td>
|
|
|
|
<td number>{{::ticket.refFk | dashIfEmpty}}</td>
|
|
|
|
<td number>{{::ticket.routeFk | dashIfEmpty}}</td>
|
2018-06-07 21:47:19 +00:00
|
|
|
<td>
|
|
|
|
<vn-icon-button
|
|
|
|
ng-click="$ctrl.preview($event, ticket)"
|
|
|
|
vn-tooltip="Preview"
|
|
|
|
icon="desktop_windows">
|
|
|
|
</vn-icon-button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</vn-card>
|
|
|
|
<vn-pagination
|
|
|
|
model="model"
|
|
|
|
scroll-selector="ui-view">
|
|
|
|
</vn-pagination>
|
2018-03-12 13:02:29 +00:00
|
|
|
</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>
|