contentoh-components-library 21.0.92 → 21.0.94
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/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +37 -48
- package/dist/components/pages/ProviderProductEdition/index.js +1 -1
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +23 -35
- package/dist/components/pages/RetailerProductEdition/index.js +1 -1
- package/package.json +1 -1
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +39 -52
- package/src/components/pages/ProviderProductEdition/index.js +1 -1
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +23 -37
- package/src/components/pages/RetailerProductEdition/index.js +1 -1
|
@@ -36,63 +36,52 @@ ProviderProductEditionDefault.args = {
|
|
|
36
36
|
category: 846,
|
|
37
37
|
version: 2,
|
|
38
38
|
productSelected: {
|
|
39
|
-
|
|
40
|
-
id_category: "684",
|
|
41
|
-
status: "RECEPTION",
|
|
42
|
-
datasheet_status: null,
|
|
43
|
-
prio: "none",
|
|
44
|
-
version: 4,
|
|
45
|
-
description_status: null,
|
|
46
|
-
images_status: null,
|
|
39
|
+
version: 1,
|
|
47
40
|
brand: null,
|
|
48
41
|
missing: {
|
|
49
|
-
datasheet:
|
|
50
|
-
descriptions:
|
|
51
|
-
images:
|
|
42
|
+
datasheet: null,
|
|
43
|
+
descriptions: null,
|
|
44
|
+
images: null
|
|
52
45
|
},
|
|
53
46
|
article: {
|
|
54
|
-
category: "
|
|
55
|
-
company_name: "
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
upc: "
|
|
47
|
+
category: "ORGANIZADORES Y CLOSETS|ACCESORIOS DE LAVANDERÍA|BURROS DE PLANCHAR",
|
|
48
|
+
company_name: "BROOKLITE MEXICO S DE RL DE CV",
|
|
49
|
+
company_id: 409,
|
|
50
|
+
id_category: "2520",
|
|
51
|
+
id_article: 1,
|
|
52
|
+
name: "SOPORTE PLANCHA-BURRO EN PUERTA",
|
|
53
|
+
upc: "339"
|
|
61
54
|
},
|
|
55
|
+
asignations: [62],
|
|
62
56
|
retailers: [{
|
|
63
|
-
id:
|
|
64
|
-
name: "
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}, {
|
|
69
|
-
id: 1013,
|
|
70
|
-
name: "Cencosud Colombia"
|
|
71
|
-
}, {
|
|
72
|
-
id: 2005,
|
|
73
|
-
name: "ClubCo"
|
|
57
|
+
id: 61,
|
|
58
|
+
name: "Home Depot TAB",
|
|
59
|
+
country: "México",
|
|
60
|
+
id_region: 1,
|
|
61
|
+
active: 1
|
|
74
62
|
}],
|
|
75
|
-
|
|
76
|
-
datasheets: 1,
|
|
77
|
-
descriptions: 1,
|
|
78
|
-
images: 1
|
|
79
|
-
},
|
|
63
|
+
percentage: 0,
|
|
80
64
|
retailersAvailable: [{
|
|
81
|
-
id:
|
|
82
|
-
name: "
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}, {
|
|
87
|
-
id: 1013,
|
|
88
|
-
name: "Cencosud Colombia"
|
|
89
|
-
}, {
|
|
90
|
-
id: 2005,
|
|
91
|
-
name: "ClubCo"
|
|
65
|
+
id: 61,
|
|
66
|
+
name: "Home Depot TAB",
|
|
67
|
+
country: "México",
|
|
68
|
+
id_region: 1,
|
|
69
|
+
active: 1
|
|
92
70
|
}],
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
71
|
+
upc: "339",
|
|
72
|
+
name: "SOPORTE PLANCHA-BURRO EN PUERTA",
|
|
73
|
+
categoryName: "ORGANIZADORES Y CLOSETS|ACCESORIOS DE LAVANDERÍA|BURROS DE PLANCHAR",
|
|
74
|
+
id_category: "2520",
|
|
75
|
+
id_article: 1,
|
|
76
|
+
services: [{
|
|
77
|
+
id_article: 1,
|
|
78
|
+
service: "datasheet",
|
|
79
|
+
quantity: 1,
|
|
80
|
+
price: 0,
|
|
81
|
+
id_user: 59,
|
|
82
|
+
datasheet_common: null,
|
|
83
|
+
discount: null
|
|
84
|
+
}]
|
|
96
85
|
},
|
|
97
86
|
productToEdit: {
|
|
98
87
|
ArticleId: 33249,
|
|
@@ -696,7 +696,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
696
696
|
var thumbs = function thumbs() {
|
|
697
697
|
var _images$imageType, _images$imagePackagin, _images$values;
|
|
698
698
|
|
|
699
|
-
var imageInputs = socketType.slice();
|
|
699
|
+
var imageInputs = socketType === null || socketType === void 0 ? void 0 : socketType.slice();
|
|
700
700
|
var imageType = images === null || images === void 0 ? void 0 : (_images$imageType = images.imageType) === null || _images$imageType === void 0 ? void 0 : _images$imageType.map(function (e) {
|
|
701
701
|
return {
|
|
702
702
|
value: e === null || e === void 0 ? void 0 : e.id,
|
|
@@ -41,66 +41,54 @@ RetailerProductEditionDefault.args = {
|
|
|
41
41
|
descriptions: 1,
|
|
42
42
|
images: 1
|
|
43
43
|
},
|
|
44
|
-
orderId:
|
|
45
|
-
status: "
|
|
46
|
-
datasheet_status: "
|
|
44
|
+
orderId: 13,
|
|
45
|
+
status: "IN_PROGRESS",
|
|
46
|
+
datasheet_status: "IN_PROGRESS",
|
|
47
47
|
prio: "none",
|
|
48
48
|
version: 2,
|
|
49
|
-
description_status: "
|
|
50
|
-
images_status: "
|
|
49
|
+
description_status: "IN_PROGRESS",
|
|
50
|
+
images_status: "IN_PROGRESS",
|
|
51
51
|
article: {
|
|
52
|
-
id_article:
|
|
53
|
-
id_category: "
|
|
54
|
-
name: "
|
|
55
|
-
upc: "
|
|
56
|
-
timestamp: "2022-06-
|
|
57
|
-
id_user:
|
|
52
|
+
id_article: 35703,
|
|
53
|
+
id_category: "4",
|
|
54
|
+
name: "Manzana",
|
|
55
|
+
upc: "89898989",
|
|
56
|
+
timestamp: "2022-06-15T22:16:56.000Z",
|
|
57
|
+
id_user: 28,
|
|
58
58
|
status: "NULL",
|
|
59
59
|
active: 1,
|
|
60
60
|
company_id: 1,
|
|
61
|
-
company_name: "
|
|
61
|
+
company_name: "COMPANY DEV",
|
|
62
62
|
country: "México",
|
|
63
|
-
id_order:
|
|
63
|
+
id_order: 13,
|
|
64
64
|
id_datasheet_especialist: 54,
|
|
65
65
|
id_datasheet_facilitator: 52,
|
|
66
66
|
id_description_especialist: 54,
|
|
67
67
|
id_description_facilitator: 52,
|
|
68
68
|
id_images_especialist: 55,
|
|
69
69
|
id_images_facilitator: 53,
|
|
70
|
-
id_auditor:
|
|
70
|
+
id_auditor: null,
|
|
71
71
|
id_recepcionist: null,
|
|
72
|
-
category: "
|
|
73
|
-
missingAttributes:
|
|
74
|
-
missingDescriptions:
|
|
75
|
-
missingImages:
|
|
72
|
+
category: "ABARROTES|ABARROTES SECOS|ALIMENTOS DESHIDRATADOS",
|
|
73
|
+
missingAttributes: -4,
|
|
74
|
+
missingDescriptions: 2,
|
|
75
|
+
missingImages: 2
|
|
76
76
|
},
|
|
77
77
|
retailers: [{
|
|
78
|
-
id:
|
|
79
|
-
name: "
|
|
78
|
+
id: 3,
|
|
79
|
+
name: "Sam´s Club",
|
|
80
80
|
country: "México",
|
|
81
81
|
id_region: 1,
|
|
82
82
|
active: 1
|
|
83
83
|
}, {
|
|
84
|
-
id:
|
|
85
|
-
name: "
|
|
86
|
-
country: "México",
|
|
87
|
-
id_region: 1,
|
|
88
|
-
active: 1
|
|
89
|
-
}, {
|
|
90
|
-
id: 60,
|
|
91
|
-
name: "The Home Depot Resizing",
|
|
92
|
-
country: "México",
|
|
93
|
-
id_region: 1,
|
|
94
|
-
active: 1
|
|
95
|
-
}, {
|
|
96
|
-
id: 61,
|
|
97
|
-
name: "Home Depot TAB",
|
|
84
|
+
id: 9,
|
|
85
|
+
name: "Amazon",
|
|
98
86
|
country: "México",
|
|
99
87
|
id_region: 1,
|
|
100
88
|
active: 1
|
|
101
89
|
}],
|
|
102
90
|
country: "México",
|
|
103
|
-
upc: "
|
|
91
|
+
upc: "89898989"
|
|
104
92
|
},
|
|
105
93
|
location: {
|
|
106
94
|
product: {
|
|
@@ -1534,7 +1534,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1534
1534
|
var _arr$filter2 = (0, _slicedToArray2.default)(_arr$filter, 1);
|
|
1535
1535
|
|
|
1536
1536
|
retailerService = _arr$filter2[0];
|
|
1537
|
-
return retailerService ? retailerService.status : "
|
|
1537
|
+
return retailerService ? retailerService.status : "NS";
|
|
1538
1538
|
};
|
|
1539
1539
|
|
|
1540
1540
|
(0, _react.useEffect)(function () {
|
package/package.json
CHANGED
|
@@ -21,73 +21,60 @@ ProviderProductEditionDefault.args = {
|
|
|
21
21
|
category: 846,
|
|
22
22
|
version: 2,
|
|
23
23
|
productSelected: {
|
|
24
|
-
|
|
25
|
-
id_category: "684",
|
|
26
|
-
status: "RECEPTION",
|
|
27
|
-
datasheet_status: null,
|
|
28
|
-
prio: "none",
|
|
29
|
-
version: 4,
|
|
30
|
-
description_status: null,
|
|
31
|
-
images_status: null,
|
|
24
|
+
version: 1,
|
|
32
25
|
brand: null,
|
|
33
26
|
missing: {
|
|
34
|
-
datasheet:
|
|
35
|
-
descriptions:
|
|
36
|
-
images:
|
|
27
|
+
datasheet: null,
|
|
28
|
+
descriptions: null,
|
|
29
|
+
images: null,
|
|
37
30
|
},
|
|
38
31
|
article: {
|
|
39
|
-
category:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
32
|
+
category:
|
|
33
|
+
"ORGANIZADORES Y CLOSETS|ACCESORIOS DE LAVANDERÍA|BURROS DE PLANCHAR",
|
|
34
|
+
company_name: "BROOKLITE MEXICO S DE RL DE CV",
|
|
35
|
+
company_id: 409,
|
|
36
|
+
id_category: "2520",
|
|
37
|
+
id_article: 1,
|
|
38
|
+
name: "SOPORTE PLANCHA-BURRO EN PUERTA",
|
|
39
|
+
upc: "339",
|
|
46
40
|
},
|
|
41
|
+
asignations: [62],
|
|
47
42
|
retailers: [
|
|
48
43
|
{
|
|
49
|
-
id:
|
|
50
|
-
name: "
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
name: "Amazon",
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
id: 1013,
|
|
58
|
-
name: "Cencosud Colombia",
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
id: 2005,
|
|
62
|
-
name: "ClubCo",
|
|
44
|
+
id: 61,
|
|
45
|
+
name: "Home Depot TAB",
|
|
46
|
+
country: "México",
|
|
47
|
+
id_region: 1,
|
|
48
|
+
active: 1,
|
|
63
49
|
},
|
|
64
50
|
],
|
|
65
|
-
|
|
66
|
-
datasheets: 1,
|
|
67
|
-
descriptions: 1,
|
|
68
|
-
images: 1,
|
|
69
|
-
},
|
|
51
|
+
percentage: 0,
|
|
70
52
|
retailersAvailable: [
|
|
71
53
|
{
|
|
72
|
-
id:
|
|
73
|
-
name: "
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
name: "Amazon",
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
id: 1013,
|
|
81
|
-
name: "Cencosud Colombia",
|
|
54
|
+
id: 61,
|
|
55
|
+
name: "Home Depot TAB",
|
|
56
|
+
country: "México",
|
|
57
|
+
id_region: 1,
|
|
58
|
+
active: 1,
|
|
82
59
|
},
|
|
60
|
+
],
|
|
61
|
+
upc: "339",
|
|
62
|
+
name: "SOPORTE PLANCHA-BURRO EN PUERTA",
|
|
63
|
+
categoryName:
|
|
64
|
+
"ORGANIZADORES Y CLOSETS|ACCESORIOS DE LAVANDERÍA|BURROS DE PLANCHAR",
|
|
65
|
+
id_category: "2520",
|
|
66
|
+
id_article: 1,
|
|
67
|
+
services: [
|
|
83
68
|
{
|
|
84
|
-
|
|
85
|
-
|
|
69
|
+
id_article: 1,
|
|
70
|
+
service: "datasheet",
|
|
71
|
+
quantity: 1,
|
|
72
|
+
price: 0,
|
|
73
|
+
id_user: 59,
|
|
74
|
+
datasheet_common: null,
|
|
75
|
+
discount: null,
|
|
86
76
|
},
|
|
87
77
|
],
|
|
88
|
-
id_article: 33249,
|
|
89
|
-
categoryName: "SALUD Y BELLEZA|CUIDADO BUCAL|PASTAS DENTALES Y ASEO BUCAL",
|
|
90
|
-
version_status: "RECEPTION",
|
|
91
78
|
},
|
|
92
79
|
productToEdit: {
|
|
93
80
|
ArticleId: 33249,
|
|
@@ -361,7 +361,7 @@ export const ProviderProductEdition = ({
|
|
|
361
361
|
}, [activeRetailer, services]);
|
|
362
362
|
|
|
363
363
|
const thumbs = () => {
|
|
364
|
-
const imageInputs = socketType
|
|
364
|
+
const imageInputs = socketType?.slice();
|
|
365
365
|
const imageType = images?.imageType?.map((e) => ({
|
|
366
366
|
value: e?.id,
|
|
367
367
|
name: e?.name,
|
|
@@ -26,71 +26,57 @@ RetailerProductEditionDefault.args = {
|
|
|
26
26
|
descriptions: 1,
|
|
27
27
|
images: 1,
|
|
28
28
|
},
|
|
29
|
-
orderId:
|
|
30
|
-
status: "
|
|
31
|
-
datasheet_status: "
|
|
29
|
+
orderId: 13,
|
|
30
|
+
status: "IN_PROGRESS",
|
|
31
|
+
datasheet_status: "IN_PROGRESS",
|
|
32
32
|
prio: "none",
|
|
33
33
|
version: 2,
|
|
34
|
-
description_status: "
|
|
35
|
-
images_status: "
|
|
34
|
+
description_status: "IN_PROGRESS",
|
|
35
|
+
images_status: "IN_PROGRESS",
|
|
36
36
|
article: {
|
|
37
|
-
id_article:
|
|
38
|
-
id_category: "
|
|
39
|
-
name: "
|
|
40
|
-
upc: "
|
|
41
|
-
timestamp: "2022-06-
|
|
42
|
-
id_user:
|
|
37
|
+
id_article: 35703,
|
|
38
|
+
id_category: "4",
|
|
39
|
+
name: "Manzana",
|
|
40
|
+
upc: "89898989",
|
|
41
|
+
timestamp: "2022-06-15T22:16:56.000Z",
|
|
42
|
+
id_user: 28,
|
|
43
43
|
status: "NULL",
|
|
44
44
|
active: 1,
|
|
45
45
|
company_id: 1,
|
|
46
|
-
company_name: "
|
|
46
|
+
company_name: "COMPANY DEV",
|
|
47
47
|
country: "México",
|
|
48
|
-
id_order:
|
|
48
|
+
id_order: 13,
|
|
49
49
|
id_datasheet_especialist: 54,
|
|
50
50
|
id_datasheet_facilitator: 52,
|
|
51
51
|
id_description_especialist: 54,
|
|
52
52
|
id_description_facilitator: 52,
|
|
53
53
|
id_images_especialist: 55,
|
|
54
54
|
id_images_facilitator: 53,
|
|
55
|
-
id_auditor:
|
|
55
|
+
id_auditor: null,
|
|
56
56
|
id_recepcionist: null,
|
|
57
|
-
category: "
|
|
58
|
-
missingAttributes:
|
|
59
|
-
missingDescriptions:
|
|
60
|
-
missingImages:
|
|
57
|
+
category: "ABARROTES|ABARROTES SECOS|ALIMENTOS DESHIDRATADOS",
|
|
58
|
+
missingAttributes: -4,
|
|
59
|
+
missingDescriptions: 2,
|
|
60
|
+
missingImages: 2,
|
|
61
61
|
},
|
|
62
62
|
retailers: [
|
|
63
63
|
{
|
|
64
|
-
id:
|
|
65
|
-
name: "
|
|
64
|
+
id: 3,
|
|
65
|
+
name: "Sam´s Club",
|
|
66
66
|
country: "México",
|
|
67
67
|
id_region: 1,
|
|
68
68
|
active: 1,
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
|
-
id:
|
|
72
|
-
name: "
|
|
73
|
-
country: "México",
|
|
74
|
-
id_region: 1,
|
|
75
|
-
active: 1,
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
id: 60,
|
|
79
|
-
name: "The Home Depot Resizing",
|
|
80
|
-
country: "México",
|
|
81
|
-
id_region: 1,
|
|
82
|
-
active: 1,
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
id: 61,
|
|
86
|
-
name: "Home Depot TAB",
|
|
71
|
+
id: 9,
|
|
72
|
+
name: "Amazon",
|
|
87
73
|
country: "México",
|
|
88
74
|
id_region: 1,
|
|
89
75
|
active: 1,
|
|
90
76
|
},
|
|
91
77
|
],
|
|
92
78
|
country: "México",
|
|
93
|
-
upc: "
|
|
79
|
+
upc: "89898989",
|
|
94
80
|
},
|
|
95
81
|
location: {
|
|
96
82
|
product: { articleId: 109485, versionId: 3 },
|
|
@@ -1081,7 +1081,7 @@ export const RetailerProductEdition = ({
|
|
|
1081
1081
|
service.id_retailer === activeRetailer?.id &&
|
|
1082
1082
|
service.service === concept
|
|
1083
1083
|
);
|
|
1084
|
-
return retailerService ? retailerService.status : "
|
|
1084
|
+
return retailerService ? retailerService.status : "NS";
|
|
1085
1085
|
};
|
|
1086
1086
|
|
|
1087
1087
|
useEffect(() => {
|