warehouse frontend

This commit is contained in:
hungdztrau123
2024-05-23 16:03:38 +07:00
parent 9d4d0b39a6
commit fa7283cff1
50 changed files with 1286 additions and 37 deletions

View File

@@ -192,6 +192,15 @@
(sort)="onSort($event)"
i18n>Storage path</th>
}
@if (permissionService.currentUserCan(PermissionAction.View, PermissionType.Warehouse)) {
<th class="d-none d-xl-table-cell"
pngxSortable="warehouse__name"
title="Sort by warehouse" i18n-title
[currentSortField]="list.sortField"
[currentSortReverse]="list.sortReverse"
(sort)="onSort($event)"
i18n>Warehouse</th>
}
<th
pngxSortable="created"
title="Sort by created date" i18n-title
@@ -260,6 +269,13 @@
}
</td>
}
@if (permissionService.currentUserCan(PermissionAction.View, PermissionType.Warehouse)) {
<td class="d-none d-xl-table-cell">
@if (d.warehouses) {
<a (click)="clickWarehouse(d.warehouses);$event.stopPropagation()" title="Filter by warehouse" i18n-title>{{(d.warehouses$ | async)?.name}}</a>
}
</td>
}
<td>
{{d.created_date | customDate}}
</td>