@hitsoft/smart-warehouse 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/components/orders/orders.component.mjs +80 -4
- package/fesm2015/hitsoft-smart-warehouse.mjs +80 -3
- package/fesm2015/hitsoft-smart-warehouse.mjs.map +1 -1
- package/fesm2020/hitsoft-smart-warehouse.mjs +79 -3
- package/fesm2020/hitsoft-smart-warehouse.mjs.map +1 -1
- package/lib/components/orders/orders.component.d.ts +25 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { DxDataGridComponent } from 'devextreme-angular';
|
|
3
3
|
import { OrderService } from '../../hit-proxy/orders/order.service';
|
|
4
4
|
import { SapOrderDto } from '../../hit-proxy/orders/model';
|
|
@@ -6,7 +6,7 @@ import { WarehouseService, WarehouseDto } from '../../hit-proxy/warehouse/wareho
|
|
|
6
6
|
import { ConfirmationService, ToasterService } from '@abp/ng.theme.shared';
|
|
7
7
|
import DataSource from 'devextreme/data/data_source';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class OrdersComponent implements OnInit {
|
|
9
|
+
export declare class OrdersComponent implements OnInit, OnDestroy {
|
|
10
10
|
private readonly orderService;
|
|
11
11
|
private readonly warehouseService;
|
|
12
12
|
private readonly toasterService;
|
|
@@ -14,6 +14,9 @@ export declare class OrdersComponent implements OnInit {
|
|
|
14
14
|
dxOrdersInstance: DxDataGridComponent;
|
|
15
15
|
ordersDataSource: DataSource;
|
|
16
16
|
selectedOrders: SapOrderDto[];
|
|
17
|
+
private static readonly AUTO_REFRESH_MS;
|
|
18
|
+
private autoRefreshHandle;
|
|
19
|
+
private readonly onVisibilityChange;
|
|
17
20
|
selectedWarehouse: string;
|
|
18
21
|
selectedDate: string;
|
|
19
22
|
activeListType: string | null;
|
|
@@ -32,6 +35,15 @@ export declare class OrdersComponent implements OnInit {
|
|
|
32
35
|
bosKasaMode: 'empty' | 'half';
|
|
33
36
|
constructor(orderService: OrderService, warehouseService: WarehouseService, toasterService: ToasterService, confirmationService: ConfirmationService);
|
|
34
37
|
ngOnInit(): void;
|
|
38
|
+
ngOnDestroy(): void;
|
|
39
|
+
private startAutoRefresh;
|
|
40
|
+
private stopAutoRefresh;
|
|
41
|
+
/**
|
|
42
|
+
* Kullanıcıyı rahatsız etmeyecek durumdaysak grid'i tazeler. Şu hallerde tur atlanır:
|
|
43
|
+
* sekme arka planda, kullanıcı satır seçmiş (toplu işlem yapmak üzere olabilir),
|
|
44
|
+
* bir istek/işlem sürüyor ya da bir popup açık.
|
|
45
|
+
*/
|
|
46
|
+
private autoRefreshTick;
|
|
35
47
|
private loadWarehouses;
|
|
36
48
|
private setupDataSource;
|
|
37
49
|
private buildCombinedFilter;
|
|
@@ -44,6 +56,17 @@ export declare class OrdersComponent implements OnInit {
|
|
|
44
56
|
onRowClick(e: any): void;
|
|
45
57
|
onRowPrepared(e: any): void;
|
|
46
58
|
onGorevBaslat(): void;
|
|
59
|
+
/**
|
|
60
|
+
* "Görevi Tamamla" yalnızca "İşleniyor" (2) durumundaki siparişlerde anlamlı — backend
|
|
61
|
+
* (ApproveTaskAsync) bu şartı arıyor. Normal akışta artık gerekmiyor: görev bitince stok nakli
|
|
62
|
+
* de fatura da otomatik yazılıyor ve sipariş kendiliğinden "Tamamlandı" oluyor. Buton yalnızca
|
|
63
|
+
* fatura hatası, BeeCell'e gitmemiş/iptal olmuş görev ve Depo Talepleri akışı için kalıyor.
|
|
64
|
+
*/
|
|
65
|
+
get canOnayVer(): boolean;
|
|
66
|
+
get onayVerTooltip(): string;
|
|
67
|
+
/** "Sipariş Kapat" aktif görevi olan (2) siparişte çalışmaz — CloseOrderAsync reddediyor. */
|
|
68
|
+
get canSiparisKapat(): boolean;
|
|
69
|
+
get siparisKapatTooltip(): string;
|
|
47
70
|
onOnayVer(): void;
|
|
48
71
|
onSiparisKapat(): void;
|
|
49
72
|
onBosKasaGetir(): void;
|