contentoh-components-library 21.1.91 → 21.1.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/atoms/InputFormatter/index.js +0 -1
- package/dist/components/atoms/Status/styles.js +1 -1
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +114 -72
- package/dist/components/pages/ProviderProductEdition/index.js +5 -1
- package/dist/components/pages/RetailerProductEdition/index.js +8 -2
- package/package.json +1 -1
- package/src/components/atoms/InputFormatter/index.js +0 -1
- package/src/components/atoms/Status/styles.js +2 -1
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +140 -84
- package/src/components/pages/ProviderProductEdition/index.js +2 -1
- package/src/components/pages/RetailerProductEdition/index.js +4 -2
|
@@ -62,7 +62,6 @@ var InputFormatter = function InputFormatter(_ref) {
|
|
|
62
62
|
var maxLength = maxChar ? maxChar : 999;
|
|
63
63
|
|
|
64
64
|
var getValue = function getValue(value) {
|
|
65
|
-
console.log(value);
|
|
66
65
|
var temp = value.replace(/\n/gm, "<br>").replace(/\&(nbsp;|amp;)/gm, " ");
|
|
67
66
|
return temp;
|
|
68
67
|
}; //const quillRef = useRef();
|
|
@@ -15,6 +15,6 @@ var _variables = require("../../../global-files/variables");
|
|
|
15
15
|
|
|
16
16
|
var _templateObject;
|
|
17
17
|
|
|
18
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: fit-content;\n padding: 0 10px;\n height: 20px;\n background-color: ", ";\n border-radius: 3px;\n\n p {\n text-align: center;\n color: ", ";\n font-family: ", ";\n font-size: 12px;\n line-height: 20px;\n }\n\n &.status-CA,\n &.status-IE {\n background-color: ", ";\n }\n\n &.status-R,\n &.status-AS {\n background-color: ", ";\n }\n\n &.status-AA,\n &.status-AP,\n &.status-AC,\n &.status-ACA {\n background-color: ", ";\n }\n\n &.status-RA,\n &.status-RC,\n &.status-RP,\n &.status-RCA {\n background-color: ", ";\n }\n\n &.status-Dat,\n &.status-Dsc,\n &.status-Imgs {\n background-color: ", ";\n }\n\n &.status-Ex {\n background-color: ", ";\n }\n\n &.status-DDI {\n background-color: ", ";\n }\n\n &.status-GLD {\n background-color: ", ";\n }\n\n &.status-TAB {\n background-color: ", ";\n }\n\n &.status-Pt {\n background-color: ", ";\n color: ", ";\n }\n\n &.oval-form {\n border-radius: 10px;\n }\n"])), _variables.GlobalColors.s3, _variables.GlobalColors.white, _variables.FontFamily.Lato, _variables.GlobalColors.in_progress, _variables.GlobalColors.reception, _variables.GlobalColors.finished, _variables.GlobalColors.rejected_status, _variables.GlobalColors.s4, _variables.GlobalColors.exported, _variables.GlobalColors.original_purpura, _variables.GlobalColors.in_progress, _variables.GlobalColors.deep_gray, _variables.GlobalColors.s2, _variables.GlobalColors.s4);
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: fit-content;\n padding: 0 10px;\n height: 20px;\n background-color: ", ";\n border-radius: 3px;\n\n p {\n text-align: center;\n color: ", ";\n font-family: ", ";\n font-size: 12px;\n line-height: 20px;\n }\n\n &.status-CA,\n &.status-IE {\n background-color: ", ";\n }\n\n &.status-R,\n &.status-AS,\n &.status-PA {\n background-color: ", ";\n }\n\n &.status-AA,\n &.status-AP,\n &.status-AC,\n &.status-ACA {\n background-color: ", ";\n }\n\n &.status-RA,\n &.status-RC,\n &.status-RP,\n &.status-RCA {\n background-color: ", ";\n }\n\n &.status-Dat,\n &.status-Dsc,\n &.status-Imgs {\n background-color: ", ";\n }\n\n &.status-Ex {\n background-color: ", ";\n }\n\n &.status-DDI {\n background-color: ", ";\n }\n\n &.status-GLD {\n background-color: ", ";\n }\n\n &.status-TAB {\n background-color: ", ";\n }\n\n &.status-Pt {\n background-color: ", ";\n color: ", ";\n }\n\n &.oval-form {\n border-radius: 10px;\n }\n"])), _variables.GlobalColors.s3, _variables.GlobalColors.white, _variables.FontFamily.Lato, _variables.GlobalColors.in_progress, _variables.GlobalColors.reception, _variables.GlobalColors.finished, _variables.GlobalColors.rejected_status, _variables.GlobalColors.s4, _variables.GlobalColors.exported, _variables.GlobalColors.original_purpura, _variables.GlobalColors.in_progress, _variables.GlobalColors.deep_gray, _variables.GlobalColors.s2, _variables.GlobalColors.s4);
|
|
19
19
|
|
|
20
20
|
exports.Container = Container;
|
|
@@ -31,107 +31,149 @@ ProviderProductEditionDefault.args = {
|
|
|
31
31
|
"Ficha técnica": true,
|
|
32
32
|
Imágenes: true
|
|
33
33
|
},
|
|
34
|
-
token: "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.
|
|
34
|
+
token: "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJhYmUxODhlMi0yNWIxLTRhMTktODY3Mi0wZDRiYzExYTliZjIiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImFiZTE4OGUyLTI1YjEtNGExOS04NjcyLTBkNGJjMTFhOWJmMiIsImF1ZCI6IjUyZDlza2tkY2c4cWpwODhvb2sxdXNlNm1rIiwiZXZlbnRfaWQiOiIzOTUzZWZjMy0yZjAxLTQwNDYtYmY3Mi0zYTkxZDA0MDNkNTAiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY2MDA2NDUwNCwibmFtZSI6IlJldGFpbGVyIEFjYyIsInBob25lX251bWJlciI6Iis1MjMxMTExMTExMTEiLCJleHAiOjE2NjAwNjgxMDQsImlhdCI6MTY2MDA2NDUwNCwiZW1haWwiOiJyZXRhaWxlclRoZEBBbGxGcmVlTWFpbC5uZXQifQ.Nwsu6XKRp2u5pGqqftQxkSPjD-6xv2Xovmo-tS1VRsfGByPlY0qfyqF0QFZCgncubcYtDoAmpqad7UT0_5HKE1d5nwPM-fA639uv1029YnZwbgfPE3TSAna9NLKN7b0q9DZ6VeX05cjSPtdlnOCCjpdbaQk1Qkl6sAg80tidgBaCyffqns7uYgnSg73GAYxlkRkffH90pddxSykQbj-VVkJFEuLiBSGvu2oj5iwmmZ_EVB6XYv0a5p70IZmbia-3HrQB_qZJxDXLDK4sV3asv-iJJizU0lp64pD0k5TM0q4kY3iVTlHxb7uXBHeTJS8cxPVutxbITYLFyFOTCmm3mQ",
|
|
35
35
|
articleId: 238,
|
|
36
36
|
category: 846,
|
|
37
37
|
version: 2,
|
|
38
38
|
productSelected: {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
description_status: "NS",
|
|
43
|
-
images_status: "AP",
|
|
44
|
-
prio: "none",
|
|
45
|
-
version: 3,
|
|
46
|
-
brand: null,
|
|
39
|
+
articleStatus: "ACA",
|
|
40
|
+
version: 5,
|
|
41
|
+
missing: {},
|
|
47
42
|
article: {
|
|
48
|
-
category: "
|
|
49
|
-
company_name: "
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
upc: "90364"
|
|
43
|
+
category: "Materiales de Construcción|Impermeabilizantes y Recubrimientos|Selladores",
|
|
44
|
+
company_name: "SIKA MEXICANA S.A. DE C.V.",
|
|
45
|
+
company_id: 383,
|
|
46
|
+
id_category: "2249",
|
|
47
|
+
id_article: 29457,
|
|
48
|
+
name: "SIKA TECHO FRESCO SUPER 15",
|
|
49
|
+
upc: "111187"
|
|
56
50
|
},
|
|
51
|
+
asignations: [],
|
|
57
52
|
retailers: [{
|
|
58
53
|
id: 58,
|
|
59
|
-
name: "The Home Depot Golden"
|
|
54
|
+
name: "The Home Depot Golden",
|
|
55
|
+
country: "México",
|
|
56
|
+
id_region: 1,
|
|
57
|
+
active: 1
|
|
60
58
|
}, {
|
|
61
59
|
id: 59,
|
|
62
|
-
name: "The Home Depot Platinum"
|
|
60
|
+
name: "The Home Depot Platinum",
|
|
61
|
+
country: "México",
|
|
62
|
+
id_region: 1,
|
|
63
|
+
active: 1
|
|
64
|
+
}, {
|
|
65
|
+
id: 61,
|
|
66
|
+
name: "Home Depot TAB",
|
|
67
|
+
country: "México",
|
|
68
|
+
id_region: 1,
|
|
69
|
+
active: 1
|
|
63
70
|
}],
|
|
64
|
-
|
|
65
|
-
datasheets: 0,
|
|
66
|
-
descriptions: 0,
|
|
67
|
-
images: 1
|
|
68
|
-
},
|
|
69
|
-
statusByRetailer: {
|
|
70
|
-
59: {
|
|
71
|
-
images: "AP"
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
retailersWithService: ["59"],
|
|
75
|
-
checked: false,
|
|
76
|
-
id_article: 28099,
|
|
71
|
+
percentage: 33.35,
|
|
77
72
|
retailersAvailable: [{
|
|
78
73
|
id: 58,
|
|
79
|
-
name: "The Home Depot Golden"
|
|
74
|
+
name: "The Home Depot Golden",
|
|
75
|
+
country: "México",
|
|
76
|
+
id_region: 1,
|
|
77
|
+
active: 1
|
|
80
78
|
}, {
|
|
81
79
|
id: 59,
|
|
82
|
-
name: "The Home Depot Platinum"
|
|
80
|
+
name: "The Home Depot Platinum",
|
|
81
|
+
country: "México",
|
|
82
|
+
id_region: 1,
|
|
83
|
+
active: 1
|
|
84
|
+
}, {
|
|
85
|
+
id: 61,
|
|
86
|
+
name: "Home Depot TAB",
|
|
87
|
+
country: "México",
|
|
88
|
+
id_region: 1,
|
|
89
|
+
active: 1
|
|
90
|
+
}],
|
|
91
|
+
upc: "111187",
|
|
92
|
+
name: "SIKA TECHO FRESCO SUPER 15",
|
|
93
|
+
categoryName: "Materiales de Construcción|Impermeabilizantes y Recubrimientos|Selladores",
|
|
94
|
+
id_category: "2249",
|
|
95
|
+
id_article: 29457,
|
|
96
|
+
services: [{
|
|
97
|
+
id_article: 29457,
|
|
98
|
+
service: "datasheet",
|
|
99
|
+
quantity: 1,
|
|
100
|
+
price: 0,
|
|
101
|
+
id_user: 1237,
|
|
102
|
+
datasheet_common: null,
|
|
103
|
+
discount: null
|
|
83
104
|
}]
|
|
84
105
|
},
|
|
85
106
|
productToEdit: {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
product: {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
description_status: "NS",
|
|
93
|
-
images_status: "AP",
|
|
94
|
-
prio: "none",
|
|
95
|
-
version: 3,
|
|
96
|
-
brand: null,
|
|
107
|
+
idCategory: "2249",
|
|
108
|
+
ArticleId: 29457,
|
|
109
|
+
product: [{
|
|
110
|
+
articleStatus: "ACA",
|
|
111
|
+
version: 5,
|
|
112
|
+
missing: {},
|
|
97
113
|
article: {
|
|
98
|
-
category: "
|
|
99
|
-
company_name: "
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
upc: "90364"
|
|
114
|
+
category: "Materiales de Construcción|Impermeabilizantes y Recubrimientos|Selladores",
|
|
115
|
+
company_name: "SIKA MEXICANA S.A. DE C.V.",
|
|
116
|
+
company_id: 383,
|
|
117
|
+
id_category: "2249",
|
|
118
|
+
id_article: 29457,
|
|
119
|
+
name: "SIKA TECHO FRESCO SUPER 15",
|
|
120
|
+
upc: "111187"
|
|
106
121
|
},
|
|
122
|
+
asignations: [],
|
|
107
123
|
retailers: [{
|
|
108
124
|
id: 58,
|
|
109
|
-
name: "The Home Depot Golden"
|
|
125
|
+
name: "The Home Depot Golden",
|
|
126
|
+
country: "México",
|
|
127
|
+
id_region: 1,
|
|
128
|
+
active: 1
|
|
110
129
|
}, {
|
|
111
130
|
id: 59,
|
|
112
|
-
name: "The Home Depot Platinum"
|
|
131
|
+
name: "The Home Depot Platinum",
|
|
132
|
+
country: "México",
|
|
133
|
+
id_region: 1,
|
|
134
|
+
active: 1
|
|
135
|
+
}, {
|
|
136
|
+
id: 61,
|
|
137
|
+
name: "Home Depot TAB",
|
|
138
|
+
country: "México",
|
|
139
|
+
id_region: 1,
|
|
140
|
+
active: 1
|
|
113
141
|
}],
|
|
114
|
-
|
|
115
|
-
datasheets: 0,
|
|
116
|
-
descriptions: 0,
|
|
117
|
-
images: 1
|
|
118
|
-
},
|
|
119
|
-
statusByRetailer: {
|
|
120
|
-
59: {
|
|
121
|
-
images: "AP"
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
retailersWithService: ["59"],
|
|
125
|
-
checked: false,
|
|
126
|
-
id_article: 28099,
|
|
142
|
+
percentage: 33.35,
|
|
127
143
|
retailersAvailable: [{
|
|
128
144
|
id: 58,
|
|
129
|
-
name: "The Home Depot Golden"
|
|
145
|
+
name: "The Home Depot Golden",
|
|
146
|
+
country: "México",
|
|
147
|
+
id_region: 1,
|
|
148
|
+
active: 1
|
|
130
149
|
}, {
|
|
131
150
|
id: 59,
|
|
132
|
-
name: "The Home Depot Platinum"
|
|
151
|
+
name: "The Home Depot Platinum",
|
|
152
|
+
country: "México",
|
|
153
|
+
id_region: 1,
|
|
154
|
+
active: 1
|
|
155
|
+
}, {
|
|
156
|
+
id: 61,
|
|
157
|
+
name: "Home Depot TAB",
|
|
158
|
+
country: "México",
|
|
159
|
+
id_region: 1,
|
|
160
|
+
active: 1
|
|
161
|
+
}],
|
|
162
|
+
upc: "111187",
|
|
163
|
+
name: "SIKA TECHO FRESCO SUPER 15",
|
|
164
|
+
categoryName: "Materiales de Construcción|Impermeabilizantes y Recubrimientos|Selladores",
|
|
165
|
+
id_category: "2249",
|
|
166
|
+
id_article: 29457,
|
|
167
|
+
services: [{
|
|
168
|
+
id_article: 29457,
|
|
169
|
+
service: "datasheet",
|
|
170
|
+
quantity: 1,
|
|
171
|
+
price: 0,
|
|
172
|
+
id_user: 1237,
|
|
173
|
+
datasheet_common: null,
|
|
174
|
+
discount: null
|
|
133
175
|
}]
|
|
134
|
-
}
|
|
176
|
+
}]
|
|
135
177
|
},
|
|
136
178
|
location: {
|
|
137
179
|
state: {
|
|
@@ -169,7 +211,7 @@ ProviderProductEditionDefault.args = {
|
|
|
169
211
|
products_limit: "1000",
|
|
170
212
|
type: "Enterprise"
|
|
171
213
|
},
|
|
172
|
-
src: "https://content-management-profile-prod.s3.amazonaws.com/id-1237/1237.png?
|
|
214
|
+
src: "https://content-management-profile-prod.s3.amazonaws.com/id-1237/1237.png?1660064505178"
|
|
173
215
|
},
|
|
174
216
|
company: {
|
|
175
217
|
id_company: 817,
|
|
@@ -695,7 +695,11 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
695
695
|
(0, _data.fetchUsers)(token).then(function (res) {
|
|
696
696
|
return setUserGroups(res);
|
|
697
697
|
});
|
|
698
|
-
|
|
698
|
+
setImages({
|
|
699
|
+
action: "orderImages",
|
|
700
|
+
retailerId: activeRetailer.id
|
|
701
|
+
});
|
|
702
|
+
}, [product, version]);
|
|
699
703
|
|
|
700
704
|
var loadAssignations = function loadAssignations(currentProduct) {
|
|
701
705
|
setAssig(product === null || product === void 0 ? void 0 : product.asignations);
|
|
@@ -618,8 +618,12 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
618
618
|
|
|
619
619
|
case 20:
|
|
620
620
|
setStatusArray(arr);
|
|
621
|
+
setImages({
|
|
622
|
+
action: "orderImages",
|
|
623
|
+
retailerId: activeRetailer.id
|
|
624
|
+
});
|
|
621
625
|
|
|
622
|
-
case
|
|
626
|
+
case 22:
|
|
623
627
|
case "end":
|
|
624
628
|
return _context4.stop();
|
|
625
629
|
}
|
|
@@ -1092,7 +1096,9 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1092
1096
|
case 7:
|
|
1093
1097
|
case 8:
|
|
1094
1098
|
return statusArray.includes(srvActive) && (["RA", "RC"].includes(product === null || product === void 0 ? void 0 : product.status) || srv.filter(function (serv) {
|
|
1095
|
-
|
|
1099
|
+
var _serv$status;
|
|
1100
|
+
|
|
1101
|
+
return statusArray.includes((_serv$status = serv.status) === null || _serv$status === void 0 ? void 0 : _serv$status.replace(/.*\//, ""));
|
|
1096
1102
|
}).length === srv.length);
|
|
1097
1103
|
|
|
1098
1104
|
case 4:
|
package/package.json
CHANGED
|
@@ -16,119 +16,175 @@ ProviderProductEditionDefault.args = {
|
|
|
16
16
|
Imágenes: true,
|
|
17
17
|
},
|
|
18
18
|
token:
|
|
19
|
-
"eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.
|
|
19
|
+
"eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJhYmUxODhlMi0yNWIxLTRhMTktODY3Mi0wZDRiYzExYTliZjIiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImFiZTE4OGUyLTI1YjEtNGExOS04NjcyLTBkNGJjMTFhOWJmMiIsImF1ZCI6IjUyZDlza2tkY2c4cWpwODhvb2sxdXNlNm1rIiwiZXZlbnRfaWQiOiIzOTUzZWZjMy0yZjAxLTQwNDYtYmY3Mi0zYTkxZDA0MDNkNTAiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY2MDA2NDUwNCwibmFtZSI6IlJldGFpbGVyIEFjYyIsInBob25lX251bWJlciI6Iis1MjMxMTExMTExMTEiLCJleHAiOjE2NjAwNjgxMDQsImlhdCI6MTY2MDA2NDUwNCwiZW1haWwiOiJyZXRhaWxlclRoZEBBbGxGcmVlTWFpbC5uZXQifQ.Nwsu6XKRp2u5pGqqftQxkSPjD-6xv2Xovmo-tS1VRsfGByPlY0qfyqF0QFZCgncubcYtDoAmpqad7UT0_5HKE1d5nwPM-fA639uv1029YnZwbgfPE3TSAna9NLKN7b0q9DZ6VeX05cjSPtdlnOCCjpdbaQk1Qkl6sAg80tidgBaCyffqns7uYgnSg73GAYxlkRkffH90pddxSykQbj-VVkJFEuLiBSGvu2oj5iwmmZ_EVB6XYv0a5p70IZmbia-3HrQB_qZJxDXLDK4sV3asv-iJJizU0lp64pD0k5TM0q4kY3iVTlHxb7uXBHeTJS8cxPVutxbITYLFyFOTCmm3mQ",
|
|
20
20
|
articleId: 238,
|
|
21
21
|
category: 846,
|
|
22
22
|
version: 2,
|
|
23
23
|
productSelected: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
description_status: "NS",
|
|
28
|
-
images_status: "AP",
|
|
29
|
-
prio: "none",
|
|
30
|
-
version: 3,
|
|
31
|
-
brand: null,
|
|
24
|
+
articleStatus: "ACA",
|
|
25
|
+
version: 5,
|
|
26
|
+
missing: {},
|
|
32
27
|
article: {
|
|
33
|
-
category:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
id_category: "
|
|
38
|
-
id_article:
|
|
39
|
-
name:
|
|
40
|
-
upc: "
|
|
28
|
+
category:
|
|
29
|
+
"Materiales de Construcción|Impermeabilizantes y Recubrimientos|Selladores",
|
|
30
|
+
company_name: "SIKA MEXICANA S.A. DE C.V.",
|
|
31
|
+
company_id: 383,
|
|
32
|
+
id_category: "2249",
|
|
33
|
+
id_article: 29457,
|
|
34
|
+
name: "SIKA TECHO FRESCO SUPER 15",
|
|
35
|
+
upc: "111187",
|
|
41
36
|
},
|
|
37
|
+
asignations: [],
|
|
42
38
|
retailers: [
|
|
43
39
|
{
|
|
44
40
|
id: 58,
|
|
45
41
|
name: "The Home Depot Golden",
|
|
42
|
+
country: "México",
|
|
43
|
+
id_region: 1,
|
|
44
|
+
active: 1,
|
|
46
45
|
},
|
|
47
46
|
{
|
|
48
47
|
id: 59,
|
|
49
48
|
name: "The Home Depot Platinum",
|
|
49
|
+
country: "México",
|
|
50
|
+
id_region: 1,
|
|
51
|
+
active: 1,
|
|
50
52
|
},
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
statusByRetailer: {
|
|
58
|
-
59: {
|
|
59
|
-
images: "AP",
|
|
53
|
+
{
|
|
54
|
+
id: 61,
|
|
55
|
+
name: "Home Depot TAB",
|
|
56
|
+
country: "México",
|
|
57
|
+
id_region: 1,
|
|
58
|
+
active: 1,
|
|
60
59
|
},
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
checked: false,
|
|
64
|
-
id_article: 28099,
|
|
60
|
+
],
|
|
61
|
+
percentage: 33.35,
|
|
65
62
|
retailersAvailable: [
|
|
66
63
|
{
|
|
67
64
|
id: 58,
|
|
68
65
|
name: "The Home Depot Golden",
|
|
66
|
+
country: "México",
|
|
67
|
+
id_region: 1,
|
|
68
|
+
active: 1,
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
id: 59,
|
|
72
72
|
name: "The Home Depot Platinum",
|
|
73
|
+
country: "México",
|
|
74
|
+
id_region: 1,
|
|
75
|
+
active: 1,
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
id: 61,
|
|
79
|
+
name: "Home Depot TAB",
|
|
80
|
+
country: "México",
|
|
81
|
+
id_region: 1,
|
|
82
|
+
active: 1,
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
upc: "111187",
|
|
86
|
+
name: "SIKA TECHO FRESCO SUPER 15",
|
|
87
|
+
categoryName:
|
|
88
|
+
"Materiales de Construcción|Impermeabilizantes y Recubrimientos|Selladores",
|
|
89
|
+
id_category: "2249",
|
|
90
|
+
id_article: 29457,
|
|
91
|
+
services: [
|
|
92
|
+
{
|
|
93
|
+
id_article: 29457,
|
|
94
|
+
service: "datasheet",
|
|
95
|
+
quantity: 1,
|
|
96
|
+
price: 0,
|
|
97
|
+
id_user: 1237,
|
|
98
|
+
datasheet_common: null,
|
|
99
|
+
discount: null,
|
|
73
100
|
},
|
|
74
101
|
],
|
|
75
102
|
},
|
|
76
103
|
productToEdit: {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
product:
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
id_category: "2125",
|
|
94
|
-
id_article: 28099,
|
|
95
|
-
name: 'Espátula flexible, mango de madera, 6"',
|
|
96
|
-
upc: "90364",
|
|
97
|
-
},
|
|
98
|
-
retailers: [
|
|
99
|
-
{
|
|
100
|
-
id: 58,
|
|
101
|
-
name: "The Home Depot Golden",
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
id: 59,
|
|
105
|
-
name: "The Home Depot Platinum",
|
|
106
|
-
},
|
|
107
|
-
],
|
|
108
|
-
services: {
|
|
109
|
-
datasheets: 0,
|
|
110
|
-
descriptions: 0,
|
|
111
|
-
images: 1,
|
|
112
|
-
},
|
|
113
|
-
statusByRetailer: {
|
|
114
|
-
59: {
|
|
115
|
-
images: "AP",
|
|
104
|
+
idCategory: "2249",
|
|
105
|
+
ArticleId: 29457,
|
|
106
|
+
product: [
|
|
107
|
+
{
|
|
108
|
+
articleStatus: "ACA",
|
|
109
|
+
version: 5,
|
|
110
|
+
missing: {},
|
|
111
|
+
article: {
|
|
112
|
+
category:
|
|
113
|
+
"Materiales de Construcción|Impermeabilizantes y Recubrimientos|Selladores",
|
|
114
|
+
company_name: "SIKA MEXICANA S.A. DE C.V.",
|
|
115
|
+
company_id: 383,
|
|
116
|
+
id_category: "2249",
|
|
117
|
+
id_article: 29457,
|
|
118
|
+
name: "SIKA TECHO FRESCO SUPER 15",
|
|
119
|
+
upc: "111187",
|
|
116
120
|
},
|
|
121
|
+
asignations: [],
|
|
122
|
+
retailers: [
|
|
123
|
+
{
|
|
124
|
+
id: 58,
|
|
125
|
+
name: "The Home Depot Golden",
|
|
126
|
+
country: "México",
|
|
127
|
+
id_region: 1,
|
|
128
|
+
active: 1,
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
id: 59,
|
|
132
|
+
name: "The Home Depot Platinum",
|
|
133
|
+
country: "México",
|
|
134
|
+
id_region: 1,
|
|
135
|
+
active: 1,
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
id: 61,
|
|
139
|
+
name: "Home Depot TAB",
|
|
140
|
+
country: "México",
|
|
141
|
+
id_region: 1,
|
|
142
|
+
active: 1,
|
|
143
|
+
},
|
|
144
|
+
],
|
|
145
|
+
percentage: 33.35,
|
|
146
|
+
retailersAvailable: [
|
|
147
|
+
{
|
|
148
|
+
id: 58,
|
|
149
|
+
name: "The Home Depot Golden",
|
|
150
|
+
country: "México",
|
|
151
|
+
id_region: 1,
|
|
152
|
+
active: 1,
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
id: 59,
|
|
156
|
+
name: "The Home Depot Platinum",
|
|
157
|
+
country: "México",
|
|
158
|
+
id_region: 1,
|
|
159
|
+
active: 1,
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
id: 61,
|
|
163
|
+
name: "Home Depot TAB",
|
|
164
|
+
country: "México",
|
|
165
|
+
id_region: 1,
|
|
166
|
+
active: 1,
|
|
167
|
+
},
|
|
168
|
+
],
|
|
169
|
+
upc: "111187",
|
|
170
|
+
name: "SIKA TECHO FRESCO SUPER 15",
|
|
171
|
+
categoryName:
|
|
172
|
+
"Materiales de Construcción|Impermeabilizantes y Recubrimientos|Selladores",
|
|
173
|
+
id_category: "2249",
|
|
174
|
+
id_article: 29457,
|
|
175
|
+
services: [
|
|
176
|
+
{
|
|
177
|
+
id_article: 29457,
|
|
178
|
+
service: "datasheet",
|
|
179
|
+
quantity: 1,
|
|
180
|
+
price: 0,
|
|
181
|
+
id_user: 1237,
|
|
182
|
+
datasheet_common: null,
|
|
183
|
+
discount: null,
|
|
184
|
+
},
|
|
185
|
+
],
|
|
117
186
|
},
|
|
118
|
-
|
|
119
|
-
checked: false,
|
|
120
|
-
id_article: 28099,
|
|
121
|
-
retailersAvailable: [
|
|
122
|
-
{
|
|
123
|
-
id: 58,
|
|
124
|
-
name: "The Home Depot Golden",
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
id: 59,
|
|
128
|
-
name: "The Home Depot Platinum",
|
|
129
|
-
},
|
|
130
|
-
],
|
|
131
|
-
},
|
|
187
|
+
],
|
|
132
188
|
},
|
|
133
189
|
location: {
|
|
134
190
|
state: { origin: "Contentoh" },
|
|
@@ -164,7 +220,7 @@ ProviderProductEditionDefault.args = {
|
|
|
164
220
|
products_limit: "1000",
|
|
165
221
|
type: "Enterprise",
|
|
166
222
|
},
|
|
167
|
-
src: "https://content-management-profile-prod.s3.amazonaws.com/id-1237/1237.png?
|
|
223
|
+
src: "https://content-management-profile-prod.s3.amazonaws.com/id-1237/1237.png?1660064505178",
|
|
168
224
|
},
|
|
169
225
|
company: {
|
|
170
226
|
id_company: 817,
|
|
@@ -348,7 +348,8 @@ export const ProviderProductEdition = ({
|
|
|
348
348
|
loadData();
|
|
349
349
|
getCart();
|
|
350
350
|
fetchUsers(token).then((res) => setUserGroups(res));
|
|
351
|
-
|
|
351
|
+
setImages({ action: "orderImages", retailerId: activeRetailer.id });
|
|
352
|
+
}, [product, version]);
|
|
352
353
|
|
|
353
354
|
const loadAssignations = (currentProduct) => {
|
|
354
355
|
setAssig(product?.asignations);
|
|
@@ -305,6 +305,7 @@ export const RetailerProductEdition = ({
|
|
|
305
305
|
break;
|
|
306
306
|
}
|
|
307
307
|
setStatusArray(arr);
|
|
308
|
+
setImages({ action: "orderImages", retailerId: activeRetailer.id });
|
|
308
309
|
}, [product, version]);
|
|
309
310
|
|
|
310
311
|
const loadAssignations = (currentProduct) => {
|
|
@@ -640,8 +641,9 @@ export const RetailerProductEdition = ({
|
|
|
640
641
|
return (
|
|
641
642
|
statusArray.includes(srvActive) &&
|
|
642
643
|
(["RA", "RC"].includes(product?.status) ||
|
|
643
|
-
srv.filter((serv) =>
|
|
644
|
-
|
|
644
|
+
srv.filter((serv) =>
|
|
645
|
+
statusArray.includes(serv.status?.replace(/.*\//, ""))
|
|
646
|
+
).length === srv.length)
|
|
645
647
|
);
|
|
646
648
|
case 4:
|
|
647
649
|
case 5:
|