142 lines
4.7 KiB
HTML
142 lines
4.7 KiB
HTML
<vn-crud-model auto-load="true"
|
|
vn-id="model"
|
|
url="SalesMonitors/ordersFilter"
|
|
limit="6"
|
|
order="date_make DESC">
|
|
</vn-crud-model>
|
|
<vn-horizontal class="header">
|
|
<vn-one translate>
|
|
Recent order actions
|
|
</vn-one>
|
|
<vn-none>
|
|
<vn-icon
|
|
icon="delete"
|
|
vn-tooltip="Delete"
|
|
ng-if="$ctrl.totalChecked > 0"
|
|
ng-click="delete.show()">
|
|
</vn-icon>
|
|
<vn-icon class="arrow"
|
|
icon="keyboard_arrow_up"
|
|
vn-tooltip="Minimize/Maximize"
|
|
ng-click="$ctrl.main.toggle()">
|
|
</vn-icon>
|
|
<vn-icon
|
|
icon="refresh"
|
|
vn-tooltip="Refresh"
|
|
ng-click="model.refresh()">
|
|
</vn-icon>
|
|
</vn-none>
|
|
</vn-horizontal>
|
|
<vn-card>
|
|
<vn-table model="model" class="scrollable">
|
|
<vn-thead>
|
|
<vn-tr>
|
|
<vn-th shrink>
|
|
<vn-multi-check
|
|
model="model">
|
|
</vn-multi-check>
|
|
</vn-th>
|
|
<vn-th field="date_send" shrink-datetime>Date</vn-th>
|
|
<vn-th field="clientFk">Client</vn-th>
|
|
<vn-th field="salesPersonFk" shrink>SalesPerson</vn-th>
|
|
</vn-tr>
|
|
</vn-thead>
|
|
<a ng-repeat="order in model.data track by order.id"
|
|
class="clickable vn-tbody"
|
|
ui-sref="order.card.summary({id: {{::order.id}}})" target="_blank">
|
|
<vn-tr>
|
|
<vn-td>
|
|
<vn-check
|
|
ng-model="order.checked"
|
|
vn-click-stop>
|
|
</vn-check>
|
|
</vn-td>
|
|
<vn-td>
|
|
<span class="chip {{::$ctrl.chipColor(order.date_send)}}">
|
|
{{::order.date_send | date: 'dd/MM/yyyy'}}
|
|
</span>
|
|
</vn-td>
|
|
<vn-td>
|
|
<span
|
|
title="{{::order.clientName}}"
|
|
vn-click-stop="clientDescriptor.show($event, order.clientFk)"
|
|
class="link">
|
|
{{::order.clientName}}
|
|
</span>
|
|
</vn-td>
|
|
<vn-td>
|
|
<span
|
|
title="{{::order.salesPerson}}"
|
|
vn-click-stop="workerDescriptor.show($event, order.salesPersonFk)"
|
|
class="link">
|
|
{{::order.salesPerson | dashIfEmpty}}
|
|
</span>
|
|
</vn-td>
|
|
</vn-tr>
|
|
<vn-tr>
|
|
<vn-td></vn-td>
|
|
<vn-td>
|
|
<span>
|
|
{{::order.date_make | date: 'dd/MM/yyyy HH:mm'}}
|
|
</span>
|
|
</vn-td>
|
|
<vn-td>
|
|
<span title="{{::order.agencyName}}">
|
|
{{::order.agencyName | dashIfEmpty}}
|
|
</span>
|
|
</vn-td>
|
|
<vn-td>
|
|
{{::order.import | currency: 'EUR':2}}
|
|
</vn-td>
|
|
</vn-tr>
|
|
</a>
|
|
</vn-table>
|
|
<vn-pagination
|
|
model="model"
|
|
class="vn-pt-xs"
|
|
scroll-selector="vn-monitor-sales-orders 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-orders 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>
|
|
<vn-confirm
|
|
vn-id="delete"
|
|
on-accept="$ctrl.onDelete()"
|
|
question="All the selected elements will be deleted. Are you sure you want to continue?"
|
|
message="Delete selected elements">
|
|
</vn-confirm>
|