+
+
+

+
-
-
-
-
{{ item.category }}
-
{{ item.name }}
-
-
-
+
+
+
{{ item.category }}
+
{{ item.name }}
+
+
+
- {{ item.rating }}
-
-
+ >
+
{{ item.rating }}
+
-
+
-
-
-
-
-
-
-
-
PickList
-
-
- {{ item.name }}
-
-
-
+
+
+
-
-
-
OrderList
-
-
- {{ option.name }}
-
-
-
+
+
+
+
PickList
+
+
+ {{ item.name }}
+
+
-
`,
+
+
+
+
OrderList
+
+
+ {{ option.name }}
+
+
+
+
+
+
`,
styles: `
::ng-deep {
- .p-orderlist-list-container{
+ .p-orderlist-list-container {
width: 100%;
}
}
- `,
+ `,
providers: [ProductService]
})
export class ListDoc {
-
layout: 'list' | 'grid' = 'list';
options = ['list', 'grid'];
@@ -181,10 +161,10 @@ export class ListDoc {
orderCities: any[] = [];
- constructor(private productService: ProductService) { }
+ constructor(private productService: ProductService) {}
ngOnInit() {
- this.productService.getProducts().then(data => this.products = data);
+ this.productService.getProducts().then((data) => (this.products = data));
this.sourceCities = [
{ name: 'San Francisco', code: 'SF' },
@@ -193,7 +173,8 @@ export class ListDoc {
{ name: 'Istanbul', code: 'IST' },
{ name: 'Berlin', code: 'BRL' },
{ name: 'Barcelona', code: 'BRC' },
- { name: 'Rome', code: 'RM' }];
+ { name: 'Rome', code: 'RM' }
+ ];
this.targetCities = [];
@@ -204,11 +185,10 @@ export class ListDoc {
{ name: 'Istanbul', code: 'IST' },
{ name: 'Berlin', code: 'BRL' },
{ name: 'Barcelona', code: 'BRC' },
- { name: 'Rome', code: 'RM' }];
-
+ { name: 'Rome', code: 'RM' }
+ ];
}
-
getSeverity(product) {
switch (product.inventoryStatus) {
case 'INSTOCK':