salix/client/ticket/src/expedition/index.html

61 lines
2.6 KiB
HTML
Raw Normal View History

2018-07-17 06:44:31 +00:00
<vn-crud-model
vn-id="model"
url="/ticket/api/Expeditions"
filter="::$ctrl.filter"
link="{ticketFk: $ctrl.$stateParams.id}"
limit="20"
data="expeditions">
</vn-crud-model>
2018-03-21 14:51:09 +00:00
<vn-vertical>
<vn-card pad-large>
<vn-vertical>
<vn-title>Expedition</vn-title>
2018-07-17 06:44:31 +00:00
<vn-table model="model">
<vn-thead>
<vn-tr>
<vn-th></vn-th>
<vn-th field="itemFk" number>Item</vn-th>
<vn-th field="name">Name</vn-th>
<vn-th field="isBox">Package type</vn-th>
<vn-th field="counter" number>Counter</vn-th>
<vn-th field="checked" number>Checked</vn-th>
<vn-th field="worker">Worker</vn-th>
<vn-th field="created" default-order="DESC">Created</vn-th>
</vn-tr>
</vn-thead>
<vn-tbody>
<vn-tr ng-repeat="expedition in expeditions">
<vn-td pad-medium-h style="color:#FFA410;">
<i
pointer
class="material-icons"
vn-tooltip="Delete expedition"
ng-click="$ctrl.deleteExpedition(expedition)">delete</i>
</vn-td>
<vn-td pointer number
2018-07-19 09:32:33 +00:00
ng-click="$ctrl.showDescriptor($event, expedition.item.id)"
class="link">
{{("000000"+expedition.itemFk).slice(-6)}}
2018-07-17 06:44:31 +00:00
</vn-td>
<vn-td>{{::expedition.item.name}}</vn-td>
<vn-td>{{::expedition.box.name}}</vn-td>
<vn-td number>{{::expedition.counter}}</vn-td>
<vn-td number>{{::expedition.checked}}</vn-td>
<vn-td>{{::expedition.worker.firstName}} {{::expedition.worker.name}}</vn-td>
<vn-td>{{::expedition.created | date:'dd/MM/yyyy'}}</vn-td>
</vn-tr>
</vn-tbody>
<vn-empty-rows ng-if="model.data.length === 0" translate>
No results
</vn-empty-rows>
</vn-table>
</vn-vertical>
2018-07-17 06:44:31 +00:00
<vn-pagination
model="model"
scroll-selector="ui-view">
</vn-pagination>
2018-03-21 14:51:09 +00:00
</vn-card>
</vn-vertical>
2018-05-29 12:33:29 +00:00
<vn-item-descriptor-popover vn-id="descriptor"></vn-item-descriptor-popover>