64 lines
2.8 KiB
HTML
64 lines
2.8 KiB
HTML
<vn-crud-model auto-load="false"
|
|
vn-id="model"
|
|
url="/ticket/api/Expeditions/filter"
|
|
link="{ticketFk: $ctrl.$stateParams.id}"
|
|
limit="20"
|
|
data="expeditions">
|
|
</vn-crud-model>
|
|
<vn-vertical>
|
|
<vn-card pad-large>
|
|
<vn-vertical>
|
|
<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="width:30px;color:#FFA410;">
|
|
<vn-icon-button icon="delete"
|
|
ng-click="$ctrl.deleteExpedition(expedition)"
|
|
vn-tooltip="Delete expedition">
|
|
</vn-icon-button>
|
|
</vn-td>
|
|
<vn-td number>
|
|
<span
|
|
ng-class="{'link pointer':expedition.itemFk}"
|
|
ng-click="$ctrl.showDescriptor($event, expedition.itemFk)">
|
|
{{expedition.itemFk | zeroFill:6}}
|
|
</span>
|
|
</vn-td>
|
|
<vn-td>{{::expedition.namePackage}}</vn-td>
|
|
<vn-td>{{::expedition.nameBox}}</vn-td>
|
|
<vn-td number>{{::expedition.counter}}</vn-td>
|
|
<vn-td number>{{::expedition.checked}}</vn-td>
|
|
<vn-td>{{::expedition.firstName}} {{::expedition.nameWorker}}</vn-td>
|
|
<vn-td>{{::expedition.created | date:'dd/MM/yyyy HH:mm'}}</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>
|
|
<vn-pagination model="model"></vn-pagination>
|
|
</vn-card>
|
|
|
|
</vn-vertical>
|
|
<vn-item-descriptor-popover vn-id="descriptor"
|
|
quicklinks="$ctrl.quicklinks">
|
|
</vn-item-descriptor-popover>
|
|
<vn-confirm
|
|
vn-id="delete-expedition"
|
|
on-response="$ctrl.returnDialog(response)"
|
|
question="Delete expedition"
|
|
message="Are you sure you want to delete this expedition?">
|
|
</vn-confirm> |