salix/modules/ticket/front/future/index.html

175 lines
7.1 KiB
HTML
Raw Normal View History

<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"
2022-11-16 10:10:00 +00:00
suggested-filter="$ctrl.filterParams"
auto-state="false"
2022-11-10 14:54:00 +00:00
model="model">
</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)"
>
<slot-actions>
<vn-button disabled="$ctrl.checked.length === 0"
2022-11-14 08:56:23 +00:00
icon="keyboard_double_arrow_right"
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">
<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">
<span translate>Liters</span>
</th>
2022-11-10 14:54:00 +00:00
<th field="linesMax">
<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">
<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
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
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>
</td>
2022-11-08 14:56:58 +00:00
<td>
<span
class="chip {{$ctrl.stateColor(ticket.state)}}">
2022-11-08 14:56:58 +00:00
{{::ticket.state}}
</span>
</td>
<td>{{::ticket.ipt}}</td>
<td>{{::ticket.liters}}</td>
<td>{{::ticket.lines}}</td>
2022-11-08 14:56:58 +00:00
<td>
<span
ng-click="ticketDescriptor.show($event, ticket.ticketFuture)"
class="link">
2022-11-08 14:56:58 +00:00
{{::ticket.ticketFuture}}
</span>
</td>
<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>
</td>
2022-11-08 14:56:58 +00:00
<td>
<span
class="chip {{$ctrl.stateColor(ticket.tfState)}}">
2022-11-08 14:56:58 +00:00
{{::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()"
2022-11-08 14:56:58 +00:00
question="{{$ctrl.confirmationMessage}}"
message="Move tickets">
</vn-confirm>
2022-11-08 14:56:58 +00:00
<vn-ticket-descriptor-popover
vn-id="ticketDescriptor">
2022-11-08 14:56:58 +00:00
</vn-ticket-descriptor-popover>