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"
|
2019-07-12 06:49:44 +00:00
|
|
|
params="::$ctrl.params"
|
2018-06-07 21:47:19 +00:00
|
|
|
data="tickets"
|
2019-07-12 06:49:44 +00:00
|
|
|
order="shipped DESC, zoneHour ASC, zoneMinute ASC, clientFk"
|
2018-12-19 07:42:07 +00:00
|
|
|
auto-load="false">
|
2018-06-07 21:47:19 +00:00
|
|
|
</vn-crud-model>
|
2019-01-30 22:47:06 +00:00
|
|
|
<div class="content-block">
|
2018-06-07 21:47:19 +00:00
|
|
|
<div class="vn-list">
|
|
|
|
<vn-card pad-medium-h>
|
2018-11-08 08:20:06 +00:00
|
|
|
<vn-horizontal>
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-searchbar
|
2019-04-03 13:16:32 +00:00
|
|
|
vn-id="ticketSearchbar"
|
2019-02-10 21:52:35 +00:00
|
|
|
style="width: 100%"
|
|
|
|
panel="vn-ticket-search-panel"
|
|
|
|
on-search="$ctrl.onSearch($params)"
|
2019-04-12 12:33:08 +00:00
|
|
|
info="Search ticket by id or alias"
|
2019-02-10 21:52:35 +00:00
|
|
|
vn-focus>
|
|
|
|
</vn-searchbar>
|
2018-11-08 08:20:06 +00:00
|
|
|
<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>
|
2019-05-15 11:07:32 +00:00
|
|
|
<vn-card margin-medium-v margin-huge-bottom>
|
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>
|
2019-04-25 05:57:26 +00:00
|
|
|
<vn-th shrink>
|
|
|
|
<vn-multi-check
|
2019-04-30 06:00:27 +00:00
|
|
|
model="model">
|
2019-04-25 05:57:26 +00:00
|
|
|
</vn-multi-check>
|
|
|
|
</vn-th>
|
2018-08-08 12:26:54 +00:00
|
|
|
<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>
|
2019-05-14 06:13:04 +00:00
|
|
|
<vn-th field="shipped" default-order="DESC">Date</vn-th>
|
2018-08-08 12:26:54 +00:00
|
|
|
<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>
|
2019-05-14 06:13:04 +00:00
|
|
|
<vn-th field="refFk">Invoice</vn-th>
|
2019-07-12 06:49:44 +00:00
|
|
|
<vn-th field="zoneHour" shrink>Zone Hour</vn-th>
|
|
|
|
<vn-th field="zoneMinute" shrink>Zone Minute</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>
|
2019-02-10 21:52:35 +00:00
|
|
|
<a ng-repeat="ticket in tickets"
|
|
|
|
class="clickable vn-tr searchResult"
|
|
|
|
ui-sref="ticket.card.summary({id: {{::ticket.id}}})">
|
2019-04-25 05:57:26 +00:00
|
|
|
<vn-td shrink>
|
|
|
|
<vn-check
|
|
|
|
field="ticket.checked"
|
|
|
|
ng-click="$ctrl.preventDefault($event)">
|
|
|
|
</vn-check>
|
|
|
|
</vn-td>
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-td shrink>
|
|
|
|
<vn-icon
|
2019-03-08 07:14:22 +00:00
|
|
|
ng-show="ticket.hasTicketRequest"
|
2019-02-10 21:52:35 +00:00
|
|
|
class="bright"
|
2019-03-27 08:58:58 +00:00
|
|
|
vn-tooltip="Purchase request"
|
2019-03-08 07:14:22 +00:00
|
|
|
icon="icon-100">
|
|
|
|
</vn-icon>
|
|
|
|
<vn-icon
|
|
|
|
ng-show="ticket.isAvailable === 0"
|
|
|
|
class="bright"
|
2019-03-27 08:58:58 +00:00
|
|
|
vn-tooltip="Not available"
|
2019-03-08 07:14:22 +00:00
|
|
|
icon="icon-unavailable">
|
|
|
|
</vn-icon>
|
|
|
|
<vn-icon
|
|
|
|
ng-show="ticket.isFreezed"
|
|
|
|
class="bright"
|
|
|
|
vn-tooltip="Client frozen"
|
|
|
|
icon="icon-frozen">
|
|
|
|
</vn-icon>
|
|
|
|
<vn-icon
|
|
|
|
ng-show="ticket.risk"
|
|
|
|
class="bright"
|
2019-03-27 08:58:58 +00:00
|
|
|
vn-tooltip="{{::$ctrl.$translate.instant('Risk')}}: {{ticket.risk}}"
|
2019-03-08 07:14:22 +00:00
|
|
|
icon="icon-risk">
|
2018-08-08 12:26:54 +00:00
|
|
|
</vn-icon>
|
|
|
|
</vn-td>
|
2018-10-22 11:29:52 +00:00
|
|
|
<vn-td number>{{::ticket.id}}</vn-td>
|
2019-02-15 11:39:21 +00:00
|
|
|
<vn-td expand>
|
|
|
|
<span
|
|
|
|
class="link"
|
2019-04-25 12:24:02 +00:00
|
|
|
ng-click="$ctrl.showWorkerDescriptor($event, ticket.salesPersonFk)">
|
2019-02-15 11:39:21 +00:00
|
|
|
{{::ticket.userNickname | dashIfEmpty}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-td>
|
|
|
|
<span class="chip {{$ctrl.compareDate(ticket.shipped)}}">
|
|
|
|
{{::ticket.shipped | dateTime: 'dd/MM/yyyy'}}
|
|
|
|
</span>
|
2018-12-21 06:53:04 +00:00
|
|
|
</vn-td>
|
2018-08-23 08:08:06 +00:00
|
|
|
<vn-td>{{::ticket.shipped | dateTime: 'HH:mm'}}</vn-td>
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-td expand>
|
2018-07-27 07:44:25 +00:00
|
|
|
<span
|
|
|
|
class="link"
|
2019-02-15 11:39:21 +00:00
|
|
|
ng-click="$ctrl.showClientDescriptor($event, ticket.clientFk)">
|
2018-07-27 07:44:25 +00:00
|
|
|
{{::ticket.nickname}}
|
|
|
|
</span>
|
2018-08-08 12:26:54 +00:00
|
|
|
</vn-td>
|
|
|
|
<vn-td>{{::ticket.province}}</vn-td>
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-td>
|
|
|
|
<span class="chip {{$ctrl.stateColor(ticket)}}">
|
|
|
|
{{::ticket.state}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
2018-08-08 12:26:54 +00:00
|
|
|
<vn-td>{{::ticket.agencyMode}}</vn-td>
|
|
|
|
<vn-td>{{::ticket.warehouse}}</vn-td>
|
2019-03-25 14:16:56 +00:00
|
|
|
<vn-td>{{::ticket.refFk | dashIfEmpty}}</vn-td>
|
2019-07-12 06:49:44 +00:00
|
|
|
<vn-td shrink>{{::ticket.zoneLanding | dateTime: 'HH'}}</vn-td>
|
|
|
|
<vn-td shrink>{{::ticket.zoneLanding | dateTime: 'mm'}}</vn-td>
|
2019-01-31 10:44:03 +00:00
|
|
|
<vn-td number>{{::ticket.total | currency: 'EUR': 2}}</vn-td>
|
2019-02-13 13:01:37 +00:00
|
|
|
<vn-td actions>
|
2019-02-06 08:55:17 +00:00
|
|
|
<vn-icon-button
|
2019-02-07 08:33:54 +00:00
|
|
|
ng-click="$ctrl.goToLines($event, ticket.id)"
|
|
|
|
vn-tooltip="Go to lines"
|
2019-02-06 08:55:17 +00:00
|
|
|
icon="icon-lines">
|
|
|
|
</vn-icon-button>
|
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>
|
|
|
|
</vn-table>
|
2018-06-07 21:47:19 +00:00
|
|
|
</vn-card>
|
2019-01-20 17:48:03 +00:00
|
|
|
<vn-pagination model="model"></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>
|
2019-04-25 05:57:26 +00:00
|
|
|
<vn-client-descriptor-popover
|
|
|
|
vn-id="clientDescriptor">
|
2019-02-15 11:39:21 +00:00
|
|
|
</vn-client-descriptor-popover>
|
|
|
|
<vn-worker-descriptor-popover
|
|
|
|
vn-id="workerDescriptor"
|
2019-04-25 12:24:02 +00:00
|
|
|
worker-fk="$ctrl.selectedWorker">
|
2019-04-25 05:57:26 +00:00
|
|
|
</vn-worker-descriptor-popover>
|
|
|
|
<vn-client-balance-create
|
|
|
|
vn-id="balanceCreateDialog">
|
|
|
|
</vn-client-balance-create>
|