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

60 lines
2.4 KiB
HTML
Raw Normal View History

2018-11-27 14:02:54 +00:00
<vn-crud-model auto-load="false"
2018-07-18 13:01:37 +00:00
vn-id="model"
2018-07-24 10:55:10 +00:00
url="/order/api/OrderRows"
2018-07-18 13:01:37 +00:00
filter="::$ctrl.filter"
2018-07-24 10:55:10 +00:00
link="{orderFk: $ctrl.$stateParams.id}"
2018-07-18 13:01:37 +00:00
limit="20"
2018-07-24 10:55:10 +00:00
data="rows" on-data-change="$ctrl.onDataChange()">
2018-07-18 13:01:37 +00:00
</vn-crud-model>
2018-07-24 10:55:10 +00:00
<mg-ajax path="/order/api/Orders/{{$ctrl.$stateParams.id}}/getTotalVolume" options="mgEdit"></mg-ajax>
2018-07-18 13:01:37 +00:00
<vn-vertical>
<vn-card pad-large>
<vn-vertical>
2018-07-24 10:55:10 +00:00
<vn-horizontal>
<div class="totalBox">
2018-07-18 13:01:37 +00:00
<vn-label-value label="Total"
2019-01-14 10:35:48 +00:00
value="{{::edit.model.totalVolume}} M³">
2018-07-18 13:01:37 +00:00
</vn-label-value>
<vn-label-value label="Cajas"
2019-01-14 10:35:48 +00:00
value="{{::edit.model.totalBoxes | dashIfEmpty}} U">
2018-07-18 13:01:37 +00:00
</vn-label-value>
2018-07-24 10:55:10 +00:00
</div>
</vn-horizontal>
2018-07-18 13:01:37 +00:00
<vn-table model="model">
<vn-thead>
<vn-tr>
2018-07-24 10:55:10 +00:00
<vn-th field="itemFk" default-order="ASC" number>Item</vn-th>
<vn-th>Description</vn-th>
2018-07-18 13:01:37 +00:00
<vn-th field="quantity" number>Quantity</vn-th>
<vn-th number>m³ per quantity</vn-th>
</vn-tr>
</vn-thead>
<vn-tbody>
2018-07-24 10:55:10 +00:00
<vn-tr ng-repeat="row in rows">
<vn-td number>
<span
ng-click="$ctrl.showDescriptor($event, row.itemFk)"
2019-02-10 21:52:35 +00:00
class="link">
{{::row.itemFk}}
</span>
2018-07-18 13:01:37 +00:00
</vn-td>
<vn-td expand>
<vn-fetched-tags
max-length="6"
item="::row.item"
name="::row.item.name"
2019-03-22 14:05:15 +00:00
sub-name="::row.item.subName">
</vn-fetched-tags>
</vn-td>
2018-07-24 10:55:10 +00:00
<vn-td number>{{::row.quantity}}</vn-td>
<vn-td number>{{::row.volume | number:3}}</vn-td>
2018-07-18 13:01:37 +00:00
</vn-tr>
</vn-tbody>
</vn-table>
</vn-vertical>
2019-01-20 17:48:03 +00:00
<vn-pagination model="model"></vn-pagination>
2018-07-18 13:01:37 +00:00
</vn-card>
</vn-vertical>
<vn-item-descriptor-popover vn-id="descriptor"></vn-item-descriptor-popover>
2018-07-18 13:01:37 +00:00