2018-07-18 12:38:43 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
2019-02-27 11:03:54 +00:00
|
|
|
url="/api/Orders/filter"
|
2018-07-18 12:38:43 +00:00
|
|
|
limit="20"
|
2019-02-27 11:03:54 +00:00
|
|
|
data="orders"
|
2019-10-02 19:02:49 +00:00
|
|
|
order="landed DESC, clientFk">
|
2018-07-18 12:38:43 +00:00
|
|
|
</vn-crud-model>
|
2019-01-30 22:47:06 +00:00
|
|
|
<div class="content-block">
|
2019-10-18 19:54:13 +00:00
|
|
|
<vn-card class="vn-pa-md vn-w-sm">
|
2019-10-02 19:02:49 +00:00
|
|
|
<vn-searchbar
|
|
|
|
panel="vn-order-search-panel"
|
|
|
|
on-search="$ctrl.onSearch($params)"
|
|
|
|
info="Search orders by id"
|
|
|
|
vn-focus>
|
|
|
|
</vn-searchbar>
|
|
|
|
</vn-card>
|
|
|
|
<vn-data-viewer
|
|
|
|
model="model"
|
2019-10-04 22:16:57 +00:00
|
|
|
class="vn-my-md vn-mb-xl">
|
2019-10-02 19:02:49 +00:00
|
|
|
<vn-card>
|
|
|
|
<vn-table model="model">
|
2018-07-18 12:38:43 +00:00
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
2019-05-14 06:13:04 +00:00
|
|
|
<vn-th field="id" number>Id</vn-th>
|
2018-07-18 12:38:43 +00:00
|
|
|
<vn-th field="clientFk">Client</vn-th>
|
2019-05-15 06:33:27 +00:00
|
|
|
<vn-th field="salesPersonFk">Sales person</vn-th>
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-th field="isConfirmed" center>Confirmed</vn-th>
|
2018-10-08 12:38:16 +00:00
|
|
|
<vn-th field="sourceApp">Created from</vn-th>
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-th field="created" center>Created</vn-th>
|
2019-05-14 06:13:04 +00:00
|
|
|
<vn-th field="landed" default-order="DESC" center>Landed</vn-th>
|
2018-10-08 12:38:16 +00:00
|
|
|
<vn-th field="companyFk">Company</vn-th>
|
2019-05-14 06:13:04 +00:00
|
|
|
<vn-th center>Total</vn-th>
|
2018-07-18 12:38:43 +00:00
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
2019-01-22 12:18:20 +00:00
|
|
|
<vn-tr ng-repeat="order in orders" class="clickable searchResult"
|
2018-10-10 10:58:27 +00:00
|
|
|
ui-sref="order.card.summary({id: {{::order.id}}})">
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-td number>{{::order.id}}</vn-td>
|
|
|
|
<vn-td expand>
|
2019-02-15 11:39:21 +00:00
|
|
|
<span class="link" ng-click="$ctrl.showClientDescriptor($event, order.clientFk)">
|
2019-02-27 11:03:54 +00:00
|
|
|
{{::order.clientName}}
|
2018-09-06 10:47:25 +00:00
|
|
|
</span>
|
|
|
|
</vn-td>
|
2019-02-15 11:39:21 +00:00
|
|
|
<vn-td expand>
|
|
|
|
<span
|
|
|
|
class="link"
|
2019-04-25 12:24:02 +00:00
|
|
|
ng-click="$ctrl.showWorkerDescriptor($event, order.salesPersonFk)">
|
2019-02-27 11:03:54 +00:00
|
|
|
{{::order.workerNickname | dashIfEmpty}}
|
2019-02-15 11:39:21 +00:00
|
|
|
</span>
|
|
|
|
</vn-td>
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-td center>
|
2018-10-08 12:38:16 +00:00
|
|
|
<vn-check
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="order.isConfirmed"
|
2018-10-08 12:38:16 +00:00
|
|
|
disabled="true">
|
|
|
|
</vn-check>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td>{{::order.sourceApp}}</vn-td>
|
2019-10-14 06:09:13 +00:00
|
|
|
<vn-td center>{{::order.created | dateTime: 'dd/MM/yyyy HH:mm'}}</vn-td>
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-td center>{{::order.landed | date:'dd/MM/yyyy'}}</vn-td>
|
2019-02-27 11:03:54 +00:00
|
|
|
<vn-td>{{::order.companyCode}}</vn-td>
|
|
|
|
<vn-td number>{{::order.total | currency: 'EUR': 2 | dashIfEmpty}}</vn-td>
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-td shrink>
|
2018-10-10 12:03:56 +00:00
|
|
|
<vn-icon-button
|
|
|
|
ng-click="$ctrl.preview($event, order)"
|
|
|
|
vn-tooltip="Preview"
|
|
|
|
icon="desktop_windows">
|
|
|
|
</vn-icon-button>
|
|
|
|
</vn-td>
|
2018-07-18 12:38:43 +00:00
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
2019-10-02 19:02:49 +00:00
|
|
|
</vn-card>
|
|
|
|
</vn-data-viewer>
|
2018-07-18 12:38:43 +00:00
|
|
|
</div>
|
2018-10-10 12:03:56 +00:00
|
|
|
<a ui-sref="order.create" vn-bind="+" vn-tooltip="New order" fixed-bottom-right>
|
2019-01-20 15:47:04 +00:00
|
|
|
<vn-float-button icon="add"></vn-float-button>
|
2018-07-18 12:38:43 +00:00
|
|
|
</a>
|
2019-01-20 15:47:04 +00:00
|
|
|
<vn-client-descriptor-popover
|
2019-02-15 11:39:21 +00:00
|
|
|
vn-id="clientDescriptor">
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-client-descriptor-popover>
|
2019-02-15 11:39:21 +00:00
|
|
|
<vn-worker-descriptor-popover
|
|
|
|
vn-id="workerDescriptor"
|
2019-04-25 12:24:02 +00:00
|
|
|
worker-fk="$ctrl.selectedWorker">
|
2019-02-15 11:39:21 +00:00
|
|
|
</vn-worker-descriptor-popover>
|
2018-11-19 07:42:29 +00:00
|
|
|
<vn-dialog
|
|
|
|
vn-id="summary"
|
2019-01-20 15:47:04 +00:00
|
|
|
class="dialog-summary">
|
2018-11-19 07:42:29 +00:00
|
|
|
<tpl-body>
|
|
|
|
<vn-order-summary order="$ctrl.selectedOrder"></vn-order-summary>
|
|
|
|
</tpl-body>
|
2019-09-05 11:06:40 +00:00
|
|
|
</vn-dialog>
|
|
|
|
<vn-scroll-up></vn-scroll-up>
|