2019-02-10 21:52:35 +00:00
|
|
|
<vn-crud-model
|
|
|
|
auto-load="false"
|
2018-07-17 06:44:31 +00:00
|
|
|
vn-id="model"
|
2018-09-04 09:57:41 +00:00
|
|
|
url="/ticket/api/Expeditions/filter"
|
2018-07-17 06:44:31 +00:00
|
|
|
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>
|
2018-05-07 06:33:45 +00:00
|
|
|
<vn-vertical>
|
2018-07-17 06:44:31 +00:00
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th></vn-th>
|
2019-02-21 09:06:38 +00:00
|
|
|
<vn-th field="itemFk" number>Expedition</vn-th>
|
|
|
|
<vn-th field="itemFk" number>Envialia</vn-th>
|
2018-07-17 06:44:31 +00:00
|
|
|
<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">
|
2018-09-06 06:04:43 +00:00
|
|
|
<vn-td pad-medium-h style="width:30px;color:#FFA410;">
|
2018-10-11 07:41:30 +00:00
|
|
|
<vn-icon-button icon="delete"
|
2018-10-29 08:39:37 +00:00
|
|
|
ng-click="$ctrl.deleteExpedition(expedition)"
|
2018-10-11 07:41:30 +00:00
|
|
|
vn-tooltip="Delete expedition">
|
|
|
|
</vn-icon-button>
|
2018-07-17 06:44:31 +00:00
|
|
|
</vn-td>
|
2019-02-21 09:06:38 +00:00
|
|
|
<vn-td number>{{expedition.id | zeroFill:6}}</vn-td>
|
|
|
|
<vn-td number>{{expedition.externalId | zeroFill:6}}</vn-td>
|
2018-09-06 06:04:43 +00:00
|
|
|
<vn-td number>
|
2018-09-06 09:15:53 +00:00
|
|
|
<span
|
2019-02-10 21:52:35 +00:00
|
|
|
ng-class="{link: expedition.itemFk}"
|
2019-02-15 11:39:21 +00:00
|
|
|
ng-click="$ctrl.showItemDescriptor($event, expedition.itemFk)">
|
2019-01-14 12:40:39 +00:00
|
|
|
{{expedition.itemFk | zeroFill:6}}
|
2018-09-06 06:04:43 +00:00
|
|
|
</span>
|
2018-07-17 06:44:31 +00:00
|
|
|
</vn-td>
|
2018-09-04 09:57:41 +00:00
|
|
|
<vn-td>{{::expedition.namePackage}}</vn-td>
|
|
|
|
<vn-td>{{::expedition.nameBox}}</vn-td>
|
2018-07-17 06:44:31 +00:00
|
|
|
<vn-td number>{{::expedition.counter}}</vn-td>
|
|
|
|
<vn-td number>{{::expedition.checked}}</vn-td>
|
2019-02-15 11:39:21 +00:00
|
|
|
<vn-td expand>
|
|
|
|
<span
|
|
|
|
class="link"
|
|
|
|
ng-click="$ctrl.showWorkerDescriptor($event, expedition.userId)">
|
|
|
|
{{::expedition.userNickname | dashIfEmpty}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
2018-09-04 09:57:41 +00:00
|
|
|
<vn-td>{{::expedition.created | date:'dd/MM/yyyy HH:mm'}}</vn-td>
|
2018-07-17 06:44:31 +00:00
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
2018-05-07 06:33:45 +00:00
|
|
|
</vn-vertical>
|
2019-01-20 17:48:03 +00:00
|
|
|
<vn-pagination model="model"></vn-pagination>
|
2018-03-21 14:51:09 +00:00
|
|
|
</vn-card>
|
2018-09-04 10:01:44 +00:00
|
|
|
|
2018-09-04 09:49:00 +00:00
|
|
|
</vn-vertical>
|
2019-02-15 11:39:21 +00:00
|
|
|
<vn-item-descriptor-popover
|
|
|
|
vn-id="itemDescriptor"
|
2018-09-04 09:49:00 +00:00
|
|
|
quicklinks="$ctrl.quicklinks">
|
2018-09-04 10:01:44 +00:00
|
|
|
</vn-item-descriptor-popover>
|
2019-02-15 11:39:21 +00:00
|
|
|
<vn-worker-descriptor-popover
|
|
|
|
vn-id="workerDescriptor"
|
2019-02-19 14:09:50 +00:00
|
|
|
user-id="$ctrl.selectedWorker">
|
2019-02-15 11:39:21 +00:00
|
|
|
</vn-worker-descriptor-popover>
|
2018-09-04 09:57:41 +00:00
|
|
|
<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>
|