2022-11-07 14:55:17 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
|
|
|
url="Tickets/getTicketsFuture"
|
|
|
|
limit="20">
|
|
|
|
</vn-crud-model>
|
|
|
|
<vn-portal slot="topbar">
|
|
|
|
<vn-searchbar
|
|
|
|
vn-focus
|
|
|
|
panel="vn-future-ticket-search-panel"
|
|
|
|
placeholder="Search tickets"
|
|
|
|
info="Search future tickets by date"
|
|
|
|
auto-state="false"
|
2022-11-10 14:54:00 +00:00
|
|
|
model="model">
|
2022-11-07 14:55:17 +00:00
|
|
|
</vn-searchbar>
|
|
|
|
</vn-portal>
|
|
|
|
<vn-card>
|
2022-11-08 14:56:58 +00:00
|
|
|
<smart-table
|
|
|
|
model="model"
|
|
|
|
options="$ctrl.smartTableOptions"
|
2022-11-10 14:54:00 +00:00
|
|
|
expr-builder="$ctrl.exprBuilder(param, value)"
|
2022-11-07 14:55:17 +00:00
|
|
|
>
|
|
|
|
<slot-actions>
|
|
|
|
<vn-button disabled="$ctrl.checked.length === 0"
|
|
|
|
icon="double_arrow"
|
|
|
|
ng-click="moveTicketsFuture.show($event)"
|
|
|
|
vn-tooltip="Future tickets">
|
|
|
|
</vn-button>
|
|
|
|
</slot-actions>
|
|
|
|
<slot-table>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th shrink>
|
|
|
|
<vn-multi-check
|
|
|
|
model="model"
|
|
|
|
checked="$ctrl.checkAll"
|
|
|
|
check-field="checked">
|
|
|
|
</vn-multi-check>
|
|
|
|
</th>
|
|
|
|
<th field="problems">
|
|
|
|
<span translate>Problems</span>
|
|
|
|
</th>
|
|
|
|
<th field="id">
|
|
|
|
<span translate>Origin ID</span>
|
|
|
|
</th>
|
2022-11-08 14:56:58 +00:00
|
|
|
<th field="originETD">
|
2022-11-07 14:55:17 +00:00
|
|
|
<span translate>Origin ETD</span>
|
|
|
|
</th>
|
|
|
|
<th field="state">
|
|
|
|
<span translate>Origin State</span>
|
|
|
|
</th>
|
|
|
|
<th field="ipt">
|
|
|
|
<span>IPT</span>
|
|
|
|
</th>
|
2022-11-10 14:54:00 +00:00
|
|
|
<th field="litersMax">
|
2022-11-07 14:55:17 +00:00
|
|
|
<span translate>Liters</span>
|
|
|
|
</th>
|
2022-11-10 14:54:00 +00:00
|
|
|
<th field="linesMax">
|
2022-11-07 14:55:17 +00:00
|
|
|
<span translate>Available Lines</span>
|
|
|
|
</th>
|
|
|
|
<th field="ticketFuture">
|
|
|
|
<span translate>Destination ID</span>
|
|
|
|
</th>
|
2022-11-08 14:56:58 +00:00
|
|
|
<th field="destETD">
|
2022-11-07 14:55:17 +00:00
|
|
|
<span translate>Destination ETD</span>
|
|
|
|
</th>
|
|
|
|
<th field="tfState">
|
|
|
|
<span translate>Destination State</span>
|
|
|
|
</th>
|
|
|
|
<th field="tfIpt">
|
|
|
|
<span>IPT</span>
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr ng-repeat="ticket in model.data">
|
|
|
|
<td>
|
2022-11-08 14:56:58 +00:00
|
|
|
<vn-check
|
2022-11-07 14:55:17 +00:00
|
|
|
ng-model="ticket.checked"
|
|
|
|
vn-click-stop>
|
|
|
|
</vn-check>
|
|
|
|
</td>
|
|
|
|
<td class="icon-field">
|
|
|
|
<vn-icon
|
|
|
|
ng-show="::ticket.isTaxDataChecked === 0"
|
|
|
|
translate-attr="{title: 'No verified data'}"
|
|
|
|
class="bright"
|
|
|
|
icon="icon-no036">
|
|
|
|
</vn-icon>
|
|
|
|
<vn-icon
|
|
|
|
ng-show="::ticket.hasTicketRequest"
|
|
|
|
translate-attr="{title: 'Purchase request'}"
|
|
|
|
class="bright"
|
|
|
|
icon="icon-buyrequest">
|
|
|
|
</vn-icon>
|
|
|
|
<vn-icon
|
|
|
|
ng-show="::ticket.itemShortage"
|
|
|
|
translate-attr="{title: 'Not visible'}"
|
|
|
|
class="bright"
|
|
|
|
icon="icon-unavailable">
|
|
|
|
</vn-icon>
|
|
|
|
<vn-icon
|
|
|
|
ng-show="::ticket.isFreezed"
|
|
|
|
translate-attr="{title: 'Client frozen'}"
|
|
|
|
class="bright"
|
|
|
|
icon="icon-frozen">
|
|
|
|
</vn-icon>
|
|
|
|
<vn-icon
|
|
|
|
ng-show="::ticket.risk"
|
|
|
|
title="{{::$ctrl.$t('Risk')}}: {{ticket.risk}}"
|
|
|
|
class="bright"
|
|
|
|
icon="icon-risk">
|
|
|
|
</vn-icon>
|
|
|
|
<vn-icon
|
|
|
|
ng-show="::ticket.hasComponentLack"
|
|
|
|
translate-attr="{title: 'Component lack'}"
|
|
|
|
class="bright"
|
|
|
|
icon="icon-components">
|
|
|
|
</vn-icon>
|
|
|
|
</td>
|
2022-11-08 14:56:58 +00:00
|
|
|
<td><span
|
2022-11-07 14:55:17 +00:00
|
|
|
ng-click="ticketDescriptor.show($event, ticket.id)"
|
|
|
|
class="link">
|
|
|
|
{{::ticket.id}}
|
|
|
|
</span></td>
|
|
|
|
<td shrink-date>
|
2022-11-08 14:56:58 +00:00
|
|
|
<span class="chip {{$ctrl.compareDate(ticket.originETD)}}">
|
|
|
|
{{::ticket.originETD | date: 'dd/MM/yyyy'}}
|
|
|
|
</span>
|
2022-11-07 14:55:17 +00:00
|
|
|
</td>
|
2022-11-08 14:56:58 +00:00
|
|
|
<td>
|
|
|
|
<span
|
2022-11-07 14:55:17 +00:00
|
|
|
class="chip {{$ctrl.stateColor(ticket.state)}}">
|
2022-11-08 14:56:58 +00:00
|
|
|
{{::ticket.state}}
|
|
|
|
</span>
|
|
|
|
</td>
|
2022-11-07 14:55:17 +00:00
|
|
|
<td>{{::ticket.ipt}}</td>
|
|
|
|
<td>{{::ticket.liters}}</td>
|
|
|
|
<td>{{::ticket.lines}}</td>
|
2022-11-08 14:56:58 +00:00
|
|
|
<td>
|
|
|
|
<span
|
2022-11-07 14:55:17 +00:00
|
|
|
ng-click="ticketDescriptor.show($event, ticket.ticketFuture)"
|
|
|
|
class="link">
|
2022-11-08 14:56:58 +00:00
|
|
|
{{::ticket.ticketFuture}}
|
|
|
|
</span>
|
|
|
|
</td>
|
2022-11-07 14:55:17 +00:00
|
|
|
<td shrink-date>
|
2022-11-08 14:56:58 +00:00
|
|
|
<span class="chip {{$ctrl.compareDate(ticket.destETD)}}">
|
|
|
|
{{::ticket.destETD | date: 'dd/MM/yyyy'}}
|
|
|
|
</span>
|
2022-11-07 14:55:17 +00:00
|
|
|
</td>
|
2022-11-08 14:56:58 +00:00
|
|
|
<td>
|
|
|
|
<span
|
2022-11-07 14:55:17 +00:00
|
|
|
class="chip {{$ctrl.stateColor(ticket.tfState)}}">
|
2022-11-08 14:56:58 +00:00
|
|
|
{{::ticket.tfState}}
|
|
|
|
</span>
|
|
|
|
</td>
|
2022-11-07 14:55:17 +00:00
|
|
|
<td>{{::ticket.tfIpt}}</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</slot-table>
|
|
|
|
</smart-table>
|
|
|
|
</vn-card>
|
|
|
|
<vn-confirm
|
|
|
|
vn-id="moveTicketsFuture"
|
|
|
|
on-accept="$ctrl.moveTicketsFuture()"
|
2022-11-08 14:56:58 +00:00
|
|
|
question="{{$ctrl.confirmationMessage}}"
|
2022-11-07 14:55:17 +00:00
|
|
|
message="Move tickets">
|
|
|
|
</vn-confirm>
|
2022-11-08 14:56:58 +00:00
|
|
|
<vn-ticket-descriptor-popover
|
2022-11-07 14:55:17 +00:00
|
|
|
vn-id="ticketDescriptor">
|
2022-11-08 14:56:58 +00:00
|
|
|
</vn-ticket-descriptor-popover>
|