2021-05-18 06:41:36 +00:00
|
|
|
<vn-crud-model
|
2021-05-11 07:43:15 +00:00
|
|
|
vn-id="model"
|
|
|
|
url="SalesMonitors/clientsFilter"
|
|
|
|
limit="6"
|
2021-05-18 06:41:36 +00:00
|
|
|
order="dated DESC"
|
|
|
|
auto-load="true">
|
2021-05-11 07:43:15 +00:00
|
|
|
</vn-crud-model>
|
|
|
|
<vn-horizontal class="header">
|
|
|
|
<vn-one translate>
|
|
|
|
Clients on website
|
|
|
|
</vn-one>
|
|
|
|
<vn-none>
|
2021-06-15 11:48:42 +00:00
|
|
|
<vn-icon class="arrow"
|
|
|
|
icon="keyboard_arrow_up"
|
|
|
|
vn-tooltip="Minimize/Maximize"
|
|
|
|
ng-click="$ctrl.main.toggle()">
|
|
|
|
</vn-icon>
|
2021-05-11 07:43:15 +00:00
|
|
|
<vn-icon
|
|
|
|
icon="refresh"
|
|
|
|
vn-tooltip="Refresh"
|
|
|
|
ng-click="model.refresh()">
|
|
|
|
</vn-icon>
|
|
|
|
</vn-none>
|
|
|
|
</vn-horizontal>
|
2021-06-15 11:48:42 +00:00
|
|
|
<vn-card vn-id="card">
|
2021-05-12 11:00:54 +00:00
|
|
|
<vn-table model="model" class="scrollable sm">
|
2021-05-11 07:43:15 +00:00
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th field="dated">Hour</vn-th>
|
|
|
|
<vn-th field="salesPersonFk" class="expendable">Salesperson</vn-th>
|
|
|
|
<vn-th field="clientFk">Client</vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="visit in model.data">
|
|
|
|
<vn-td shrink-date>
|
|
|
|
<span class="chip">
|
|
|
|
{{::visit.dated | date: 'HH:mm'}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td class="shrink expendable">
|
|
|
|
<span
|
|
|
|
title="{{::visit.salesPerson}}"
|
|
|
|
vn-click-stop="workerDescriptor.show($event, visit.salesPersonFk)"
|
|
|
|
class="link">
|
|
|
|
{{::visit.salesPerson | dashIfEmpty}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td>
|
|
|
|
<span
|
|
|
|
title="{{::visit.clientName}}"
|
|
|
|
vn-click-stop="clientDescriptor.show($event, visit.clientFk)"
|
|
|
|
class="link">
|
|
|
|
{{::visit.clientName}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
|
|
|
<vn-pagination
|
|
|
|
model="model"
|
|
|
|
class="vn-pt-xs"
|
|
|
|
scroll-selector="vn-monitor-sales-clients vn-table"
|
|
|
|
scroll-offset="100">
|
|
|
|
</vn-pagination>
|
|
|
|
</vn-card>
|
|
|
|
<vn-worker-descriptor-popover
|
|
|
|
vn-id="workerDescriptor">
|
|
|
|
</vn-worker-descriptor-popover>
|
|
|
|
<vn-client-descriptor-popover
|
|
|
|
vn-id="clientDescriptor">
|
|
|
|
</vn-client-descriptor-popover>
|
|
|
|
<vn-contextmenu vn-id="contextmenu" targets="['vn-monitor-sales-clients vn-table']" model="model"
|
|
|
|
expr-builder="$ctrl.exprBuilder(param, value)">
|
|
|
|
<slot-menu>
|
|
|
|
<vn-item translate
|
|
|
|
ng-if="contextmenu.isFilterAllowed()"
|
|
|
|
ng-click="contextmenu.filterBySelection()">
|
|
|
|
Filter by selection
|
|
|
|
</vn-item>
|
|
|
|
<vn-item translate
|
|
|
|
ng-if="contextmenu.isFilterAllowed()"
|
|
|
|
ng-click="contextmenu.excludeSelection()">
|
|
|
|
Exclude selection
|
|
|
|
</vn-item>
|
|
|
|
<vn-item translate
|
|
|
|
ng-if="contextmenu.isFilterAllowed()"
|
|
|
|
ng-click="contextmenu.removeFilter()">
|
|
|
|
Remove filter
|
|
|
|
</vn-item>
|
|
|
|
<vn-item translate
|
|
|
|
ng-click="contextmenu.removeAllFilters()">
|
|
|
|
Remove all filters
|
|
|
|
</vn-item>
|
|
|
|
<vn-item translate
|
|
|
|
ng-if="contextmenu.isActionAllowed()"
|
|
|
|
ng-click="contextmenu.copyValue()">
|
|
|
|
Copy value
|
|
|
|
</vn-item>
|
|
|
|
</slot-menu>
|
|
|
|
</vn-contextmenu>
|