salix/modules/ticket/front/expedition/index.html

74 lines
2.9 KiB
HTML
Raw Normal View History

2019-02-10 21:52:35 +00:00
<vn-crud-model
2018-07-17 06:44:31 +00:00
vn-id="model"
url="Expeditions/filter"
2020-03-18 07:35:59 +00:00
link="{ticketFk: $ctrl.$params.id}"
2018-07-17 06:44:31 +00:00
limit="20"
2019-10-11 15:38:04 +00:00
data="expeditions"
order="created DESC"
auto-load="true">
2018-07-17 06:44:31 +00:00
</vn-crud-model>
2019-10-11 15:38:04 +00:00
<vn-data-viewer model="model">
<vn-card class="vn-w-xl">
<vn-table model="model">
<vn-thead>
<vn-tr>
<vn-th></vn-th>
<vn-th field="itemFk" number>Expedition</vn-th>
<vn-th field="itemFk" number>Envialia</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">Created</vn-th>
</vn-tr>
</vn-thead>
<vn-tbody>
<vn-tr ng-repeat="expedition in expeditions">
<vn-td class="vn-px-md" style="width:30px; color:#FFA410;">
<vn-icon-button icon="delete"
ng-click="deleteExpedition.show(expedition.id)"
2019-10-11 15:38:04 +00:00
vn-tooltip="Delete expedition">
</vn-icon-button>
</vn-td>
<vn-td number>{{expedition.id | zeroFill:6}}</vn-td>
<vn-td number>{{expedition.externalId | zeroFill:6}}</vn-td>
<vn-td number>
<span
ng-class="{link: expedition.itemFk}"
ng-click="itemDescriptor.show($event, expedition.itemFk)">
2019-10-11 15:38:04 +00:00
{{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 expand>
<span
class="link"
ng-click="workerDescriptor.show($event, expedition.workerFk)">
2019-10-11 15:38:04 +00:00
{{::expedition.userNickname | dashIfEmpty}}
</span>
</vn-td>
<vn-td>{{::expedition.created | date:'dd/MM/yyyy HH:mm'}}</vn-td>
2019-10-11 15:38:04 +00:00
</vn-tr>
</vn-tbody>
</vn-table>
2018-03-21 14:51:09 +00:00
</vn-card>
2019-10-11 15:38:04 +00:00
</vn-data-viewer>
<vn-item-descriptor-popover
vn-id="itemDescriptor"
warehouse-fk="this.ticket.warehouseFk",
ticket-fk="$ctrl.ticket.id">
2018-09-04 10:01:44 +00:00
</vn-item-descriptor-popover>
<vn-worker-descriptor-popover
2020-04-25 09:50:04 +00:00
vn-id="workerDescriptor">
</vn-worker-descriptor-popover>
2018-09-04 09:57:41 +00:00
<vn-confirm
vn-id="deleteExpedition"
on-accept="$ctrl.onDialogAccept($data)"
2018-09-04 09:57:41 +00:00
question="Delete expedition"
message="Are you sure you want to delete this expedition?">
</vn-confirm>