contentoh-components-library 21.4.82 → 21.4.83
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/molecules/ProductNameHeader/index.js +3 -8
- package/dist/components/organisms/EditGroup/index.js +0 -3
- package/dist/components/organisms/FullProductNameHeader/index.js +1 -3
- package/dist/components/organisms/VersionSelector/index.js +169 -101
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +38 -34
- package/dist/components/pages/ProviderProductEdition/index.js +53 -71
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +52 -47
- package/dist/components/pages/RetailerProductEdition/index.js +177 -101
- package/dist/global-files/data.js +26 -11
- package/package.json +1 -2
- package/src/components/atoms/GeneralButton/styles.js +0 -1
- package/src/components/atoms/TabSection/index.js +1 -1
- package/src/components/molecules/ProductNameHeader/index.js +1 -5
- package/src/components/organisms/EditGroup/index.js +1 -3
- package/src/components/organisms/FullProductNameHeader/index.js +0 -2
- package/src/components/organisms/VersionSelector/index.js +100 -100
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +29 -39
- package/src/components/pages/ProviderProductEdition/index.js +21 -34
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +52 -48
- package/src/components/pages/RetailerProductEdition/index.js +144 -32
- package/src/global-files/data.js +33 -7
- package/src/components/atoms/ObservationFlag/ObservationFlag.stories.js +0 -20
- package/src/components/atoms/ObservationFlag/index.js +0 -33
- package/src/components/atoms/ObservationFlag/styles.js +0 -3
|
@@ -162,37 +162,29 @@ var reducerImages = function reducerImages(state, action) {
|
|
|
162
162
|
|
|
163
163
|
case "orderImages":
|
|
164
164
|
{
|
|
165
|
-
var
|
|
166
|
-
_inputsByRetailer = _state$inputsByRetail === void 0 ? {} : _state$inputsByRetail,
|
|
165
|
+
var _inputsByRetailer = state.inputsByRetailer,
|
|
167
166
|
valuesInitial = state.valuesInitial,
|
|
168
167
|
inputsInitial = state.inputsInitial,
|
|
169
168
|
inputs = state.inputs;
|
|
170
169
|
|
|
171
170
|
try {
|
|
171
|
+
var _inputsByRetailer$act;
|
|
172
|
+
|
|
172
173
|
var orderedImages = [];
|
|
173
174
|
var imageIdArray = [];
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
if (action.retailerId) {
|
|
180
|
-
var _inputsByRetailer$act;
|
|
181
|
-
|
|
182
|
-
(_inputsByRetailer$act = _inputsByRetailer[action.retailerId]) === null || _inputsByRetailer$act === void 0 ? void 0 : _inputsByRetailer$act.filter(function (input) {
|
|
183
|
-
imageIdArray.push(input.id_image);
|
|
184
|
-
valuesInitial.forEach(function (value) {
|
|
185
|
-
if (value.image_id === input.id_image) orderedImages.push(value);
|
|
186
|
-
});
|
|
175
|
+
if (action !== null && action !== void 0 && action.retailerId && !_inputsByRetailer[action.retailerId]) _inputsByRetailer[action.retailerId] = [];
|
|
176
|
+
action.retailerId && ((_inputsByRetailer$act = _inputsByRetailer[action.retailerId]) === null || _inputsByRetailer$act === void 0 ? void 0 : _inputsByRetailer$act.filter(function (input) {
|
|
177
|
+
imageIdArray.push(input.id_image);
|
|
178
|
+
valuesInitial.forEach(function (value) {
|
|
179
|
+
if (value.image_id === input.id_image) orderedImages.push(value);
|
|
187
180
|
});
|
|
188
|
-
}
|
|
189
|
-
|
|
181
|
+
}));
|
|
190
182
|
inputs = inputsInitial === null || inputsInitial === void 0 ? void 0 : inputsInitial.filter(function (input) {
|
|
191
183
|
return imageIdArray.includes(input.id);
|
|
192
184
|
});
|
|
193
185
|
values = orderedImages.length > 0 ? orderedImages : [];
|
|
194
186
|
} catch (error) {
|
|
195
|
-
console.log(
|
|
187
|
+
console.log(error);
|
|
196
188
|
}
|
|
197
189
|
|
|
198
190
|
return (0, _objectSpread3.default)((0, _objectSpread3.default)({}, state), {}, {
|
|
@@ -893,9 +885,9 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
893
885
|
|
|
894
886
|
var loadData = /*#__PURE__*/function () {
|
|
895
887
|
var _ref6 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() {
|
|
896
|
-
var _product$article, _product$article2, _product$article3, _services$, _services$$values
|
|
888
|
+
var _product$article, _product$article2, _product$article3, _services$, _services$$values;
|
|
897
889
|
|
|
898
|
-
var services
|
|
890
|
+
var services;
|
|
899
891
|
return _regenerator.default.wrap(function _callee8$(_context8) {
|
|
900
892
|
while (1) {
|
|
901
893
|
switch (_context8.prev = _context8.next) {
|
|
@@ -916,27 +908,14 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
916
908
|
init: services[2]
|
|
917
909
|
});
|
|
918
910
|
if (((_services$ = services[2]) === null || _services$ === void 0 ? void 0 : (_services$$values = _services$.values) === null || _services$$values === void 0 ? void 0 : _services$$values.length) > 0) setActiveImage(0);
|
|
919
|
-
data = [{
|
|
920
|
-
id_article: product.id_article,
|
|
921
|
-
id_category: product.id_category,
|
|
922
|
-
version: product.version,
|
|
923
|
-
id_retailer_array: ((_product$retailersAva2 = product.retailersAvailable) !== null && _product$retailersAva2 !== void 0 ? _product$retailersAva2 : product.retailers).map(function (_ref7) {
|
|
924
|
-
var id = _ref7.id;
|
|
925
|
-
return id;
|
|
926
|
-
})
|
|
927
|
-
}];
|
|
928
|
-
headers = {
|
|
929
|
-
Authorization: token
|
|
930
|
-
};
|
|
931
911
|
(0, _data.getPercentage)({
|
|
932
|
-
data:
|
|
933
|
-
headers: headers
|
|
912
|
+
data: [product]
|
|
934
913
|
}).then(function (res) {
|
|
935
|
-
setPercentages(res[0]);
|
|
914
|
+
return setPercentages(res[0]);
|
|
936
915
|
});
|
|
937
916
|
setLoading(false);
|
|
938
917
|
|
|
939
|
-
case
|
|
918
|
+
case 10:
|
|
940
919
|
case "end":
|
|
941
920
|
return _context8.stop();
|
|
942
921
|
}
|
|
@@ -950,7 +929,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
950
929
|
}();
|
|
951
930
|
|
|
952
931
|
var getServices = /*#__PURE__*/function () {
|
|
953
|
-
var
|
|
932
|
+
var _ref7 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9() {
|
|
954
933
|
var _product$article4;
|
|
955
934
|
|
|
956
935
|
var productInOrder, idArticle, retailers, active, _product$id_order, _servicesResponse$dat, servicesResponse, parsedResponse, retailerResponse;
|
|
@@ -995,7 +974,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
995
974
|
}));
|
|
996
975
|
|
|
997
976
|
return function getServices() {
|
|
998
|
-
return
|
|
977
|
+
return _ref7.apply(this, arguments);
|
|
999
978
|
};
|
|
1000
979
|
}();
|
|
1001
980
|
|
|
@@ -1025,16 +1004,14 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1025
1004
|
};
|
|
1026
1005
|
|
|
1027
1006
|
var getCart = /*#__PURE__*/function () {
|
|
1028
|
-
var
|
|
1029
|
-
var _Object$values;
|
|
1030
|
-
|
|
1007
|
+
var _ref8 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee10() {
|
|
1031
1008
|
var res, arr;
|
|
1032
1009
|
return _regenerator.default.wrap(function _callee10$(_context10) {
|
|
1033
1010
|
while (1) {
|
|
1034
1011
|
switch (_context10.prev = _context10.next) {
|
|
1035
1012
|
case 0:
|
|
1036
1013
|
_context10.next = 2;
|
|
1037
|
-
return _axios.default.get(
|
|
1014
|
+
return _axios.default.get(process.env.REACT_APP_CART, {
|
|
1038
1015
|
headers: {
|
|
1039
1016
|
Authorization: token
|
|
1040
1017
|
}
|
|
@@ -1042,9 +1019,9 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1042
1019
|
|
|
1043
1020
|
case 2:
|
|
1044
1021
|
res = _context10.sent;
|
|
1045
|
-
arr =
|
|
1022
|
+
arr = JSON.parse(res.data.body).data.map(function (e) {
|
|
1046
1023
|
return e.article_id;
|
|
1047
|
-
})
|
|
1024
|
+
});
|
|
1048
1025
|
setInCart(arr.some(function (e) {
|
|
1049
1026
|
return e.articleId === product.id_article;
|
|
1050
1027
|
}));
|
|
@@ -1058,7 +1035,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1058
1035
|
}));
|
|
1059
1036
|
|
|
1060
1037
|
return function getCart() {
|
|
1061
|
-
return
|
|
1038
|
+
return _ref8.apply(this, arguments);
|
|
1062
1039
|
};
|
|
1063
1040
|
}();
|
|
1064
1041
|
|
|
@@ -1171,13 +1148,11 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1171
1148
|
var _images$inputs;
|
|
1172
1149
|
|
|
1173
1150
|
var imageInputs = images === null || images === void 0 ? void 0 : (_images$inputs = images.inputs) === null || _images$inputs === void 0 ? void 0 : _images$inputs.map(function (e) {
|
|
1174
|
-
var _images$values2;
|
|
1175
|
-
|
|
1176
1151
|
return {
|
|
1177
1152
|
value: e === null || e === void 0 ? void 0 : e.id,
|
|
1178
1153
|
name: e === null || e === void 0 ? void 0 : e.name,
|
|
1179
1154
|
required: e === null || e === void 0 ? void 0 : e.required,
|
|
1180
|
-
active: images === null || images === void 0 ? void 0 :
|
|
1155
|
+
active: images === null || images === void 0 ? void 0 : images.values.some(function (value) {
|
|
1181
1156
|
return (value === null || value === void 0 ? void 0 : value.image_id) === (e === null || e === void 0 ? void 0 : e.id);
|
|
1182
1157
|
})
|
|
1183
1158
|
};
|
|
@@ -1186,7 +1161,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1186
1161
|
}, [images]);
|
|
1187
1162
|
|
|
1188
1163
|
var saveDescriptions = /*#__PURE__*/function () {
|
|
1189
|
-
var
|
|
1164
|
+
var _ref9 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee11() {
|
|
1190
1165
|
var dataObject, res;
|
|
1191
1166
|
return _regenerator.default.wrap(function _callee11$(_context11) {
|
|
1192
1167
|
while (1) {
|
|
@@ -1237,21 +1212,21 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1237
1212
|
}));
|
|
1238
1213
|
|
|
1239
1214
|
return function saveDescriptions() {
|
|
1240
|
-
return
|
|
1215
|
+
return _ref9.apply(this, arguments);
|
|
1241
1216
|
};
|
|
1242
1217
|
}();
|
|
1243
1218
|
|
|
1244
1219
|
var saveDatasheets = /*#__PURE__*/function () {
|
|
1245
|
-
var
|
|
1220
|
+
var _ref10 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee12() {
|
|
1246
1221
|
var parseBoxData, dataObject, res;
|
|
1247
1222
|
return _regenerator.default.wrap(function _callee12$(_context12) {
|
|
1248
1223
|
while (1) {
|
|
1249
1224
|
switch (_context12.prev = _context12.next) {
|
|
1250
1225
|
case 0:
|
|
1251
1226
|
parseBoxData = [];
|
|
1252
|
-
Object.entries(boxData).forEach(function (
|
|
1253
|
-
var
|
|
1254
|
-
box =
|
|
1227
|
+
Object.entries(boxData).forEach(function (_ref11, index) {
|
|
1228
|
+
var _ref12 = (0, _slicedToArray2.default)(_ref11, 2),
|
|
1229
|
+
box = _ref12[1];
|
|
1255
1230
|
|
|
1256
1231
|
var value = box.value;
|
|
1257
1232
|
var attributesIds = Object.keys(value);
|
|
@@ -1303,6 +1278,9 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1303
1278
|
console.log(_context12.t0);
|
|
1304
1279
|
|
|
1305
1280
|
case 18:
|
|
1281
|
+
console.log(dataObject);
|
|
1282
|
+
|
|
1283
|
+
case 19:
|
|
1306
1284
|
case "end":
|
|
1307
1285
|
return _context12.stop();
|
|
1308
1286
|
}
|
|
@@ -1311,12 +1289,12 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1311
1289
|
}));
|
|
1312
1290
|
|
|
1313
1291
|
return function saveDatasheets() {
|
|
1314
|
-
return
|
|
1292
|
+
return _ref10.apply(this, arguments);
|
|
1315
1293
|
};
|
|
1316
1294
|
}();
|
|
1317
1295
|
|
|
1318
1296
|
var updateImages = (0, _react.useCallback)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee13() {
|
|
1319
|
-
var _images$
|
|
1297
|
+
var _images$values2, _data$articleData, _data$articleData2, _data$updateImages;
|
|
1320
1298
|
|
|
1321
1299
|
var imagesList, imagesListTemp, duplicated, attrForImgs, data, valid, _data$updateImages2, _data$articleData3, _data$articleData4, _data$articleData5, promiseArray;
|
|
1322
1300
|
|
|
@@ -1324,7 +1302,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1324
1302
|
while (1) {
|
|
1325
1303
|
switch (_context13.prev = _context13.next) {
|
|
1326
1304
|
case 0:
|
|
1327
|
-
imagesList = images === null || images === void 0 ? void 0 : (_images$
|
|
1305
|
+
imagesList = images === null || images === void 0 ? void 0 : (_images$values2 = images.values) === null || _images$values2 === void 0 ? void 0 : _images$values2.slice();
|
|
1328
1306
|
imagesListTemp = imagesList === null || imagesList === void 0 ? void 0 : imagesList.reduce(function (acc, image) {
|
|
1329
1307
|
acc[image === null || image === void 0 ? void 0 : image.image_id] = ++acc[image === null || image === void 0 ? void 0 : image.image_id] || 0;
|
|
1330
1308
|
return acc;
|
|
@@ -1506,7 +1484,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1506
1484
|
};
|
|
1507
1485
|
|
|
1508
1486
|
var createComment = /*#__PURE__*/function () {
|
|
1509
|
-
var
|
|
1487
|
+
var _ref15 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee15() {
|
|
1510
1488
|
var messages,
|
|
1511
1489
|
retailerId,
|
|
1512
1490
|
data,
|
|
@@ -1541,7 +1519,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1541
1519
|
}));
|
|
1542
1520
|
|
|
1543
1521
|
return function createComment() {
|
|
1544
|
-
return
|
|
1522
|
+
return _ref15.apply(this, arguments);
|
|
1545
1523
|
};
|
|
1546
1524
|
}();
|
|
1547
1525
|
|
|
@@ -1550,7 +1528,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1550
1528
|
}, [activeTab]);
|
|
1551
1529
|
|
|
1552
1530
|
var commentRevised = /*#__PURE__*/function () {
|
|
1553
|
-
var
|
|
1531
|
+
var _ref16 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee16() {
|
|
1554
1532
|
var data;
|
|
1555
1533
|
return _regenerator.default.wrap(function _callee16$(_context16) {
|
|
1556
1534
|
while (1) {
|
|
@@ -1578,12 +1556,12 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1578
1556
|
}));
|
|
1579
1557
|
|
|
1580
1558
|
return function commentRevised() {
|
|
1581
|
-
return
|
|
1559
|
+
return _ref16.apply(this, arguments);
|
|
1582
1560
|
};
|
|
1583
1561
|
}();
|
|
1584
1562
|
|
|
1585
1563
|
var setAssignation = /*#__PURE__*/function () {
|
|
1586
|
-
var
|
|
1564
|
+
var _ref17 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee17(assignationType, assignationId) {
|
|
1587
1565
|
var concept, productTemp, data;
|
|
1588
1566
|
return _regenerator.default.wrap(function _callee17$(_context17) {
|
|
1589
1567
|
while (1) {
|
|
@@ -1640,18 +1618,18 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1640
1618
|
}));
|
|
1641
1619
|
|
|
1642
1620
|
return function setAssignation(_x4, _x5) {
|
|
1643
|
-
return
|
|
1621
|
+
return _ref17.apply(this, arguments);
|
|
1644
1622
|
};
|
|
1645
1623
|
}();
|
|
1646
1624
|
|
|
1647
1625
|
var downloadImages = function downloadImages() {
|
|
1648
|
-
var _images$
|
|
1626
|
+
var _images$values3;
|
|
1649
1627
|
|
|
1650
1628
|
selectedImages.length > 0 ? selectedImages.forEach(function (e) {
|
|
1651
1629
|
if (e.id) {
|
|
1652
1630
|
(0, _fileSaver.saveAs)("https://".concat(process.env.REACT_APP_IMAGES_BUCKET, ".s3.amazonaws.com/").concat(e.srcDB), "".concat(product.upc || product.article.upc, "_").concat(e.name, ".").concat(e.ext));
|
|
1653
1631
|
}
|
|
1654
|
-
}) : images === null || images === void 0 ? void 0 : (_images$
|
|
1632
|
+
}) : images === null || images === void 0 ? void 0 : (_images$values3 = images.values) === null || _images$values3 === void 0 ? void 0 : _images$values3.forEach(function (e) {
|
|
1655
1633
|
if (e.id) {
|
|
1656
1634
|
(0, _fileSaver.saveAs)("https://".concat(process.env.REACT_APP_IMAGES_BUCKET, ".s3.amazonaws.com/").concat(e.srcDB), "".concat(product.upc || product.article.upc, "_").concat(e.name, ".").concat(e.ext));
|
|
1657
1635
|
}
|
|
@@ -1724,7 +1702,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1724
1702
|
};
|
|
1725
1703
|
|
|
1726
1704
|
var sendEvaluation = /*#__PURE__*/function () {
|
|
1727
|
-
var
|
|
1705
|
+
var _ref18 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee18(result) {
|
|
1728
1706
|
var _productTemp$id_order2;
|
|
1729
1707
|
|
|
1730
1708
|
var concept, productTemp, articleId, orderId, sectionStatusKey, evalStatus, data, retailerId, res, newStatuses, orderStatus, serviceStatus, newProductEdit, showSurveyByProvider, showSurveyByRetailer, _JSON$parse, newArticleStatus, newServiceStatus, newStatus, retailerStatusCopy, status;
|
|
@@ -1829,12 +1807,12 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1829
1807
|
}));
|
|
1830
1808
|
|
|
1831
1809
|
return function sendEvaluation(_x6) {
|
|
1832
|
-
return
|
|
1810
|
+
return _ref18.apply(this, arguments);
|
|
1833
1811
|
};
|
|
1834
1812
|
}();
|
|
1835
1813
|
|
|
1836
1814
|
var validateAll = /*#__PURE__*/function () {
|
|
1837
|
-
var
|
|
1815
|
+
var _ref19 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee19(result) {
|
|
1838
1816
|
var _product$id_order2, evaluationArray, conceptArray, dataGeneral, userType, productTemp, status, retailerStatusCopy;
|
|
1839
1817
|
|
|
1840
1818
|
return _regenerator.default.wrap(function _callee19$(_context19) {
|
|
@@ -1920,12 +1898,12 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1920
1898
|
}));
|
|
1921
1899
|
|
|
1922
1900
|
return function validateAll(_x7) {
|
|
1923
|
-
return
|
|
1901
|
+
return _ref19.apply(this, arguments);
|
|
1924
1902
|
};
|
|
1925
1903
|
}();
|
|
1926
1904
|
|
|
1927
1905
|
var evaluationToRetailer = /*#__PURE__*/function () {
|
|
1928
|
-
var
|
|
1906
|
+
var _ref20 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee20(result) {
|
|
1929
1907
|
var data, prod, statusComplete;
|
|
1930
1908
|
return _regenerator.default.wrap(function _callee20$(_context20) {
|
|
1931
1909
|
while (1) {
|
|
@@ -1967,7 +1945,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1967
1945
|
}));
|
|
1968
1946
|
|
|
1969
1947
|
return function evaluationToRetailer(_x8) {
|
|
1970
|
-
return
|
|
1948
|
+
return _ref20.apply(this, arguments);
|
|
1971
1949
|
};
|
|
1972
1950
|
}();
|
|
1973
1951
|
|
|
@@ -2011,6 +1989,10 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
2011
1989
|
}];
|
|
2012
1990
|
|
|
2013
1991
|
var sendToEvaluation = function sendToEvaluation(result) {
|
|
1992
|
+
console.log({
|
|
1993
|
+
result: result
|
|
1994
|
+
});
|
|
1995
|
+
|
|
2014
1996
|
if (result === "A") {
|
|
2015
1997
|
if (origin[activeTab] === "RequestWithoutContentoh" && !user.is_retailer && (!product.id_order || !product.orderId)) {
|
|
2016
1998
|
setDataGenericModal(function (prev) {
|
|
@@ -31,58 +31,63 @@ RetailerProductEditionDefault.args = {
|
|
|
31
31
|
"Ficha técnica": false,
|
|
32
32
|
Imágenes: false
|
|
33
33
|
},
|
|
34
|
-
token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
34
|
+
token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI5YTIxMzEyOC02NDgyLTRjMTYtYTRiNi02ZTY0ZjIyNWIxYmQiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6IjlhMjEzMTI4LTY0ODItNGMxNi1hNGI2LTZlNjRmMjI1YjFiZCIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiI5OGE0NzYxMy04ZGIyLTRlZjUtYjA0Mi01ZDU3MWRkZjIwMWIiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4Mzg3NTIyNiwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY4Mzg3ODgyNiwiaWF0IjoxNjgzODc1MjI2LCJlbWFpbCI6ImlzbWFlbDk3bG9wZXpAZ21haWwuY29tIn0.EtgmT_THMx-Zy_zB5yZK4gz6TXNTVVJEKFt5X0JK2UkGVrp_q_92YCEuejS4n976fyTez0jkwOee6IkVHLV71uZWRBDFt-3Yw4ZxfsZYPNJWhoHXGNxhMU8MCkSntfu597esBTk-VsUpstT5R7L-WJfN8viE7R-qVo-42RlPTG0TFrWA9q0oTcqjv8vbxLpOBUjiEpjmqRhg4blJZwgkGNta6MOlw1vfmisOVbo9wMvqwnCZ9xx9KMKoH9U4uNObK_JomjbvPmTmkcUXsE-wGSD7XcoSwtuhBngLC7-jiu1u8MvL_ff5Z0Qp70sSpLdUglcSS8d1Xf7j_fcZuJ5jKA",
|
|
35
35
|
productSelected: {
|
|
36
|
-
orderId: 15190,
|
|
37
|
-
status: "RA",
|
|
38
|
-
datasheet_status: "NS",
|
|
39
|
-
prio: "none",
|
|
40
|
-
version: 3,
|
|
41
|
-
description_status: "NS",
|
|
42
|
-
images_status: "RA",
|
|
43
|
-
brand: null,
|
|
44
|
-
retailerOrder: 0,
|
|
45
|
-
missing: {
|
|
46
|
-
datasheet: null,
|
|
47
|
-
descriptions: null,
|
|
48
|
-
images: null
|
|
49
|
-
},
|
|
50
36
|
services: {
|
|
51
|
-
datasheets:
|
|
52
|
-
descriptions:
|
|
37
|
+
datasheets: 1,
|
|
38
|
+
descriptions: 1,
|
|
53
39
|
images: 1
|
|
54
40
|
},
|
|
41
|
+
orderId: 15275,
|
|
42
|
+
status: "AC",
|
|
43
|
+
datasheet_status: "AC",
|
|
44
|
+
prio: "none",
|
|
45
|
+
version: 3,
|
|
46
|
+
description_status: "AC",
|
|
47
|
+
images_status: "AC",
|
|
48
|
+
statusByRetailer: {
|
|
49
|
+
34: {
|
|
50
|
+
datasheet: "AC",
|
|
51
|
+
description: "AC",
|
|
52
|
+
images: "AC"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
55
|
article: {
|
|
56
|
-
|
|
56
|
+
id_article: 39485,
|
|
57
|
+
id_category: "11",
|
|
58
|
+
name: "Mix de nueces",
|
|
59
|
+
upc: "7543453453",
|
|
60
|
+
timestamp: "2023-07-14T21:02:54.000Z",
|
|
61
|
+
id_user: 28,
|
|
62
|
+
status: "NULL",
|
|
63
|
+
active: 1,
|
|
64
|
+
company_id: 1,
|
|
57
65
|
company_name: "GRUPO BRAHMA",
|
|
58
66
|
country: "México",
|
|
59
|
-
|
|
60
|
-
id_datasheet_especialist:
|
|
61
|
-
id_datasheet_facilitator:
|
|
62
|
-
id_description_especialist:
|
|
63
|
-
id_description_facilitator:
|
|
67
|
+
id_order: 15275,
|
|
68
|
+
id_datasheet_especialist: 54,
|
|
69
|
+
id_datasheet_facilitator: 52,
|
|
70
|
+
id_description_especialist: 54,
|
|
71
|
+
id_description_facilitator: 52,
|
|
64
72
|
id_images_especialist: 55,
|
|
65
73
|
id_images_facilitator: 53,
|
|
66
|
-
id_order: 15190,
|
|
67
|
-
id_article: 39364,
|
|
68
74
|
id_auditor: 37,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
75
|
+
id_recepcionist: null,
|
|
76
|
+
category: "Abarrotes|Abarrotes Secos|Frutos Secos",
|
|
77
|
+
missingAttributes: 0,
|
|
78
|
+
missingDescriptions: 0,
|
|
79
|
+
missingImages: 0
|
|
72
80
|
},
|
|
73
81
|
retailers: [{
|
|
74
|
-
id:
|
|
75
|
-
name: "
|
|
82
|
+
id: 34,
|
|
83
|
+
name: "San Pablo"
|
|
76
84
|
}],
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
images: "RA/AC"
|
|
80
|
-
}
|
|
81
|
-
}
|
|
85
|
+
country: "México",
|
|
86
|
+
upc: "7543453453"
|
|
82
87
|
},
|
|
83
88
|
location: {
|
|
84
89
|
product: {
|
|
85
|
-
articleId:
|
|
90
|
+
articleId: 354,
|
|
86
91
|
versionId: 3
|
|
87
92
|
},
|
|
88
93
|
state: {
|
|
@@ -98,7 +103,7 @@ RetailerProductEditionDefault.args = {
|
|
|
98
103
|
position: "Auditor",
|
|
99
104
|
telephone: "",
|
|
100
105
|
country: "México",
|
|
101
|
-
id_company:
|
|
106
|
+
id_company: 2,
|
|
102
107
|
id_cognito: "9a213128-6482-4c16-a4b6-6e64f225b1bd",
|
|
103
108
|
birth_Date: null,
|
|
104
109
|
about_me: "",
|
|
@@ -112,16 +117,16 @@ RetailerProductEditionDefault.args = {
|
|
|
112
117
|
email_notify: 1,
|
|
113
118
|
is_user_tech: null,
|
|
114
119
|
membership: {
|
|
115
|
-
id:
|
|
116
|
-
start_date: "
|
|
117
|
-
end_date: "
|
|
118
|
-
planID:
|
|
119
|
-
plan: "
|
|
120
|
-
name: "Plan
|
|
121
|
-
user_limit: "
|
|
122
|
-
products_limit: "
|
|
123
|
-
type: "
|
|
120
|
+
id: 2,
|
|
121
|
+
start_date: "2021-11-05T02:35:12.000Z",
|
|
122
|
+
end_date: "2022-11-05T02:34:49.000Z",
|
|
123
|
+
planID: 1,
|
|
124
|
+
plan: "prod_KtkvuFFLpOdP6e",
|
|
125
|
+
name: "Plan Free",
|
|
126
|
+
user_limit: "1",
|
|
127
|
+
products_limit: "3",
|
|
128
|
+
type: "PyMES"
|
|
124
129
|
},
|
|
125
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-37/37.png?
|
|
130
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-37/37.png?1692750648813"
|
|
126
131
|
}
|
|
127
132
|
};
|