salix/modules/item/front/item-shelving/index.html

118 lines
4.6 KiB
HTML
Raw Normal View History

2022-10-05 13:13:48 +00:00
<vn-crud-model
vn-id="model"
2022-10-06 07:47:53 +00:00
url="ItemShelvingPlacementSupplyStocks"
link="{itemFk: $ctrl.$params.id}"
2022-10-11 06:40:22 +00:00
data="$ctrl.itemShelvingPlacementSupplyStocks"
2022-10-05 13:13:48 +00:00
auto-load="true">
</vn-crud-model>
<vn-card>
<smart-table
model="model"
options="$ctrl.smartTableOptions"
expr-builder="$ctrl.exprBuilder(param, value)">
<slot-actions>
<div>
<div class="totalBox" style="text-align: center;">
<h6 translate>Total</h6>
<vn-label-value
2022-10-11 06:40:22 +00:00
label="Total labels"
value="{{$ctrl.labelTotal.toFixed(2)}}">
2022-10-05 13:13:48 +00:00
</vn-label-value>
</div>
</div>
<div class="vn-pa-md">
<vn-button
2022-10-11 06:40:22 +00:00
disabled="!$ctrl.checked.length"
2022-10-06 07:47:53 +00:00
ng-click="removeConfirm.show()"
2022-10-11 06:40:22 +00:00
icon="delete"
2022-10-06 07:47:53 +00:00
vn-tooltip="Remove selected lines"
2022-10-11 06:40:22 +00:00
vn-acl="replenisherBos">
2022-10-05 13:13:48 +00:00
</vn-button>
</div>
</slot-actions>
<slot-table>
<table>
<thead>
<tr>
<th shrink>
<vn-multi-check
model="model">
</vn-multi-check>
</th>
2022-10-06 07:47:53 +00:00
<th field="created">
2022-10-05 13:13:48 +00:00
<span translate>Created</span>
</th>
2022-10-06 07:47:53 +00:00
<th shrink field="itemFk">
2022-10-05 13:13:48 +00:00
<span translate>Item</span>
</th>
<th
2022-10-06 07:47:53 +00:00
field="longName">
2022-10-05 13:13:48 +00:00
<span translate>Concept</span>
</th>
<th
2022-10-06 07:47:53 +00:00
field="parking">
2022-10-05 13:13:48 +00:00
<span translate>Parking</span>
</th>
2022-10-06 07:47:53 +00:00
<th field="shelving">
2022-10-05 13:13:48 +00:00
<span translate>Shelving</span>
</th>
<th
2022-10-06 07:47:53 +00:00
field="label">
2022-10-05 13:13:48 +00:00
<span translate>Etiqueta</span>
</th>
<th
2022-10-06 07:47:53 +00:00
field="packing"
2022-10-05 13:13:48 +00:00
shrink>
<span translate>Packing</span>
</th>
</tr>
</thead>
<tbody>
2022-10-11 06:40:22 +00:00
<tr
ng-repeat="itemShelvingPlacementSupplyStock in $ctrl.itemShelvingPlacementSupplyStocks"
vn-repeat-last on-last="$ctrl.calculateTotals()">
2022-10-05 13:13:48 +00:00
<td shrink>
<vn-check
2022-10-06 07:47:53 +00:00
ng-model="itemShelvingPlacementSupplyStock.checked"
2022-10-05 13:13:48 +00:00
vn-click-stop>
</vn-check>
</td>
2022-10-06 07:47:53 +00:00
<td shrink-date>{{::itemShelvingPlacementSupplyStock.created | date: 'dd/MM/yyyy'}}</td>
<td>
{{::itemShelvingPlacementSupplyStock.itemFk}}
</td>
<td expand title="{{::itemShelvingPlacementSupplyStock.longName}}">
2022-10-05 13:13:48 +00:00
<span
2022-10-06 07:47:53 +00:00
vn-click-stop="itemDescriptor.show($event, itemShelvingPlacementSupplyStock.itemFk)"
2022-10-05 13:13:48 +00:00
class="link">
2022-10-06 07:47:53 +00:00
{{itemShelvingPlacementSupplyStock.longName}}
2022-10-05 13:13:48 +00:00
</span>
</td>
<td>
2022-10-06 07:47:53 +00:00
{{::itemShelvingPlacementSupplyStock.parking}}
2022-10-05 13:13:48 +00:00
</td>
<td>
2022-10-06 07:47:53 +00:00
{{::itemShelvingPlacementSupplyStock.shelving}}
2022-10-05 13:13:48 +00:00
</td>
2022-10-06 07:47:53 +00:00
<td>
2022-10-11 06:40:22 +00:00
{{(itemShelvingPlacementSupplyStock.stock / itemShelvingPlacementSupplyStock.packing).toFixed(2)}}
2022-10-05 13:13:48 +00:00
</td>
2022-10-06 07:47:53 +00:00
<td>
{{::itemShelvingPlacementSupplyStock.packing}}
2022-10-05 13:13:48 +00:00
</td>
</tr>
</tbody>
</table>
</slot-table>
</smart-table>
</vn-card>
2022-10-06 07:47:53 +00:00
<vn-item-descriptor-popover
vn-id="item-descriptor">
</vn-item-descriptor-popover>
2022-10-05 13:13:48 +00:00
2022-10-06 07:47:53 +00:00
<vn-confirm
vn-id="removeConfirm"
message="Selected lines will be deleted"
question="Are you sure you want to continue?"
on-accept="$ctrl.onRemove()">
</vn-confirm>