salix/modules/order/front/index/index.html

89 lines
3.5 KiB
HTML
Raw Normal View History

2018-07-18 12:38:43 +00:00
<vn-crud-model
vn-id="model"
url="/order/api/Orders"
2018-09-06 10:47:25 +00:00
filter="::$ctrl.filter"
2018-07-18 12:38:43 +00:00
limit="20"
2018-11-27 14:02:54 +00:00
data="orders" auto-load="false">
2018-07-18 12:38:43 +00:00
</vn-crud-model>
2019-01-30 22:47:06 +00:00
<div class="content-block">
<div class="vn-list">
<vn-card pad-medium-h>
2018-11-27 14:02:54 +00:00
<vn-searchbar auto-load="false"
panel="vn-order-search-panel"
model="model"
expr-builder="$ctrl.exprBuilder(param, value)"
auto-load="true"
vn-focus>
</vn-searchbar>
</vn-card>
</div>
2019-02-10 21:52:35 +00:00
<vn-card margin-medium-v>
2018-07-18 12:38:43 +00:00
<vn-table model="model">
<vn-thead>
<vn-tr>
2019-02-10 21:52:35 +00:00
<vn-th field="id" default-order="DESC" number>Id</vn-th>
2018-07-18 12:38:43 +00:00
<vn-th field="clientFk">Client</vn-th>
2019-01-30 14:10:52 +00:00
<vn-th field="clientFk">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>
<vn-th field="created" center>Landed</vn-th>
2018-10-08 12:38:16 +00:00
<vn-th field="companyFk">Company</vn-th>
2018-07-18 12:38:43 +00:00
</vn-tr>
</vn-thead>
<vn-tbody>
<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>
<span class="link" ng-click="$ctrl.showClientDescriptor($event, order.clientFk)">
2018-09-06 10:47:25 +00:00
{{::order.client.name}}
</span>
</vn-td>
<vn-td expand>
<span
class="link"
ng-click="$ctrl.showWorkerDescriptor($event, order.client.salesPerson.user.id)">
{{::order.client.salesPerson.user.nickname | dashIfEmpty}}
</span>
</vn-td>
2019-02-10 21:52:35 +00:00
<vn-td center>
2018-10-08 12:38:16 +00:00
<vn-check
field="order.isConfirmed"
disabled="true">
</vn-check>
</vn-td>
<vn-td>{{::order.sourceApp}}</vn-td>
2019-02-10 21:52:35 +00:00
<vn-td center>{{::order.created | date:'dd/MM/yyyy HH:mm'}}</vn-td>
<vn-td center>{{::order.landed | date:'dd/MM/yyyy'}}</vn-td>
2018-09-06 10:47:25 +00:00
<vn-td>{{::order.company.code}}</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>
</vn-card>
2019-01-20 17:48:03 +00:00
<vn-pagination model="model"></vn-pagination>
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
vn-id="clientDescriptor">
2019-01-20 15:47:04 +00:00
</vn-client-descriptor-popover>
<vn-worker-descriptor-popover
vn-id="workerDescriptor"
user-id="$ctrl.selectedWorker">
</vn-worker-descriptor-popover>
<vn-dialog
vn-id="summary"
2019-01-20 15:47:04 +00:00
class="dialog-summary">
<tpl-body>
<vn-order-summary order="$ctrl.selectedOrder"></vn-order-summary>
</tpl-body>
2018-10-10 12:03:56 +00:00
</vn-dialog>