contentoh-components-library 21.5.89 → 21.5.90
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/RetailerProductEdition/RetailerProductEdition.stories.js +127 -196
- package/dist/components/pages/RetailerProductEdition/index.js +9 -9
- package/package.json +1 -1
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +131 -207
- package/src/components/pages/RetailerProductEdition/index.js +12 -8
|
@@ -33,102 +33,52 @@ RetailerProductEditionDefault.args = {
|
|
|
33
33
|
},
|
|
34
34
|
token: "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI4ZDAxMDIxNC01YmZhLTQzYzMtOTZmYi1jNTU2ZGMwNTc3NGIiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwiY29nbml0bzp1c2VybmFtZSI6IjhkMDEwMjE0LTViZmEtNDNjMy05NmZiLWM1NTZkYzA1Nzc0YiIsImF1ZCI6IjUyZDlza2tkY2c4cWpwODhvb2sxdXNlNm1rIiwiZXZlbnRfaWQiOiI1MDgwMTVmMy1mZGVkLTQ2ODUtYTIxNy1mYzgyMTg0ZWRmNGMiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTc2ODI1MzE3NywibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTc2ODI1Njc3NywiaWF0IjoxNzY4MjUzMTc3LCJlbWFpbCI6ImthcmFmZTMyMThAbW9tMmtpZC5jb20ifQ.QiZiscuTvrur0g328Zmh2bI-kZyg7YO_T5jT63096JNuSxGnX9wpK87cVTV1dED4ruD-2NMsgLShUIMcklAg17FL6i5_vCuB1dSIDY0LaybvSpriFJaVVdMUIMGFi_1Q7bI9qqyXYkevcf-HO33vVPdU-_-4-u8YRd-QganUk35vPYPh9vFJWbC0Qtvv25ZR4L2xuRIXx4e7StlTvZXysnYL8A84jkK1zn6d77V-9GqQQW8exO6sBW7R6cGt55vnF80NIfG_9lAqCK0PcZH4o50aqrAVhtfV5edlEmXBHeGK5R3Sz5iTeKb51QF3TWVFZCYGvQJ7FShulUWHcm3X2Q",
|
|
35
35
|
productSelected: {
|
|
36
|
-
"
|
|
36
|
+
"orderId": 10458,
|
|
37
|
+
"status": "RA",
|
|
38
|
+
"datasheet_status": "AA",
|
|
39
|
+
"prio": "none",
|
|
40
|
+
"version": 3,
|
|
41
|
+
"description_status": "RA",
|
|
42
|
+
"images_status": "RA",
|
|
43
|
+
"brand": "Generico",
|
|
44
|
+
"retailerOrder": 0,
|
|
45
|
+
"missing": {
|
|
46
|
+
"datasheet": null,
|
|
47
|
+
"descriptions": null,
|
|
48
|
+
"images": null
|
|
49
|
+
},
|
|
37
50
|
"services": {
|
|
38
51
|
"datasheets": 1,
|
|
39
52
|
"descriptions": 1,
|
|
40
|
-
"images":
|
|
53
|
+
"images": 1
|
|
41
54
|
},
|
|
42
|
-
"orderId": 10457,
|
|
43
|
-
"city": "CDMX, México",
|
|
44
|
-
"status": "AS",
|
|
45
|
-
"datasheet_status": "AS",
|
|
46
|
-
"prio": "none",
|
|
47
|
-
"version": 3,
|
|
48
|
-
"description_status": "AS",
|
|
49
|
-
"images_status": "NS",
|
|
50
|
-
"statusByRetailer": [{
|
|
51
|
-
"status": "AS",
|
|
52
|
-
"service": "datasheet",
|
|
53
|
-
"retailer_id": 9,
|
|
54
|
-
"task_user_group_id": 2
|
|
55
|
-
}, {
|
|
56
|
-
"status": "AS",
|
|
57
|
-
"service": "description",
|
|
58
|
-
"retailer_id": 9,
|
|
59
|
-
"task_user_group_id": 2
|
|
60
|
-
}, {
|
|
61
|
-
"status": "AS",
|
|
62
|
-
"service": "datasheet",
|
|
63
|
-
"retailer_id": 19,
|
|
64
|
-
"task_user_group_id": 2
|
|
65
|
-
}, {
|
|
66
|
-
"status": "AS",
|
|
67
|
-
"service": "description",
|
|
68
|
-
"retailer_id": 19,
|
|
69
|
-
"task_user_group_id": 2
|
|
70
|
-
}, {
|
|
71
|
-
"status": "AS",
|
|
72
|
-
"service": "datasheet",
|
|
73
|
-
"retailer_id": 24,
|
|
74
|
-
"task_user_group_id": 2
|
|
75
|
-
}, {
|
|
76
|
-
"status": "AS",
|
|
77
|
-
"service": "description",
|
|
78
|
-
"retailer_id": 24,
|
|
79
|
-
"task_user_group_id": 2
|
|
80
|
-
}, {
|
|
81
|
-
"status": "AS",
|
|
82
|
-
"service": "datasheet",
|
|
83
|
-
"retailer_id": 1011,
|
|
84
|
-
"task_user_group_id": 2
|
|
85
|
-
}, {
|
|
86
|
-
"status": "AS",
|
|
87
|
-
"service": "description",
|
|
88
|
-
"retailer_id": 1011,
|
|
89
|
-
"task_user_group_id": 2
|
|
90
|
-
}],
|
|
91
55
|
"article": {
|
|
92
|
-
"
|
|
93
|
-
"id_category": "10001",
|
|
94
|
-
"brand": null,
|
|
95
|
-
"name": "Serna Status Bug 4",
|
|
96
|
-
"upc": "14615181351",
|
|
97
|
-
"sku": "156845131",
|
|
98
|
-
"timestamp": "2026-05-05T15:08:54.000Z",
|
|
99
|
-
"active": 1,
|
|
100
|
-
"company_id": 291,
|
|
56
|
+
"category": "Bebé|Actividad y Entretenimiento|Actividad y Entretenimiento",
|
|
101
57
|
"company_name": "LATAM LOGISTICS",
|
|
102
58
|
"country": "México",
|
|
103
|
-
"
|
|
59
|
+
"id_category": "6186",
|
|
104
60
|
"id_datasheet_especialist": 426,
|
|
105
61
|
"id_datasheet_facilitator": null,
|
|
106
62
|
"id_description_especialist": 426,
|
|
107
63
|
"id_description_facilitator": null,
|
|
108
|
-
"id_images_especialist":
|
|
64
|
+
"id_images_especialist": 427,
|
|
109
65
|
"id_images_facilitator": null,
|
|
66
|
+
"id_order": 10458,
|
|
67
|
+
"id_article": 145207,
|
|
110
68
|
"id_auditor": 425,
|
|
111
|
-
"
|
|
112
|
-
"
|
|
69
|
+
"name": "Serna Status Bug 5",
|
|
70
|
+
"timestamp": "2026-05-07T15:00:25.000Z",
|
|
71
|
+
"upc": "897654352",
|
|
72
|
+
"sku": "764535242",
|
|
113
73
|
"categoryRetailer": [{
|
|
114
|
-
"id_category":
|
|
115
|
-
"id_retailer":
|
|
116
|
-
"category_name": "Bebés
|
|
117
|
-
"retailer_name": "
|
|
118
|
-
}, {
|
|
119
|
-
"id_category": 3579,
|
|
120
|
-
"id_retailer": 1011,
|
|
121
|
-
"category_name": "Categoría Genérica Farmatodo|Categoría Genérica|Categoría Genérica",
|
|
122
|
-
"retailer_name": "Farmatodo"
|
|
123
|
-
}, {
|
|
124
|
-
"id_category": 6795,
|
|
125
|
-
"id_retailer": 19,
|
|
126
|
-
"category_name": "Categoría Generica Costco|Categoría Generica|Categoría Generica",
|
|
127
|
-
"retailer_name": "Costco"
|
|
74
|
+
"id_category": 4010,
|
|
75
|
+
"id_retailer": 70,
|
|
76
|
+
"category_name": "Accesorios de Bebés|Cuarto del Bebé Niño|Cuarto del Bebé Niño",
|
|
77
|
+
"retailer_name": "Bodega Aurrera"
|
|
128
78
|
}, {
|
|
129
|
-
"id_category":
|
|
79
|
+
"id_category": 6186,
|
|
130
80
|
"id_retailer": 9,
|
|
131
|
-
"category_name": "
|
|
81
|
+
"category_name": "Bebé|Actividad y Entretenimiento|Actividad y Entretenimiento",
|
|
132
82
|
"retailer_name": "Amazon"
|
|
133
83
|
}]
|
|
134
84
|
},
|
|
@@ -136,17 +86,34 @@ RetailerProductEditionDefault.args = {
|
|
|
136
86
|
"id": 9,
|
|
137
87
|
"name": "Amazon"
|
|
138
88
|
}, {
|
|
139
|
-
"id":
|
|
140
|
-
"name": "
|
|
89
|
+
"id": 70,
|
|
90
|
+
"name": "Bodega Aurrera"
|
|
91
|
+
}],
|
|
92
|
+
"statusByRetailer": [{
|
|
93
|
+
"status": "AA",
|
|
94
|
+
"service": "datasheet",
|
|
95
|
+
"retailer_id": 9
|
|
96
|
+
}, {
|
|
97
|
+
"status": "AA",
|
|
98
|
+
"service": "description",
|
|
99
|
+
"retailer_id": 9
|
|
141
100
|
}, {
|
|
142
|
-
"
|
|
143
|
-
"
|
|
101
|
+
"status": "RA/AS",
|
|
102
|
+
"service": "images",
|
|
103
|
+
"retailer_id": 9
|
|
144
104
|
}, {
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
105
|
+
"status": "AP",
|
|
106
|
+
"service": "datasheet",
|
|
107
|
+
"retailer_id": 70
|
|
108
|
+
}, {
|
|
109
|
+
"status": "RA/AS",
|
|
110
|
+
"service": "description",
|
|
111
|
+
"retailer_id": 70
|
|
112
|
+
}, {
|
|
113
|
+
"status": "AP",
|
|
114
|
+
"service": "images",
|
|
115
|
+
"retailer_id": 70
|
|
116
|
+
}]
|
|
150
117
|
},
|
|
151
118
|
// location: {
|
|
152
119
|
// product: { articleId: 126855, versionId: 3 },
|
|
@@ -156,78 +123,41 @@ RetailerProductEditionDefault.args = {
|
|
|
156
123
|
// },
|
|
157
124
|
// },
|
|
158
125
|
// EDICION IMAGENES
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
//
|
|
194
|
-
//TEXTOS
|
|
195
|
-
// user: {
|
|
196
|
-
// "id_user": 442,
|
|
197
|
-
// "name": "Especialista",
|
|
198
|
-
// "last_name": "Textos",
|
|
199
|
-
// "email": "especialistatextosdev@allfreemail.net",
|
|
200
|
-
// "position": "Especialista de Imágenes",
|
|
201
|
-
// "telephone": null,
|
|
202
|
-
// "country": null,
|
|
203
|
-
// "id_company": 2,
|
|
204
|
-
// "id_role": 7,
|
|
205
|
-
// "about_me": null,
|
|
206
|
-
// "address": null,
|
|
207
|
-
// "job": null,
|
|
208
|
-
// "id_stripe": null,
|
|
209
|
-
// "active": 1,
|
|
210
|
-
// "email_notify": 1,
|
|
211
|
-
// "id_cognito": "39a90309-81cd-48df-86fb-b22c4a0e0559",
|
|
212
|
-
// "birth_Date": null,
|
|
213
|
-
// "zip_code": null,
|
|
214
|
-
// "is_retailer": 0,
|
|
215
|
-
// "is_onboarding": 0,
|
|
216
|
-
// "is_user_tech": null,
|
|
217
|
-
// "profile_picture_ext": null,
|
|
218
|
-
// "membership": {
|
|
219
|
-
// "id": 2,
|
|
220
|
-
// "start_date": "2021-11-05T02:35:12.000Z",
|
|
221
|
-
// "end_date": "2022-11-05T02:34:49.000Z",
|
|
222
|
-
// "planID": 1,
|
|
223
|
-
// "plan": "prod_KtkvuFFLpOdP6e",
|
|
224
|
-
// "name": "Plan Free",
|
|
225
|
-
// "user_limit": "1",
|
|
226
|
-
// "products_limit": "3",
|
|
227
|
-
// "type": "PyMES"
|
|
228
|
-
// },
|
|
229
|
-
// "src": "https://content-management-profile.s3.amazonaws.com/id-442/442.png?1760636567736"
|
|
230
|
-
// },
|
|
126
|
+
user: {
|
|
127
|
+
"id_user": 427,
|
|
128
|
+
"name": "Especialista Edición",
|
|
129
|
+
"last_name": null,
|
|
130
|
+
"email": "kikije1467@mtlcz.com",
|
|
131
|
+
"position": "Tester",
|
|
132
|
+
"telephone": null,
|
|
133
|
+
"country": null,
|
|
134
|
+
"id_company": 254,
|
|
135
|
+
"id_cognito": "c7e5a6a4-2b3f-4d54-af98-9e09a4cbc01e",
|
|
136
|
+
"birth_Date": null,
|
|
137
|
+
"about_me": null,
|
|
138
|
+
"zip_code": null,
|
|
139
|
+
"address": null,
|
|
140
|
+
"job": null,
|
|
141
|
+
"id_stripe": null,
|
|
142
|
+
"id_role": 8,
|
|
143
|
+
"active": 1,
|
|
144
|
+
"is_retailer": 0,
|
|
145
|
+
"email_notify": null,
|
|
146
|
+
"is_user_tech": null,
|
|
147
|
+
"is_onboarding": 0,
|
|
148
|
+
"membership": {
|
|
149
|
+
"id": 750,
|
|
150
|
+
"start_date": "2022-01-07T21:32:54.000Z",
|
|
151
|
+
"end_date": "2023-01-07T21:32:54.000Z",
|
|
152
|
+
"planID": 6,
|
|
153
|
+
"plan": "prod_KvGd6YSTJyR3AP",
|
|
154
|
+
"name": "Plan Small",
|
|
155
|
+
"user_limit": "10",
|
|
156
|
+
"products_limit": "1000",
|
|
157
|
+
"type": "Enterprise"
|
|
158
|
+
},
|
|
159
|
+
"src": "https://content-management-profile-prod.s3.amazonaws.com/id-427/427.png?1775592220312"
|
|
160
|
+
} //TEXTOS
|
|
231
161
|
// user: {
|
|
232
162
|
// id_user: 426,
|
|
233
163
|
// name: "Especialista Textos",
|
|
@@ -264,39 +194,40 @@ RetailerProductEditionDefault.args = {
|
|
|
264
194
|
// src: "https://content-management-profile-prod.s3.amazonaws.com/id-426/426.png?1768253179478",
|
|
265
195
|
// },
|
|
266
196
|
// AUDITORES
|
|
267
|
-
user: {
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
}
|
|
197
|
+
// user: {
|
|
198
|
+
// "id_user": 423,
|
|
199
|
+
// "name": "Facilitador Textos",
|
|
200
|
+
// "last_name": null,
|
|
201
|
+
// "email": "bayadi1538@mnqlm.com",
|
|
202
|
+
// "position": "Tester",
|
|
203
|
+
// "telephone": null,
|
|
204
|
+
// "country": null,
|
|
205
|
+
// "id_company": 254,
|
|
206
|
+
// "id_cognito": "0b66a4a9-7790-4034-a30a-c00808962867",
|
|
207
|
+
// "birth_Date": null,
|
|
208
|
+
// "about_me": null,
|
|
209
|
+
// "zip_code": null,
|
|
210
|
+
// "address": null,
|
|
211
|
+
// "job": null,
|
|
212
|
+
// "id_stripe": null,
|
|
213
|
+
// "id_role": 4,
|
|
214
|
+
// "active": 1,
|
|
215
|
+
// "is_retailer": 0,
|
|
216
|
+
// "email_notify": null,
|
|
217
|
+
// "is_user_tech": null,
|
|
218
|
+
// "is_onboarding": 0,
|
|
219
|
+
// "membership": {
|
|
220
|
+
// "id": 750,
|
|
221
|
+
// "start_date": "2022-01-07T21:32:54.000Z",
|
|
222
|
+
// "end_date": "2023-01-07T21:32:54.000Z",
|
|
223
|
+
// "planID": 6,
|
|
224
|
+
// "plan": "prod_KvGd6YSTJyR3AP",
|
|
225
|
+
// "name": "Plan Small",
|
|
226
|
+
// "user_limit": "10",
|
|
227
|
+
// "products_limit": "1000",
|
|
228
|
+
// "type": "Enterprise"
|
|
229
|
+
// },
|
|
230
|
+
// "src": "https://content-management-profile-prod.s3.amazonaws.com/id-423/423.png?1778003423713"
|
|
231
|
+
// }
|
|
232
|
+
|
|
302
233
|
};
|
|
@@ -1490,7 +1490,7 @@ var RetailerProductEditionView = function RetailerProductEditionView(_ref) {
|
|
|
1490
1490
|
var servicesByTab = servicesData === null || servicesData === void 0 ? void 0 : servicesData.filter(function (serv) {
|
|
1491
1491
|
return serv.service === concept;
|
|
1492
1492
|
});
|
|
1493
|
-
var
|
|
1493
|
+
var statusBySelectedRetailerService = servicesByTab === null || servicesByTab === void 0 ? void 0 : (_servicesByTab$find = servicesByTab.find(function (serv) {
|
|
1494
1494
|
return serv.id_retailer === (activeRetailer === null || activeRetailer === void 0 ? void 0 : activeRetailer.id_retailer);
|
|
1495
1495
|
})) === null || _servicesByTab$find === void 0 ? void 0 : (_servicesByTab$find$s = _servicesByTab$find.status) === null || _servicesByTab$find$s === void 0 ? void 0 : _servicesByTab$find$s.replace(/.*\//, "");
|
|
1496
1496
|
var currentProducStatus = product === null || product === void 0 ? void 0 : (_product$ = product["".concat(concept, "_status")]) === null || _product$ === void 0 ? void 0 : _product$.replace(/.*\//, "");
|
|
@@ -1501,14 +1501,14 @@ var RetailerProductEditionView = function RetailerProductEditionView(_ref) {
|
|
|
1501
1501
|
switch (id_rol) {
|
|
1502
1502
|
case 7:
|
|
1503
1503
|
case 8:
|
|
1504
|
-
var
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
return
|
|
1504
|
+
var canSendEvaluation = statusArray.includes(statusBySelectedRetailerService); // const conditionTwo = statusArray.includes(product?.status);
|
|
1505
|
+
// const conditionThree =
|
|
1506
|
+
// servicesByTab.filter((service) =>
|
|
1507
|
+
// statusArray.includes(service.status?.replace(/.*\//, "")),
|
|
1508
|
+
// ).length === servicesByTab.length;
|
|
1509
|
+
// return (canSendEvaluation && conditionTwo) || conditionThree;
|
|
1510
|
+
|
|
1511
|
+
return canSendEvaluation;
|
|
1512
1512
|
|
|
1513
1513
|
case 4:
|
|
1514
1514
|
case 5:
|
package/package.json
CHANGED
|
@@ -18,115 +18,54 @@ RetailerProductEditionDefault.args = {
|
|
|
18
18
|
token:
|
|
19
19
|
"eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI4ZDAxMDIxNC01YmZhLTQzYzMtOTZmYi1jNTU2ZGMwNTc3NGIiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwiY29nbml0bzp1c2VybmFtZSI6IjhkMDEwMjE0LTViZmEtNDNjMy05NmZiLWM1NTZkYzA1Nzc0YiIsImF1ZCI6IjUyZDlza2tkY2c4cWpwODhvb2sxdXNlNm1rIiwiZXZlbnRfaWQiOiI1MDgwMTVmMy1mZGVkLTQ2ODUtYTIxNy1mYzgyMTg0ZWRmNGMiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTc2ODI1MzE3NywibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTc2ODI1Njc3NywiaWF0IjoxNzY4MjUzMTc3LCJlbWFpbCI6ImthcmFmZTMyMThAbW9tMmtpZC5jb20ifQ.QiZiscuTvrur0g328Zmh2bI-kZyg7YO_T5jT63096JNuSxGnX9wpK87cVTV1dED4ruD-2NMsgLShUIMcklAg17FL6i5_vCuB1dSIDY0LaybvSpriFJaVVdMUIMGFi_1Q7bI9qqyXYkevcf-HO33vVPdU-_-4-u8YRd-QganUk35vPYPh9vFJWbC0Qtvv25ZR4L2xuRIXx4e7StlTvZXysnYL8A84jkK1zn6d77V-9GqQQW8exO6sBW7R6cGt55vnF80NIfG_9lAqCK0PcZH4o50aqrAVhtfV5edlEmXBHeGK5R3Sz5iTeKb51QF3TWVFZCYGvQJ7FShulUWHcm3X2Q",
|
|
20
20
|
productSelected: {
|
|
21
|
-
"
|
|
21
|
+
"orderId": 10458,
|
|
22
|
+
"status": "RA",
|
|
23
|
+
"datasheet_status": "AA",
|
|
24
|
+
"prio": "none",
|
|
25
|
+
"version": 3,
|
|
26
|
+
"description_status": "RA",
|
|
27
|
+
"images_status": "RA",
|
|
28
|
+
"brand": "Generico",
|
|
29
|
+
"retailerOrder": 0,
|
|
30
|
+
"missing": {
|
|
31
|
+
"datasheet": null,
|
|
32
|
+
"descriptions": null,
|
|
33
|
+
"images": null
|
|
34
|
+
},
|
|
22
35
|
"services": {
|
|
23
36
|
"datasheets": 1,
|
|
24
37
|
"descriptions": 1,
|
|
25
|
-
"images":
|
|
38
|
+
"images": 1
|
|
26
39
|
},
|
|
27
|
-
"orderId": 10457,
|
|
28
|
-
"city": "CDMX, México",
|
|
29
|
-
"status": "AS",
|
|
30
|
-
"datasheet_status": "AS",
|
|
31
|
-
"prio": "none",
|
|
32
|
-
"version": 3,
|
|
33
|
-
"description_status": "AS",
|
|
34
|
-
"images_status": "NS",
|
|
35
|
-
"statusByRetailer": [
|
|
36
|
-
{
|
|
37
|
-
"status": "AS",
|
|
38
|
-
"service": "datasheet",
|
|
39
|
-
"retailer_id": 9,
|
|
40
|
-
"task_user_group_id": 2
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"status": "AS",
|
|
44
|
-
"service": "description",
|
|
45
|
-
"retailer_id": 9,
|
|
46
|
-
"task_user_group_id": 2
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"status": "AS",
|
|
50
|
-
"service": "datasheet",
|
|
51
|
-
"retailer_id": 19,
|
|
52
|
-
"task_user_group_id": 2
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"status": "AS",
|
|
56
|
-
"service": "description",
|
|
57
|
-
"retailer_id": 19,
|
|
58
|
-
"task_user_group_id": 2
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"status": "AS",
|
|
62
|
-
"service": "datasheet",
|
|
63
|
-
"retailer_id": 24,
|
|
64
|
-
"task_user_group_id": 2
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"status": "AS",
|
|
68
|
-
"service": "description",
|
|
69
|
-
"retailer_id": 24,
|
|
70
|
-
"task_user_group_id": 2
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"status": "AS",
|
|
74
|
-
"service": "datasheet",
|
|
75
|
-
"retailer_id": 1011,
|
|
76
|
-
"task_user_group_id": 2
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"status": "AS",
|
|
80
|
-
"service": "description",
|
|
81
|
-
"retailer_id": 1011,
|
|
82
|
-
"task_user_group_id": 2
|
|
83
|
-
}
|
|
84
|
-
],
|
|
85
40
|
"article": {
|
|
86
|
-
"
|
|
87
|
-
"id_category": "10001",
|
|
88
|
-
"brand": null,
|
|
89
|
-
"name": "Serna Status Bug 4",
|
|
90
|
-
"upc": "14615181351",
|
|
91
|
-
"sku": "156845131",
|
|
92
|
-
"timestamp": "2026-05-05T15:08:54.000Z",
|
|
93
|
-
"active": 1,
|
|
94
|
-
"company_id": 291,
|
|
41
|
+
"category": "Bebé|Actividad y Entretenimiento|Actividad y Entretenimiento",
|
|
95
42
|
"company_name": "LATAM LOGISTICS",
|
|
96
43
|
"country": "México",
|
|
97
|
-
"
|
|
44
|
+
"id_category": "6186",
|
|
98
45
|
"id_datasheet_especialist": 426,
|
|
99
46
|
"id_datasheet_facilitator": null,
|
|
100
47
|
"id_description_especialist": 426,
|
|
101
48
|
"id_description_facilitator": null,
|
|
102
|
-
"id_images_especialist":
|
|
49
|
+
"id_images_especialist": 427,
|
|
103
50
|
"id_images_facilitator": null,
|
|
51
|
+
"id_order": 10458,
|
|
52
|
+
"id_article": 145207,
|
|
104
53
|
"id_auditor": 425,
|
|
105
|
-
"
|
|
106
|
-
"
|
|
54
|
+
"name": "Serna Status Bug 5",
|
|
55
|
+
"timestamp": "2026-05-07T15:00:25.000Z",
|
|
56
|
+
"upc": "897654352",
|
|
57
|
+
"sku": "764535242",
|
|
107
58
|
"categoryRetailer": [
|
|
108
59
|
{
|
|
109
|
-
"id_category":
|
|
110
|
-
"id_retailer":
|
|
111
|
-
"category_name": "Bebés
|
|
112
|
-
"retailer_name": "
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"id_category": 3579,
|
|
116
|
-
"id_retailer": 1011,
|
|
117
|
-
"category_name": "Categoría Genérica Farmatodo|Categoría Genérica|Categoría Genérica",
|
|
118
|
-
"retailer_name": "Farmatodo"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"id_category": 6795,
|
|
122
|
-
"id_retailer": 19,
|
|
123
|
-
"category_name": "Categoría Generica Costco|Categoría Generica|Categoría Generica",
|
|
124
|
-
"retailer_name": "Costco"
|
|
60
|
+
"id_category": 4010,
|
|
61
|
+
"id_retailer": 70,
|
|
62
|
+
"category_name": "Accesorios de Bebés|Cuarto del Bebé Niño|Cuarto del Bebé Niño",
|
|
63
|
+
"retailer_name": "Bodega Aurrera"
|
|
125
64
|
},
|
|
126
65
|
{
|
|
127
|
-
"id_category":
|
|
66
|
+
"id_category": 6186,
|
|
128
67
|
"id_retailer": 9,
|
|
129
|
-
"category_name": "
|
|
68
|
+
"category_name": "Bebé|Actividad y Entretenimiento|Actividad y Entretenimiento",
|
|
130
69
|
"retailer_name": "Amazon"
|
|
131
70
|
}
|
|
132
71
|
]
|
|
@@ -137,20 +76,42 @@ RetailerProductEditionDefault.args = {
|
|
|
137
76
|
"name": "Amazon"
|
|
138
77
|
},
|
|
139
78
|
{
|
|
140
|
-
"id":
|
|
141
|
-
"name": "
|
|
79
|
+
"id": 70,
|
|
80
|
+
"name": "Bodega Aurrera"
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"statusByRetailer": [
|
|
84
|
+
{
|
|
85
|
+
"status": "AA",
|
|
86
|
+
"service": "datasheet",
|
|
87
|
+
"retailer_id": 9
|
|
142
88
|
},
|
|
143
89
|
{
|
|
144
|
-
"
|
|
145
|
-
"
|
|
90
|
+
"status": "AA",
|
|
91
|
+
"service": "description",
|
|
92
|
+
"retailer_id": 9
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"status": "RA/AS",
|
|
96
|
+
"service": "images",
|
|
97
|
+
"retailer_id": 9
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"status": "AP",
|
|
101
|
+
"service": "datasheet",
|
|
102
|
+
"retailer_id": 70
|
|
146
103
|
},
|
|
147
104
|
{
|
|
148
|
-
"
|
|
149
|
-
"
|
|
105
|
+
"status": "RA/AS",
|
|
106
|
+
"service": "description",
|
|
107
|
+
"retailer_id": 70
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"status": "AP",
|
|
111
|
+
"service": "images",
|
|
112
|
+
"retailer_id": 70
|
|
150
113
|
}
|
|
151
|
-
]
|
|
152
|
-
"country": "México",
|
|
153
|
-
"upc": "14615181351"
|
|
114
|
+
]
|
|
154
115
|
},
|
|
155
116
|
|
|
156
117
|
// location: {
|
|
@@ -163,81 +124,44 @@ RetailerProductEditionDefault.args = {
|
|
|
163
124
|
|
|
164
125
|
// EDICION IMAGENES
|
|
165
126
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
127
|
+
user: {
|
|
128
|
+
"id_user": 427,
|
|
129
|
+
"name": "Especialista Edición",
|
|
130
|
+
"last_name": null,
|
|
131
|
+
"email": "kikije1467@mtlcz.com",
|
|
132
|
+
"position": "Tester",
|
|
133
|
+
"telephone": null,
|
|
134
|
+
"country": null,
|
|
135
|
+
"id_company": 254,
|
|
136
|
+
"id_cognito": "c7e5a6a4-2b3f-4d54-af98-9e09a4cbc01e",
|
|
137
|
+
"birth_Date": null,
|
|
138
|
+
"about_me": null,
|
|
139
|
+
"zip_code": null,
|
|
140
|
+
"address": null,
|
|
141
|
+
"job": null,
|
|
142
|
+
"id_stripe": null,
|
|
143
|
+
"id_role": 8,
|
|
144
|
+
"active": 1,
|
|
145
|
+
"is_retailer": 0,
|
|
146
|
+
"email_notify": null,
|
|
147
|
+
"is_user_tech": null,
|
|
148
|
+
"is_onboarding": 0,
|
|
149
|
+
"membership": {
|
|
150
|
+
"id": 750,
|
|
151
|
+
"start_date": "2022-01-07T21:32:54.000Z",
|
|
152
|
+
"end_date": "2023-01-07T21:32:54.000Z",
|
|
153
|
+
"planID": 6,
|
|
154
|
+
"plan": "prod_KvGd6YSTJyR3AP",
|
|
155
|
+
"name": "Plan Small",
|
|
156
|
+
"user_limit": "10",
|
|
157
|
+
"products_limit": "1000",
|
|
158
|
+
"type": "Enterprise"
|
|
159
|
+
},
|
|
160
|
+
"src": "https://content-management-profile-prod.s3.amazonaws.com/id-427/427.png?1775592220312"
|
|
161
|
+
},
|
|
201
162
|
|
|
202
163
|
//TEXTOS
|
|
203
164
|
|
|
204
|
-
// user: {
|
|
205
|
-
// "id_user": 442,
|
|
206
|
-
// "name": "Especialista",
|
|
207
|
-
// "last_name": "Textos",
|
|
208
|
-
// "email": "especialistatextosdev@allfreemail.net",
|
|
209
|
-
// "position": "Especialista de Imágenes",
|
|
210
|
-
// "telephone": null,
|
|
211
|
-
// "country": null,
|
|
212
|
-
// "id_company": 2,
|
|
213
|
-
// "id_role": 7,
|
|
214
|
-
// "about_me": null,
|
|
215
|
-
// "address": null,
|
|
216
|
-
// "job": null,
|
|
217
|
-
// "id_stripe": null,
|
|
218
|
-
// "active": 1,
|
|
219
|
-
// "email_notify": 1,
|
|
220
|
-
// "id_cognito": "39a90309-81cd-48df-86fb-b22c4a0e0559",
|
|
221
|
-
// "birth_Date": null,
|
|
222
|
-
// "zip_code": null,
|
|
223
|
-
// "is_retailer": 0,
|
|
224
|
-
// "is_onboarding": 0,
|
|
225
|
-
// "is_user_tech": null,
|
|
226
|
-
// "profile_picture_ext": null,
|
|
227
|
-
// "membership": {
|
|
228
|
-
// "id": 2,
|
|
229
|
-
// "start_date": "2021-11-05T02:35:12.000Z",
|
|
230
|
-
// "end_date": "2022-11-05T02:34:49.000Z",
|
|
231
|
-
// "planID": 1,
|
|
232
|
-
// "plan": "prod_KtkvuFFLpOdP6e",
|
|
233
|
-
// "name": "Plan Free",
|
|
234
|
-
// "user_limit": "1",
|
|
235
|
-
// "products_limit": "3",
|
|
236
|
-
// "type": "PyMES"
|
|
237
|
-
// },
|
|
238
|
-
// "src": "https://content-management-profile.s3.amazonaws.com/id-442/442.png?1760636567736"
|
|
239
|
-
// },
|
|
240
|
-
|
|
241
165
|
// user: {
|
|
242
166
|
// id_user: 426,
|
|
243
167
|
// name: "Especialista Textos",
|
|
@@ -276,40 +200,40 @@ RetailerProductEditionDefault.args = {
|
|
|
276
200
|
|
|
277
201
|
// AUDITORES
|
|
278
202
|
|
|
279
|
-
user: {
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
}
|
|
203
|
+
// user: {
|
|
204
|
+
// "id_user": 423,
|
|
205
|
+
// "name": "Facilitador Textos",
|
|
206
|
+
// "last_name": null,
|
|
207
|
+
// "email": "bayadi1538@mnqlm.com",
|
|
208
|
+
// "position": "Tester",
|
|
209
|
+
// "telephone": null,
|
|
210
|
+
// "country": null,
|
|
211
|
+
// "id_company": 254,
|
|
212
|
+
// "id_cognito": "0b66a4a9-7790-4034-a30a-c00808962867",
|
|
213
|
+
// "birth_Date": null,
|
|
214
|
+
// "about_me": null,
|
|
215
|
+
// "zip_code": null,
|
|
216
|
+
// "address": null,
|
|
217
|
+
// "job": null,
|
|
218
|
+
// "id_stripe": null,
|
|
219
|
+
// "id_role": 4,
|
|
220
|
+
// "active": 1,
|
|
221
|
+
// "is_retailer": 0,
|
|
222
|
+
// "email_notify": null,
|
|
223
|
+
// "is_user_tech": null,
|
|
224
|
+
// "is_onboarding": 0,
|
|
225
|
+
// "membership": {
|
|
226
|
+
// "id": 750,
|
|
227
|
+
// "start_date": "2022-01-07T21:32:54.000Z",
|
|
228
|
+
// "end_date": "2023-01-07T21:32:54.000Z",
|
|
229
|
+
// "planID": 6,
|
|
230
|
+
// "plan": "prod_KvGd6YSTJyR3AP",
|
|
231
|
+
// "name": "Plan Small",
|
|
232
|
+
// "user_limit": "10",
|
|
233
|
+
// "products_limit": "1000",
|
|
234
|
+
// "type": "Enterprise"
|
|
235
|
+
// },
|
|
236
|
+
// "src": "https://content-management-profile-prod.s3.amazonaws.com/id-423/423.png?1778003423713"
|
|
237
|
+
// }
|
|
314
238
|
|
|
315
239
|
};
|
|
@@ -1097,7 +1097,7 @@ const RetailerProductEditionView = ({
|
|
|
1097
1097
|
(serv) => serv.service === concept,
|
|
1098
1098
|
);
|
|
1099
1099
|
|
|
1100
|
-
const
|
|
1100
|
+
const statusBySelectedRetailerService = servicesByTab
|
|
1101
1101
|
?.find((serv) => serv.id_retailer === activeRetailer?.id_retailer)
|
|
1102
1102
|
?.status?.replace(/.*\//, "");
|
|
1103
1103
|
|
|
@@ -1116,14 +1116,18 @@ const RetailerProductEditionView = ({
|
|
|
1116
1116
|
case 7:
|
|
1117
1117
|
case 8:
|
|
1118
1118
|
|
|
1119
|
-
const
|
|
1120
|
-
const conditionTwo = statusArray.includes(product?.status);
|
|
1121
|
-
const conditionThree =
|
|
1122
|
-
servicesByTab.filter((service) =>
|
|
1123
|
-
statusArray.includes(service.status?.replace(/.*\//, "")),
|
|
1124
|
-
).length === servicesByTab.length;
|
|
1119
|
+
const canSendEvaluation = statusArray.includes(statusBySelectedRetailerService);
|
|
1125
1120
|
|
|
1126
|
-
|
|
1121
|
+
// const conditionTwo = statusArray.includes(product?.status);
|
|
1122
|
+
|
|
1123
|
+
// const conditionThree =
|
|
1124
|
+
// servicesByTab.filter((service) =>
|
|
1125
|
+
// statusArray.includes(service.status?.replace(/.*\//, "")),
|
|
1126
|
+
// ).length === servicesByTab.length;
|
|
1127
|
+
|
|
1128
|
+
// return (canSendEvaluation && conditionTwo) || conditionThree;
|
|
1129
|
+
|
|
1130
|
+
return canSendEvaluation;
|
|
1127
1131
|
|
|
1128
1132
|
case 4:
|
|
1129
1133
|
case 5:
|