2018-12-19 07:42:07 +00:00
|
|
|
<vn-crud-model
|
2018-06-07 21:47:19 +00:00
|
|
|
vn-id="model"
|
2018-08-08 12:26:54 +00:00
|
|
|
url="/ticket/api/Tickets/filter"
|
2018-06-08 11:26:06 +00:00
|
|
|
limit="20"
|
2018-06-07 21:47:19 +00:00
|
|
|
data="tickets"
|
2018-12-19 07:42:07 +00:00
|
|
|
order="shipped DESC"
|
|
|
|
auto-load="false">
|
2018-06-07 21:47:19 +00:00
|
|
|
</vn-crud-model>
|
|
|
|
<div margin-medium>
|
|
|
|
<div class="vn-list">
|
|
|
|
<vn-card pad-medium-h>
|
2018-11-08 08:20:06 +00:00
|
|
|
<vn-horizontal>
|
|
|
|
<vn-three>
|
|
|
|
<vn-searchbar
|
|
|
|
panel="vn-ticket-search-panel"
|
2018-12-19 07:42:07 +00:00
|
|
|
on-search="$ctrl.onSearch($params)"
|
2018-11-08 08:20:06 +00:00
|
|
|
vn-focus>
|
|
|
|
</vn-searchbar>
|
|
|
|
</vn-three>
|
|
|
|
<vn-icon-menu
|
|
|
|
vn-id="more-button"
|
|
|
|
icon="more_vert"
|
|
|
|
show-filter="false"
|
|
|
|
value-field="callback"
|
|
|
|
translate-fields="['name']"
|
|
|
|
on-change="$ctrl.onMoreChange(value)"
|
|
|
|
on-open="$ctrl.onMoreOpen()">
|
|
|
|
</vn-icon-menu>
|
|
|
|
</vn-horizontal>
|
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>
|
2018-11-27 14:02:54 +00:00
|
|
|
<vn-table model="model" auto-load="false">
|
2018-08-08 12:26:54 +00:00
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th></vn-th>
|
2018-08-30 09:02:50 +00:00
|
|
|
<vn-th field="id" number>Id</vn-th>
|
2018-10-30 15:03:46 +00:00
|
|
|
<vn-th field="salesPerson">Salesperson</vn-th>
|
2018-08-08 12:26:54 +00:00
|
|
|
<vn-th field="shipped">Date</vn-th>
|
|
|
|
<vn-th>Hour</vn-th>
|
|
|
|
<vn-th field="nickname">Alias</vn-th>
|
2018-10-30 15:03:46 +00:00
|
|
|
<vn-th field="province">Province</vn-th>
|
|
|
|
<vn-th field="state" >State</vn-th>
|
|
|
|
<vn-th field="agencyMode">Agency</vn-th>
|
|
|
|
<vn-th field="warehouse">Warehouse</vn-th>
|
2018-08-08 12:26:54 +00:00
|
|
|
<vn-th field="refFk" number>Invoice</vn-th>
|
|
|
|
<vn-th field="routeFk" number>Route</vn-th>
|
2018-10-30 15:03:46 +00:00
|
|
|
<vn-th number>Total</vn-th>
|
2018-08-08 12:26:54 +00:00
|
|
|
<vn-th></vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
2018-12-21 06:53:04 +00:00
|
|
|
<a ng-repeat="ticket in tickets" class="clickable vn-tr"
|
|
|
|
ui-sref="ticket.card.summary({id: {{::ticket.id}}})">
|
2018-08-08 12:26:54 +00:00
|
|
|
<vn-td>
|
|
|
|
<vn-icon ng-show="ticket.problem" class="bright"
|
|
|
|
vn-tooltip="{{ticket.problem}}"
|
|
|
|
icon="warning">
|
|
|
|
</vn-icon>
|
|
|
|
</vn-td>
|
2018-10-22 11:29:52 +00:00
|
|
|
<vn-td number>{{::ticket.id}}</vn-td>
|
2018-08-08 12:26:54 +00:00
|
|
|
<vn-td>{{::ticket.salesPerson | dashIfEmpty}}</vn-td>
|
2018-12-21 06:53:04 +00:00
|
|
|
<vn-td class="{{$ctrl.compareDate(ticket.shipped)}}">
|
|
|
|
{{::ticket.shipped | dateTime: 'dd/MM/yyyy'}}
|
|
|
|
</vn-td>
|
2018-08-23 08:08:06 +00:00
|
|
|
<vn-td>{{::ticket.shipped | dateTime: 'HH:mm'}}</vn-td>
|
2018-08-08 12:26:54 +00:00
|
|
|
<vn-td>
|
2018-07-27 07:44:25 +00:00
|
|
|
<span
|
|
|
|
class="link"
|
|
|
|
ng-click="$ctrl.showDescriptor($event, ticket.clientFk)">
|
|
|
|
{{::ticket.nickname}}
|
|
|
|
</span>
|
2018-08-08 12:26:54 +00:00
|
|
|
</vn-td>
|
|
|
|
<vn-td>{{::ticket.province}}</vn-td>
|
2018-12-21 06:53:04 +00:00
|
|
|
<vn-td class="{{$ctrl.stateColor(ticket)}}">{{::ticket.state}}</vn-td>
|
2018-08-08 12:26:54 +00:00
|
|
|
<vn-td>{{::ticket.agencyMode}}</vn-td>
|
|
|
|
<vn-td>{{::ticket.warehouse}}</vn-td>
|
|
|
|
<vn-td number>{{::ticket.refFk | dashIfEmpty}}</vn-td>
|
|
|
|
<vn-td number>{{::ticket.routeFk | dashIfEmpty}}</vn-td>
|
|
|
|
<vn-td number>{{::ticket.total | currency: '€': 2}}</vn-td>
|
|
|
|
<vn-td>
|
2018-06-07 21:47:19 +00:00
|
|
|
<vn-icon-button
|
|
|
|
ng-click="$ctrl.preview($event, ticket)"
|
|
|
|
vn-tooltip="Preview"
|
|
|
|
icon="desktop_windows">
|
|
|
|
</vn-icon-button>
|
2018-08-08 12:26:54 +00:00
|
|
|
</vn-td>
|
2018-09-12 08:08:19 +00:00
|
|
|
</a>
|
2018-08-08 12:26:54 +00:00
|
|
|
</vn-tbody>
|
2018-12-11 10:59:44 +00:00
|
|
|
<vn-empty-rows ng-if="model.data.length === 0" translate>
|
|
|
|
No results
|
|
|
|
</vn-empty-rows>
|
|
|
|
<vn-empty-rows ng-if="model.data === null" translate>
|
2018-11-21 13:30:32 +00:00
|
|
|
Enter a new search
|
2018-09-19 13:05:07 +00:00
|
|
|
</vn-empty-rows>
|
2018-08-08 12:26:54 +00:00
|
|
|
</vn-table>
|
2018-06-07 21:47:19 +00:00
|
|
|
</vn-card>
|
|
|
|
<vn-pagination
|
|
|
|
model="model"
|
|
|
|
scroll-selector="ui-view">
|
|
|
|
</vn-pagination>
|
2018-03-12 13:02:29 +00:00
|
|
|
</div>
|
2018-11-27 12:28:15 +00:00
|
|
|
<a ui-sref="ticket.create" vn-tooltip="New ticket" vn-bind="+" fixed-bottom-right>
|
|
|
|
<vn-float-button icon="add"></vn-float-button>
|
|
|
|
</a>
|
2018-10-30 12:58:02 +00:00
|
|
|
<vn-dialog
|
|
|
|
vn-id="summary"
|
|
|
|
class="dialog-summary">
|
2018-04-10 05:48:04 +00:00
|
|
|
<tpl-body>
|
2018-10-30 12:58:02 +00:00
|
|
|
<vn-ticket-summary ticket="$ctrl.selectedTicket"></vn-ticket-summary>
|
2018-04-10 05:48:04 +00:00
|
|
|
</tpl-body>
|
2018-08-08 12:26:54 +00:00
|
|
|
</vn-dialog>
|
2018-10-30 12:58:02 +00:00
|
|
|
<vn-client-descriptor-popover vn-id="descriptor">
|
|
|
|
</vn-client-descriptor-popover>
|