Skip to content
Snippets Groups Projects
Commit bb7db820 authored by Oleksandr Husak's avatar Oleksandr Husak
Browse files

collors for soll columns

parent 998377e6
No related branches found
No related tags found
No related merge requests found
...@@ -13,14 +13,4 @@ ...@@ -13,14 +13,4 @@
<chart-timeline> ... </chart-timeline> <chart-timeline> ... </chart-timeline>
</mat-tab> </mat-tab>
</mat-tab-group> </mat-tab-group>
\ No newline at end of file
...@@ -24,7 +24,11 @@ ...@@ -24,7 +24,11 @@
</th> </th>
<td mat-cell *matCellDef="let item"> <td mat-cell *matCellDef="let item">
<mat-chip-list *ngIf="item.inventoryItemSoll"> <mat-chip-list *ngIf="item.inventoryItemSoll">
<mat-chip selected> <mat-chip selected *ngIf="!item.hasOwnProperty('inventoryIsCorrect')">
{{item.inventoryItemSoll}}
</mat-chip>
<mat-chip selected *ngIf="item.hasOwnProperty('inventoryIsCorrect')"
[color]="item.inventoryIsCorrect === false ? 'warn' : 'accent'">
{{item.inventoryItemSoll}} {{item.inventoryItemSoll}}
</mat-chip> </mat-chip>
</mat-chip-list> </mat-chip-list>
...@@ -36,23 +40,9 @@ ...@@ -36,23 +40,9 @@
<th mat-header-cell *matHeaderCellDef> Inventory Ist </th> <th mat-header-cell *matHeaderCellDef> Inventory Ist </th>
<td mat-cell *matCellDef="let item"> <td mat-cell *matCellDef="let item">
<mat-chip-list *ngIf="item.inventoryItemIst"> <mat-chip-list *ngIf="item.inventoryItemIst">
<mat-basic-chip selected [style]="item.inventoryIsCorrect === false ? 'background-color:red; color:white' : 'background-color:green; color:white'"> <mat-chip selected [color]="item.inventoryIsCorrect === false ? 'warn' : 'accent'">
{{item.inventoryItemIst}} {{item.inventoryItemIst}}
</mat-basic-chip> </mat-chip>
</mat-chip-list>
</td>
</ng-container>
<!-- Shipment Ist-->
<ng-container matColumnDef="shipment_ist">
<th mat-header-cell *matHeaderCellDef>
Shipment Ist
</th>
<td mat-cell *matCellDef="let item">
<mat-chip-list *ngIf="item.shipmentBinNrIst">
<mat-basic-chip selected [style]="item.shipmentIsCorrect === false ? 'background-color:red; color:white' : 'background-color:green; color:white'">
{{item.shipmentBinNrIst}}
</mat-basic-chip>
</mat-chip-list> </mat-chip-list>
</td> </td>
</ng-container> </ng-container>
...@@ -64,9 +54,27 @@ ...@@ -64,9 +54,27 @@
</th> </th>
<td mat-cell *matCellDef="let item"> <td mat-cell *matCellDef="let item">
<mat-chip-list *ngIf="item.shipmentBinNrSoll"> <mat-chip-list *ngIf="item.shipmentBinNrSoll">
<mat-chip selected> <mat-chip selected *ngIf="!item.hasOwnProperty('shipmentIsCorrect')">
{{item.shipmentBinNrSoll}} {{item.shipmentBinNrSoll}}
</mat-chip> </mat-chip>
<mat-chip selected *ngIf="item.hasOwnProperty('shipmentIsCorrect')"
[color]="item.shipmentIsCorrect === false ? 'warn' : 'accent'">
{{item.shipmentBinNrSoll}}
</mat-chip>
</mat-chip-list>
</td>
</ng-container>
<!-- Shipment Ist-->
<ng-container matColumnDef="shipment_ist">
<th mat-header-cell *matHeaderCellDef>
Shipment Ist
</th>
<td mat-cell *matCellDef="let item">
<mat-chip-list *ngIf="item.shipmentBinNrIst">
<mat-chip selected [color]="item.shipmentIsCorrect === false ? 'warn' : 'accent'">
{{item.shipmentBinNrIst}}
</mat-chip>
</mat-chip-list> </mat-chip-list>
</td> </td>
</ng-container> </ng-container>
......
...@@ -53,7 +53,7 @@ export class PickListComponent implements OnInit { ...@@ -53,7 +53,7 @@ export class PickListComponent implements OnInit {
private subsPosition: Subscription; private subsPosition: Subscription;
displayedColumns: string[] = ['index', 'product', 'inventory_soll', 'inventory_ist', 'shipment_soll', 'shipment_ist', 'picker', 'list']; displayedColumns: string[] = ['index', 'product', 'inventory_soll', 'inventory_ist', 'shipment_soll', 'shipment_ist'];
tableData: any; tableData: any;
pickListData: any; pickListData: any;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment