contentoh-components-library 21.3.42 → 21.3.43
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/organisms/DashboardMetric/dashboardMetricUtils.js +27 -0
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +37 -37
- package/dist/components/pages/ProviderProductEdition/index.js +7 -7
- package/package.json +1 -1
- package/src/components/organisms/DashboardMetric/dashboardMetricUtils.js +18 -1
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +37 -37
- package/src/components/pages/ProviderProductEdition/index.js +2 -2
|
@@ -56,6 +56,21 @@ var getFullStatus = function getFullStatus(status) {
|
|
|
56
56
|
|
|
57
57
|
case "NS":
|
|
58
58
|
return "No solicitado";
|
|
59
|
+
|
|
60
|
+
case "SAC":
|
|
61
|
+
return "Solicitud Auditoría Content-oh!";
|
|
62
|
+
|
|
63
|
+
case "AAC":
|
|
64
|
+
return "Aprobado Auditoría Content-oh!";
|
|
65
|
+
|
|
66
|
+
case "RAC":
|
|
67
|
+
return "Rechazado Auditoría Content-oh!";
|
|
68
|
+
|
|
69
|
+
case "FAP":
|
|
70
|
+
return "Finalización Auditoría por Proveedor";
|
|
71
|
+
|
|
72
|
+
default:
|
|
73
|
+
return "";
|
|
59
74
|
}
|
|
60
75
|
};
|
|
61
76
|
|
|
@@ -113,6 +128,18 @@ var getStatusColor = function getStatusColor(status) {
|
|
|
113
128
|
case "Ex":
|
|
114
129
|
return "#09CAD8";
|
|
115
130
|
|
|
131
|
+
case "SAC":
|
|
132
|
+
return "#2471A3";
|
|
133
|
+
|
|
134
|
+
case "AAC":
|
|
135
|
+
return "#1ABC9C";
|
|
136
|
+
|
|
137
|
+
case "RAC":
|
|
138
|
+
return "#229954";
|
|
139
|
+
|
|
140
|
+
case "FAP":
|
|
141
|
+
return "#F1C40F";
|
|
142
|
+
|
|
116
143
|
default:
|
|
117
144
|
return "white";
|
|
118
145
|
}
|
|
@@ -31,35 +31,35 @@ ProviderProductEditionDefault.args = {
|
|
|
31
31
|
"Ficha técnica": false,
|
|
32
32
|
Imágenes: false
|
|
33
33
|
},
|
|
34
|
-
token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
34
|
+
token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI1ODg0YWUzNC01OWQ2LTQ0NTQtYjk4ZS04MjE1MThiY2MzYTciLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6IjU4ODRhZTM0LTU5ZDYtNDQ1NC1iOThlLTgyMTUxOGJjYzNhNyIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiJjOWRjOWE1OS0xNTAxLTQyOTgtODRjMi03MDM4NzRhNzIxMTEiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4MjQ2Mjc4NCwibmFtZSI6IkNhZGVuYSBJc21hZWwiLCJwaG9uZV9udW1iZXIiOiIrNTIzMTExMzY2MzM2IiwiZXhwIjoxNjgyNDY2Mzg0LCJpYXQiOjE2ODI0NjI3ODQsImVtYWlsIjoiY2FkZW5hLmlzbWFlbEBhbGxmcmVlbWFpbC5uZXQifQ.ebKSsnTxKoNfWDoKGFJRlLWgNulGj4KrDe0EgsqLEIVx3Qu0lgmg43UY5tZ3FUlRE8XO2UGq0XxEgdbGOe_4nbTRYigdvxP3bh3cPQ0s68hlTDfhPRvxVJYlaO4s0rhk9rt_VVteTyLfhPHFCymrkFYYDB8bVvKnxUUCX_nJvqGQkl48JiYgvYVLpuus5FvRkGwi1u-jTtMoKiUK-jw9MxI18hD0FWXVnJr-q9ftf2d0bv4JRv4XJ_tRh1N6jps5n3c_KKZswqRfGLU-8MS2X3DU6pDqEP2BZAGXksiFYXYH_uHE6BKJAl7EEhkDTqZsx_jWtVSXTdDg_QDKrOw0Kg",
|
|
35
35
|
articleId: 238,
|
|
36
36
|
category: 846,
|
|
37
37
|
version: 2,
|
|
38
38
|
productSelected: {
|
|
39
|
-
orderId:
|
|
40
|
-
article_status: "
|
|
41
|
-
datasheet_status: "
|
|
42
|
-
description_status: "
|
|
43
|
-
images_status: "
|
|
39
|
+
orderId: 15165,
|
|
40
|
+
article_status: "AAC",
|
|
41
|
+
datasheet_status: "AAC",
|
|
42
|
+
description_status: "FAP",
|
|
43
|
+
images_status: "FAP",
|
|
44
44
|
prio: "none",
|
|
45
|
-
version:
|
|
45
|
+
version: 3,
|
|
46
46
|
brand: null,
|
|
47
47
|
article: {
|
|
48
48
|
category: "Puertas y Ventanas|Molduras|Molduras Madera Blanda",
|
|
49
49
|
company_name: "Demo",
|
|
50
|
-
id_company:
|
|
50
|
+
id_company: 923,
|
|
51
51
|
country: "México",
|
|
52
52
|
id_category: "2366",
|
|
53
|
-
id_article:
|
|
54
|
-
name: "
|
|
55
|
-
upc: "
|
|
53
|
+
id_article: 39336,
|
|
54
|
+
name: "Prueba Auditoria",
|
|
55
|
+
upc: "100030124"
|
|
56
56
|
},
|
|
57
57
|
retailers: [{
|
|
58
58
|
id: 58,
|
|
59
59
|
name: "The Home Depot Golden"
|
|
60
60
|
}, {
|
|
61
61
|
id: 68,
|
|
62
|
-
name: "The Home Depot
|
|
62
|
+
name: "The Home Depot Dropship"
|
|
63
63
|
}],
|
|
64
64
|
services: {
|
|
65
65
|
datasheets: 1,
|
|
@@ -68,49 +68,49 @@ ProviderProductEditionDefault.args = {
|
|
|
68
68
|
},
|
|
69
69
|
statusByRetailer: {
|
|
70
70
|
58: {
|
|
71
|
-
datasheet: "
|
|
72
|
-
description: "
|
|
73
|
-
images: "
|
|
71
|
+
datasheet: "AAC",
|
|
72
|
+
description: "FAP",
|
|
73
|
+
images: "FAP"
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
76
|
retailersWithService: ["58"],
|
|
77
|
-
id_article:
|
|
77
|
+
id_article: 39336,
|
|
78
78
|
retailersAvailable: [{
|
|
79
79
|
id: 58,
|
|
80
80
|
name: "The Home Depot Golden"
|
|
81
81
|
}, {
|
|
82
82
|
id: 68,
|
|
83
|
-
name: "The Home Depot
|
|
83
|
+
name: "The Home Depot Dropship"
|
|
84
84
|
}]
|
|
85
85
|
},
|
|
86
86
|
productToEdit: {
|
|
87
|
-
ArticleId:
|
|
87
|
+
ArticleId: 39336,
|
|
88
88
|
idCategory: "2366",
|
|
89
89
|
product: {
|
|
90
|
-
orderId:
|
|
91
|
-
article_status: "
|
|
92
|
-
datasheet_status: "
|
|
93
|
-
description_status: "
|
|
94
|
-
images_status: "
|
|
90
|
+
orderId: 15165,
|
|
91
|
+
article_status: "AAC",
|
|
92
|
+
datasheet_status: "AAC",
|
|
93
|
+
description_status: "FAP",
|
|
94
|
+
images_status: "FAP",
|
|
95
95
|
prio: "none",
|
|
96
|
-
version:
|
|
96
|
+
version: 3,
|
|
97
97
|
brand: null,
|
|
98
98
|
article: {
|
|
99
99
|
category: "Puertas y Ventanas|Molduras|Molduras Madera Blanda",
|
|
100
100
|
company_name: "Demo",
|
|
101
|
-
id_company:
|
|
101
|
+
id_company: 923,
|
|
102
102
|
country: "México",
|
|
103
103
|
id_category: "2366",
|
|
104
|
-
id_article:
|
|
105
|
-
name: "
|
|
106
|
-
upc: "
|
|
104
|
+
id_article: 39336,
|
|
105
|
+
name: "Prueba Auditoria",
|
|
106
|
+
upc: "100030124"
|
|
107
107
|
},
|
|
108
108
|
retailers: [{
|
|
109
109
|
id: 58,
|
|
110
110
|
name: "The Home Depot Golden"
|
|
111
111
|
}, {
|
|
112
112
|
id: 68,
|
|
113
|
-
name: "The Home Depot
|
|
113
|
+
name: "The Home Depot Dropship"
|
|
114
114
|
}],
|
|
115
115
|
services: {
|
|
116
116
|
datasheets: 1,
|
|
@@ -119,19 +119,19 @@ ProviderProductEditionDefault.args = {
|
|
|
119
119
|
},
|
|
120
120
|
statusByRetailer: {
|
|
121
121
|
58: {
|
|
122
|
-
datasheet: "
|
|
123
|
-
description: "
|
|
124
|
-
images: "
|
|
122
|
+
datasheet: "AAC",
|
|
123
|
+
description: "FAP",
|
|
124
|
+
images: "FAP"
|
|
125
125
|
}
|
|
126
126
|
},
|
|
127
127
|
retailersWithService: ["58"],
|
|
128
|
-
id_article:
|
|
128
|
+
id_article: 39336,
|
|
129
129
|
retailersAvailable: [{
|
|
130
130
|
id: 58,
|
|
131
131
|
name: "The Home Depot Golden"
|
|
132
132
|
}, {
|
|
133
133
|
id: 68,
|
|
134
|
-
name: "The Home Depot
|
|
134
|
+
name: "The Home Depot Dropship"
|
|
135
135
|
}]
|
|
136
136
|
}
|
|
137
137
|
},
|
|
@@ -176,7 +176,7 @@ ProviderProductEditionDefault.args = {
|
|
|
176
176
|
products_limit: "500",
|
|
177
177
|
type: "PyMES"
|
|
178
178
|
},
|
|
179
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?
|
|
179
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1682462786497"
|
|
180
180
|
},
|
|
181
181
|
company: {
|
|
182
182
|
id_company: 817,
|
|
@@ -193,7 +193,7 @@ ProviderProductEditionDefault.args = {
|
|
|
193
193
|
is_retailer: 1,
|
|
194
194
|
financedRetailers: [{
|
|
195
195
|
id: 68,
|
|
196
|
-
name: "The Home Depot
|
|
196
|
+
name: "The Home Depot Dropship",
|
|
197
197
|
country: "México",
|
|
198
198
|
id_region: 1,
|
|
199
199
|
active: 1
|
|
@@ -212,7 +212,7 @@ ProviderProductEditionDefault.args = {
|
|
|
212
212
|
country: "México"
|
|
213
213
|
}, {
|
|
214
214
|
id: 68,
|
|
215
|
-
name: "The Home Depot
|
|
215
|
+
name: "The Home Depot Dropship",
|
|
216
216
|
country: "México"
|
|
217
217
|
}, {
|
|
218
218
|
id: 58,
|
|
@@ -624,7 +624,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
624
624
|
var _ref5 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
|
625
625
|
var _productTemp$id_order;
|
|
626
626
|
|
|
627
|
-
var productTemp, articleId, orderId,
|
|
627
|
+
var productTemp, articleId, orderId, promises, conceptArray;
|
|
628
628
|
return _regenerator.default.wrap(function _callee4$(_context4) {
|
|
629
629
|
while (1) {
|
|
630
630
|
switch (_context4.prev = _context4.next) {
|
|
@@ -632,11 +632,11 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
632
632
|
productTemp = product;
|
|
633
633
|
articleId = productTemp.id_article;
|
|
634
634
|
orderId = (_productTemp$id_order = productTemp.id_order) !== null && _productTemp$id_order !== void 0 ? _productTemp$id_order : productTemp.orderId;
|
|
635
|
-
sectionStatusKey = "".concat(getConcept(activeTab), "_status");
|
|
636
|
-
evalStatus = product[sectionStatusKey] || (product === null || product === void 0 ? void 0 : product.version_status);
|
|
637
635
|
promises = [];
|
|
638
636
|
conceptArray = ["description", "datasheet", "images"];
|
|
639
637
|
conceptArray.forEach(function (concept) {
|
|
638
|
+
var sectionStatusKey = "".concat(concept, "_status");
|
|
639
|
+
var evalStatus = product[sectionStatusKey] || (product === null || product === void 0 ? void 0 : product.version_status);
|
|
640
640
|
var data = {
|
|
641
641
|
articleId: articleId,
|
|
642
642
|
orderId: orderId,
|
|
@@ -649,15 +649,15 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
649
649
|
}
|
|
650
650
|
}));
|
|
651
651
|
});
|
|
652
|
-
_context4.next =
|
|
652
|
+
_context4.next = 8;
|
|
653
653
|
return Promise.all(promises);
|
|
654
654
|
|
|
655
|
-
case
|
|
655
|
+
case 8:
|
|
656
656
|
closeGlobalModal();
|
|
657
|
-
_context4.next =
|
|
657
|
+
_context4.next = 11;
|
|
658
658
|
return updateAuditStatus("FAP");
|
|
659
659
|
|
|
660
|
-
case
|
|
660
|
+
case 11:
|
|
661
661
|
case "end":
|
|
662
662
|
return _context4.stop();
|
|
663
663
|
}
|
package/package.json
CHANGED
|
@@ -35,6 +35,16 @@ export const getFullStatus = (status) => {
|
|
|
35
35
|
return "Exportado";
|
|
36
36
|
case "NS":
|
|
37
37
|
return "No solicitado";
|
|
38
|
+
case "SAC":
|
|
39
|
+
return "Solicitud Auditoría Content-oh!";
|
|
40
|
+
case "AAC":
|
|
41
|
+
return "Aprobado Auditoría Content-oh!";
|
|
42
|
+
case "RAC":
|
|
43
|
+
return "Rechazado Auditoría Content-oh!";
|
|
44
|
+
case "FAP":
|
|
45
|
+
return "Finalización Auditoría por Proveedor";
|
|
46
|
+
default:
|
|
47
|
+
return "";
|
|
38
48
|
}
|
|
39
49
|
};
|
|
40
50
|
|
|
@@ -75,6 +85,14 @@ export const getStatusColor = (status) => {
|
|
|
75
85
|
return "black";
|
|
76
86
|
case "Ex":
|
|
77
87
|
return "#09CAD8";
|
|
88
|
+
case "SAC":
|
|
89
|
+
return "#2471A3";
|
|
90
|
+
case "AAC":
|
|
91
|
+
return "#1ABC9C";
|
|
92
|
+
case "RAC":
|
|
93
|
+
return "#229954";
|
|
94
|
+
case "FAP":
|
|
95
|
+
return "#F1C40F";
|
|
78
96
|
default:
|
|
79
97
|
return "white";
|
|
80
98
|
}
|
|
@@ -104,7 +122,6 @@ export const removeOldStatus = (object) => {
|
|
|
104
122
|
object["AC"] = object["AC"] + object["AF"];
|
|
105
123
|
delete object["AF"];
|
|
106
124
|
break;
|
|
107
|
-
|
|
108
125
|
default:
|
|
109
126
|
break;
|
|
110
127
|
}
|
|
@@ -16,28 +16,28 @@ ProviderProductEditionDefault.args = {
|
|
|
16
16
|
Imágenes: false,
|
|
17
17
|
},
|
|
18
18
|
token:
|
|
19
|
-
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
19
|
+
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI1ODg0YWUzNC01OWQ2LTQ0NTQtYjk4ZS04MjE1MThiY2MzYTciLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6IjU4ODRhZTM0LTU5ZDYtNDQ1NC1iOThlLTgyMTUxOGJjYzNhNyIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiJjOWRjOWE1OS0xNTAxLTQyOTgtODRjMi03MDM4NzRhNzIxMTEiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4MjQ2Mjc4NCwibmFtZSI6IkNhZGVuYSBJc21hZWwiLCJwaG9uZV9udW1iZXIiOiIrNTIzMTExMzY2MzM2IiwiZXhwIjoxNjgyNDY2Mzg0LCJpYXQiOjE2ODI0NjI3ODQsImVtYWlsIjoiY2FkZW5hLmlzbWFlbEBhbGxmcmVlbWFpbC5uZXQifQ.ebKSsnTxKoNfWDoKGFJRlLWgNulGj4KrDe0EgsqLEIVx3Qu0lgmg43UY5tZ3FUlRE8XO2UGq0XxEgdbGOe_4nbTRYigdvxP3bh3cPQ0s68hlTDfhPRvxVJYlaO4s0rhk9rt_VVteTyLfhPHFCymrkFYYDB8bVvKnxUUCX_nJvqGQkl48JiYgvYVLpuus5FvRkGwi1u-jTtMoKiUK-jw9MxI18hD0FWXVnJr-q9ftf2d0bv4JRv4XJ_tRh1N6jps5n3c_KKZswqRfGLU-8MS2X3DU6pDqEP2BZAGXksiFYXYH_uHE6BKJAl7EEhkDTqZsx_jWtVSXTdDg_QDKrOw0Kg",
|
|
20
20
|
articleId: 238,
|
|
21
21
|
category: 846,
|
|
22
22
|
version: 2,
|
|
23
23
|
productSelected: {
|
|
24
|
-
orderId:
|
|
25
|
-
article_status: "
|
|
26
|
-
datasheet_status: "
|
|
27
|
-
description_status: "
|
|
28
|
-
images_status: "
|
|
24
|
+
orderId: 15165,
|
|
25
|
+
article_status: "AAC",
|
|
26
|
+
datasheet_status: "AAC",
|
|
27
|
+
description_status: "FAP",
|
|
28
|
+
images_status: "FAP",
|
|
29
29
|
prio: "none",
|
|
30
|
-
version:
|
|
30
|
+
version: 3,
|
|
31
31
|
brand: null,
|
|
32
32
|
article: {
|
|
33
33
|
category: "Puertas y Ventanas|Molduras|Molduras Madera Blanda",
|
|
34
34
|
company_name: "Demo",
|
|
35
|
-
id_company:
|
|
35
|
+
id_company: 923,
|
|
36
36
|
country: "México",
|
|
37
37
|
id_category: "2366",
|
|
38
|
-
id_article:
|
|
39
|
-
name: "
|
|
40
|
-
upc: "
|
|
38
|
+
id_article: 39336,
|
|
39
|
+
name: "Prueba Auditoria",
|
|
40
|
+
upc: "100030124",
|
|
41
41
|
},
|
|
42
42
|
retailers: [
|
|
43
43
|
{
|
|
@@ -46,7 +46,7 @@ ProviderProductEditionDefault.args = {
|
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
id: 68,
|
|
49
|
-
name: "The Home Depot
|
|
49
|
+
name: "The Home Depot Dropship",
|
|
50
50
|
},
|
|
51
51
|
],
|
|
52
52
|
services: {
|
|
@@ -56,13 +56,13 @@ ProviderProductEditionDefault.args = {
|
|
|
56
56
|
},
|
|
57
57
|
statusByRetailer: {
|
|
58
58
|
58: {
|
|
59
|
-
datasheet: "
|
|
60
|
-
description: "
|
|
61
|
-
images: "
|
|
59
|
+
datasheet: "AAC",
|
|
60
|
+
description: "FAP",
|
|
61
|
+
images: "FAP",
|
|
62
62
|
},
|
|
63
63
|
},
|
|
64
64
|
retailersWithService: ["58"],
|
|
65
|
-
id_article:
|
|
65
|
+
id_article: 39336,
|
|
66
66
|
retailersAvailable: [
|
|
67
67
|
{
|
|
68
68
|
id: 58,
|
|
@@ -70,31 +70,31 @@ ProviderProductEditionDefault.args = {
|
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
id: 68,
|
|
73
|
-
name: "The Home Depot
|
|
73
|
+
name: "The Home Depot Dropship",
|
|
74
74
|
},
|
|
75
75
|
],
|
|
76
76
|
},
|
|
77
77
|
productToEdit: {
|
|
78
|
-
ArticleId:
|
|
78
|
+
ArticleId: 39336,
|
|
79
79
|
idCategory: "2366",
|
|
80
80
|
product: {
|
|
81
|
-
orderId:
|
|
82
|
-
article_status: "
|
|
83
|
-
datasheet_status: "
|
|
84
|
-
description_status: "
|
|
85
|
-
images_status: "
|
|
81
|
+
orderId: 15165,
|
|
82
|
+
article_status: "AAC",
|
|
83
|
+
datasheet_status: "AAC",
|
|
84
|
+
description_status: "FAP",
|
|
85
|
+
images_status: "FAP",
|
|
86
86
|
prio: "none",
|
|
87
|
-
version:
|
|
87
|
+
version: 3,
|
|
88
88
|
brand: null,
|
|
89
89
|
article: {
|
|
90
90
|
category: "Puertas y Ventanas|Molduras|Molduras Madera Blanda",
|
|
91
91
|
company_name: "Demo",
|
|
92
|
-
id_company:
|
|
92
|
+
id_company: 923,
|
|
93
93
|
country: "México",
|
|
94
94
|
id_category: "2366",
|
|
95
|
-
id_article:
|
|
96
|
-
name: "
|
|
97
|
-
upc: "
|
|
95
|
+
id_article: 39336,
|
|
96
|
+
name: "Prueba Auditoria",
|
|
97
|
+
upc: "100030124",
|
|
98
98
|
},
|
|
99
99
|
retailers: [
|
|
100
100
|
{
|
|
@@ -103,7 +103,7 @@ ProviderProductEditionDefault.args = {
|
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
105
|
id: 68,
|
|
106
|
-
name: "The Home Depot
|
|
106
|
+
name: "The Home Depot Dropship",
|
|
107
107
|
},
|
|
108
108
|
],
|
|
109
109
|
services: {
|
|
@@ -113,13 +113,13 @@ ProviderProductEditionDefault.args = {
|
|
|
113
113
|
},
|
|
114
114
|
statusByRetailer: {
|
|
115
115
|
58: {
|
|
116
|
-
datasheet: "
|
|
117
|
-
description: "
|
|
118
|
-
images: "
|
|
116
|
+
datasheet: "AAC",
|
|
117
|
+
description: "FAP",
|
|
118
|
+
images: "FAP",
|
|
119
119
|
},
|
|
120
120
|
},
|
|
121
121
|
retailersWithService: ["58"],
|
|
122
|
-
id_article:
|
|
122
|
+
id_article: 39336,
|
|
123
123
|
retailersAvailable: [
|
|
124
124
|
{
|
|
125
125
|
id: 58,
|
|
@@ -127,7 +127,7 @@ ProviderProductEditionDefault.args = {
|
|
|
127
127
|
},
|
|
128
128
|
{
|
|
129
129
|
id: 68,
|
|
130
|
-
name: "The Home Depot
|
|
130
|
+
name: "The Home Depot Dropship",
|
|
131
131
|
},
|
|
132
132
|
],
|
|
133
133
|
},
|
|
@@ -173,7 +173,7 @@ ProviderProductEditionDefault.args = {
|
|
|
173
173
|
products_limit: "500",
|
|
174
174
|
type: "PyMES",
|
|
175
175
|
},
|
|
176
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?
|
|
176
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1682462786497",
|
|
177
177
|
},
|
|
178
178
|
company: {
|
|
179
179
|
id_company: 817,
|
|
@@ -191,7 +191,7 @@ ProviderProductEditionDefault.args = {
|
|
|
191
191
|
financedRetailers: [
|
|
192
192
|
{
|
|
193
193
|
id: 68,
|
|
194
|
-
name: "The Home Depot
|
|
194
|
+
name: "The Home Depot Dropship",
|
|
195
195
|
country: "México",
|
|
196
196
|
id_region: 1,
|
|
197
197
|
active: 1,
|
|
@@ -215,7 +215,7 @@ ProviderProductEditionDefault.args = {
|
|
|
215
215
|
},
|
|
216
216
|
{
|
|
217
217
|
id: 68,
|
|
218
|
-
name: "The Home Depot
|
|
218
|
+
name: "The Home Depot Dropship",
|
|
219
219
|
country: "México",
|
|
220
220
|
},
|
|
221
221
|
{
|
|
@@ -320,11 +320,11 @@ export const ProviderProductEdition = ({
|
|
|
320
320
|
const productTemp = product;
|
|
321
321
|
const articleId = productTemp.id_article;
|
|
322
322
|
const orderId = productTemp.id_order ?? productTemp.orderId;
|
|
323
|
-
const sectionStatusKey = `${getConcept(activeTab)}_status`;
|
|
324
|
-
const evalStatus = product[sectionStatusKey] || product?.version_status;
|
|
325
323
|
const promises = [];
|
|
326
324
|
const conceptArray = ["description", "datasheet", "images"];
|
|
327
325
|
conceptArray.forEach((concept) => {
|
|
326
|
+
const sectionStatusKey = `${concept}_status`;
|
|
327
|
+
const evalStatus = product[sectionStatusKey] || product?.version_status;
|
|
328
328
|
const data = { articleId, orderId, concept, evalStatus };
|
|
329
329
|
promises.push(
|
|
330
330
|
axios.put(`${process.env.REACT_APP_SEND_EVAL}`, data, {
|