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

88 lines
3.2 KiB
HTML
Raw Normal View History

2020-03-13 19:33:12 +00:00
2019-11-10 10:08:44 +00:00
<vn-auto-search
2020-03-13 19:33:12 +00:00
model="model">
2019-11-10 10:08:44 +00:00
</vn-auto-search>
<vn-data-viewer
model="model"
class="vn-mb-xl">
<vn-card>
<vn-table model="model">
<vn-thead>
<vn-tr>
<vn-th field="id" number>Id</vn-th>
<vn-th field="salesPersonFk">Sales person</vn-th>
2020-06-30 06:32:04 +00:00
<vn-th field="clientFk">Client</vn-th>
2019-11-10 10:08:44 +00:00
<vn-th field="isConfirmed" center>Confirmed</vn-th>
<vn-th field="created" center expand>Created</vn-th>
<vn-th field="landed" default-order="DESC" center expand>Landed</vn-th>
<vn-th field="created" center title ="{{'Theoretical hour' | translate}}">T. Hour</vn-th>
<vn-th field="created" center>Real hour</vn-th>
2019-11-10 10:08:44 +00:00
<vn-th center>Total</vn-th>
</vn-tr>
</vn-thead>
<vn-tbody>
2020-03-13 19:33:12 +00:00
<vn-tr
ng-repeat="order in model.data"
class="clickable search-result"
ui-sref="order.card.summary({id: {{::order.id}}})">
2019-11-10 10:08:44 +00:00
<vn-td number>{{::order.id}}</vn-td>
<vn-td expand>
2020-04-25 09:50:04 +00:00
<span
2020-06-30 06:32:04 +00:00
vn-click-stop="workerDescriptor.show($event, order.salesPersonFk)"
class="link" >
{{::order.name | dashIfEmpty}}
2019-11-10 10:08:44 +00:00
</span>
</vn-td>
<vn-td expand>
2020-04-25 09:50:04 +00:00
<span
2020-06-30 06:32:04 +00:00
vn-click-stop="clientDescriptor.show($event, order.clientFk)"
class="link">
{{::order.clientName}}
2019-11-10 10:08:44 +00:00
</span>
</vn-td>
2020-07-02 05:46:55 +00:00
<vn-td center>
2019-11-10 10:08:44 +00:00
<vn-check
ng-model="order.isConfirmed"
disabled="true">
</vn-check>
</vn-td>
<vn-td center expand>{{::order.created | date: 'dd/MM/yyyy HH:mm'}}</vn-td>
<vn-td center expand>
2020-06-30 06:32:04 +00:00
<span class="chip {{$ctrl.compareDate(order.landed)}}">
{{::order.landed | date:'dd/MM/yyyy'}}
</span>
</vn-td>
<vn-td shrink>{{::order.hourTheoretical | dashIfEmpty}}</vn-td>
<vn-td shrink>{{::ticket.hourEffective | dashIfEmpty}}</vn-td>
2019-11-10 10:08:44 +00:00
<vn-td number>{{::order.total | currency: 'EUR': 2 | dashIfEmpty}}</vn-td>
<vn-td shrink>
<vn-icon-button
2020-04-25 09:50:04 +00:00
vn-click-stop="$ctrl.preview(order)"
icon="desktop_windows"
vn-tooltip="Preview">
2019-11-10 10:08:44 +00:00
</vn-icon-button>
</vn-td>
</vn-tr>
</vn-tbody>
</vn-table>
</vn-card>
2019-11-10 10:08:44 +00:00
</vn-data-viewer>
<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
2020-04-25 09:50:04 +00:00
vn-id="workerDescriptor">
</vn-worker-descriptor-popover>
2019-10-26 23:30:01 +00:00
<vn-popup vn-id="summary">
2020-04-25 09:50:04 +00:00
<vn-order-summary
order="$ctrl.selectedOrder">
</vn-order-summary>
2019-10-26 23:30:01 +00:00
</vn-popup>