2018-11-27 14:02:54 +00:00
|
|
|
<vn-crud-model auto-load="false"
|
2018-10-30 13:57:22 +00:00
|
|
|
vn-id="model"
|
2019-05-21 07:03:57 +00:00
|
|
|
url="/ticket/api/TicketWeeklies/filter"
|
2018-10-30 13:57:22 +00:00
|
|
|
filter="::$ctrl.filter"
|
|
|
|
limit="20"
|
|
|
|
data="weeklies"
|
2019-05-21 07:03:57 +00:00
|
|
|
primary-key="ticketFk">
|
2018-10-30 13:57:22 +00:00
|
|
|
</vn-crud-model>
|
2019-05-21 07:03:57 +00:00
|
|
|
<div class="content-block">
|
|
|
|
<div class="vn-list">
|
|
|
|
<vn-card pad-medium-h>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-searchbar
|
|
|
|
vn-id="turnSearchbar"
|
|
|
|
style="width: 100%"
|
|
|
|
on-search="$ctrl.onSearch($params)"
|
|
|
|
info="Search turns by id or client id"
|
|
|
|
vn-focus>
|
|
|
|
</vn-searchbar>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-card>
|
|
|
|
</div>
|
2018-10-30 13:57:22 +00:00
|
|
|
<div margin-medium>
|
|
|
|
<vn-card margin-medium-v pad-medium>
|
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th number field="ticketFk">Ticket ID</vn-th>
|
|
|
|
<vn-th field="weekDay">Client</vn-th>
|
|
|
|
<vn-th>Turn</vn-th>
|
|
|
|
<vn-th>Warehouse</vn-th>
|
|
|
|
<vn-th>Salesperson</vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
2018-11-09 07:06:22 +00:00
|
|
|
<vn-tr ng-repeat="weekly in weeklies" class="clickable" ui-sref="ticket.card.summary({id: {{::weekly.ticketFk}}})">
|
2018-10-30 13:57:22 +00:00
|
|
|
<vn-td number>
|
|
|
|
<span class="link"
|
|
|
|
ng-click="$ctrl.showTicketDescriptor($event, weekly.ticketFk)">
|
|
|
|
{{weekly.ticketFk}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td>
|
2019-05-21 07:03:57 +00:00
|
|
|
<span class="link"
|
|
|
|
ng-click="$ctrl.showClientDescriptor($event, weekly.clientFk)"
|
|
|
|
title ="{{::weekly.clientName}}">
|
|
|
|
{{::weekly.clientName}}
|
2018-10-30 13:57:22 +00:00
|
|
|
</span>
|
|
|
|
</vn-td>
|
2018-11-20 15:33:09 +00:00
|
|
|
<vn-td ng-click="$ctrl.preventNavigation($event)">
|
2019-05-21 07:03:57 +00:00
|
|
|
<vn-autocomplete vn-one
|
|
|
|
vn-id="weekday"
|
2018-10-30 13:57:22 +00:00
|
|
|
field="weekly.weekDay"
|
|
|
|
data="$ctrl.weekdays"
|
|
|
|
show-field="name"
|
|
|
|
translate-fields="['name']"
|
|
|
|
value-field="id"
|
2019-05-21 07:03:57 +00:00
|
|
|
on-change="$ctrl.onWeekdayUpdate(weekly.ticketFk, weekday.selection.id)"
|
2018-10-30 13:57:22 +00:00
|
|
|
order="id">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-td>
|
2019-05-21 07:03:57 +00:00
|
|
|
<vn-td>{{::weekly.warehouseName}}</vn-td>
|
|
|
|
<vn-td>
|
|
|
|
<span class="link"
|
|
|
|
ng-click="$ctrl.showWorkerDescriptor($event, weekly.workerFk)">
|
|
|
|
{{::weekly.nickName}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
2018-10-30 13:57:22 +00:00
|
|
|
<vn-td>
|
|
|
|
<vn-icon-button
|
|
|
|
icon="delete"
|
2019-05-21 07:03:57 +00:00
|
|
|
ng-click="$ctrl.deleteWeekly($index)"
|
2018-10-30 13:57:22 +00:00
|
|
|
vn-tooltip="Delete">
|
|
|
|
</vn-icon-button>
|
|
|
|
</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
|
|
|
</vn-card>
|
2019-01-20 17:48:03 +00:00
|
|
|
<vn-pagination model="model"></vn-pagination>
|
2018-10-30 13:57:22 +00:00
|
|
|
</div>
|
2019-05-21 07:03:57 +00:00
|
|
|
</div>
|
2018-10-30 13:57:22 +00:00
|
|
|
<vn-client-descriptor-popover vn-id="clientDescriptor"></vn-client-descriptor-popover>
|
2019-05-21 07:03:57 +00:00
|
|
|
<vn-ticket-descriptor-popover
|
2018-10-30 13:57:22 +00:00
|
|
|
vn-id="ticketDescriptor">
|
|
|
|
</vn-ticket-descriptor-popover>
|
2019-05-21 07:03:57 +00:00
|
|
|
<vn-worker-descriptor-popover
|
|
|
|
vn-id="workerDescriptor">
|
|
|
|
</vn-worker-descriptor-popover>
|
2018-10-30 13:57:22 +00:00
|
|
|
<vn-confirm
|
|
|
|
vn-id="deleteWeekly"
|
|
|
|
on-response="$ctrl.returnDialog(response)"
|
2019-05-21 07:03:57 +00:00
|
|
|
question="You are going to delete this turn"
|
|
|
|
message="This turn will be removed! Continue anyway?">
|
|
|
|
</vn-confirm>
|