salix/modules/monitor/front/index/orders/index.html

142 lines
4.7 KiB
HTML
Raw Normal View History

2021-06-15 11:48:42 +00:00
<vn-crud-model auto-load="true"
2021-05-11 07:43:15 +00:00
vn-id="model"
url="SalesMonitors/ordersFilter"
limit="6"
2021-05-12 13:11:07 +00:00
order="date_make DESC">
2021-05-11 07:43:15 +00:00
</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>
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>
<vn-card>
<vn-table model="model" class="scrollable">
2021-05-11 07:43:15 +00:00
<vn-thead>
<vn-tr>
<vn-th shrink>
<vn-multi-check
model="model">
</vn-multi-check>
</vn-th>
2021-06-15 11:48:42 +00:00
<vn-th field="date_send" shrink-datetime>Date</vn-th>
2021-05-11 07:43:15 +00:00
<vn-th field="clientFk">Client</vn-th>
2021-06-15 11:48:42 +00:00
<vn-th field="salesPersonFk" shrink>SalesPerson</vn-th>
2021-05-11 07:43:15 +00:00
</vn-tr>
</vn-thead>
<a ng-repeat="order in model.data track by order.id"
2021-06-15 11:48:42 +00:00
class="clickable vn-tbody"
ui-sref="order.card.summary({id: {{::order.id}}})" target="_blank">
2021-05-11 07:43:15 +00:00
<vn-tr>
<vn-td>
<vn-check
ng-model="order.checked"
vn-click-stop>
</vn-check>
</vn-td>
2021-05-11 07:43:15 +00:00
<vn-td>
2021-06-15 11:48:42 +00:00
<span class="chip {{::$ctrl.chipColor(order.date_send)}}">
2021-05-11 07:43:15 +00:00
{{::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>
2021-06-15 11:48:42 +00:00
<vn-td>
<span
title="{{::order.salesPerson}}"
vn-click-stop="workerDescriptor.show($event, order.salesPersonFk)"
class="link">
{{::order.salesPerson | dashIfEmpty}}
</span>
</vn-td>
2021-05-11 07:43:15 +00:00
</vn-tr>
<vn-tr>
<vn-td></vn-td>
2021-06-15 11:48:42 +00:00
<vn-td>
2021-05-11 07:43:15 +00:00
<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>
2021-06-15 11:48:42 +00:00
{{::order.import | currency: 'EUR':2}}
2021-05-11 07:43:15 +00:00
</vn-td>
</vn-tr>
</a>
2021-05-11 07:43:15 +00:00
</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
2021-05-11 07:43:15 +00:00
vn-id="workerDescriptor">
</vn-worker-descriptor-popover>
<vn-client-descriptor-popover
vn-id="clientDescriptor">
</vn-client-descriptor-popover>
2021-06-15 11:48:42 +00:00
<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()"
2021-06-15 11:48:42 +00:00
ng-click="contextmenu.excludeSelection()">
Exclude selection
</vn-item>
<vn-item translate
ng-if="contextmenu.isFilterAllowed()"
2021-06-15 11:48:42 +00:00
ng-click="contextmenu.removeFilter()">
Remove filter
</vn-item>
<vn-item translate
2021-06-15 11:48:42 +00:00
ng-click="contextmenu.removeAllFilters()">
Remove all filters
</vn-item>
<vn-item translate
ng-if="contextmenu.isActionAllowed()"
2021-06-15 11:48:42 +00:00
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>