2019-10-11 15:38:04 +00:00
|
|
|
<vn-crud-model
|
2018-10-30 13:57:22 +00:00
|
|
|
vn-id="model"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="TicketWeeklies/filter"
|
2018-10-30 13:57:22 +00:00
|
|
|
filter="::$ctrl.filter"
|
|
|
|
limit="20"
|
|
|
|
data="weeklies"
|
2019-09-06 06:00:19 +00:00
|
|
|
order="ticketFk"
|
2019-10-11 15:38:04 +00:00
|
|
|
primary-key="ticketFk"
|
|
|
|
auto-load="true">
|
2018-10-30 13:57:22 +00:00
|
|
|
</vn-crud-model>
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-portal slot="topbar">
|
|
|
|
<vn-searchbar
|
2020-06-12 08:53:33 +00:00
|
|
|
placeholder="Search by weekly ticket"
|
2020-03-17 13:01:25 +00:00
|
|
|
info="Search weekly ticket by id or client id"
|
|
|
|
auto-state="false"
|
|
|
|
model="model">
|
2019-11-10 10:08:44 +00:00
|
|
|
</vn-searchbar>
|
|
|
|
</vn-portal>
|
|
|
|
<vn-data-viewer
|
|
|
|
model="model"
|
2020-06-29 07:35:18 +00:00
|
|
|
class="vn-w-xl">
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-card>
|
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th field="ticketFk" number>Ticket ID</vn-th>
|
2020-06-29 07:35:18 +00:00
|
|
|
<vn-th field="clientName">Client</vn-th>
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-th>Weekday</vn-th>
|
2020-04-08 10:33:36 +00:00
|
|
|
<vn-th>Agency</vn-th>
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-th>Warehouse</vn-th>
|
|
|
|
<vn-th>Salesperson</vn-th>
|
|
|
|
<vn-th shrink></vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
2020-04-25 09:50:04 +00:00
|
|
|
<vn-tr
|
|
|
|
ng-repeat="weekly in weeklies"
|
|
|
|
ui-sref="ticket.card.summary({id: {{::weekly.ticketFk}}})"
|
|
|
|
class="clickable">
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-td number>
|
2020-04-25 09:50:04 +00:00
|
|
|
<span
|
|
|
|
vn-click-stop="ticketDescriptor.show($event, weekly.ticketFk)"
|
|
|
|
class="link">
|
2019-11-10 10:08:44 +00:00
|
|
|
{{weekly.ticketFk}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td>
|
2020-04-25 09:50:04 +00:00
|
|
|
<span
|
|
|
|
vn-click-stop="clientDescriptor.show($event, weekly.clientFk)"
|
|
|
|
title ="{{::weekly.clientName}}"
|
|
|
|
class="link">
|
2019-11-10 10:08:44 +00:00
|
|
|
{{::weekly.clientName}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
2020-04-25 09:50:04 +00:00
|
|
|
<vn-td vn-click-stop>
|
2020-06-29 07:35:18 +00:00
|
|
|
<vn-autocomplete
|
2019-11-10 10:08:44 +00:00
|
|
|
vn-id="weekday"
|
|
|
|
ng-model="weekly.weekDay"
|
|
|
|
data="$ctrl.weekdays"
|
|
|
|
show-field="name"
|
|
|
|
translate-fields="['name']"
|
|
|
|
value-field="id"
|
2020-04-08 10:33:36 +00:00
|
|
|
on-change="$ctrl.onUpdate(weekly.ticketFk, 'weekDay', value)"
|
2019-11-10 10:08:44 +00:00
|
|
|
order="id"
|
|
|
|
class="dense">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-td>
|
2020-04-25 09:50:04 +00:00
|
|
|
<vn-td vn-click-stop>
|
2020-04-08 10:33:36 +00:00
|
|
|
<vn-autocomplete
|
|
|
|
vn-id="agencyMode"
|
|
|
|
ng-model="weekly.agencyModeFk"
|
|
|
|
url="AgencyModes/isActive"
|
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
|
|
|
on-change="$ctrl.onUpdate(weekly.ticketFk, 'agencyModeFk', value)"
|
|
|
|
order="name"
|
|
|
|
class="dense">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-td>
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-td>{{::weekly.warehouseName}}</vn-td>
|
|
|
|
<vn-td>
|
2020-04-25 09:50:04 +00:00
|
|
|
<span
|
|
|
|
vn-click-stop="workerDescriptor.show($event, weekly.workerFk)"
|
|
|
|
class="link" >
|
2020-06-29 07:35:18 +00:00
|
|
|
{{::weekly.userName}}
|
2019-11-10 10:08:44 +00:00
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td shrink>
|
|
|
|
<vn-icon-button
|
|
|
|
icon="delete"
|
2020-04-25 09:50:04 +00:00
|
|
|
vn-click-stop="deleteWeekly.show(weekly.ticketFk)"
|
2019-11-10 10:08:44 +00:00
|
|
|
vn-tooltip="Delete">
|
|
|
|
</vn-icon-button>
|
|
|
|
</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
2019-10-11 15:38:04 +00:00
|
|
|
</vn-card>
|
2019-11-10 10:08:44 +00:00
|
|
|
</vn-data-viewer>
|
2019-10-11 15:38:04 +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"
|
2020-04-08 10:33:36 +00:00
|
|
|
on-accept="$ctrl.onDeleteWeeklyAccept($data)"
|
2019-07-29 11:12:36 +00:00
|
|
|
question="This ticket will be removed from weekly tickets! Continue anyway?"
|
|
|
|
message="You are going to delete this weekly ticket">
|
2019-05-21 07:03:57 +00:00
|
|
|
</vn-confirm>
|