@axelor/aos-mobile-manufacturing 0.0.1
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/README.md +45 -0
- package/lib/api/index.d.ts +7 -0
- package/lib/api/index.js +25 -0
- package/lib/api/index.js.map +1 -0
- package/lib/api/machine-api.d.ts +3 -0
- package/lib/api/machine-api.js +47 -0
- package/lib/api/machine-api.js.map +1 -0
- package/lib/api/manufacturing-order-api.d.ts +22 -0
- package/lib/api/manufacturing-order-api.js +225 -0
- package/lib/api/manufacturing-order-api.js.map +1 -0
- package/lib/api/operation-order-api.d.ts +14 -0
- package/lib/api/operation-order-api.js +153 -0
- package/lib/api/operation-order-api.js.map +1 -0
- package/lib/api/prod-product-api.d.ts +21 -0
- package/lib/api/prod-product-api.js +59 -0
- package/lib/api/prod-product-api.js.map +1 -0
- package/lib/api/production-file-api.d.ts +4 -0
- package/lib/api/production-file-api.js +51 -0
- package/lib/api/production-file-api.js.map +1 -0
- package/lib/api/waste-product-api.d.ts +27 -0
- package/lib/api/waste-product-api.js +123 -0
- package/lib/api/waste-product-api.js.map +1 -0
- package/lib/api/work-center-api.d.ts +3 -0
- package/lib/api/work-center-api.js +47 -0
- package/lib/api/work-center-api.js.map +1 -0
- package/lib/components/index.d.ts +2 -0
- package/lib/components/index.js +20 -0
- package/lib/components/index.js.map +1 -0
- package/lib/components/molecules/OperationOrderDatesCard/OperationOrderDatesCard.d.ts +7 -0
- package/lib/components/molecules/OperationOrderDatesCard/OperationOrderDatesCard.js +32 -0
- package/lib/components/molecules/OperationOrderDatesCard/OperationOrderDatesCard.js.map +1 -0
- package/lib/components/molecules/index.d.ts +1 -0
- package/lib/components/molecules/index.js +19 -0
- package/lib/components/molecules/index.js.map +1 -0
- package/lib/components/organisms/ConsumedProductCard/ConsumedProductCard.d.ts +17 -0
- package/lib/components/organisms/ConsumedProductCard/ConsumedProductCard.js +92 -0
- package/lib/components/organisms/ConsumedProductCard/ConsumedProductCard.js.map +1 -0
- package/lib/components/organisms/ConsumedProductGlobalCard/ConsumedProductGlobalCard.d.ts +17 -0
- package/lib/components/organisms/ConsumedProductGlobalCard/ConsumedProductGlobalCard.js +81 -0
- package/lib/components/organisms/ConsumedProductGlobalCard/ConsumedProductGlobalCard.js.map +1 -0
- package/lib/components/organisms/ManufacturingOrderCard/ManufacturingOrderCard.d.ts +16 -0
- package/lib/components/organisms/ManufacturingOrderCard/ManufacturingOrderCard.js +83 -0
- package/lib/components/organisms/ManufacturingOrderCard/ManufacturingOrderCard.js.map +1 -0
- package/lib/components/organisms/ManufacturingOrderHeader/ManufacturingOrderHeader.d.ts +8 -0
- package/lib/components/organisms/ManufacturingOrderHeader/ManufacturingOrderHeader.js +68 -0
- package/lib/components/organisms/ManufacturingOrderHeader/ManufacturingOrderHeader.js.map +1 -0
- package/lib/components/organisms/OperationOrderCard/OperationOrderCard.d.ts +11 -0
- package/lib/components/organisms/OperationOrderCard/OperationOrderCard.js +76 -0
- package/lib/components/organisms/OperationOrderCard/OperationOrderCard.js.map +1 -0
- package/lib/components/organisms/OperationOrderDetailsCard/OperationOrderDetailsCard.d.ts +17 -0
- package/lib/components/organisms/OperationOrderDetailsCard/OperationOrderDetailsCard.js +86 -0
- package/lib/components/organisms/OperationOrderDetailsCard/OperationOrderDetailsCard.js.map +1 -0
- package/lib/components/organisms/OperationOrderHeader/OperationOrderHeader.d.ts +8 -0
- package/lib/components/organisms/OperationOrderHeader/OperationOrderHeader.js +72 -0
- package/lib/components/organisms/OperationOrderHeader/OperationOrderHeader.js.map +1 -0
- package/lib/components/organisms/ProducedProductCard/ProducedProductCard.d.ts +11 -0
- package/lib/components/organisms/ProducedProductCard/ProducedProductCard.js +61 -0
- package/lib/components/organisms/ProducedProductCard/ProducedProductCard.js.map +1 -0
- package/lib/components/organisms/ProductionFileLargeCard/ProductionFileLargeCard.d.ts +10 -0
- package/lib/components/organisms/ProductionFileLargeCard/ProductionFileLargeCard.js +62 -0
- package/lib/components/organisms/ProductionFileLargeCard/ProductionFileLargeCard.js.map +1 -0
- package/lib/components/organisms/ProductionFileSmallCard/ProductionFileSmallCard.d.ts +10 -0
- package/lib/components/organisms/ProductionFileSmallCard/ProductionFileSmallCard.js +52 -0
- package/lib/components/organisms/ProductionFileSmallCard/ProductionFileSmallCard.js.map +1 -0
- package/lib/components/organisms/WasteProductCard/WasteProductCard.d.ts +9 -0
- package/lib/components/organisms/WasteProductCard/WasteProductCard.js +47 -0
- package/lib/components/organisms/WasteProductCard/WasteProductCard.js.map +1 -0
- package/lib/components/organisms/index.d.ts +11 -0
- package/lib/components/organisms/index.js +29 -0
- package/lib/components/organisms/index.js.map +1 -0
- package/lib/features/asyncFunctions-index.d.ts +7 -0
- package/lib/features/asyncFunctions-index.js +25 -0
- package/lib/features/asyncFunctions-index.js.map +1 -0
- package/lib/features/index.d.ts +7 -0
- package/lib/features/index.js +25 -0
- package/lib/features/index.js.map +1 -0
- package/lib/features/machinesSlice.d.ts +14 -0
- package/lib/features/machinesSlice.js +48 -0
- package/lib/features/machinesSlice.js.map +1 -0
- package/lib/features/manufacturingOrderSlice.d.ts +66 -0
- package/lib/features/manufacturingOrderSlice.js +186 -0
- package/lib/features/manufacturingOrderSlice.js.map +1 -0
- package/lib/features/operationOrderSlice.d.ts +49 -0
- package/lib/features/operationOrderSlice.js +124 -0
- package/lib/features/operationOrderSlice.js.map +1 -0
- package/lib/features/prodProductSlice.d.ts +46 -0
- package/lib/features/prodProductSlice.js +114 -0
- package/lib/features/prodProductSlice.js.map +1 -0
- package/lib/features/productionFileSlice.d.ts +16 -0
- package/lib/features/productionFileSlice.js +71 -0
- package/lib/features/productionFileSlice.js.map +1 -0
- package/lib/features/wasteProductsSlice.d.ts +48 -0
- package/lib/features/wasteProductsSlice.js +117 -0
- package/lib/features/wasteProductsSlice.js.map +1 -0
- package/lib/features/workCentersSlice.d.ts +14 -0
- package/lib/features/workCentersSlice.js +48 -0
- package/lib/features/workCentersSlice.js.map +1 -0
- package/lib/i18n/en.json +45 -0
- package/lib/i18n/fr.json +45 -0
- package/lib/index.d.ts +13 -0
- package/lib/index.js +68 -0
- package/lib/index.js.map +1 -0
- package/lib/screens/manufactoringOrder/ManufacturingOrderDetailsScreen.d.ts +5 -0
- package/lib/screens/manufactoringOrder/ManufacturingOrderDetailsScreen.js +158 -0
- package/lib/screens/manufactoringOrder/ManufacturingOrderDetailsScreen.js.map +1 -0
- package/lib/screens/manufactoringOrder/ManufacturingOrderListProductionOrderScreen.d.ts +5 -0
- package/lib/screens/manufactoringOrder/ManufacturingOrderListProductionOrderScreen.js +72 -0
- package/lib/screens/manufactoringOrder/ManufacturingOrderListProductionOrderScreen.js.map +1 -0
- package/lib/screens/manufactoringOrder/ManufacturingOrderListSaleOrderScreen.d.ts +4 -0
- package/lib/screens/manufactoringOrder/ManufacturingOrderListSaleOrderScreen.js +60 -0
- package/lib/screens/manufactoringOrder/ManufacturingOrderListSaleOrderScreen.js.map +1 -0
- package/lib/screens/manufactoringOrder/ManufacturingOrderListScreen.d.ts +4 -0
- package/lib/screens/manufactoringOrder/ManufacturingOrderListScreen.js +182 -0
- package/lib/screens/manufactoringOrder/ManufacturingOrderListScreen.js.map +1 -0
- package/lib/screens/manufactoringOrder/ManufacturingOrderOperationListScreen.d.ts +5 -0
- package/lib/screens/manufactoringOrder/ManufacturingOrderOperationListScreen.js +150 -0
- package/lib/screens/manufactoringOrder/ManufacturingOrderOperationListScreen.js.map +1 -0
- package/lib/screens/manufactoringOrder/consumedProduct/ChildrenManufOrderListScreen.d.ts +5 -0
- package/lib/screens/manufactoringOrder/consumedProduct/ChildrenManufOrderListScreen.js +184 -0
- package/lib/screens/manufactoringOrder/consumedProduct/ChildrenManufOrderListScreen.js.map +1 -0
- package/lib/screens/manufactoringOrder/consumedProduct/ConsumedProductDetailsScreen.d.ts +5 -0
- package/lib/screens/manufactoringOrder/consumedProduct/ConsumedProductDetailsScreen.js +103 -0
- package/lib/screens/manufactoringOrder/consumedProduct/ConsumedProductDetailsScreen.js.map +1 -0
- package/lib/screens/manufactoringOrder/consumedProduct/ConsumedProductListScreen.d.ts +5 -0
- package/lib/screens/manufactoringOrder/consumedProduct/ConsumedProductListScreen.js +160 -0
- package/lib/screens/manufactoringOrder/consumedProduct/ConsumedProductListScreen.js.map +1 -0
- package/lib/screens/manufactoringOrder/consumedProduct/ConsumedProductSelectProductScreen.d.ts +5 -0
- package/lib/screens/manufactoringOrder/consumedProduct/ConsumedProductSelectProductScreen.js +56 -0
- package/lib/screens/manufactoringOrder/consumedProduct/ConsumedProductSelectProductScreen.js.map +1 -0
- package/lib/screens/manufactoringOrder/consumedProduct/ConsumedProductSelectTrackingScreen.d.ts +5 -0
- package/lib/screens/manufactoringOrder/consumedProduct/ConsumedProductSelectTrackingScreen.js +51 -0
- package/lib/screens/manufactoringOrder/consumedProduct/ConsumedProductSelectTrackingScreen.js.map +1 -0
- package/lib/screens/manufactoringOrder/consumedProduct/index.d.ts +55 -0
- package/lib/screens/manufactoringOrder/consumedProduct/index.js +60 -0
- package/lib/screens/manufactoringOrder/consumedProduct/index.js.map +1 -0
- package/lib/screens/manufactoringOrder/index.d.ts +171 -0
- package/lib/screens/manufactoringOrder/index.js +66 -0
- package/lib/screens/manufactoringOrder/index.js.map +1 -0
- package/lib/screens/manufactoringOrder/producedProduct/ProducedProductDetailsScreen.d.ts +5 -0
- package/lib/screens/manufactoringOrder/producedProduct/ProducedProductDetailsScreen.js +103 -0
- package/lib/screens/manufactoringOrder/producedProduct/ProducedProductDetailsScreen.js.map +1 -0
- package/lib/screens/manufactoringOrder/producedProduct/ProducedProductListScreen.d.ts +5 -0
- package/lib/screens/manufactoringOrder/producedProduct/ProducedProductListScreen.js +141 -0
- package/lib/screens/manufactoringOrder/producedProduct/ProducedProductListScreen.js.map +1 -0
- package/lib/screens/manufactoringOrder/producedProduct/ProducedProductSelectProductScreen.d.ts +5 -0
- package/lib/screens/manufactoringOrder/producedProduct/ProducedProductSelectProductScreen.js +56 -0
- package/lib/screens/manufactoringOrder/producedProduct/ProducedProductSelectProductScreen.js.map +1 -0
- package/lib/screens/manufactoringOrder/producedProduct/ProducedProductSelectTrackingScreen.d.ts +5 -0
- package/lib/screens/manufactoringOrder/producedProduct/ProducedProductSelectTrackingScreen.js +74 -0
- package/lib/screens/manufactoringOrder/producedProduct/ProducedProductSelectTrackingScreen.js.map +1 -0
- package/lib/screens/manufactoringOrder/producedProduct/index.d.ts +44 -0
- package/lib/screens/manufactoringOrder/producedProduct/index.js +52 -0
- package/lib/screens/manufactoringOrder/producedProduct/index.js.map +1 -0
- package/lib/screens/manufactoringOrder/wasteProduct/WasteProductDetailsScreen.d.ts +5 -0
- package/lib/screens/manufactoringOrder/wasteProduct/WasteProductDetailsScreen.js +100 -0
- package/lib/screens/manufactoringOrder/wasteProduct/WasteProductDetailsScreen.js.map +1 -0
- package/lib/screens/manufactoringOrder/wasteProduct/WasteProductListScreen.d.ts +5 -0
- package/lib/screens/manufactoringOrder/wasteProduct/WasteProductListScreen.js +103 -0
- package/lib/screens/manufactoringOrder/wasteProduct/WasteProductListScreen.js.map +1 -0
- package/lib/screens/manufactoringOrder/wasteProduct/WasteProductSelectProductScreen.d.ts +5 -0
- package/lib/screens/manufactoringOrder/wasteProduct/WasteProductSelectProductScreen.js +48 -0
- package/lib/screens/manufactoringOrder/wasteProduct/WasteProductSelectProductScreen.js.map +1 -0
- package/lib/screens/manufactoringOrder/wasteProduct/index.d.ts +33 -0
- package/lib/screens/manufactoringOrder/wasteProduct/index.js +44 -0
- package/lib/screens/manufactoringOrder/wasteProduct/index.js.map +1 -0
- package/lib/screens/operationOrder/OperationOrderDetailsScreen.d.ts +5 -0
- package/lib/screens/operationOrder/OperationOrderDetailsScreen.js +87 -0
- package/lib/screens/operationOrder/OperationOrderDetailsScreen.js.map +1 -0
- package/lib/screens/operationOrder/OperationOrderListScreen.d.ts +4 -0
- package/lib/screens/operationOrder/OperationOrderListScreen.js +178 -0
- package/lib/screens/operationOrder/OperationOrderListScreen.js.map +1 -0
- package/lib/screens/operationOrder/OperationOrderPlanningScreen.d.ts +2 -0
- package/lib/screens/operationOrder/OperationOrderPlanningScreen.js +126 -0
- package/lib/screens/operationOrder/OperationOrderPlanningScreen.js.map +1 -0
- package/lib/screens/operationOrder/ProductionFileScreen.d.ts +5 -0
- package/lib/screens/operationOrder/ProductionFileScreen.js +45 -0
- package/lib/screens/operationOrder/ProductionFileScreen.js.map +1 -0
- package/lib/screens/operationOrder/index.d.ts +44 -0
- package/lib/screens/operationOrder/index.js +52 -0
- package/lib/screens/operationOrder/index.js.map +1 -0
- package/lib/types/index.d.ts +2 -0
- package/lib/types/index.js +20 -0
- package/lib/types/index.js.map +1 -0
- package/lib/types/manufacturing-order.d.ts +29 -0
- package/lib/types/manufacturing-order.js +117 -0
- package/lib/types/manufacturing-order.js.map +1 -0
- package/lib/types/operation-order.d.ts +25 -0
- package/lib/types/operation-order.js +169 -0
- package/lib/types/operation-order.js.map +1 -0
- package/lib/utils/displayers.d.ts +1 -0
- package/lib/utils/displayers.js +19 -0
- package/lib/utils/displayers.js.map +1 -0
- package/lib/utils/formaters.d.ts +4 -0
- package/lib/utils/formaters.js +23 -0
- package/lib/utils/formaters.js.map +1 -0
- package/package.json +51 -0
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
WasteProductListScreen: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ route, navigation }: {
|
|
5
|
+
route: any;
|
|
6
|
+
navigation: any;
|
|
7
|
+
}) => JSX.Element;
|
|
8
|
+
options: {
|
|
9
|
+
shadedHeader: boolean;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
WasteProductDetailsScreen: {
|
|
13
|
+
title: string;
|
|
14
|
+
component: ({ route, navigation }: {
|
|
15
|
+
route: any;
|
|
16
|
+
navigation: any;
|
|
17
|
+
}) => JSX.Element;
|
|
18
|
+
options: {
|
|
19
|
+
shadedHeader: boolean;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
WasteProductSelectProductScreen: {
|
|
23
|
+
title: string;
|
|
24
|
+
component: ({ route, navigation }: {
|
|
25
|
+
route: any;
|
|
26
|
+
navigation: any;
|
|
27
|
+
}) => JSX.Element;
|
|
28
|
+
options: {
|
|
29
|
+
shadedHeader: boolean;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
ProducedProductListScreen: {
|
|
33
|
+
title: string;
|
|
34
|
+
component: ({ route, navigation }: {
|
|
35
|
+
route: any;
|
|
36
|
+
navigation: any;
|
|
37
|
+
}) => JSX.Element;
|
|
38
|
+
options: {
|
|
39
|
+
shadedHeader: boolean;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
ProducedProductDetailsScreen: {
|
|
43
|
+
title: string;
|
|
44
|
+
component: ({ route, navigation }: {
|
|
45
|
+
route: any;
|
|
46
|
+
navigation: any;
|
|
47
|
+
}) => JSX.Element;
|
|
48
|
+
options: {
|
|
49
|
+
shadedHeader: boolean;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
ProducedProductSelectProductScreen: {
|
|
53
|
+
title: string;
|
|
54
|
+
component: ({ route, navigation }: {
|
|
55
|
+
route: any;
|
|
56
|
+
navigation: any;
|
|
57
|
+
}) => JSX.Element;
|
|
58
|
+
options: {
|
|
59
|
+
shadedHeader: boolean;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
ProducedProductSelectTrackingScreen: {
|
|
63
|
+
title: string;
|
|
64
|
+
component: ({ route, navigation }: {
|
|
65
|
+
route: any;
|
|
66
|
+
navigation: any;
|
|
67
|
+
}) => JSX.Element;
|
|
68
|
+
options: {
|
|
69
|
+
shadedHeader: boolean;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
ConsumedProductListScreen: {
|
|
73
|
+
title: string;
|
|
74
|
+
component: ({ route, navigation }: {
|
|
75
|
+
route: any;
|
|
76
|
+
navigation: any;
|
|
77
|
+
}) => JSX.Element;
|
|
78
|
+
options: {
|
|
79
|
+
shadedHeader: boolean;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
ConsumedProductDetailsScreen: {
|
|
83
|
+
title: string;
|
|
84
|
+
component: ({ route, navigation }: {
|
|
85
|
+
route: any;
|
|
86
|
+
navigation: any;
|
|
87
|
+
}) => JSX.Element;
|
|
88
|
+
options: {
|
|
89
|
+
shadedHeader: boolean;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
ConsumedProductSelectProductScreen: {
|
|
93
|
+
title: string;
|
|
94
|
+
component: ({ route, navigation }: {
|
|
95
|
+
route: any;
|
|
96
|
+
navigation: any;
|
|
97
|
+
}) => JSX.Element;
|
|
98
|
+
options: {
|
|
99
|
+
shadedHeader: boolean;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
ConsumedProductSelectTrackingScreen: {
|
|
103
|
+
title: string;
|
|
104
|
+
component: ({ route, navigation }: {
|
|
105
|
+
route: any;
|
|
106
|
+
navigation: any;
|
|
107
|
+
}) => JSX.Element;
|
|
108
|
+
options: {
|
|
109
|
+
shadedHeader: boolean;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
ChildrenManufOrderListScreen: {
|
|
113
|
+
title: string;
|
|
114
|
+
component: ({ route, navigation }: {
|
|
115
|
+
route: any;
|
|
116
|
+
navigation: any;
|
|
117
|
+
}) => JSX.Element;
|
|
118
|
+
options: {
|
|
119
|
+
shadedHeader: boolean;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
ManufacturingOrderListScreen: {
|
|
123
|
+
title: string;
|
|
124
|
+
component: ({ navigation }: {
|
|
125
|
+
navigation: any;
|
|
126
|
+
}) => JSX.Element;
|
|
127
|
+
options: {
|
|
128
|
+
shadedHeader: boolean;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
ManufacturingOrderDetailsScreen: {
|
|
132
|
+
title: string;
|
|
133
|
+
component: ({ route, navigation }: {
|
|
134
|
+
route: any;
|
|
135
|
+
navigation: any;
|
|
136
|
+
}) => JSX.Element;
|
|
137
|
+
options: {
|
|
138
|
+
shadedHeader: boolean;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
ManufacturingOrderListSaleOrderScreen: {
|
|
142
|
+
title: string;
|
|
143
|
+
component: ({ route }: {
|
|
144
|
+
route: any;
|
|
145
|
+
}) => JSX.Element;
|
|
146
|
+
options: {
|
|
147
|
+
shadedHeader: boolean;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
ManufacturingOrderOperationListScreen: {
|
|
151
|
+
title: string;
|
|
152
|
+
component: ({ route, navigation }: {
|
|
153
|
+
route: any;
|
|
154
|
+
navigation: any;
|
|
155
|
+
}) => JSX.Element;
|
|
156
|
+
options: {
|
|
157
|
+
shadedHeader: boolean;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
ManufacturingOrderListProductionOrderScreen: {
|
|
161
|
+
title: string;
|
|
162
|
+
component: ({ route, navigation }: {
|
|
163
|
+
route: any;
|
|
164
|
+
navigation: any;
|
|
165
|
+
}) => JSX.Element;
|
|
166
|
+
options: {
|
|
167
|
+
shadedHeader: boolean;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
export default _default;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2023 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import ManufacturingOrderDetailsScreen from './ManufacturingOrderDetailsScreen';
|
|
19
|
+
import ManufacturingOrderListSaleOrderScreen from './ManufacturingOrderListSaleOrderScreen';
|
|
20
|
+
import ManufacturingOrderListScreen from './ManufacturingOrderListScreen';
|
|
21
|
+
import ManufacturingOrderOperationListScreen from './ManufacturingOrderOperationListScreen';
|
|
22
|
+
import ConsumedProductScreens from './consumedProduct';
|
|
23
|
+
import ProducedProductScreens from './producedProduct';
|
|
24
|
+
import WasteProductScreens from './wasteProduct';
|
|
25
|
+
import ManufacturingOrderListProductionOrderScreen from './ManufacturingOrderListProductionOrderScreen';
|
|
26
|
+
export default {
|
|
27
|
+
ManufacturingOrderListScreen: {
|
|
28
|
+
title: 'Manufacturing_ManufacturingOrder',
|
|
29
|
+
component: ManufacturingOrderListScreen,
|
|
30
|
+
options: {
|
|
31
|
+
shadedHeader: false,
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
ManufacturingOrderDetailsScreen: {
|
|
35
|
+
title: 'Manufacturing_ManufacturingOrder',
|
|
36
|
+
component: ManufacturingOrderDetailsScreen,
|
|
37
|
+
options: {
|
|
38
|
+
shadedHeader: false,
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
ManufacturingOrderListSaleOrderScreen: {
|
|
42
|
+
title: 'Manufacturing_ManufacturingOrder',
|
|
43
|
+
component: ManufacturingOrderListSaleOrderScreen,
|
|
44
|
+
options: {
|
|
45
|
+
shadedHeader: false,
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
ManufacturingOrderOperationListScreen: {
|
|
49
|
+
title: 'Manufacturing_ManufacturingOrder',
|
|
50
|
+
component: ManufacturingOrderOperationListScreen,
|
|
51
|
+
options: {
|
|
52
|
+
shadedHeader: false,
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
ManufacturingOrderListProductionOrderScreen: {
|
|
56
|
+
title: 'Manufacturing_ManufacturingOrder',
|
|
57
|
+
component: ManufacturingOrderListProductionOrderScreen,
|
|
58
|
+
options: {
|
|
59
|
+
shadedHeader: false,
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
...ConsumedProductScreens,
|
|
63
|
+
...ProducedProductScreens,
|
|
64
|
+
...WasteProductScreens,
|
|
65
|
+
};
|
|
66
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/screens/manufactoringOrder/index.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,+BAA+B,MAAM,mCAAmC,CAAC;AAChF,OAAO,qCAAqC,MAAM,yCAAyC,CAAC;AAC5F,OAAO,4BAA4B,MAAM,gCAAgC,CAAC;AAC1E,OAAO,qCAAqC,MAAM,yCAAyC,CAAC;AAC5F,OAAO,sBAAsB,MAAM,mBAAmB,CAAC;AACvD,OAAO,sBAAsB,MAAM,mBAAmB,CAAC;AACvD,OAAO,mBAAmB,MAAM,gBAAgB,CAAC;AACjD,OAAO,2CAA2C,MAAM,+CAA+C,CAAC;AAExG,eAAe;IACb,4BAA4B,EAAE;QAC5B,KAAK,EAAE,kCAAkC;QACzC,SAAS,EAAE,4BAA4B;QACvC,OAAO,EAAE;YACP,YAAY,EAAE,KAAK;SACpB;KACF;IACD,+BAA+B,EAAE;QAC/B,KAAK,EAAE,kCAAkC;QACzC,SAAS,EAAE,+BAA+B;QAC1C,OAAO,EAAE;YACP,YAAY,EAAE,KAAK;SACpB;KACF;IACD,qCAAqC,EAAE;QACrC,KAAK,EAAE,kCAAkC;QACzC,SAAS,EAAE,qCAAqC;QAChD,OAAO,EAAE;YACP,YAAY,EAAE,KAAK;SACpB;KACF;IACD,qCAAqC,EAAE;QACrC,KAAK,EAAE,kCAAkC;QACzC,SAAS,EAAE,qCAAqC;QAChD,OAAO,EAAE;YACP,YAAY,EAAE,KAAK;SACpB;KACF;IACD,2CAA2C,EAAE;QAC3C,KAAK,EAAE,kCAAkC;QACzC,SAAS,EAAE,2CAA2C;QACtD,OAAO,EAAE;YACP,YAAY,EAAE,KAAK;SACpB;KACF;IACD,GAAG,sBAAsB;IACzB,GAAG,sBAAsB;IACzB,GAAG,mBAAmB;CACvB,CAAC"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2023 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import React, { useCallback, useEffect, useState } from 'react';
|
|
19
|
+
import { Screen, Text, Button, ScrollView, HeaderContainer, } from '@axelor/aos-mobile-ui';
|
|
20
|
+
import { useDispatch, useSelector, useTranslator } from '@axelor/aos-mobile-core';
|
|
21
|
+
import { fetchProductWithId, QuantityCard, ProductCardInfo, } from '@axelor/aos-mobile-stock';
|
|
22
|
+
import { ManufacturingOrderHeader } from '../../../components/organisms';
|
|
23
|
+
import { addProdProductToManufOrder, updateProdProductOfManufOrder, } from '../../../features/prodProductSlice';
|
|
24
|
+
import { ManufacturingOrder } from '../../../types';
|
|
25
|
+
const ProducedProductDetailsScreen = ({ route, navigation }) => {
|
|
26
|
+
const I18n = useTranslator();
|
|
27
|
+
const manufOrder = route.params.manufOrder;
|
|
28
|
+
const producedProduct = route.params.producedProduct;
|
|
29
|
+
const { loadingProductFromId, productFromId } = useSelector(state => state.product);
|
|
30
|
+
const product = producedProduct ? productFromId : route.params.product;
|
|
31
|
+
const trackingNumber = route.params.trackingNumber;
|
|
32
|
+
const [producedQty, setProducedQty] = useState(producedProduct ? producedProduct.realQty : 0);
|
|
33
|
+
const dispatch = useDispatch();
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
if (producedProduct != null) {
|
|
36
|
+
dispatch(fetchProductWithId(producedProduct.productId));
|
|
37
|
+
}
|
|
38
|
+
}, [producedProduct, dispatch]);
|
|
39
|
+
const handleShowProduct = () => {
|
|
40
|
+
navigation.navigate('ProductStockDetailsScreen', {
|
|
41
|
+
product: product,
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
const handleNavigateBackToList = useCallback(() => {
|
|
45
|
+
navigation.navigate('ProducedProductListScreen', {
|
|
46
|
+
manufOrder: manufOrder,
|
|
47
|
+
});
|
|
48
|
+
}, [manufOrder, navigation]);
|
|
49
|
+
const handleCreateProducedProduct = useCallback(() => {
|
|
50
|
+
dispatch(addProdProductToManufOrder({
|
|
51
|
+
manufOrderId: manufOrder?.id,
|
|
52
|
+
manufOrderVersion: manufOrder?.version,
|
|
53
|
+
productId: product?.id,
|
|
54
|
+
trackingNumberId: trackingNumber?.id,
|
|
55
|
+
qty: producedQty,
|
|
56
|
+
productType: 'produced',
|
|
57
|
+
}));
|
|
58
|
+
handleNavigateBackToList();
|
|
59
|
+
}, [
|
|
60
|
+
producedQty,
|
|
61
|
+
dispatch,
|
|
62
|
+
handleNavigateBackToList,
|
|
63
|
+
manufOrder,
|
|
64
|
+
product,
|
|
65
|
+
trackingNumber,
|
|
66
|
+
]);
|
|
67
|
+
const handleUpdateProducedProduct = useCallback(() => {
|
|
68
|
+
dispatch(updateProdProductOfManufOrder({
|
|
69
|
+
stockMoveLineVersion: producedProduct?.stockMoveLineVersion,
|
|
70
|
+
stockMoveLineId: producedProduct?.stockMoveLineId,
|
|
71
|
+
prodProductQty: producedQty,
|
|
72
|
+
type: 'produced',
|
|
73
|
+
manufOrderId: manufOrder?.id,
|
|
74
|
+
manufOrderVersion: manufOrder?.version,
|
|
75
|
+
}));
|
|
76
|
+
handleNavigateBackToList();
|
|
77
|
+
}, [
|
|
78
|
+
producedProduct,
|
|
79
|
+
producedQty,
|
|
80
|
+
dispatch,
|
|
81
|
+
handleNavigateBackToList,
|
|
82
|
+
manufOrder,
|
|
83
|
+
]);
|
|
84
|
+
return (<Screen removeSpaceOnTop={true} fixedItems={manufOrder?.statusSelect === ManufacturingOrder.status.InProgress &&
|
|
85
|
+
(producedProduct ? (<Button title={I18n.t('Base_Save')} onPress={handleUpdateProducedProduct}/>) : (<Button title={I18n.t('Base_Save')} onPress={handleCreateProducedProduct}/>))}>
|
|
86
|
+
<HeaderContainer expandableFilter={false} fixedItems={<ManufacturingOrderHeader parentMO={manufOrder.parentMO} reference={manufOrder.manufOrderSeq} status={manufOrder.statusSelect} priority={manufOrder.prioritySelect}/>}/>
|
|
87
|
+
<ScrollView>
|
|
88
|
+
{(product || !loadingProductFromId) && (<ProductCardInfo name={product.name} code={product.code} picture={product.picture} trackingNumber={product.trackingNumberConfiguration == null ||
|
|
89
|
+
trackingNumber == null
|
|
90
|
+
? null
|
|
91
|
+
: trackingNumber.trackingNumberSeq} onPress={handleShowProduct}/>)}
|
|
92
|
+
<QuantityCard labelQty={I18n.t('Manufacturing_ProducedQty')} defaultValue={parseFloat(producedQty).toFixed(2)} onValueChange={setProducedQty} editable={manufOrder?.statusSelect === ManufacturingOrder.status.InProgress}>
|
|
93
|
+
<Text>
|
|
94
|
+
{`${I18n.t('Manufacturing_PlannedQty')}: ${parseFloat(producedProduct ? producedProduct.plannedQty : 0).toFixed(2)} ${producedProduct
|
|
95
|
+
? producedProduct.unit?.unitName
|
|
96
|
+
: product.unit?.name}`}
|
|
97
|
+
</Text>
|
|
98
|
+
</QuantityCard>
|
|
99
|
+
</ScrollView>
|
|
100
|
+
</Screen>);
|
|
101
|
+
};
|
|
102
|
+
export default ProducedProductDetailsScreen;
|
|
103
|
+
//# sourceMappingURL=ProducedProductDetailsScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProducedProductDetailsScreen.js","sourceRoot":"","sources":["../../../../src/screens/manufactoringOrder/producedProduct/ProducedProductDetailsScreen.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC9D,OAAO,EACL,MAAM,EACN,IAAI,EACJ,MAAM,EACN,UAAU,EACV,eAAe,GAChB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAC,WAAW,EAAE,WAAW,EAAE,aAAa,EAAC,MAAM,yBAAyB,CAAC;AAChF,OAAO,EACL,kBAAkB,EAClB,YAAY,EACZ,eAAe,GAChB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAC,wBAAwB,EAAC,MAAM,+BAA+B,CAAC;AACvE,OAAO,EACL,0BAA0B,EAC1B,6BAA6B,GAC9B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAC,kBAAkB,EAAC,MAAM,gBAAgB,CAAC;AAElD,MAAM,4BAA4B,GAAG,CAAC,EAAC,KAAK,EAAE,UAAU,EAAC,EAAE,EAAE;IAC3D,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAC7B,MAAM,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC;IAC3C,MAAM,eAAe,GAAG,KAAK,CAAC,MAAM,CAAC,eAAe,CAAC;IACrD,MAAM,EAAC,oBAAoB,EAAE,aAAa,EAAC,GAAG,WAAW,CACvD,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CACvB,CAAC;IACF,MAAM,OAAO,GAAG,eAAe,CAA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J,CAAC,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2023 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import React, { useCallback, useEffect, useState } from 'react';
|
|
19
|
+
import { StyleSheet, View } from 'react-native';
|
|
20
|
+
import { Chip, ChipSelect, Icon, Screen, ScrollList, HeaderContainer, Text, useThemeColor, } from '@axelor/aos-mobile-ui';
|
|
21
|
+
import { ScannerAutocompleteSearch, useDispatch, useSelector, useTranslator, } from '@axelor/aos-mobile-core';
|
|
22
|
+
import { areObjectsEquals } from '@axelor/aos-mobile-stock';
|
|
23
|
+
import { ManufacturingOrderHeader, ProducedProductCard, } from '../../../components/organisms';
|
|
24
|
+
import { fetchProducedProducts } from '../../../features/prodProductSlice';
|
|
25
|
+
import { ManufacturingOrder } from '../../../types';
|
|
26
|
+
const productScanKey = 'product_manufacturing-order-produced-product-list';
|
|
27
|
+
const IS_INFINITE_SCROLL_ENABLED = false;
|
|
28
|
+
const ProducedProductListScreen = ({ route, navigation }) => {
|
|
29
|
+
const Colors = useThemeColor();
|
|
30
|
+
const I18n = useTranslator();
|
|
31
|
+
const manufOrder = route.params.manufOrder;
|
|
32
|
+
const { loadingProducedProducts, producedProductList } = useSelector(state => state.prodProducts);
|
|
33
|
+
const [plannedStatus, setPlannedStatus] = useState(false);
|
|
34
|
+
const [realizedStatus, setRealizedStatus] = useState(false);
|
|
35
|
+
const [filteredList, setFilteredList] = useState(producedProductList);
|
|
36
|
+
const [product, setProduct] = useState(null);
|
|
37
|
+
const dispatch = useDispatch();
|
|
38
|
+
const fetchProducedProductsAPI = useCallback(() => {
|
|
39
|
+
dispatch(fetchProducedProducts({
|
|
40
|
+
manufOrderId: manufOrder?.id,
|
|
41
|
+
manufOrderVersion: manufOrder?.version,
|
|
42
|
+
}));
|
|
43
|
+
}, [dispatch, manufOrder]);
|
|
44
|
+
const handlePlannedStatus = () => {
|
|
45
|
+
if (!plannedStatus && realizedStatus) {
|
|
46
|
+
setRealizedStatus(false);
|
|
47
|
+
}
|
|
48
|
+
setPlannedStatus(!plannedStatus);
|
|
49
|
+
};
|
|
50
|
+
const handleRealizedStatus = () => {
|
|
51
|
+
if (!realizedStatus && plannedStatus) {
|
|
52
|
+
setPlannedStatus(false);
|
|
53
|
+
}
|
|
54
|
+
setRealizedStatus(!realizedStatus);
|
|
55
|
+
};
|
|
56
|
+
const filterOnStatus = useCallback(list => {
|
|
57
|
+
if (list == null || list === []) {
|
|
58
|
+
return list;
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
if (plannedStatus) {
|
|
62
|
+
return list.filter(item => item?.plannedQty > item?.realQty);
|
|
63
|
+
}
|
|
64
|
+
else if (realizedStatus) {
|
|
65
|
+
return list.filter(item => item?.plannedQty <= item?.realQty);
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
return list;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}, [plannedStatus, realizedStatus]);
|
|
72
|
+
const filterOnProduct = useCallback((list, value) => {
|
|
73
|
+
if (list == null || list?.length === 0) {
|
|
74
|
+
return [];
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
if (value) {
|
|
78
|
+
return list.filter(item => areObjectsEquals(item.productName, value));
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
return list;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}, []);
|
|
85
|
+
useEffect(() => {
|
|
86
|
+
setFilteredList(filterOnStatus(filterOnProduct(producedProductList, product)));
|
|
87
|
+
}, [filterOnStatus, producedProductList, filterOnProduct, product]);
|
|
88
|
+
const handleViewItem = item => {
|
|
89
|
+
navigation.navigate('ProducedProductDetailsScreen', {
|
|
90
|
+
manufOrder: manufOrder,
|
|
91
|
+
producedProduct: item,
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
const handleAddProduct = () => {
|
|
95
|
+
navigation.navigate('ProducedProductSelectProductScreen', {
|
|
96
|
+
manufOrder: manufOrder,
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
React.useLayoutEffect(() => {
|
|
100
|
+
navigation.setOptions({
|
|
101
|
+
headerRight: () => (<Icon name="trash" color={Colors.primaryColor.background} size={24} style={styles.action} touchable={true} onPress={() => {
|
|
102
|
+
navigation.navigate('WasteProductListScreen', {
|
|
103
|
+
manufOrder: manufOrder,
|
|
104
|
+
});
|
|
105
|
+
}}/>),
|
|
106
|
+
});
|
|
107
|
+
}, [Colors, manufOrder, navigation]);
|
|
108
|
+
return (<Screen removeSpaceOnTop={true}>
|
|
109
|
+
<HeaderContainer expandableFilter={false} fixedItems={<>
|
|
110
|
+
<ManufacturingOrderHeader parentMO={manufOrder.parentMO} reference={manufOrder.manufOrderSeq} status={manufOrder.statusSelect} priority={manufOrder.prioritySelect}/>
|
|
111
|
+
<View style={styles.titleContainer}>
|
|
112
|
+
<Text>{I18n.t('Manufacturing_ProducedProduct')}</Text>
|
|
113
|
+
{manufOrder?.statusSelect ===
|
|
114
|
+
ManufacturingOrder.status.InProgress && (<Icon name="plus" size={20} color={Colors.primaryColor.background} touchable={true} onPress={handleAddProduct}/>)}
|
|
115
|
+
</View>
|
|
116
|
+
<ScannerAutocompleteSearch objectList={producedProductList} onChangeValue={() => { }} fetchData={setProduct} displayValue={item => item?.productName} placeholder={I18n.t('Manufacturing_Product')} scanKeySearch={productScanKey}/>
|
|
117
|
+
</>} chipComponent={<ChipSelect>
|
|
118
|
+
<Chip selected={plannedStatus} title={I18n.t('Manufacturing_Status_Planned')} onPress={handlePlannedStatus} selectedColor={Colors.plannedColor}/>
|
|
119
|
+
<Chip selected={realizedStatus} title={I18n.t('Manufacturing_Status_Realized')} onPress={handleRealizedStatus} selectedColor={Colors.primaryColor}/>
|
|
120
|
+
</ChipSelect>}/>
|
|
121
|
+
<ScrollList loadingList={loadingProducedProducts} data={filteredList} renderItem={({ item }) => (<ProducedProductCard style={styles.item} productName={item?.productName} plannedQty={item?.plannedQty} producedQty={item?.realQty} unitName={item?.unit?.unitName} trackingNumberSeq={item?.trackingNumber?.trackingNumberSeq} onPress={() => handleViewItem(item)}/>)} fetchData={fetchProducedProductsAPI} isListEnd={!IS_INFINITE_SCROLL_ENABLED} filter={IS_INFINITE_SCROLL_ENABLED}/>
|
|
122
|
+
</Screen>);
|
|
123
|
+
};
|
|
124
|
+
const styles = StyleSheet.create({
|
|
125
|
+
titleContainer: {
|
|
126
|
+
flexDirection: 'row',
|
|
127
|
+
marginBottom: '2%',
|
|
128
|
+
justifyContent: 'space-between',
|
|
129
|
+
alignItems: 'center',
|
|
130
|
+
marginHorizontal: 24,
|
|
131
|
+
},
|
|
132
|
+
item: {
|
|
133
|
+
marginHorizontal: 16,
|
|
134
|
+
marginVertical: 4,
|
|
135
|
+
},
|
|
136
|
+
action: {
|
|
137
|
+
marginRight: 15,
|
|
138
|
+
},
|
|
139
|
+
});
|
|
140
|
+
export default ProducedProductListScreen;
|
|
141
|
+
//# sourceMappingURL=ProducedProductListScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProducedProductListScreen.js","sourceRoot":"","sources":["../../../../src/screens/manufactoringOrder/producedProduct/ProducedPro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B,WAAW,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,CAC3B,QAAQ,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,CAAC,CAC/B,iBAAiB,CAAC,CAAC,IAAI,EAAE,cAAc,EAAE,iBAAiB,CAAC,CAC3D,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EACpC,CACH,CAAC,CACF,SAAS,CAAC,CAAC,wBAAwB,CAAC,CACpC,SAAS,CAAC,CAAC,CAAC,0BAA0B,CAAC,CACvC,MAAM,CAAC,CAAC,0BAA0B,CAAC,EAEvC;IAAA,EAAE,MAAM,CAAC,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,cAAc,EAAE;QACd,aAAa,EAAE,KAAK;QACpB,YAAY,EAAE,IAAI;QAClB,cAAc,EAAE,eAAe;QAC/B,UAAU,EAAE,QAAQ;QACpB,gBAAgB,EAAE,EAAE;KACrB;IACD,IAAI,EAAE;QACJ,gBAAgB,EAAE,EAAE;QACpB,cAAc,EAAE,CAAC;KAClB;IACD,MAAM,EAAE;QACN,WAAW,EAAE,EAAE;KAChB;CACF,CAAC,CAAC;AAEH,eAAe,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2023 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import React, { useCallback } from 'react';
|
|
19
|
+
import { Screen, ScrollView, HeaderContainer } from '@axelor/aos-mobile-ui';
|
|
20
|
+
import { displayItemName, ScannerAutocompleteSearch, useDispatch, useSelector, useTranslator, } from '@axelor/aos-mobile-core';
|
|
21
|
+
import { ManufacturingOrderHeader } from '../../../components/organisms';
|
|
22
|
+
import { searchProducts } from '@axelor/aos-mobile-stock';
|
|
23
|
+
const productScanKey = 'product_manufacturing-order-produced-product-select';
|
|
24
|
+
const ProducedProductSelectProductScreen = ({ route, navigation }) => {
|
|
25
|
+
const I18n = useTranslator();
|
|
26
|
+
const manufOrder = route.params.manufOrder;
|
|
27
|
+
const { productList } = useSelector(state => state.product);
|
|
28
|
+
const dispatch = useDispatch();
|
|
29
|
+
const fetchProductsAPI = useCallback(filter => {
|
|
30
|
+
dispatch(searchProducts({ searchValue: filter }));
|
|
31
|
+
}, [dispatch]);
|
|
32
|
+
const handleSelectProduct = product => {
|
|
33
|
+
if (product != null) {
|
|
34
|
+
if (product.trackingNumberConfiguration == null) {
|
|
35
|
+
navigation.navigate('ProducedProductDetailsScreen', {
|
|
36
|
+
manufOrder: manufOrder,
|
|
37
|
+
product: product,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
navigation.navigate('ProducedProductSelectTrackingScreen', {
|
|
42
|
+
manufOrder: manufOrder,
|
|
43
|
+
product: product,
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
return (<Screen removeSpaceOnTop={true}>
|
|
49
|
+
<HeaderContainer expandableFilter={false} fixedItems={<ManufacturingOrderHeader parentMO={manufOrder.parentMO} reference={manufOrder.manufOrderSeq} status={manufOrder.statusSelect} priority={manufOrder.prioritySelect}/>}/>
|
|
50
|
+
<ScrollView>
|
|
51
|
+
<ScannerAutocompleteSearch objectList={productList} onChangeValue={handleSelectProduct} fetchData={fetchProductsAPI} displayValue={displayItemName} placeholder={I18n.t('Manufacturing_Product')} scanKeySearch={productScanKey} isFocus={true} changeScreenAfter={true}/>
|
|
52
|
+
</ScrollView>
|
|
53
|
+
</Screen>);
|
|
54
|
+
};
|
|
55
|
+
export default ProducedProductSelectProductScreen;
|
|
56
|
+
//# sourceMappingURL=ProducedProductSelectProductScreen.js.map
|
package/lib/screens/manufactoringOrder/producedProduct/ProducedProductSelectProductScreen.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProducedProductSelectProductScreen.js","sourceRoot":"","sources":["../../../../src/screens/manufactoringOrder/producedProduct/ProducedProductSelectProductScreen.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAC,MAAM,OAAO,CAAC;AACzC,OAAO,EAAC,MAAM,EAAE,UAAU,EAAE,eAAe,EAAC,MAAM,uBAAuB,CAAC;AAC1E,OAAO,EACL,eAAe,EACf,yBAAyB,EACzB,WAAW,EACX,WAAW,EACX,aAAa,GACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAC,wBAAwB,EAAC,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAC,cAAc,EAAC,MAAM,0BAA0B,CAAC;AAExD,MAAM,cAAc,GAAG,qDAAqD,CAAC;AAE7E,MAAM,kCAAkC,GAAG,CAAC,EAAC,KAAK,EAAE,UAAU,EAAC,EAAE,EAAE;IACjE,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAC7B,MAAM,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC;IAC3C,MAAM,EAAC,WAAW,EAAC,GAAG,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC1D,MAAM,QAAQ,G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