contentoh-components-library 21.1.8 → 21.1.9
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 +57 -51
- package/dist/components/pages/RetailerProductEdition/index.js +19 -19
- package/package.json +1 -1
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +58 -51
- package/src/components/pages/RetailerProductEdition/index.js +1 -1
|
@@ -31,64 +31,70 @@ RetailerProductEditionDefault.args = {
|
|
|
31
31
|
"Ficha técnica": false,
|
|
32
32
|
Imágenes: false
|
|
33
33
|
},
|
|
34
|
-
token: "
|
|
34
|
+
token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI3MTNhNzQ1Ny1mOTQzLTRiYzktOGViMC04NmI0MWY1YmQ0ZjgiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6IjcxM2E3NDU3LWY5NDMtNGJjOS04ZWIwLTg2YjQxZjViZDRmOCIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiI4NjQwM2FlZC03Y2I3LTQ4MjgtYmNhOS05NGY1OWRkYjFhMTAiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY1NTY4MDY2MiwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY1NTY4NDI2MiwiaWF0IjoxNjU1NjgwNjYyLCJlbWFpbCI6ImhjYXJyaWxsb0Bjb250ZW50b2guY29tIn0.WL09DLe9etfQEhxSL7D1fdgjF_tO3PxyUraxU3cZ9QHS0lYxiG_0tKReYAwNOHZWag-5IAu2WNPZEtbc4FK_nHyrz3qof4LTTHeRii2WybzUYtRCVZmAZ7omjM2vB-kr_V9Hk8wGK0ylm8eQuwvtpGFnIjmpCpdRbUjwFRJefEon1TGW1QshpzsovcI5Tvr1AASno6wuZTwTnX68OTPIJ947wj0u_Hicx9YwjQAqAwOyadiSQ-J3dkHPaDFGU41c4BT2ggSG5HOjmopX5jBxaVBLQsC0yM-0w1rqG9R93s1SmeanluvQH0NXVbofqnixjnt8r-dd9or_y4gy8hpZsg",
|
|
35
35
|
articleId: 238,
|
|
36
36
|
category: 846,
|
|
37
37
|
version: 2,
|
|
38
38
|
productSelected: {
|
|
39
39
|
services: {
|
|
40
|
-
datasheets:
|
|
41
|
-
descriptions:
|
|
40
|
+
datasheets: 0,
|
|
41
|
+
descriptions: 0,
|
|
42
42
|
images: 1
|
|
43
43
|
},
|
|
44
|
-
orderId:
|
|
45
|
-
status: "
|
|
46
|
-
datasheet_status: "
|
|
44
|
+
orderId: 72,
|
|
45
|
+
status: "ASSIGNED",
|
|
46
|
+
datasheet_status: "NS",
|
|
47
47
|
prio: "none",
|
|
48
|
-
version:
|
|
49
|
-
description_status: "
|
|
50
|
-
images_status: "
|
|
48
|
+
version: 14,
|
|
49
|
+
description_status: "NS",
|
|
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: 55109,
|
|
53
|
+
id_category: "2999",
|
|
54
|
+
name: "Resize Ismael",
|
|
55
|
+
upc: "ResizeIsmael",
|
|
56
|
+
timestamp: "2022-06-18T03:32:56.000Z",
|
|
57
|
+
id_user: 110,
|
|
58
58
|
status: "NULL",
|
|
59
59
|
active: 1,
|
|
60
|
-
company_id:
|
|
61
|
-
company_name: "
|
|
62
|
-
country:
|
|
63
|
-
id_order:
|
|
64
|
-
id_datasheet_especialist:
|
|
65
|
-
id_datasheet_facilitator:
|
|
66
|
-
id_description_especialist:
|
|
67
|
-
id_description_facilitator:
|
|
68
|
-
id_images_especialist:
|
|
69
|
-
id_images_facilitator:
|
|
70
|
-
id_auditor:
|
|
60
|
+
company_id: 834,
|
|
61
|
+
company_name: "THD Resize Proveedor",
|
|
62
|
+
country: null,
|
|
63
|
+
id_order: 72,
|
|
64
|
+
id_datasheet_especialist: 54,
|
|
65
|
+
id_datasheet_facilitator: 52,
|
|
66
|
+
id_description_especialist: 54,
|
|
67
|
+
id_description_facilitator: 52,
|
|
68
|
+
id_images_especialist: 55,
|
|
69
|
+
id_images_facilitator: 53,
|
|
70
|
+
id_auditor: null,
|
|
71
71
|
id_recepcionist: null,
|
|
72
|
-
category: "
|
|
72
|
+
category: "RESIZING|RESIZING|RESIZING",
|
|
73
73
|
missingAttributes: null,
|
|
74
74
|
missingDescriptions: null,
|
|
75
75
|
missingImages: null
|
|
76
76
|
},
|
|
77
77
|
retailers: [{
|
|
78
|
-
id:
|
|
79
|
-
name: "
|
|
78
|
+
id: 58,
|
|
79
|
+
name: "The Home Depot Golden",
|
|
80
|
+
country: "México",
|
|
81
|
+
id_region: 1,
|
|
82
|
+
active: 1
|
|
83
|
+
}, {
|
|
84
|
+
id: 59,
|
|
85
|
+
name: "The Home Depot Platinum",
|
|
80
86
|
country: "México",
|
|
81
87
|
id_region: 1,
|
|
82
88
|
active: 1
|
|
83
89
|
}, {
|
|
84
|
-
id:
|
|
85
|
-
name: "
|
|
90
|
+
id: 60,
|
|
91
|
+
name: "The Home Depot Resizing",
|
|
86
92
|
country: "México",
|
|
87
93
|
id_region: 1,
|
|
88
94
|
active: 1
|
|
89
95
|
}],
|
|
90
|
-
country:
|
|
91
|
-
upc: "
|
|
96
|
+
country: null,
|
|
97
|
+
upc: "ResizeIsmael"
|
|
92
98
|
},
|
|
93
99
|
location: {
|
|
94
100
|
product: {
|
|
@@ -97,35 +103,35 @@ RetailerProductEditionDefault.args = {
|
|
|
97
103
|
}
|
|
98
104
|
},
|
|
99
105
|
user: {
|
|
100
|
-
id_user:
|
|
101
|
-
name: "
|
|
102
|
-
last_name: "
|
|
103
|
-
email: "
|
|
104
|
-
position:
|
|
106
|
+
id_user: 55,
|
|
107
|
+
name: "ESPECIALISTA ED PRUEBA",
|
|
108
|
+
last_name: "",
|
|
109
|
+
email: "hcarrillo@contentoh.com",
|
|
110
|
+
position: null,
|
|
105
111
|
telephone: null,
|
|
106
112
|
country: null,
|
|
107
|
-
id_company:
|
|
108
|
-
id_cognito: "
|
|
113
|
+
id_company: 2,
|
|
114
|
+
id_cognito: "713a7457-f943-4bc9-8eb0-86b41f5bd4f8",
|
|
109
115
|
birth_Date: null,
|
|
110
116
|
about_me: null,
|
|
111
117
|
zip_code: null,
|
|
112
118
|
address: null,
|
|
113
119
|
job: null,
|
|
114
120
|
id_stripe: null,
|
|
115
|
-
id_role:
|
|
121
|
+
id_role: 8,
|
|
116
122
|
active: 1,
|
|
117
123
|
is_retailer: 0,
|
|
118
124
|
membership: {
|
|
119
|
-
id:
|
|
120
|
-
start_date: "
|
|
121
|
-
end_date: "
|
|
122
|
-
planID:
|
|
123
|
-
plan: "
|
|
124
|
-
name: "Plan
|
|
125
|
-
user_limit: "
|
|
126
|
-
products_limit: "
|
|
127
|
-
type: "
|
|
125
|
+
id: 2,
|
|
126
|
+
start_date: "2021-11-05T02:35:12.000Z",
|
|
127
|
+
end_date: "2022-11-05T02:34:49.000Z",
|
|
128
|
+
planID: 1,
|
|
129
|
+
plan: "prod_KtkvuFFLpOdP6e",
|
|
130
|
+
name: "Plan Free",
|
|
131
|
+
user_limit: "1",
|
|
132
|
+
products_limit: "3",
|
|
133
|
+
type: "PyMES"
|
|
128
134
|
},
|
|
129
|
-
src: "https://content-management-profile
|
|
135
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-55/55.png?1655680663244"
|
|
130
136
|
}
|
|
131
137
|
};
|
|
@@ -801,7 +801,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
801
801
|
var updateImages = (0, _react.useCallback)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() {
|
|
802
802
|
var _images$values2, _product$article10, _data$articleData, _data$articleData2, _data$updateImages;
|
|
803
803
|
|
|
804
|
-
var imagesList, imagesListTemp, duplicated, attrForImgs, data, valid, _data$updateImages2, _data$articleData3, _data$articleData4, _data$articleData5, promiseArray;
|
|
804
|
+
var imagesList, imagesListTemp, duplicated, attrForImgs, data, valid, _data$updateImages2, _data$articleData3, _data$articleData4, _data$articleData5, promiseArray, productTemp;
|
|
805
805
|
|
|
806
806
|
return _regenerator.default.wrap(function _callee7$(_context7) {
|
|
807
807
|
while (1) {
|
|
@@ -854,7 +854,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
854
854
|
}
|
|
855
855
|
|
|
856
856
|
if (!(valid && (duplicated === null || duplicated === void 0 ? void 0 : duplicated.length) === 0)) {
|
|
857
|
-
_context7.next =
|
|
857
|
+
_context7.next = 33;
|
|
858
858
|
break;
|
|
859
859
|
}
|
|
860
860
|
|
|
@@ -894,34 +894,36 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
894
894
|
setImagesUploaded(true);
|
|
895
895
|
|
|
896
896
|
case 24:
|
|
897
|
+
productTemp = product;
|
|
898
|
+
|
|
897
899
|
if (productTemp.status === "ASSIGNED") {
|
|
898
900
|
productTemp.status = "IN_PROGRESS";
|
|
899
901
|
setProduct(productTemp);
|
|
900
902
|
sessionStorage.setItem("productSelected", JSON.stringify(productTemp));
|
|
901
903
|
}
|
|
902
904
|
|
|
903
|
-
_context7.next =
|
|
905
|
+
_context7.next = 31;
|
|
904
906
|
break;
|
|
905
907
|
|
|
906
|
-
case
|
|
907
|
-
_context7.prev =
|
|
908
|
+
case 28:
|
|
909
|
+
_context7.prev = 28;
|
|
908
910
|
_context7.t0 = _context7["catch"](11);
|
|
909
911
|
console.log(_context7.t0); // setMainLoading(false);
|
|
910
912
|
|
|
911
|
-
case
|
|
912
|
-
_context7.next =
|
|
913
|
+
case 31:
|
|
914
|
+
_context7.next = 34;
|
|
913
915
|
break;
|
|
914
916
|
|
|
915
|
-
case
|
|
917
|
+
case 33:
|
|
916
918
|
// setMainLoading(false);
|
|
917
919
|
setMessage("Completa los campos que solicita cada una de la imágenes o hay imágenes con el mismo tipo de toma.\nRecuerda hay campos obligatorios y no podras avanzar si no estan completos.");
|
|
918
920
|
|
|
919
|
-
case
|
|
921
|
+
case 34:
|
|
920
922
|
case "end":
|
|
921
923
|
return _context7.stop();
|
|
922
924
|
}
|
|
923
925
|
}
|
|
924
|
-
}, _callee7, null, [[11,
|
|
926
|
+
}, _callee7, null, [[11, 28]]);
|
|
925
927
|
})), [images, imagesUploaded]);
|
|
926
928
|
(0, _react.useEffect)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() {
|
|
927
929
|
return _regenerator.default.wrap(function _callee8$(_context8) {
|
|
@@ -1056,8 +1058,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1056
1058
|
|
|
1057
1059
|
var sendToFacilitator = /*#__PURE__*/function () {
|
|
1058
1060
|
var _ref10 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9(result) {
|
|
1059
|
-
var concept,
|
|
1060
|
-
|
|
1061
|
+
var concept, productTemp, evalStatus, data, specialistDone, statusArr, newStatus;
|
|
1061
1062
|
return _regenerator.default.wrap(function _callee9$(_context9) {
|
|
1062
1063
|
while (1) {
|
|
1063
1064
|
switch (_context9.prev = _context9.next) {
|
|
@@ -1065,7 +1066,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1065
1066
|
setLoading(true);
|
|
1066
1067
|
_context9.prev = 1;
|
|
1067
1068
|
concept = getConcept(activeTab);
|
|
1068
|
-
|
|
1069
|
+
productTemp = (0, _objectSpread2.default)({}, product);
|
|
1069
1070
|
evalStatus = product["".concat(concept, "_status")];
|
|
1070
1071
|
data = {};
|
|
1071
1072
|
|
|
@@ -1074,7 +1075,6 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1074
1075
|
break;
|
|
1075
1076
|
}
|
|
1076
1077
|
|
|
1077
|
-
//updateCompaniesList(evalStatus, result, activeRetailer.id, concept);
|
|
1078
1078
|
data = {
|
|
1079
1079
|
articleId: product.article.id_article,
|
|
1080
1080
|
orderId: product.orderId,
|
|
@@ -1119,9 +1119,9 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1119
1119
|
servicesData.forEach(function (srv) {
|
|
1120
1120
|
srv.service === concept && statusArr.push(srv.status);
|
|
1121
1121
|
});
|
|
1122
|
-
|
|
1123
|
-
newStatus = (0, _data2.getNewStatus)([
|
|
1124
|
-
|
|
1122
|
+
productTemp["".concat(concept, "_status")] = (0, _data2.getNewStatus)(statusArr);
|
|
1123
|
+
newStatus = (0, _data2.getNewStatus)([productTemp.datasheet_status, productTemp.description_status, productTemp.images_status]);
|
|
1124
|
+
productTemp.status = newStatus;
|
|
1125
1125
|
data = {
|
|
1126
1126
|
articleId: product.article.id_article,
|
|
1127
1127
|
orderId: product.orderId,
|
|
@@ -1154,8 +1154,8 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1154
1154
|
|
|
1155
1155
|
case 31:
|
|
1156
1156
|
loadData();
|
|
1157
|
-
sessionStorage.setItem("productSelected", JSON.stringify(
|
|
1158
|
-
setProduct(
|
|
1157
|
+
sessionStorage.setItem("productSelected", JSON.stringify(productTemp));
|
|
1158
|
+
setProduct(productTemp);
|
|
1159
1159
|
_context9.next = 39;
|
|
1160
1160
|
break;
|
|
1161
1161
|
|
package/package.json
CHANGED
|
@@ -16,101 +16,108 @@ RetailerProductEditionDefault.args = {
|
|
|
16
16
|
Imágenes: false,
|
|
17
17
|
},
|
|
18
18
|
token:
|
|
19
|
-
"
|
|
19
|
+
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI3MTNhNzQ1Ny1mOTQzLTRiYzktOGViMC04NmI0MWY1YmQ0ZjgiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6IjcxM2E3NDU3LWY5NDMtNGJjOS04ZWIwLTg2YjQxZjViZDRmOCIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiI4NjQwM2FlZC03Y2I3LTQ4MjgtYmNhOS05NGY1OWRkYjFhMTAiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY1NTY4MDY2MiwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY1NTY4NDI2MiwiaWF0IjoxNjU1NjgwNjYyLCJlbWFpbCI6ImhjYXJyaWxsb0Bjb250ZW50b2guY29tIn0.WL09DLe9etfQEhxSL7D1fdgjF_tO3PxyUraxU3cZ9QHS0lYxiG_0tKReYAwNOHZWag-5IAu2WNPZEtbc4FK_nHyrz3qof4LTTHeRii2WybzUYtRCVZmAZ7omjM2vB-kr_V9Hk8wGK0ylm8eQuwvtpGFnIjmpCpdRbUjwFRJefEon1TGW1QshpzsovcI5Tvr1AASno6wuZTwTnX68OTPIJ947wj0u_Hicx9YwjQAqAwOyadiSQ-J3dkHPaDFGU41c4BT2ggSG5HOjmopX5jBxaVBLQsC0yM-0w1rqG9R93s1SmeanluvQH0NXVbofqnixjnt8r-dd9or_y4gy8hpZsg",
|
|
20
20
|
articleId: 238,
|
|
21
21
|
category: 846,
|
|
22
22
|
version: 2,
|
|
23
23
|
productSelected: {
|
|
24
24
|
services: {
|
|
25
|
-
datasheets:
|
|
26
|
-
descriptions:
|
|
25
|
+
datasheets: 0,
|
|
26
|
+
descriptions: 0,
|
|
27
27
|
images: 1,
|
|
28
28
|
},
|
|
29
|
-
orderId:
|
|
30
|
-
status: "
|
|
31
|
-
datasheet_status: "
|
|
29
|
+
orderId: 72,
|
|
30
|
+
status: "ASSIGNED",
|
|
31
|
+
datasheet_status: "NS",
|
|
32
32
|
prio: "none",
|
|
33
|
-
version:
|
|
34
|
-
description_status: "
|
|
35
|
-
images_status: "
|
|
33
|
+
version: 14,
|
|
34
|
+
description_status: "NS",
|
|
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: 55109,
|
|
38
|
+
id_category: "2999",
|
|
39
|
+
name: "Resize Ismael",
|
|
40
|
+
upc: "ResizeIsmael",
|
|
41
|
+
timestamp: "2022-06-18T03:32:56.000Z",
|
|
42
|
+
id_user: 110,
|
|
43
43
|
status: "NULL",
|
|
44
44
|
active: 1,
|
|
45
|
-
company_id:
|
|
46
|
-
company_name: "
|
|
47
|
-
country:
|
|
48
|
-
id_order:
|
|
49
|
-
id_datasheet_especialist:
|
|
50
|
-
id_datasheet_facilitator:
|
|
51
|
-
id_description_especialist:
|
|
52
|
-
id_description_facilitator:
|
|
53
|
-
id_images_especialist:
|
|
54
|
-
id_images_facilitator:
|
|
55
|
-
id_auditor:
|
|
45
|
+
company_id: 834,
|
|
46
|
+
company_name: "THD Resize Proveedor",
|
|
47
|
+
country: null,
|
|
48
|
+
id_order: 72,
|
|
49
|
+
id_datasheet_especialist: 54,
|
|
50
|
+
id_datasheet_facilitator: 52,
|
|
51
|
+
id_description_especialist: 54,
|
|
52
|
+
id_description_facilitator: 52,
|
|
53
|
+
id_images_especialist: 55,
|
|
54
|
+
id_images_facilitator: 53,
|
|
55
|
+
id_auditor: null,
|
|
56
56
|
id_recepcionist: null,
|
|
57
|
-
category: "
|
|
57
|
+
category: "RESIZING|RESIZING|RESIZING",
|
|
58
58
|
missingAttributes: null,
|
|
59
59
|
missingDescriptions: null,
|
|
60
60
|
missingImages: null,
|
|
61
61
|
},
|
|
62
62
|
retailers: [
|
|
63
63
|
{
|
|
64
|
-
id:
|
|
65
|
-
name: "
|
|
64
|
+
id: 58,
|
|
65
|
+
name: "The Home Depot Golden",
|
|
66
66
|
country: "México",
|
|
67
67
|
id_region: 1,
|
|
68
68
|
active: 1,
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
|
-
id:
|
|
72
|
-
name: "
|
|
71
|
+
id: 59,
|
|
72
|
+
name: "The Home Depot Platinum",
|
|
73
|
+
country: "México",
|
|
74
|
+
id_region: 1,
|
|
75
|
+
active: 1,
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
id: 60,
|
|
79
|
+
name: "The Home Depot Resizing",
|
|
73
80
|
country: "México",
|
|
74
81
|
id_region: 1,
|
|
75
82
|
active: 1,
|
|
76
83
|
},
|
|
77
84
|
],
|
|
78
|
-
country:
|
|
79
|
-
upc: "
|
|
85
|
+
country: null,
|
|
86
|
+
upc: "ResizeIsmael",
|
|
80
87
|
},
|
|
81
88
|
location: {
|
|
82
89
|
product: { articleId: 109485, versionId: 3 },
|
|
83
90
|
},
|
|
84
91
|
user: {
|
|
85
|
-
id_user:
|
|
86
|
-
name: "
|
|
87
|
-
last_name: "
|
|
88
|
-
email: "
|
|
89
|
-
position:
|
|
92
|
+
id_user: 55,
|
|
93
|
+
name: "ESPECIALISTA ED PRUEBA",
|
|
94
|
+
last_name: "",
|
|
95
|
+
email: "hcarrillo@contentoh.com",
|
|
96
|
+
position: null,
|
|
90
97
|
telephone: null,
|
|
91
98
|
country: null,
|
|
92
|
-
id_company:
|
|
93
|
-
id_cognito: "
|
|
99
|
+
id_company: 2,
|
|
100
|
+
id_cognito: "713a7457-f943-4bc9-8eb0-86b41f5bd4f8",
|
|
94
101
|
birth_Date: null,
|
|
95
102
|
about_me: null,
|
|
96
103
|
zip_code: null,
|
|
97
104
|
address: null,
|
|
98
105
|
job: null,
|
|
99
106
|
id_stripe: null,
|
|
100
|
-
id_role:
|
|
107
|
+
id_role: 8,
|
|
101
108
|
active: 1,
|
|
102
109
|
is_retailer: 0,
|
|
103
110
|
membership: {
|
|
104
|
-
id:
|
|
105
|
-
start_date: "
|
|
106
|
-
end_date: "
|
|
107
|
-
planID:
|
|
108
|
-
plan: "
|
|
109
|
-
name: "Plan
|
|
110
|
-
user_limit: "
|
|
111
|
-
products_limit: "
|
|
112
|
-
type: "
|
|
111
|
+
id: 2,
|
|
112
|
+
start_date: "2021-11-05T02:35:12.000Z",
|
|
113
|
+
end_date: "2022-11-05T02:34:49.000Z",
|
|
114
|
+
planID: 1,
|
|
115
|
+
plan: "prod_KtkvuFFLpOdP6e",
|
|
116
|
+
name: "Plan Free",
|
|
117
|
+
user_limit: "1",
|
|
118
|
+
products_limit: "3",
|
|
119
|
+
type: "PyMES",
|
|
113
120
|
},
|
|
114
|
-
src: "https://content-management-profile
|
|
121
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-55/55.png?1655680663244",
|
|
115
122
|
},
|
|
116
123
|
};
|
|
@@ -521,6 +521,7 @@ export const RetailerProductEdition = ({
|
|
|
521
521
|
} else {
|
|
522
522
|
setImagesUploaded(true);
|
|
523
523
|
}
|
|
524
|
+
let productTemp = product;
|
|
524
525
|
if (productTemp.status === "ASSIGNED") {
|
|
525
526
|
productTemp.status = "IN_PROGRESS";
|
|
526
527
|
setProduct(productTemp);
|
|
@@ -669,7 +670,6 @@ export const RetailerProductEdition = ({
|
|
|
669
670
|
|
|
670
671
|
let data = {};
|
|
671
672
|
if (result) {
|
|
672
|
-
//updateCompaniesList(evalStatus, result, activeRetailer.id, concept);
|
|
673
673
|
data = {
|
|
674
674
|
articleId: product.article.id_article,
|
|
675
675
|
orderId: product.orderId,
|