@axelor/aos-mobile-manufacturing 8.1.7 → 8.2.0
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/lib/api/index.d.ts +1 -0
- package/lib/api/index.js +1 -0
- package/lib/api/index.js.map +1 -1
- package/lib/api/prod-product-api.d.ts +3 -0
- package/lib/api/prod-product-api.js +8 -0
- package/lib/api/prod-product-api.js.map +1 -1
- package/lib/api/product-indicators-api.d.ts +5 -0
- package/lib/api/product-indicators-api.js +107 -0
- package/lib/api/product-indicators-api.js.map +1 -0
- package/lib/components/atoms/ManufacturingQtyIndicatorCard/ManufacturingQtyIndicatorCard.d.ts +13 -0
- package/lib/components/atoms/ManufacturingQtyIndicatorCard/ManufacturingQtyIndicatorCard.js +67 -0
- package/lib/components/atoms/ManufacturingQtyIndicatorCard/ManufacturingQtyIndicatorCard.js.map +1 -0
- package/lib/components/atoms/index.d.ts +1 -0
- package/lib/components/atoms/index.js +19 -0
- package/lib/components/atoms/index.js.map +1 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +1 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/molecules/ManufacturingQtyIndicatorActionCard/ManufacturingQtyIndicatorActionCard.d.ts +13 -0
- package/lib/components/molecules/ManufacturingQtyIndicatorActionCard/ManufacturingQtyIndicatorActionCard.js +57 -0
- package/lib/components/molecules/ManufacturingQtyIndicatorActionCard/ManufacturingQtyIndicatorActionCard.js.map +1 -0
- package/lib/components/molecules/index.d.ts +1 -0
- package/lib/components/molecules/index.js +1 -0
- package/lib/components/molecules/index.js.map +1 -1
- package/lib/components/organisms/ConsumedProductCard/ConsumedProductCard.d.ts +2 -1
- package/lib/components/organisms/ConsumedProductCard/ConsumedProductCard.js +19 -5
- package/lib/components/organisms/ConsumedProductCard/ConsumedProductCard.js.map +1 -1
- package/lib/components/organisms/ConsumedProductGlobalCard/ConsumedProductGlobalCard.d.ts +2 -1
- package/lib/components/organisms/ConsumedProductGlobalCard/ConsumedProductGlobalCard.js +28 -31
- package/lib/components/organisms/ConsumedProductGlobalCard/ConsumedProductGlobalCard.js.map +1 -1
- package/lib/components/organisms/ManufacturingOrderHeader/ManufacturingOrderHeader.js +14 -26
- package/lib/components/organisms/ManufacturingOrderHeader/ManufacturingOrderHeader.js.map +1 -1
- package/lib/features/asyncFunctions-index.d.ts +1 -0
- package/lib/features/asyncFunctions-index.js +1 -0
- package/lib/features/asyncFunctions-index.js.map +1 -1
- package/lib/features/index.d.ts +1 -0
- package/lib/features/index.js +1 -0
- package/lib/features/index.js.map +1 -1
- package/lib/features/machinesSlice.d.ts +10 -1
- package/lib/features/manufacturingOrderSlice.d.ts +50 -5
- package/lib/features/operationOrderSlice.d.ts +40 -4
- package/lib/features/prodProductSlice.d.ts +80 -8
- package/lib/features/productIndicatorsSlice.d.ts +16 -0
- package/lib/features/productIndicatorsSlice.js +49 -0
- package/lib/features/productIndicatorsSlice.js.map +1 -0
- package/lib/features/productionFileSlice.d.ts +10 -1
- package/lib/features/wasteProductsSlice.d.ts +40 -4
- package/lib/features/workCentersSlice.d.ts +10 -1
- package/lib/i18n/en.json +8 -1
- package/lib/i18n/fr.json +8 -1
- package/lib/index.d.ts +3 -0
- package/lib/index.js +5 -0
- package/lib/index.js.map +1 -1
- package/lib/models/objectFields.js +20 -0
- package/lib/models/objectFields.js.map +1 -1
- package/lib/screens/manufactoringOrder/consumedProduct/ConsumedProductDetailsScreen.js +3 -3
- package/lib/screens/manufactoringOrder/consumedProduct/ConsumedProductDetailsScreen.js.map +1 -1
- package/lib/screens/manufactoringOrder/consumedProduct/ConsumedProductListScreen.js +5 -3
- package/lib/screens/manufactoringOrder/consumedProduct/ConsumedProductListScreen.js.map +1 -1
- package/lib/screens/manufactoringOrder/producedProduct/ProducedProductDetailsScreen.js +3 -3
- package/lib/screens/manufactoringOrder/producedProduct/ProducedProductDetailsScreen.js.map +1 -1
- package/lib/screens/manufactoringOrder/wasteProduct/WasteProductDetailsScreen.js +3 -3
- package/lib/screens/manufactoringOrder/wasteProduct/WasteProductDetailsScreen.js.map +1 -1
- package/lib/screens/stock/index.d.ts +17 -0
- package/lib/screens/stock/index.js +22 -0
- package/lib/screens/stock/index.js.map +1 -0
- package/lib/screens/stock/products/ProductManufacturingIndicatorDetails.d.ts +5 -0
- package/lib/screens/stock/products/ProductManufacturingIndicatorDetails.js +41 -0
- package/lib/screens/stock/products/ProductManufacturingIndicatorDetails.js.map +1 -0
- package/lib/screens/stock/products/ProductStockDetailsScreen.d.ts +5 -0
- package/lib/screens/stock/products/ProductStockDetailsScreen.js +50 -0
- package/lib/screens/stock/products/ProductStockDetailsScreen.js.map +1 -0
- package/lib/screens/stock/products/index.d.ts +21 -0
- package/lib/screens/stock/products/index.js +33 -0
- package/lib/screens/stock/products/index.js.map +1 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.js +1 -0
- package/lib/types/index.js.map +1 -1
- package/lib/types/product-indicator.d.ts +8 -0
- package/lib/types/product-indicator.js +26 -0
- package/lib/types/product-indicator.js.map +1 -0
- package/package.json +13 -12
package/lib/api/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './machine-api';
|
|
|
2
2
|
export * from './manufacturing-order-api';
|
|
3
3
|
export * from './operation-order-api';
|
|
4
4
|
export * from './prod-product-api';
|
|
5
|
+
export { fetchManufacturingQtyIndicator as fetchManufacturingQtyIndicatorApi } from './product-indicators-api';
|
|
5
6
|
export * from './production-file-api';
|
|
6
7
|
export * from './waste-product-api';
|
|
7
8
|
export * from './work-center-api';
|
package/lib/api/index.js
CHANGED
|
@@ -19,6 +19,7 @@ export * from './machine-api';
|
|
|
19
19
|
export * from './manufacturing-order-api';
|
|
20
20
|
export * from './operation-order-api';
|
|
21
21
|
export * from './prod-product-api';
|
|
22
|
+
export { fetchManufacturingQtyIndicator as fetchManufacturingQtyIndicatorApi } from './product-indicators-api';
|
|
22
23
|
export * from './production-file-api';
|
|
23
24
|
export * from './waste-product-api';
|
|
24
25
|
export * from './work-center-api';
|
package/lib/api/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAC,8BAA8B,IAAI,iCAAiC,EAAC,MAAM,0BAA0B,CAAC;AAC7G,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC"}
|
|
@@ -72,4 +72,12 @@ export async function updateProdProduct({ stockMoveLineVersion, stockMoveLineId,
|
|
|
72
72
|
description: 'update prod product',
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
|
+
export async function fetchStockMoveStatus({ stockMoveLineId }) {
|
|
76
|
+
return createStandardFetch({
|
|
77
|
+
model: 'com.axelor.apps.stock.db.StockMoveLine',
|
|
78
|
+
id: stockMoveLineId,
|
|
79
|
+
fieldKey: 'manufacturing_stockMoveStatus',
|
|
80
|
+
provider: 'model',
|
|
81
|
+
});
|
|
82
|
+
}
|
|
75
83
|
//# sourceMappingURL=prod-product-api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prod-product-api.js","sourceRoot":"","sources":["../../src/api/prod-product-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;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AAC,KAAK,UAAU,iBAAiB,CAAC,EACtC,oBAAoB,EACpB,eAAe,EACf,cAAc,GACf;IACC,OAAO,YAAY,EAAE,CAAC,IAAI,CAAC;QACzB,GAAG,EAAE,uCAAuC;QAC5C,MAAM,EAAE,KAAK;QACb,IAAI,EAAE;YACJ,OAAO,EAAE,oBAAoB;YAC7B,eAAe;YACf,cAAc;SACf;QACD,WAAW,EAAE,qBAAqB;KACnC,CAAC,CAAC;AACL,CAAC"}
|
|
1
|
+
{"version":3,"file":"prod-product-api.js","sourceRoot":"","sources":["../../src/api/prod-product-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,mBAAmB,EAAE,YAAY,EAAC,MAAM,yBAAyB,CAAC;AAE1E,MAAM,CAAC,KAAK,UAAU,uCAAuC,CAAC,EAC5D,YAAY,EACZ,iBAAiB,GAClB;IACC,OAAO,YAAY,EAAE,CAAC,IAAI,CAAC;QACzB,GAAG,EAAE,6CAA6C;QAClD,MAAM,EAAE,MAAM;QACd,IAAI,EAAE;YACJ,YAAY;YACZ,iBAAiB;SAClB;QACD,WAAW,EAAE,6CAA6C;KAC3D,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,uCAAuC,CAAC,EAC5D,YAAY,EACZ,iBAAiB,GAClB;IACC,OAAO,YAAY,EAAE,CAAC,IAAI,CAAC;QACzB,GAAG,EAAE,6CAA6C;QAClD,MAAM,EAAE,MAAM;QACd,IAAI,EAAE;YACJ,YAAY;YACZ,iBAAiB;SAClB;QACD,WAAW,EAAE,6CAA6C;KAC3D,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAAC,EAAC,SAAS,EAAC;IACvD,OAAO,mBAAmB,CAAC;QACzB,KAAK,EAAE,2CAA2C;QAClD,EAAE,EAAE,SAAS;QACb,QAAQ,EAAE,2BAA2B;QACrC,QAAQ,EAAE,OAAO;KAClB,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,EACtC,YAAY,EACZ,iBAAiB,EACjB,SAAS,EACT,gBAAgB,EAChB,GAAG,EACH,WAAW,GACZ;IACC,OAAO,YAAY,EAAE,CAAC,IAAI,CAAC;QACzB,GAAG,EAAE,sBAAsB,YAAY,cAAc;QACrD,MAAM,EAAE,MAAM;QACd,IAAI,EAAE;YACJ,OAAO,EAAE,iBAAiB;YAC1B,SAAS;YACT,gBAAgB;YAChB,GAAG;YACH,WAAW;SACZ;QACD,WAAW,EAAE,qBAAqB;KACnC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,EACtC,oBAAoB,EACpB,eAAe,EACf,cAAc,GACf;IACC,OAAO,YAAY,EAAE,CAAC,IAAI,CAAC;QACzB,GAAG,EAAE,uCAAuC;QAC5C,MAAM,EAAE,KAAK;QACb,IAAI,EAAE;YACJ,OAAO,EAAE,oBAAoB;YAC7B,eAAe;YACf,cAAc;SACf;QACD,WAAW,EAAE,qBAAqB;KACnC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,EAAC,eAAe,EAAC;IAC1D,OAAO,mBAAmB,CAAC;QACzB,KAAK,EAAE,wCAAwC;QAC/C,EAAE,EAAE,eAAe;QACnB,QAAQ,EAAE,+BAA+B;QACzC,QAAQ,EAAE,OAAO;KAClB,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2024 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 { createStandardSearch, getTypes } from '@axelor/aos-mobile-core';
|
|
19
|
+
import { ProductIndicator } from '../types';
|
|
20
|
+
const createManufacturingQtyCriteria = (indicatorType, productId) => {
|
|
21
|
+
const StockMove = getTypes().StockMove;
|
|
22
|
+
const StockMoveLine = getTypes().StockMoveLine;
|
|
23
|
+
const StockLocation = getTypes().StockLocation;
|
|
24
|
+
const ManufOrder = getTypes().ManufOrder;
|
|
25
|
+
const OperationOrder = getTypes().OperationOrder;
|
|
26
|
+
const defaultCriteria = [
|
|
27
|
+
{
|
|
28
|
+
fieldName: 'product.id',
|
|
29
|
+
operator: '=',
|
|
30
|
+
value: productId,
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
fieldName: 'stockMove.statusSelect',
|
|
34
|
+
operator: '=',
|
|
35
|
+
value: StockMove?.statusSelect.Planned,
|
|
36
|
+
},
|
|
37
|
+
];
|
|
38
|
+
if (indicatorType === ProductIndicator.type.BuildingQty) {
|
|
39
|
+
const buildingCriteria = [
|
|
40
|
+
{
|
|
41
|
+
fieldName: 'toStockLocation.typeSelect',
|
|
42
|
+
operator: '!=',
|
|
43
|
+
value: StockLocation?.typeSelect.virtual,
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
fieldName: 'producedManufOrder.statusSelect',
|
|
47
|
+
operator: 'in',
|
|
48
|
+
value: [
|
|
49
|
+
ManufOrder?.statusSelect.Planned,
|
|
50
|
+
ManufOrder?.statusSelect.InProgress,
|
|
51
|
+
ManufOrder?.statusSelect.StandBy,
|
|
52
|
+
],
|
|
53
|
+
},
|
|
54
|
+
];
|
|
55
|
+
return defaultCriteria.concat(buildingCriteria);
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
const MOCriteria = [
|
|
59
|
+
{
|
|
60
|
+
fieldName: 'fromStockLocation.typeSelect',
|
|
61
|
+
operator: '!=',
|
|
62
|
+
value: StockLocation?.typeSelect.virtual,
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
operator: 'or',
|
|
66
|
+
criteria: [
|
|
67
|
+
{
|
|
68
|
+
fieldName: 'consumedManufOrder.statusSelect',
|
|
69
|
+
operator: 'in',
|
|
70
|
+
value: [
|
|
71
|
+
ManufOrder?.statusSelect.Planned,
|
|
72
|
+
ManufOrder?.statusSelect.InProgress,
|
|
73
|
+
ManufOrder?.statusSelect.StandBy,
|
|
74
|
+
],
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
fieldName: 'consumedOperationOrder.statusSelect',
|
|
78
|
+
operator: 'in',
|
|
79
|
+
value: [
|
|
80
|
+
OperationOrder?.statusSelect.Planned,
|
|
81
|
+
OperationOrder?.statusSelect.InProgress,
|
|
82
|
+
OperationOrder?.statusSelect.StandBy,
|
|
83
|
+
],
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
},
|
|
87
|
+
];
|
|
88
|
+
if (indicatorType === ProductIndicator.type.MissingMOQty) {
|
|
89
|
+
MOCriteria.push({
|
|
90
|
+
fieldName: 'availableStatus',
|
|
91
|
+
operator: '=',
|
|
92
|
+
value: StockMoveLine?.availableStatus.Missing,
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
return defaultCriteria.concat(MOCriteria);
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
export async function fetchManufacturingQtyIndicator({ indicatorType, productId, page = 0, }) {
|
|
99
|
+
return createStandardSearch({
|
|
100
|
+
model: 'com.axelor.apps.stock.db.StockMoveLine',
|
|
101
|
+
criteria: createManufacturingQtyCriteria(indicatorType, productId),
|
|
102
|
+
fieldKey: 'manufacturing_manufacturingQtyIndicator',
|
|
103
|
+
page,
|
|
104
|
+
provider: 'model',
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=product-indicators-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-indicators-api.js","sourceRoot":"","sources":["../../src/api/product-indicators-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,oBAAoB,EAAE,QAAQ,EAAC,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAC,gBAAgB,EAAC,MAAM,UAAU,CAAC;AAE1C,MAAM,8BAA8B,GAAG,CAAC,aAAa,EAAE,SAAS,EAAE,EAAE;IAClE,MAAM,SAAS,GAAG,QAAQ,EAAE,CAAC,SAAS,CAAC;IACvC,MAAM,aAAa,GAAG,QAAQ,EAAE,CAAC,aAAa,CAAC;IAC/C,MAAM,aAAa,GAAG,QAAQ,EAAE,CAAC,aAAa,CAAC;IAC/C,MAAM,UAAU,GAAG,QAAQ,EAAE,CAAC,UAAU,CAAC;IACzC,MAAM,cAAc,GAAG,QAAQ,EAAE,CAAC,cAAc,CAAC;IAEjD,MAAM,eAAe,GAAG;QACtB;YACE,SAAS,EAAE,YAAY;YACvB,QAAQ,EAAE,GAAG;YACb,KAAK,EAAE,SAAS;SACjB;QACD;YACE,SAAS,EAAE,wBAAwB;YACnC,QAAQ,EAAE,GAAG;YACb,KAAK,EAAE,SAAS,EAAE,YAAY,CAAC,OAAO;SACvC;KACF,CAAC;IAEF,IAAI,aAAa,KAAK,gBAAgB,CAAC,IAAI,CAAC,WAAW,EAAE;QACvD,MAAM,gBAAgB,GAAG;YACvB;gBACE,SAAS,EAAE,4BAA4B;gBACvC,QAAQ,EAAE,IAAI;gBACd,KAAK,EAAE,aAAa,EAAE,UAAU,CAAC,OAAO;aACzC;YACD;gBACE,SAAS,EAAE,iCAAiC;gBAC5C,QAAQ,EAAE,IAAI;gBACd,KAAK,EAAE;oBACL,U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AK,EAAE,wCAAwC;QAC/C,QAAQ,EAAE,8BAA8B,CAAC,aAAa,EAAE,SAAS,CAAC;QAClE,QAAQ,EAAE,yCAAyC;QACnD,IAAI;QACJ,QAAQ,EAAE,OAAO;KAClB,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ManufacturingQtyIndicatorCardProps {
|
|
3
|
+
style?: any;
|
|
4
|
+
refMO?: string;
|
|
5
|
+
refIM?: string;
|
|
6
|
+
date: string;
|
|
7
|
+
realQty: number;
|
|
8
|
+
unitName: string;
|
|
9
|
+
trackingNumber: string;
|
|
10
|
+
statusSelect: number;
|
|
11
|
+
}
|
|
12
|
+
declare const ManufacturingQtyIndicatorCard: ({ style, refMO, refIM, date, realQty, unitName, trackingNumber, statusSelect, }: ManufacturingQtyIndicatorCardProps) => React.JSX.Element;
|
|
13
|
+
export default ManufacturingQtyIndicatorCard;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2024 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 from 'react';
|
|
19
|
+
import { StyleSheet } from 'react-native';
|
|
20
|
+
import { DateDisplay, useTranslator, useTypeHelpers, useTypes, } from '@axelor/aos-mobile-core';
|
|
21
|
+
import { ObjectCard, useDigitFormat } from '@axelor/aos-mobile-ui';
|
|
22
|
+
const ManufacturingQtyIndicatorCard = ({ style, refMO, refIM, date, realQty, unitName, trackingNumber, statusSelect, }) => {
|
|
23
|
+
const I18n = useTranslator();
|
|
24
|
+
const { StockMove } = useTypes();
|
|
25
|
+
const { getItemColor, getItemTitle } = useTypeHelpers();
|
|
26
|
+
const formatNumber = useDigitFormat();
|
|
27
|
+
return (<ObjectCard style={style} leftContainerFlex={2} showArrow={false} touchable={false} upperTexts={{
|
|
28
|
+
items: [
|
|
29
|
+
{
|
|
30
|
+
displayText: refMO,
|
|
31
|
+
isTitle: true,
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
displayText: refIM,
|
|
35
|
+
isTitle: true,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
customComponent: <DateDisplay date={date} size={14}/>,
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
displayText: `${formatNumber(realQty)} ${unitName}`,
|
|
42
|
+
indicatorText: `${I18n.t('Stock_RealQty')} :`,
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
iconName: 'qr-code',
|
|
46
|
+
displayText: trackingNumber,
|
|
47
|
+
indicatorText: `${I18n.t('Manufacturing_TrackingNumber')}:`,
|
|
48
|
+
hideIf: trackingNumber == null,
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
}} sideBadges={{
|
|
52
|
+
style: styles.badgeContainer,
|
|
53
|
+
items: [
|
|
54
|
+
{
|
|
55
|
+
displayText: getItemTitle(StockMove?.statusSelect, statusSelect),
|
|
56
|
+
color: getItemColor(StockMove?.statusSelect, statusSelect),
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
}}/>);
|
|
60
|
+
};
|
|
61
|
+
const styles = StyleSheet.create({
|
|
62
|
+
badgeContainer: {
|
|
63
|
+
alignItems: 'flex-end',
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
export default ManufacturingQtyIndicatorCard;
|
|
67
|
+
//# sourceMappingURL=ManufacturingQtyIndicatorCard.js.map
|
package/lib/components/atoms/ManufacturingQtyIndicatorCard/ManufacturingQtyIndicatorCard.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ManufacturingQtyIndicatorCard.js","sourceRoot":"","sources":["../../../../src/components/atoms/ManufacturingQtyIndicatorCard/ManufacturingQtyIndicatorCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EACL,WAAW,EACX,aAAa,EACb,cAAc,EACd,QAAQ,GACT,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAC,UAAU,EAAE,cAAc,EAAC,MAAM,uBAAuB,CAAC;AAajE,MAAM,6BAA6B,GAAG,CAAC,EACrC,KAAK,EACL,KAAK,EACL,KAAK,EACL,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,cAAc,EACd,YAAY,GACuB,EAAE,EAAE;IACvC,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAC7B,MAAM,EAAC,SAAS,EAAC,GAAG,QAAQ,EAAE,CAAC;IAC/B,MAAM,EAAC,YAAY,EAAE,YAAY,EAAC,GAAG,cAAc,EAAE,CAAC;IACtD,MAAM,YAAY,GAAG,cAAc,EAAE,CAAC;IAEtC,OAAO,CACL,CAAC,UAAU,CACT,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,iBAAiB,CAAC,CAAC,CAAC,CAAC,CACrB,SAAS,CAAC,CAAC,KAAK,CAAC,CACjB,SAAS,CAAC,CAAC,KAAK,CAAC,CACjB,UAAU,CAAC,CAAC;YACV,KAAK,EAAE;gBACL;oBACE,WAAW,EAAE,KAAK;oBAClB,OAAO,EAAE,IAAI;iBACd;gBACD;oBACE,WAAW,EAAE,KAAK;oBAClB,OAAO,EAAE,IAAI;iBACd;gBACD;oBACE,eAAe,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAG;iBACvD;gBACD;oBACE,WAAW,EAAE,GAAG,YAAY,CAAC,OAAO,CAAC,IAAI,QAAQ,EAAE;oBACnD,aAAa,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC,eAAe,CAAC,IAAI;iBAC9C;gBACD;oBACE,QAAQ,EAAE,SAAS;oBACnB,WAAW,EAAE,cAAc;oBAC3B,aAAa,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC,8BAA8B,CAAC,GAAG;oBAC3D,MAAM,EAAE,cAAc,IAAI,IAAI;iBAC/B;aACF;SACF,CAAC,CACF,UAAU,CAAC,CAAC;YACV,KAAK,EAAE,MAAM,CAAC,cAAc;YAC5B,KAAK,EAAE;gBACL;oBACE,WAAW,EAAE,YAAY,CAAC,SAAS,EAAE,YAAY,EAAE,YAAY,CAAC;oBAChE,KAAK,EAAE,YAAY,CAAC,SAAS,EAAE,YAAY,EAAE,YAAY,CAAC;iBAC3D;aACF;SACF,CAAC,EACF,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,cAAc,EAAE;QACd,UAAU,EAAE,UAAU;KACvB;CACF,CAAC,CAAC;AAEH,eAAe,6BAA6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ManufacturingQtyIndicatorCard } from './ManufacturingQtyIndicatorCard/ManufacturingQtyIndicatorCard';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2024 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
|
+
export { default as ManufacturingQtyIndicatorCard } from './ManufacturingQtyIndicatorCard/ManufacturingQtyIndicatorCard';
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/atoms/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,IAAI,6BAA6B,EAAC,MAAM,+DAA+D,CAAC"}
|
package/lib/components/index.js
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
* You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
|
+
export * from './atoms';
|
|
18
19
|
export * from './molecules';
|
|
19
20
|
export * from './organisms';
|
|
20
21
|
export * from './templates';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ManufacturingQtyIndicatorActionCardProps {
|
|
3
|
+
style?: any;
|
|
4
|
+
producedManufOrder?: any;
|
|
5
|
+
consumedManufOrder?: any;
|
|
6
|
+
consumedOperationOrder?: any;
|
|
7
|
+
stockMove: any;
|
|
8
|
+
realQty: number;
|
|
9
|
+
unit: any;
|
|
10
|
+
trackingNumber: any;
|
|
11
|
+
}
|
|
12
|
+
declare const ManufacturingQtyIndicatorActionCard: ({ producedManufOrder, consumedManufOrder, consumedOperationOrder, stockMove, realQty, unit, trackingNumber, }: ManufacturingQtyIndicatorActionCardProps) => React.JSX.Element;
|
|
13
|
+
export default ManufacturingQtyIndicatorActionCard;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2024 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 from 'react';
|
|
19
|
+
import { useNavigation, useTranslator } from '@axelor/aos-mobile-core';
|
|
20
|
+
import { ActionCard } from '@axelor/aos-mobile-ui';
|
|
21
|
+
import { ManufacturingQtyIndicatorCard } from '../../atoms';
|
|
22
|
+
const ManufacturingQtyIndicatorActionCard = ({ producedManufOrder, consumedManufOrder, consumedOperationOrder, stockMove, realQty, unit, trackingNumber, }) => {
|
|
23
|
+
const I18n = useTranslator();
|
|
24
|
+
const navigation = useNavigation();
|
|
25
|
+
const handleManufacturingNavigation = () => {
|
|
26
|
+
if (consumedOperationOrder?.id) {
|
|
27
|
+
navigation.navigate('OperationOrderDetailsScreen', {
|
|
28
|
+
operationOrderId: consumedOperationOrder?.id,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
navigation.navigate('ManufacturingOrderDetailsScreen', {
|
|
33
|
+
manufacturingOrderId: producedManufOrder?.id ?? consumedManufOrder?.id,
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
return (<ActionCard translator={I18n.t} actionList={[
|
|
38
|
+
{
|
|
39
|
+
iconName: 'gear-fill',
|
|
40
|
+
helper: I18n.t(consumedOperationOrder?.id == null
|
|
41
|
+
? 'Manufacturing_NavigateToMO'
|
|
42
|
+
: 'Manufacturing_NavigateToOO'),
|
|
43
|
+
onPress: handleManufacturingNavigation,
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
iconName: 'boxes',
|
|
47
|
+
helper: I18n.t('Manufacturing_NavigateToIM'),
|
|
48
|
+
onPress: () => navigation.navigate('InternalMoveDetailsGeneralScreen', {
|
|
49
|
+
internalMoveId: stockMove?.id,
|
|
50
|
+
}),
|
|
51
|
+
},
|
|
52
|
+
]}>
|
|
53
|
+
<ManufacturingQtyIndicatorCard refMO={producedManufOrder?.manufOrderSeq ?? consumedManufOrder?.manufOrderSeq} refIM={stockMove?.stockMoveSeq} date={stockMove?.realDate} realQty={realQty} unitName={unit?.name} trackingNumber={trackingNumber?.trackingNumberSeq} statusSelect={stockMove?.statusSelect}/>
|
|
54
|
+
</ActionCard>);
|
|
55
|
+
};
|
|
56
|
+
export default ManufacturingQtyIndicatorActionCard;
|
|
57
|
+
//# sourceMappingURL=ManufacturingQtyIndicatorActionCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ManufacturingQtyIndicatorActionCard.js","sourceRoot":"","sources":["../../../../src/components/molecules/ManufacturingQtyIndicatorActionCard/ManufacturingQtyIndicatorActionCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,aAAa,EAAE,aAAa,EAAC,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAC,6BAA6B,EAAC,MAAM,aAAa,CAAC;AAa1D,MAAM,mCAAmC,GAAG,CAAC,EAC3C,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,SAAS,EACT,OAAO,EACP,IAAI,EACJ,cAAc,GAC2B,EAAE,EAAE;IAC7C,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAC7B,MAAM,UAAU,GAAG,aAAa,EAAE,CAAC;IAEnC,MAAM,6BAA6B,GAAG,GAAG,EAAE;QACzC,IAAI,sBAAsB,EAAE,EAAE,EAAE;YAC9B,UAAU,CAAC,QAAQ,CAAC,6BAA6B,EAAE;gBACjD,gBAAgB,EAAE,sBAAsB,EAAE,EAAE;aAC7C,CAAC,CAAC;SACJ;aAAM;YACL,UAAU,CAAC,QAAQ,CAAC,iCAAiC,EAAE;gBACrD,oBAAoB,EAAE,kBAAkB,EAAE,EAAE,IAAI,kBAAkB,EAAE,EAAE;aACvE,CAAC,CAAC;SACJ;IACH,CAAC,CAAC;IAEF,OAAO,CACL,CAAC,UAAU,CACT,UAAU,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CACnB,UAAU,CAAC,CAAC;YACV;gBACE,QAAQ,EAAE,WAAW;gBACrB,MAAM,EAAE,IAAI,CAAC,CAAC,CACZ,sBAAsB,EAAE,EAAE,IAAI,IAAI;oBAChC,CAAC,CAAC,4BAA4B;oBAC9B,CAAC,CAAC,4BAA4B,CACjC;gBACD,OAAO,EAAE,6BAA6B;aACvC;YACD;gBACE,QAAQ,EAAE,OAAO;gBACjB,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,4BAA4B,CAAC;gBAC5C,OAAO,EAAE,GAAG,EAAE,CACZ,UAAU,CAAC,QAAQ,CAAC,kCAAkC,EAAE;oBACtD,cAAc,EAAE,SAAS,EAAE,EAAE;iBAC9B,CAAC;aACL;SACF,CAAC,CACF;MAAA,CAAC,6BAA6B,CAC5B,KAAK,CAAC,CACJ,kBAAkB,EAAE,aAAa,IAAI,kBAAkB,EAAE,aAAa,CACvE,CACD,KAAK,CAAC,CAAC,SAAS,EAAE,YAAY,CAAC,CAC/B,IAAI,CAAC,CAAC,SAAS,EAAE,QAAQ,CAAC,CAC1B,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,QAAQ,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CACrB,cAAc,CAAC,CAAC,cAAc,EAAE,iBAAiB,CAAC,CAClD,YAAY,CAAC,CAAC,SAAS,EAAE,YAAY,CAAC,EAE1C;IAAA,EAAE,UAAU,CAAC,CACd,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,mCAAmC,CAAC"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { default as ManufacturingOrderDatesCard } from "./ManufacturingOrderDatesCard/ManufacturingOrderDatesCard";
|
|
2
|
+
export { default as ManufacturingQtyIndicatorActionCard } from "./ManufacturingQtyIndicatorActionCard/ManufacturingQtyIndicatorActionCard";
|
|
2
3
|
export { default as OperationOrderDatesCard } from "./OperationOrderDatesCard/OperationOrderDatesCard";
|
|
@@ -16,5 +16,6 @@
|
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
18
|
export { default as ManufacturingOrderDatesCard } from './ManufacturingOrderDatesCard/ManufacturingOrderDatesCard';
|
|
19
|
+
export { default as ManufacturingQtyIndicatorActionCard } from './ManufacturingQtyIndicatorActionCard/ManufacturingQtyIndicatorActionCard';
|
|
19
20
|
export { default as OperationOrderDatesCard } from './OperationOrderDatesCard/OperationOrderDatesCard';
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/molecules/index.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,IAAI,2BAA2B,EAAC,MAAM,2DAA2D,CAAC;AACjH,OAAO,EAAC,OAAO,IAAI,uBAAuB,EAAC,MAAM,mDAAmD,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/molecules/index.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,IAAI,2BAA2B,EAAC,MAAM,2DAA2D,CAAC;AACjH,OAAO,EAAC,OAAO,IAAI,mCAAmC,EAAC,MAAM,2EAA2E,CAAC;AACzI,OAAO,EAAC,OAAO,IAAI,uBAAuB,EAAC,MAAM,mDAAmD,CAAC"}
|
|
@@ -13,6 +13,7 @@ interface ConsumedProductCardProps {
|
|
|
13
13
|
addedQty: number;
|
|
14
14
|
incrementVisible: boolean;
|
|
15
15
|
};
|
|
16
|
+
stockMoveLineId: number;
|
|
16
17
|
}
|
|
17
|
-
declare const ConsumedProductCard: ({ style, productName, plannedQty, consumedQty, missingQty, availableQty, unitName, trackingNumber, onPress, increment, }: ConsumedProductCardProps) => React.JSX.Element;
|
|
18
|
+
declare const ConsumedProductCard: ({ style, productName, plannedQty, consumedQty, missingQty, availableQty, unitName, trackingNumber, onPress, increment, stockMoveLineId, }: ConsumedProductCardProps) => React.JSX.Element;
|
|
18
19
|
export default ConsumedProductCard;
|
|
@@ -15,14 +15,18 @@
|
|
|
15
15
|
* You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
|
-
import React, { useMemo } from 'react';
|
|
18
|
+
import React, { useEffect, useMemo, useState } from 'react';
|
|
19
19
|
import { StyleSheet, View } from 'react-native';
|
|
20
|
+
import { useTranslator, useTypeHelpers, useTypes } from '@axelor/aos-mobile-core';
|
|
20
21
|
import { ObjectCard, useDigitFormat, useThemeColor } from '@axelor/aos-mobile-ui';
|
|
21
|
-
import {
|
|
22
|
-
const ConsumedProductCard = ({ style, productName, plannedQty, consumedQty, missingQty, availableQty, unitName, trackingNumber = null, onPress = () => { }, increment = { addedQty: 0, incrementVisible: false }, }) => {
|
|
22
|
+
import { fetchStockMoveStatus } from '../../../api';
|
|
23
|
+
const ConsumedProductCard = ({ style, productName, plannedQty, consumedQty, missingQty, availableQty, unitName, trackingNumber = null, onPress = () => { }, increment = { addedQty: 0, incrementVisible: false }, stockMoveLineId, }) => {
|
|
23
24
|
const Colors = useThemeColor();
|
|
24
25
|
const I18n = useTranslator();
|
|
25
26
|
const formatNumber = useDigitFormat();
|
|
27
|
+
const { StockMove } = useTypes();
|
|
28
|
+
const { getItemColor, getItemTitle } = useTypeHelpers();
|
|
29
|
+
const [stockMoveStatus, setStockMoveStatus] = useState(null);
|
|
26
30
|
const borderStyle = useMemo(() => {
|
|
27
31
|
if (missingQty > 0) {
|
|
28
32
|
return getBorderStyles(Colors.errorColor.background)?.border;
|
|
@@ -36,6 +40,12 @@ const ConsumedProductCard = ({ style, productName, plannedQty, consumedQty, miss
|
|
|
36
40
|
return getBorderStyles(Colors.successColor.background)?.border;
|
|
37
41
|
}
|
|
38
42
|
}, [Colors, consumedQty, missingQty, plannedQty]);
|
|
43
|
+
useEffect(() => {
|
|
44
|
+
(async () => {
|
|
45
|
+
const res = await fetchStockMoveStatus({ stockMoveLineId });
|
|
46
|
+
setStockMoveStatus(res.data.data[0]?.stockMove?.statusSelect);
|
|
47
|
+
})();
|
|
48
|
+
}, [stockMoveLineId]);
|
|
39
49
|
return (<View style={style}>
|
|
40
50
|
<ObjectCard onPress={onPress} style={borderStyle} showArrow={false} upperTexts={{
|
|
41
51
|
items: [
|
|
@@ -74,6 +84,10 @@ const ConsumedProductCard = ({ style, productName, plannedQty, consumedQty, miss
|
|
|
74
84
|
: Colors.successColor
|
|
75
85
|
: Colors.errorColor,
|
|
76
86
|
},
|
|
87
|
+
{
|
|
88
|
+
displayText: getItemTitle(StockMove?.statusSelect, stockMoveStatus),
|
|
89
|
+
color: getItemColor(StockMove?.statusSelect, stockMoveStatus),
|
|
90
|
+
},
|
|
77
91
|
],
|
|
78
92
|
}}/>
|
|
79
93
|
</View>);
|
|
@@ -82,8 +96,8 @@ const getBorderStyles = color => StyleSheet.create({
|
|
|
82
96
|
border: {
|
|
83
97
|
borderLeftWidth: 7,
|
|
84
98
|
borderLeftColor: color,
|
|
85
|
-
marginHorizontal:
|
|
86
|
-
marginVertical:
|
|
99
|
+
marginHorizontal: 2,
|
|
100
|
+
marginVertical: 2,
|
|
87
101
|
},
|
|
88
102
|
});
|
|
89
103
|
export default ConsumedProductCard;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsumedProductCard.js","sourceRoot":"","sources":["../../../../src/components/organisms/ConsumedProductCard/ConsumedProductCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ConsumedProductCard.js","sourceRoot":"","sources":["../../../../src/components/organisms/ConsumedProductCard/ConsumedProductCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAC,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,aAAa,EAAE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14
|
onSubOfPress: () => void;
|
|
15
15
|
isSubOF: boolean;
|
|
16
|
+
stockMoveLineId: number;
|
|
16
17
|
}
|
|
17
|
-
declare const ConsumedProductGlobalCard: ({ productName, plannedQty, consumedQty, missingQty, availableQty, unitName, trackingNumber, onPress, onMorePress, disableMore, onLocationPress, onSubOfPress, isSubOF, }: ConsumedProductGlobalCardProps) => React.JSX.Element;
|
|
18
|
+
declare const ConsumedProductGlobalCard: ({ productName, plannedQty, consumedQty, missingQty, availableQty, unitName, trackingNumber, onPress, onMorePress, disableMore, onLocationPress, onSubOfPress, isSubOF, stockMoveLineId, }: ConsumedProductGlobalCardProps) => React.JSX.Element;
|
|
18
19
|
export default ConsumedProductGlobalCard;
|
|
@@ -16,11 +16,12 @@
|
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
18
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
19
|
+
import { ActionCard, useThemeColor } from '@axelor/aos-mobile-ui';
|
|
20
|
+
import { useTranslator } from '@axelor/aos-mobile-core';
|
|
21
21
|
import ConsumedProductCard from '../ConsumedProductCard/ConsumedProductCard';
|
|
22
22
|
const TIME_DISPLAY_INCREMENT = 2000;
|
|
23
|
-
const ConsumedProductGlobalCard = ({ productName, plannedQty, consumedQty, missingQty, availableQty, unitName, trackingNumber = null, onPress, onMorePress, disableMore = false, onLocationPress, onSubOfPress, isSubOF = false, }) => {
|
|
23
|
+
const ConsumedProductGlobalCard = ({ productName, plannedQty, consumedQty, missingQty, availableQty, unitName, trackingNumber = null, onPress, onMorePress, disableMore = false, onLocationPress, onSubOfPress, isSubOF = false, stockMoveLineId, }) => {
|
|
24
|
+
const I18n = useTranslator();
|
|
24
25
|
const Colors = useThemeColor();
|
|
25
26
|
const [addedQty, setAddedQty] = useState(0);
|
|
26
27
|
const [incrementVisible, setIncrementVisible] = useState(false);
|
|
@@ -45,34 +46,30 @@ const ConsumedProductGlobalCard = ({ productName, plannedQty, consumedQty, missi
|
|
|
45
46
|
};
|
|
46
47
|
}
|
|
47
48
|
}, [handleTimeOut, incrementVisible, addedQty]);
|
|
48
|
-
return (<
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
49
|
+
return (<ActionCard translator={I18n.t} actionList={[
|
|
50
|
+
{
|
|
51
|
+
iconName: 'geo-alt-fill',
|
|
52
|
+
onPress: onLocationPress,
|
|
53
|
+
large: !isSubOF,
|
|
54
|
+
helper: I18n.t('Manufacturing_SeeAvailability'),
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
iconName: 'diagram-3-fill',
|
|
58
|
+
onPress: onSubOfPress,
|
|
59
|
+
hidden: !isSubOF,
|
|
60
|
+
helper: I18n.t('Manufacturing_SeeSubMO'),
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
iconName: 'plus-lg',
|
|
64
|
+
onPress: handleIncrement,
|
|
65
|
+
hidden: disableMore,
|
|
66
|
+
iconColor: Colors.primaryColor.background,
|
|
67
|
+
large: true,
|
|
68
|
+
helper: I18n.t('Manufacturing_IncrementQuantity'),
|
|
69
|
+
},
|
|
70
|
+
]} forceActionsDisplay>
|
|
71
|
+
<ConsumedProductCard productName={productName} plannedQty={plannedQty} consumedQty={consumedQty} missingQty={missingQty} availableQty={availableQty} unitName={unitName} trackingNumber={trackingNumber} onPress={onPress} increment={{ addedQty, incrementVisible }} stockMoveLineId={stockMoveLineId}/>
|
|
72
|
+
</ActionCard>);
|
|
58
73
|
};
|
|
59
|
-
const styles = StyleSheet.create({
|
|
60
|
-
globalContainer: {
|
|
61
|
-
display: 'flex',
|
|
62
|
-
flex: 1,
|
|
63
|
-
width: '92%',
|
|
64
|
-
flexDirection: 'row',
|
|
65
|
-
justifyContent: 'space-evenly',
|
|
66
|
-
alignItems: 'center',
|
|
67
|
-
marginHorizontal: 14,
|
|
68
|
-
},
|
|
69
|
-
flexOne: {
|
|
70
|
-
flex: 1,
|
|
71
|
-
},
|
|
72
|
-
consumedCard: {
|
|
73
|
-
flex: 5,
|
|
74
|
-
margin: 2,
|
|
75
|
-
},
|
|
76
|
-
});
|
|
77
74
|
export default ConsumedProductGlobalCard;
|
|
78
75
|
//# sourceMappingURL=ConsumedProductGlobalCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsumedProductGlobalCard.js","sourceRoot":"","sources":["../../../../src/components/organisms/ConsumedProductGlobalCard/ConsumedProductGlobalCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACtE,OAAO,EAAC,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"ConsumedProductGlobalCard.js","sourceRoot":"","sources":["../../../../src/components/organisms/ConsumedProductGlobalCard/ConsumedProductGlobalCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACtE,OAAO,EAAC,UAAU,EAAE,aAAa,EAAC,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAC,aAAa,EAAC,MAAM,yBAAyB,CAAC;AACtD,OAAO,mBAAmB,MAAM,4CAA4C,CAAC;AAmB7E,MAAM,sBAAsB,GAAG,IAAI,CAAC;AAEpC,MAAM,yBAAyB,GAAG,CAAC,EACjC,WAAW,EACX,UAAU,EACV,WAAW,EACX,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,cAAc,GAAG,IAAI,EACrB,OAAO,EACP,WAAW,EACX,WAAW,GAAG,KAAK,EACnB,eAAe,EACf,YAAY,EACZ,OAAO,GAAG,KAAK,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