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

61 lines
2.1 KiB
HTML
Raw Normal View History

<vn-crud-model
auto-load="true"
2018-07-18 13:01:37 +00:00
vn-id="model"
url="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"
data="rows"
on-data-change="$ctrl.onDataChange()">
2018-07-18 13:01:37 +00:00
</vn-crud-model>
<mg-ajax path="Orders/{{$ctrl.$stateParams.id}}/getTotalVolume" options="mgEdit"></mg-ajax>
<vn-data-viewer model="model" class="header vn-w-lg">
<vn-card class="vn-pa-lg">
<vn-label-value
label="Total"
value="{{::edit.model.totalVolume}} M³">
</vn-label-value>
<vn-label-value
label="Cajas"
value="{{::edit.model.totalBoxes | dashIfEmpty}} U">
</vn-label-value>
2018-07-18 13:01:37 +00:00
</vn-card>
<vn-card class="vn-mt-md">
<vn-table model="model">
<vn-thead>
<vn-tr>
<vn-th field="itemFk" default-order="ASC" number>Item</vn-th>
<vn-th>Description</vn-th>
<vn-th field="quantity" number>Quantity</vn-th>
<vn-th number>m³ per quantity</vn-th>
</vn-tr>
</vn-thead>
<vn-tbody>
<vn-tr ng-repeat="row in rows">
<vn-td number>
<span
ng-click="$ctrl.showDescriptor($event, row.itemFk)"
class="link">
{{::row.itemFk}}
</span>
</vn-td>
<vn-td expand>
<vn-fetched-tags
max-length="6"
item="::row.item"
name="::row.item.name"
sub-name="::row.item.subName">
</vn-fetched-tags>
</vn-td>
<vn-td number>{{::row.quantity}}</vn-td>
<vn-td number>{{::row.volume | number:3}}</vn-td>
</vn-tr>
</vn-tbody>
</vn-table>
</vn-card>
</vn-data-viewer>
<vn-item-descriptor-popover
vn-id="descriptor">
</vn-item-descriptor-popover>
2018-07-18 13:01:37 +00:00