2019-02-10 21:52:35 +00:00
|
|
|
<vn-crud-model
|
2018-07-17 06:44:31 +00:00
|
|
|
vn-id="model"
|
2019-10-24 22:53:53 +00:00
|
|
|
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>Item</vn-th>
|
2021-06-17 05:30:22 +00:00
|
|
|
<vn-th field="packageItemName">Name</vn-th>
|
|
|
|
<vn-th field="freightItemName">Package type</vn-th>
|
2019-10-11 15:38:04 +00:00
|
|
|
<vn-th field="counter" number>Counter</vn-th>
|
2021-04-26 10:33:33 +00:00
|
|
|
<vn-th field="externalId" number>externalId</vn-th>
|
2020-11-10 15:47:39 +00:00
|
|
|
<vn-th field="created" expand>Created</vn-th>
|
2022-05-04 08:35:31 +00:00
|
|
|
<vn-th field="description" expand>State</vn-th>
|
|
|
|
<vn-th></vn-th>
|
2019-10-11 15:38:04 +00:00
|
|
|
</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"
|
2020-04-28 12:26:02 +00:00
|
|
|
ng-click="deleteExpedition.show(expedition.id)"
|
2019-10-11 15:38:04 +00:00
|
|
|
vn-tooltip="Delete expedition">
|
|
|
|
</vn-icon-button>
|
|
|
|
</vn-td>
|
2022-05-04 08:35:31 +00:00
|
|
|
<vn-td number expand>{{expedition.id | zeroFill:6}}</vn-td>
|
2019-10-11 15:38:04 +00:00
|
|
|
<vn-td number>
|
|
|
|
<span
|
2020-08-28 15:06:27 +00:00
|
|
|
ng-class="{link: expedition.packagingItemFk}"
|
|
|
|
ng-click="itemDescriptor.show($event, expedition.packagingItemFk)">
|
|
|
|
{{expedition.packagingFk}}
|
2019-10-11 15:38:04 +00:00
|
|
|
</span>
|
|
|
|
</vn-td>
|
2020-08-28 15:06:27 +00:00
|
|
|
<vn-td>{{::expedition.packageItemName}}</vn-td>
|
|
|
|
<vn-td>{{::expedition.freightItemName}}</vn-td>
|
2019-10-11 15:38:04 +00:00
|
|
|
<vn-td number>{{::expedition.counter}}</vn-td>
|
2021-06-17 05:30:22 +00:00
|
|
|
<vn-td expand>{{::expedition.externalId}}</vn-td>
|
|
|
|
<vn-td shrink-datetime>{{::expedition.created | date:'dd/MM/yyyy HH:mm'}}</vn-td>
|
2022-05-04 08:35:31 +00:00
|
|
|
<vn-td>{{::expedition.description}}</vn-td>
|
2021-06-17 05:30:22 +00:00
|
|
|
<vn-td>
|
2022-05-04 08:35:31 +00:00
|
|
|
<vn-icon-button
|
|
|
|
vn-click-stop="$ctrl.showLog(expedition)"
|
|
|
|
vn-tooltip="Status log"
|
|
|
|
icon="history">
|
|
|
|
</vn-icon-button>
|
2021-06-09 12:25:50 +00:00
|
|
|
</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>
|
2019-02-15 11:39:21 +00:00
|
|
|
<vn-item-descriptor-popover
|
2021-05-21 13:31:28 +00:00
|
|
|
vn-id="item-descriptor"
|
|
|
|
warehouse-fk="$ctrl.ticket.warehouseFk",
|
2020-04-30 10:48:52 +00:00
|
|
|
ticket-fk="$ctrl.ticket.id">
|
2018-09-04 10:01:44 +00:00
|
|
|
</vn-item-descriptor-popover>
|
2019-02-15 11:39:21 +00:00
|
|
|
<vn-worker-descriptor-popover
|
2021-05-21 13:31:28 +00:00
|
|
|
vn-id="worker-descriptor">
|
2019-02-15 11:39:21 +00:00
|
|
|
</vn-worker-descriptor-popover>
|
2018-09-04 09:57:41 +00:00
|
|
|
<vn-confirm
|
2021-05-21 13:31:28 +00:00
|
|
|
vn-id="delete-expedition"
|
2020-04-28 12:26:02 +00:00
|
|
|
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?">
|
2022-05-04 08:35:31 +00:00
|
|
|
</vn-confirm>
|
2022-05-04 09:27:03 +00:00
|
|
|
|
2022-05-04 08:35:31 +00:00
|
|
|
<vn-popup vn-id="statusLog">
|
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
|
|
|
url="ExpeditionStates/filter"
|
|
|
|
link="{expeditionFk: $ctrl.expedition.id}"
|
|
|
|
data="expeditionStates"
|
|
|
|
order="created DESC"
|
|
|
|
auto-load="true">
|
|
|
|
</vn-crud-model>
|
|
|
|
<vn-data-viewer model="model">
|
|
|
|
<vn-card class="vn-w-md">
|
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th field="state">State</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="expeditionState in expeditionStates">
|
|
|
|
<vn-td>{{::expeditionState.description}}</vn-td>
|
|
|
|
<vn-td expand>
|
|
|
|
<span
|
|
|
|
ng-class="{'link': expeditionState.workerFk}"
|
|
|
|
ng-click="workerDescriptor.show($event, expeditionState.workerFk)">
|
|
|
|
{{::expeditionState.name || 'System' | translate}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td shrink-datetime>{{::expeditionState.created | date:'dd/MM/yyyy HH:mm'}}</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
|
|
|
</vn-card>
|
|
|
|
</vn-data-viewer>
|
|
|
|
<vn-worker-descriptor-popover
|
|
|
|
vn-id="workerDescriptor">
|
|
|
|
</vn-worker-descriptor-popover>
|
|
|
|
</vn-popup>
|