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"
|
2022-03-21 10:32:26 +00:00
|
|
|
filter="$ctrl.filter"
|
|
|
|
order="dated DESC, hour DESC"
|
2021-05-18 06:41:36 +00:00
|
|
|
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-none>
|
|
|
|
</vn-horizontal>
|
2021-06-15 11:48:42 +00:00
|
|
|
<vn-card vn-id="card">
|
2022-11-02 08:40:09 +00:00
|
|
|
<smart-table
|
|
|
|
model="model"
|
|
|
|
options="$ctrl.smartTableOptions"
|
2022-03-21 10:32:26 +00:00
|
|
|
expr-builder="$ctrl.exprBuilder(param, value)"
|
2022-11-02 08:40:09 +00:00
|
|
|
disabled-table-filter="true"
|
|
|
|
disabled-table-order="true"
|
2022-03-21 10:32:26 +00:00
|
|
|
class="scrollable sm">
|
|
|
|
<slot-actions>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-date-picker
|
|
|
|
class="vn-pa-xs"
|
2022-11-02 08:40:09 +00:00
|
|
|
label="From"
|
2022-03-21 10:32:26 +00:00
|
|
|
ng-model="$ctrl.dateFrom"
|
|
|
|
on-change="$ctrl.addFilterDate()">
|
|
|
|
</vn-date-picker>
|
|
|
|
<vn-date-picker
|
|
|
|
class="vn-pa-xs"
|
2022-11-02 08:40:09 +00:00
|
|
|
label="To"
|
2022-03-21 10:32:26 +00:00
|
|
|
ng-model="$ctrl.dateTo"
|
|
|
|
on-change="$ctrl.addFilterDate()">
|
|
|
|
</vn-date-picker>
|
|
|
|
</vn-horizontal>
|
|
|
|
</slot-actions>
|
|
|
|
<slot-table>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th field="dated">
|
|
|
|
<span translate>Date</span>
|
|
|
|
</th>
|
|
|
|
<th field="hour">
|
|
|
|
<span translate>Hour</span>
|
|
|
|
</th>
|
|
|
|
<th field="salesPersonFk" class="expendable">
|
|
|
|
<span translate>Salesperson</span>
|
|
|
|
</th>
|
|
|
|
<th field="clientFk">
|
|
|
|
<span translate>Client</span>
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr ng-repeat="visit in model.data">
|
|
|
|
<td shrink-date>
|
|
|
|
<span class="chip">
|
|
|
|
{{::visit.dated | date:'dd/MM/yy'}}
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td shrink-date>
|
|
|
|
<span class="chip">
|
|
|
|
{{::visit.hour | date: 'HH:mm'}}
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td class="shrink expendable">
|
|
|
|
<span
|
|
|
|
title="{{::visit.salesPerson}}"
|
|
|
|
vn-click-stop="workerDescriptor.show($event, visit.salesPersonFk)"
|
|
|
|
class="link">
|
|
|
|
{{::visit.salesPerson | dashIfEmpty}}
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<span
|
|
|
|
title="{{::visit.clientName}}"
|
|
|
|
vn-click-stop="clientDescriptor.show($event, visit.clientFk)"
|
|
|
|
class="link">
|
|
|
|
{{::visit.clientName}}
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
2022-05-03 12:08:46 +00:00
|
|
|
</table>
|
|
|
|
</slot-table>
|
|
|
|
<slot-pagination>
|
|
|
|
<vn-pagination
|
|
|
|
model="model"
|
|
|
|
class="vn-pt-xs"
|
|
|
|
scroll-selector="vn-monitor-sales-clients smart-table"
|
|
|
|
scroll-offset="100">
|
|
|
|
</vn-pagination>
|
|
|
|
</slot-pagination>
|
2022-03-21 10:32:26 +00:00
|
|
|
</smart-table>
|
2021-05-11 07:43:15 +00:00
|
|
|
</vn-card>
|
2022-11-02 08:40:09 +00:00
|
|
|
<vn-worker-descriptor-popover
|
2021-05-11 07:43:15 +00:00
|
|
|
vn-id="workerDescriptor">
|
|
|
|
</vn-worker-descriptor-popover>
|
|
|
|
<vn-client-descriptor-popover
|
|
|
|
vn-id="clientDescriptor">
|
2022-11-02 08:40:09 +00:00
|
|
|
</vn-client-descriptor-popover>
|