164 lines
6.8 KiB
HTML
164 lines
6.8 KiB
HTML
|
<vn-crud-model
|
||
|
vn-id="model"
|
||
|
url="Tickets/getTicketsFuture"
|
||
|
filter="::$ctrl.filter"
|
||
|
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"
|
||
|
model="model"
|
||
|
filter="$ctrl.defaultFilter">
|
||
|
</vn-searchbar>
|
||
|
</vn-portal>
|
||
|
<vn-card>
|
||
|
<smart-table
|
||
|
model="model"
|
||
|
options="$ctrl.smartTableOptions"
|
||
|
>
|
||
|
<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>
|
||
|
<th field="originDated">
|
||
|
<span translate>Origin ETD</span>
|
||
|
</th>
|
||
|
<th field="state">
|
||
|
<span translate>Origin State</span>
|
||
|
</th>
|
||
|
<th field="ipt">
|
||
|
<span>IPT</span>
|
||
|
</th>
|
||
|
<th field="liters">
|
||
|
<span translate>Liters</span>
|
||
|
</th>
|
||
|
<th field="lines">
|
||
|
<span translate>Available Lines</span>
|
||
|
</th>
|
||
|
<th field="ticketFuture">
|
||
|
<span translate>Destination ID</span>
|
||
|
</th>
|
||
|
<th field="tfETD">
|
||
|
<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>
|
||
|
<vn-check
|
||
|
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>
|
||
|
<td><span
|
||
|
ng-click="ticketDescriptor.show($event, ticket.id)"
|
||
|
class="link">
|
||
|
{{::ticket.id}}
|
||
|
</span></td>
|
||
|
<td shrink-date>
|
||
|
<span class="chip {{$ctrl.compareDate(ticket.originETD)}}">{{::ticket.originETD | date: 'dd/MM/yyyy'}}</span>
|
||
|
</td>
|
||
|
<td><span
|
||
|
class="chip {{$ctrl.stateColor(ticket.state)}}">
|
||
|
{{::ticket.state}}
|
||
|
</span></td>
|
||
|
<td>{{::ticket.ipt}}</td>
|
||
|
<td>{{::ticket.liters}}</td>
|
||
|
<td>{{::ticket.lines}}</td>
|
||
|
<td><span
|
||
|
ng-click="ticketDescriptor.show($event, ticket.ticketFuture)"
|
||
|
class="link">
|
||
|
{{::ticket.ticketFuture}}
|
||
|
</span></td>
|
||
|
<td shrink-date>
|
||
|
<span class="chip {{$ctrl.compareDate(ticket.destETD)}}">{{::ticket.destETD | date: 'dd/MM/yyyy'}}</span>
|
||
|
</td>
|
||
|
<td><span
|
||
|
class="chip {{$ctrl.stateColor(ticket.tfState)}}">
|
||
|
{{::ticket.tfState}}
|
||
|
</span></td>
|
||
|
<td>{{::ticket.tfIpt}}</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</slot-table>
|
||
|
</smart-table>
|
||
|
</vn-card>
|
||
|
<vn-confirm
|
||
|
vn-id="moveTicketsFuture"
|
||
|
on-accept="$ctrl.moveTicketsFuture()"
|
||
|
question="Do you want to move {{$ctrl.checked.length}} ticket to the future?"
|
||
|
message="Move tickets">
|
||
|
</vn-confirm>
|
||
|
<vn-ticket-descriptor-popover
|
||
|
vn-id="ticketDescriptor">
|
||
|
</vn-ticket-descriptor-popover>
|