mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
Compare commits
9 Commits
release-20
...
1.5.436
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d027df8856 | ||
|
|
1dc979baaf | ||
|
|
f9908eaa57 | ||
|
|
19fe83ed25 | ||
|
|
3c033a1f0d | ||
|
|
be031fb702 | ||
|
|
34a6c6d997 | ||
|
|
fa2c0d101f | ||
|
|
c3f6cef14e |
@@ -20,6 +20,7 @@ export class PrintCompartmentLabelActionHandler extends ActionHandler<OrderItems
|
||||
await this.uiModal
|
||||
.open({
|
||||
content: PrintModalComponent,
|
||||
config: { showScrollbarY: false },
|
||||
data: {
|
||||
printImmediately: !this.nativeContainerService.isUiWebview().isNative,
|
||||
printerType: 'Label',
|
||||
|
||||
@@ -21,6 +21,7 @@ export class PrintShippingNoteActionHandler extends ActionHandler<OrderItemsCont
|
||||
await this.uiModal
|
||||
.open({
|
||||
content: PrintModalComponent,
|
||||
config: { showScrollbarY: false },
|
||||
data: {
|
||||
printImmediately: !this.nativeContainerService.isUiWebview().isNative,
|
||||
printerType: 'Label',
|
||||
|
||||
@@ -18,6 +18,10 @@
|
||||
font-weight: 400 !important;
|
||||
}
|
||||
|
||||
::ng-deep modal-print-cart ui-select .ui-select-options {
|
||||
max-height: 9rem !important;
|
||||
}
|
||||
|
||||
ui-select {
|
||||
min-width: 255px;
|
||||
}
|
||||
|
||||
@@ -146,6 +146,7 @@ export class ArticleDetailsComponent implements OnInit, OnDestroy {
|
||||
} as PrintModalData,
|
||||
config: {
|
||||
panelClass: [],
|
||||
showScrollbarY: false,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
@@ -233,8 +233,8 @@ export class ArticleDetailsStore extends ComponentStore<ArticleDetailsState> {
|
||||
const availability = isDownload ? downloadAvailability : pickupAvailability || deliveryDigAvailability;
|
||||
return item?.catalogAvailability?.supplier === 'S' && !isDownload
|
||||
? `${item?.catalogAvailability?.ssc} - ${item?.catalogAvailability?.sscText}`
|
||||
: availability.ssc || availability.sscText
|
||||
? `${availability.ssc} - ${availability.sscText}`
|
||||
: availability?.ssc || availability?.sscText
|
||||
? `${availability?.ssc} - ${availability?.sscText}`
|
||||
: 'Keine Lieferanten vorhanden';
|
||||
})
|
||||
);
|
||||
|
||||
@@ -369,6 +369,7 @@ export class CheckoutReviewComponent implements OnInit {
|
||||
} as PrintModalData,
|
||||
config: {
|
||||
panelClass: [],
|
||||
showScrollbarY: false,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
@@ -123,6 +123,7 @@ export class CheckoutSummaryComponent {
|
||||
} as PrintModalData,
|
||||
config: {
|
||||
panelClass: [],
|
||||
showScrollbarY: false,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
@@ -198,6 +198,7 @@ export class CustomerDetailsComponent implements OnInit {
|
||||
this.modal.open({
|
||||
content: HistoryComponent,
|
||||
title: 'Historie',
|
||||
config: { showScrollbarY: false },
|
||||
data: {
|
||||
mode: 'customer',
|
||||
item: customer,
|
||||
|
||||
@@ -54,6 +54,7 @@ export class CustomerOrderItemCardComponent implements OnInit {
|
||||
this._modal.open({
|
||||
content: HistoryComponent,
|
||||
title: 'Historie',
|
||||
config: { showScrollbarY: false },
|
||||
data: {
|
||||
mode: 'order',
|
||||
item: {
|
||||
|
||||
@@ -46,7 +46,7 @@ export class CustomerSearchMainComponent implements OnInit, OnDestroy {
|
||||
// Updaten der QueryParams wenn diese sich ändern
|
||||
if (!isEqual(this.search.getQueryParams(), queryParams)) {
|
||||
const params = { ...queryParams };
|
||||
delete params.scrollPos;
|
||||
delete params?.scrollPos;
|
||||
this.search.setQueryParams({ params });
|
||||
}
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ export class CustomerSearchResultComponent implements OnInit, OnDestroy {
|
||||
// scrollPos muss entfernt werden um die items anhand der QueryParams zu cachen
|
||||
if (!isEqual(this.search.getQueryParams(), queryParams)) {
|
||||
const params = { ...queryParams };
|
||||
delete params.scrollPos;
|
||||
delete params?.scrollPos;
|
||||
const items = this.cache?.get<PagedResult<CustomerSearchType>>(params)?.result;
|
||||
const hits = this.cache?.get<PagedResult<CustomerSearchType>>(params)?.hits;
|
||||
this.search.setQueryParams({ params });
|
||||
@@ -67,7 +67,7 @@ export class CustomerSearchResultComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
// Nach dem setzen der Items im store an die letzte Position scrollen
|
||||
setTimeout(() => this.scrollContainer.nativeElement.scrollTo(0, Number(queryParams.scrollPos ?? 0)), 0);
|
||||
setTimeout(() => this.scrollContainer.nativeElement.scrollTo(0, Number(queryParams?.scrollPos ?? 0)), 0);
|
||||
|
||||
// Fügt Breadcrumb hinzu falls dieser noch nicht vorhanden ist
|
||||
await this.breadcrumb.addBreadcrumbIfNotExists({
|
||||
|
||||
@@ -105,7 +105,7 @@ export class GoodsInCleanupListComponent implements OnInit, OnDestroy {
|
||||
for (const crumb of crumbs) {
|
||||
this._breadcrumb.patchBreadcrumb(crumb.id, {
|
||||
name: crumb.name,
|
||||
params: { scroll_position: this.scrollContainer.scrollPos },
|
||||
params: { scroll_position: this.scrollContainer?.scrollPos ?? 0 },
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,22 +73,16 @@ export class GoodsInListStore extends ComponentStore<GoodsInListState> {
|
||||
}).pipe(
|
||||
tapResponse(
|
||||
(res) => {
|
||||
if (options.clear) {
|
||||
this.patchState({
|
||||
hits: res.hits,
|
||||
results: res.result,
|
||||
take: 25,
|
||||
loading: false,
|
||||
});
|
||||
} else {
|
||||
const items = this.get((s) => s.results);
|
||||
this.patchState({
|
||||
hits: res.hits,
|
||||
results: [...items, ...res.result],
|
||||
take: 25,
|
||||
loading: false,
|
||||
});
|
||||
}
|
||||
const result = res.result ?? [];
|
||||
|
||||
const items = options.clear ? result : [..._results, ...result];
|
||||
this.patchState({
|
||||
hits: res.hits,
|
||||
results: items,
|
||||
take: 25,
|
||||
loading: false,
|
||||
});
|
||||
|
||||
this._searchResultSubject.next(res);
|
||||
if (res.hits > 1) {
|
||||
const path = '/goods/in/list/';
|
||||
@@ -98,6 +92,7 @@ export class GoodsInListStore extends ComponentStore<GoodsInListState> {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
options?.cb?.call(undefined);
|
||||
},
|
||||
(err: Error) => {
|
||||
|
||||
@@ -105,7 +105,7 @@ export class GoodsInReservationComponent implements OnInit, OnDestroy {
|
||||
for (const crumb of crumbs) {
|
||||
this._breadcrumb.patchBreadcrumb(crumb.id, {
|
||||
name: crumb.name,
|
||||
params: { scroll_position: this.scrollContainer.scrollPos, take: this._store.results?.length },
|
||||
params: { scroll_position: this.scrollContainer?.scrollPos ?? 0, take: this._store.results?.length },
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -127,7 +127,7 @@ export class GoodsOutSearchResultsComponent extends ComponentStore<GoodsOutSearc
|
||||
}
|
||||
|
||||
async updateBreadcrumb(queryParams: Record<string, string> = this._goodsOutSearchStore.filter?.getQueryParams()) {
|
||||
const scroll_position = this.scrollContainer.scrollPos;
|
||||
const scroll_position = this.scrollContainer?.scrollPos;
|
||||
const take = this._goodsOutSearchStore.results?.length;
|
||||
|
||||
if (queryParams) {
|
||||
|
||||
@@ -218,6 +218,7 @@ export class TaskListComponent {
|
||||
} as PrintModalData,
|
||||
config: {
|
||||
panelClass: [],
|
||||
showScrollbarY: false,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
@@ -42,6 +42,7 @@ export class ArticleListModalComponent {
|
||||
} as PrintModalData,
|
||||
config: {
|
||||
panelClass: [],
|
||||
showScrollbarY: false,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
@@ -58,6 +58,7 @@ export class PdfViewerModalComponent {
|
||||
data,
|
||||
config: {
|
||||
panelClass: [],
|
||||
showScrollbarY: false,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
@@ -200,6 +200,7 @@ export class SharedGoodsInOutOrderDetailsItemComponent extends ComponentStore<Sh
|
||||
this._modal.open({
|
||||
content: HistoryComponent,
|
||||
title: 'Historie',
|
||||
config: { showScrollbarY: false },
|
||||
data: {
|
||||
mode: 'goods',
|
||||
item: this.orderItem,
|
||||
|
||||
Reference in New Issue
Block a user