contentoh-components-library 21.1.10 → 21.1.13
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/TableHeader/index.js +4 -2
- package/dist/components/organisms/ImageDataTable/index.js +3 -1
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +77 -87
- package/dist/components/pages/ProviderProductEdition/index.js +52 -302
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +49 -43
- package/dist/components/pages/RetailerProductEdition/index.js +99 -160
- package/package.json +1 -1
- package/src/components/molecules/TableHeader/index.js +2 -0
- package/src/components/organisms/ImageDataTable/index.js +2 -0
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +75 -90
- package/src/components/pages/ProviderProductEdition/index.js +18 -306
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +50 -43
- package/src/components/pages/RetailerProductEdition/index.js +99 -181
|
@@ -382,40 +382,47 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
382
382
|
|
|
383
383
|
var loadData = /*#__PURE__*/function () {
|
|
384
384
|
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
385
|
-
var _product$article, _product$article2, _services$, _services$$values;
|
|
385
|
+
var _product$article, _product$article2, _services$, _services$$values, _services;
|
|
386
386
|
|
|
387
|
-
var services;
|
|
388
387
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
389
388
|
while (1) {
|
|
390
389
|
switch (_context.prev = _context.next) {
|
|
391
390
|
case 0:
|
|
392
|
-
_context.
|
|
391
|
+
_context.prev = 0;
|
|
392
|
+
_context.next = 3;
|
|
393
393
|
return (0, _data2.getRetailerServices)(product === null || product === void 0 ? void 0 : (_product$article = product.article) === null || _product$article === void 0 ? void 0 : _product$article.id_article, parseInt(product === null || product === void 0 ? void 0 : (_product$article2 = product.article) === null || _product$article2 === void 0 ? void 0 : _product$article2.id_category), product === null || product === void 0 ? void 0 : product.version);
|
|
394
394
|
|
|
395
|
-
case
|
|
396
|
-
|
|
395
|
+
case 3:
|
|
396
|
+
_services = _context.sent;
|
|
397
397
|
//Converts the data inside the datasheets object to array
|
|
398
|
-
setServices(
|
|
398
|
+
setServices(_services);
|
|
399
399
|
getServices(); //setActiveRetailer(product?.retailers[0]);
|
|
400
400
|
|
|
401
401
|
setImages({
|
|
402
402
|
action: "init",
|
|
403
|
-
init:
|
|
403
|
+
init: _services[2]
|
|
404
404
|
});
|
|
405
|
-
if (((_services$ =
|
|
405
|
+
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);
|
|
406
406
|
(0, _data2.getPercentage)({
|
|
407
407
|
data: [product]
|
|
408
408
|
}).then(function (res) {
|
|
409
409
|
return setPercentages(res);
|
|
410
410
|
});
|
|
411
411
|
setLoading(false);
|
|
412
|
+
_context.next = 15;
|
|
413
|
+
break;
|
|
414
|
+
|
|
415
|
+
case 12:
|
|
416
|
+
_context.prev = 12;
|
|
417
|
+
_context.t0 = _context["catch"](0);
|
|
418
|
+
console.log(_context.t0);
|
|
412
419
|
|
|
413
|
-
case
|
|
420
|
+
case 15:
|
|
414
421
|
case "end":
|
|
415
422
|
return _context.stop();
|
|
416
423
|
}
|
|
417
424
|
}
|
|
418
|
-
}, _callee);
|
|
425
|
+
}, _callee, null, [[0, 12]]);
|
|
419
426
|
}));
|
|
420
427
|
|
|
421
428
|
return function loadData() {
|
|
@@ -427,7 +434,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
427
434
|
var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
428
435
|
var _product$article3, _product$article4, _servicesResponse$dat;
|
|
429
436
|
|
|
430
|
-
var servicesResponse, parsedResponse;
|
|
437
|
+
var servicesResponse, parsedResponse, retailers, active;
|
|
431
438
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
432
439
|
while (1) {
|
|
433
440
|
switch (_context2.prev = _context2.next) {
|
|
@@ -438,9 +445,16 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
438
445
|
case 2:
|
|
439
446
|
servicesResponse = _context2.sent;
|
|
440
447
|
parsedResponse = JSON.parse(servicesResponse === null || servicesResponse === void 0 ? void 0 : (_servicesResponse$dat = servicesResponse.data) === null || _servicesResponse$dat === void 0 ? void 0 : _servicesResponse$dat.body).data;
|
|
448
|
+
retailers = product.retailers || product.retailersAvailable;
|
|
449
|
+
active = retailers === null || retailers === void 0 ? void 0 : retailers.filter(function (retailer) {
|
|
450
|
+
return parsedResponse === null || parsedResponse === void 0 ? void 0 : parsedResponse.map(function (srv) {
|
|
451
|
+
return srv.id_retailer;
|
|
452
|
+
}).includes(retailer.id);
|
|
453
|
+
})[0];
|
|
454
|
+
!activeRetailer.id && setActiveRetailer(active ? active : retailers[0]);
|
|
441
455
|
setServicesData(parsedResponse);
|
|
442
456
|
|
|
443
|
-
case
|
|
457
|
+
case 8:
|
|
444
458
|
case "end":
|
|
445
459
|
return _context2.stop();
|
|
446
460
|
}
|
|
@@ -513,46 +527,40 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
513
527
|
while (1) {
|
|
514
528
|
switch (_context4.prev = _context4.next) {
|
|
515
529
|
case 0:
|
|
516
|
-
loadData();
|
|
517
|
-
// setPercentages(res)
|
|
518
|
-
// );
|
|
519
|
-
|
|
520
|
-
setActiveRetailer(function (current) {
|
|
521
|
-
return current.id ? current : product.retailers ? product.retailers[0] : product.retailersAvailable[0];
|
|
522
|
-
});
|
|
530
|
+
loadData();
|
|
523
531
|
getComments();
|
|
524
532
|
_context4.t0 = setUserGroups;
|
|
525
|
-
_context4.next =
|
|
533
|
+
_context4.next = 5;
|
|
526
534
|
return (0, _data2.fetchUsers)(token);
|
|
527
535
|
|
|
528
|
-
case
|
|
536
|
+
case 5:
|
|
529
537
|
_context4.t1 = _context4.sent;
|
|
530
538
|
(0, _context4.t0)(_context4.t1);
|
|
531
539
|
arr = [];
|
|
532
540
|
_context4.t2 = user.id_role;
|
|
533
|
-
_context4.next = _context4.t2 === 7 ?
|
|
541
|
+
_context4.next = _context4.t2 === 7 ? 11 : _context4.t2 === 8 ? 11 : _context4.t2 === 4 ? 13 : _context4.t2 === 5 ? 13 : _context4.t2 === 6 ? 15 : 17;
|
|
534
542
|
break;
|
|
535
543
|
|
|
536
|
-
case
|
|
544
|
+
case 11:
|
|
537
545
|
arr = ["IN_PROGRESS", "RF", "RA"];
|
|
538
|
-
return _context4.abrupt("break",
|
|
546
|
+
return _context4.abrupt("break", 19);
|
|
539
547
|
|
|
540
|
-
case
|
|
548
|
+
case 13:
|
|
541
549
|
arr = ["RF", "AF", "AA", "AP", "AC"];
|
|
542
|
-
return _context4.abrupt("break",
|
|
550
|
+
return _context4.abrupt("break", 19);
|
|
543
551
|
|
|
544
|
-
case
|
|
552
|
+
case 15:
|
|
545
553
|
arr = ["RP", "RC", "AF", "RA"];
|
|
546
|
-
return _context4.abrupt("break",
|
|
554
|
+
return _context4.abrupt("break", 19);
|
|
547
555
|
|
|
548
|
-
case
|
|
556
|
+
case 17:
|
|
549
557
|
arr = [];
|
|
550
|
-
return _context4.abrupt("break",
|
|
558
|
+
return _context4.abrupt("break", 19);
|
|
551
559
|
|
|
552
|
-
case
|
|
560
|
+
case 19:
|
|
553
561
|
setStatusArray(arr);
|
|
554
562
|
|
|
555
|
-
case
|
|
563
|
+
case 20:
|
|
556
564
|
case "end":
|
|
557
565
|
return _context4.stop();
|
|
558
566
|
}
|
|
@@ -642,7 +650,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
642
650
|
var thumbs = function thumbs() {
|
|
643
651
|
var _images$imageType, _images$imagePackagin, _images$values;
|
|
644
652
|
|
|
645
|
-
var imageInputs = socketType.slice();
|
|
653
|
+
var imageInputs = socketType === null || socketType === void 0 ? void 0 : socketType.slice();
|
|
646
654
|
var imageType = images === null || images === void 0 ? void 0 : (_images$imageType = images.imageType) === null || _images$imageType === void 0 ? void 0 : _images$imageType.map(function (e) {
|
|
647
655
|
return {
|
|
648
656
|
value: e === null || e === void 0 ? void 0 : e.id,
|
|
@@ -1199,7 +1207,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1199
1207
|
}
|
|
1200
1208
|
}
|
|
1201
1209
|
|
|
1202
|
-
return product.article["id_".concat(concept, "_").concat(rol)] === user.id_user && validUser;
|
|
1210
|
+
return user.id_role === 1 || product.article["id_".concat(concept, "_").concat(rol)] === user.id_user && validUser;
|
|
1203
1211
|
};
|
|
1204
1212
|
|
|
1205
1213
|
var auditorAssigned = function auditorAssigned() {
|
|
@@ -1269,61 +1277,65 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1269
1277
|
}();
|
|
1270
1278
|
|
|
1271
1279
|
var getRequired = function getRequired(services) {
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
return
|
|
1290
|
-
|
|
1280
|
+
try {
|
|
1281
|
+
var _services$4, _services$4$retailerM, _services$5, _services$5$inputs;
|
|
1282
|
+
|
|
1283
|
+
var objetcTemp = {};
|
|
1284
|
+
var datasheetServicesArray = Object.values(services[0]);
|
|
1285
|
+
var dsInputs = datasheetServicesArray.pop();
|
|
1286
|
+
var descriptionsServicesArray = services[1];
|
|
1287
|
+
var dsInputsRequired = [];
|
|
1288
|
+
var desInputsRequired = 0;
|
|
1289
|
+
datasheetServicesArray === null || datasheetServicesArray === void 0 ? void 0 : datasheetServicesArray.forEach(function (datasheet) {
|
|
1290
|
+
var _servicesData$filter3 = servicesData === null || servicesData === void 0 ? void 0 : servicesData.filter(function (srv) {
|
|
1291
|
+
return srv.id_retailer === datasheet.retailer.id && srv.service === getConcept(activeTab);
|
|
1292
|
+
}),
|
|
1293
|
+
_servicesData$filter4 = (0, _slicedToArray2.default)(_servicesData$filter3, 1),
|
|
1294
|
+
requested = _servicesData$filter4[0];
|
|
1295
|
+
|
|
1296
|
+
requested && (datasheet === null || datasheet === void 0 ? void 0 : datasheet.data) && Object.values(datasheet === null || datasheet === void 0 ? void 0 : datasheet.data).forEach(function (dataGroup) {
|
|
1297
|
+
return dsInputsRequired.push.apply(dsInputsRequired, (0, _toConsumableArray2.default)(dataGroup.inputs.filter(function (input) {
|
|
1298
|
+
return dsInputs[input].required && (dsInputs[input].value === undefined || !dsInputs[input].value);
|
|
1299
|
+
})));
|
|
1300
|
+
});
|
|
1291
1301
|
});
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1302
|
+
objetcTemp["Ficha técnica"] = dsInputsRequired.length;
|
|
1303
|
+
descriptionsServicesArray.forEach(function (description) {
|
|
1304
|
+
var _servicesData$filter5 = servicesData.filter(function (srv) {
|
|
1305
|
+
return srv.id_retailer === description.id && srv.service === getConcept(activeTab);
|
|
1306
|
+
}),
|
|
1307
|
+
_servicesData$filter6 = (0, _slicedToArray2.default)(_servicesData$filter5, 1),
|
|
1308
|
+
requested = _servicesData$filter6[0];
|
|
1309
|
+
|
|
1310
|
+
requested && description.inputs.forEach(function (input) {
|
|
1311
|
+
return input.required && (!input.value || input.value.replace(/(<\/?p>)|(<\/?strong>)|(<br>)/gm, "") === "") && desInputsRequired++;
|
|
1312
|
+
});
|
|
1303
1313
|
});
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1314
|
+
objetcTemp["Descripción"] = desInputsRequired;
|
|
1315
|
+
var retailersRequested = [];
|
|
1316
|
+
(_services$4 = services[2]) === null || _services$4 === void 0 ? void 0 : (_services$4$retailerM = _services$4.retailerMandatories) === null || _services$4$retailerM === void 0 ? void 0 : _services$4$retailerM.forEach(function (retMan) {
|
|
1317
|
+
return retMan.forEach(function (rm) {
|
|
1318
|
+
return retailersRequested.push(rm);
|
|
1319
|
+
});
|
|
1310
1320
|
});
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1321
|
+
var requiredImages = (_services$5 = services[2]) === null || _services$5 === void 0 ? void 0 : (_services$5$inputs = _services$5.inputs) === null || _services$5$inputs === void 0 ? void 0 : _services$5$inputs.filter(function (e) {
|
|
1322
|
+
return e.required === 1 && retailersRequested.filter(function (ret) {
|
|
1323
|
+
return ret.id_image === e.id && servicesData.filter(function (srv) {
|
|
1324
|
+
return srv.id_retailer === ret.id_retailer;
|
|
1325
|
+
}).length > 0;
|
|
1316
1326
|
}).length > 0;
|
|
1317
|
-
})
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
})
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
+
});
|
|
1328
|
+
var requiredCounter = 0;
|
|
1329
|
+
requiredImages === null || requiredImages === void 0 ? void 0 : requiredImages.forEach(function (req) {
|
|
1330
|
+
return services[2].values.filter(function (img) {
|
|
1331
|
+
return img.image_id === req.id;
|
|
1332
|
+
}).length === 0 && requiredCounter++;
|
|
1333
|
+
});
|
|
1334
|
+
objetcTemp["Imágenes"] = requiredCounter;
|
|
1335
|
+
setRequiredNull(objetcTemp);
|
|
1336
|
+
} catch (error) {
|
|
1337
|
+
console.log(error);
|
|
1338
|
+
}
|
|
1327
1339
|
};
|
|
1328
1340
|
|
|
1329
1341
|
(0, _react.useEffect)(function () {
|
|
@@ -1425,60 +1437,6 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1425
1437
|
};
|
|
1426
1438
|
}();
|
|
1427
1439
|
|
|
1428
|
-
var evaluationComplete = function evaluationComplete() {
|
|
1429
|
-
var concept = "";
|
|
1430
|
-
|
|
1431
|
-
switch (activeTab) {
|
|
1432
|
-
case "Ficha técnica":
|
|
1433
|
-
concept = "datasheet";
|
|
1434
|
-
break;
|
|
1435
|
-
|
|
1436
|
-
case "Imágenes":
|
|
1437
|
-
concept = "images";
|
|
1438
|
-
break;
|
|
1439
|
-
|
|
1440
|
-
case "Descripción":
|
|
1441
|
-
concept = "description";
|
|
1442
|
-
break;
|
|
1443
|
-
}
|
|
1444
|
-
|
|
1445
|
-
var serv = servicesData.filter(function (item) {
|
|
1446
|
-
return item.service === concept;
|
|
1447
|
-
});
|
|
1448
|
-
var approved = "";
|
|
1449
|
-
var rejected = "";
|
|
1450
|
-
|
|
1451
|
-
if (product.status === "IN_PROGRESS" || product.status === "QF" || product.status === "RF") {
|
|
1452
|
-
approved = "AF";
|
|
1453
|
-
rejected = "RF";
|
|
1454
|
-
|
|
1455
|
-
if (product.status === "IN_PROGRESS" || product.status === "QF") {
|
|
1456
|
-
return serv.filter(function (item) {
|
|
1457
|
-
return item.status === approved || item.status === rejected || item.status === "AA" || item.status === "IN_PROGRESS" || item.status === "AP";
|
|
1458
|
-
}).length === serv.length;
|
|
1459
|
-
}
|
|
1460
|
-
} else if (product.status === "AF" || product.status === "RA" || product.status === "RP") {
|
|
1461
|
-
approved = "AA";
|
|
1462
|
-
rejected = "RA";
|
|
1463
|
-
|
|
1464
|
-
if (product.status === "RP" || product.status === "AF") {
|
|
1465
|
-
return serv.filter(function (item) {
|
|
1466
|
-
return item.status === approved || item.status === rejected || item.status === "AP";
|
|
1467
|
-
}).length === serv.length;
|
|
1468
|
-
}
|
|
1469
|
-
} else if (product.status === "RC") {
|
|
1470
|
-
approved = "AP";
|
|
1471
|
-
rejected = "RA";
|
|
1472
|
-
return serv.filter(function (item) {
|
|
1473
|
-
return item.status === approved || item.status === rejected;
|
|
1474
|
-
}).length === serv.length;
|
|
1475
|
-
}
|
|
1476
|
-
|
|
1477
|
-
return serv.filter(function (item) {
|
|
1478
|
-
return item.status === approved || item.status === rejected;
|
|
1479
|
-
}).length === serv.length;
|
|
1480
|
-
};
|
|
1481
|
-
|
|
1482
1440
|
var downloadImages = function downloadImages() {
|
|
1483
1441
|
selectedImages.forEach(function (e) {
|
|
1484
1442
|
if (e.id) {
|
|
@@ -1553,26 +1511,6 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1553
1511
|
}
|
|
1554
1512
|
};
|
|
1555
1513
|
|
|
1556
|
-
var specialistValid = function specialistValid(tab) {
|
|
1557
|
-
var concept = "";
|
|
1558
|
-
|
|
1559
|
-
switch (tab) {
|
|
1560
|
-
case "Ficha técnica":
|
|
1561
|
-
concept = "datasheet";
|
|
1562
|
-
break;
|
|
1563
|
-
|
|
1564
|
-
case "Imágenes":
|
|
1565
|
-
concept = "images";
|
|
1566
|
-
break;
|
|
1567
|
-
|
|
1568
|
-
case "Descripción":
|
|
1569
|
-
concept = "description";
|
|
1570
|
-
break;
|
|
1571
|
-
}
|
|
1572
|
-
|
|
1573
|
-
return product["".concat(concept, "_status")] === "IN_PROGRESS" || product["".concat(concept, "_status")] === "RF" || product["".concat(concept, "_status")] === "RA";
|
|
1574
|
-
};
|
|
1575
|
-
|
|
1576
1514
|
var getRetailerStatus = function getRetailerStatus(servicesData, tab) {
|
|
1577
1515
|
var arr = servicesData === null || servicesData === void 0 ? void 0 : servicesData.slice();
|
|
1578
1516
|
var concept = getConcept(tab);
|
|
@@ -1624,7 +1562,8 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1624
1562
|
var _product$services;
|
|
1625
1563
|
|
|
1626
1564
|
return (product === null || product === void 0 ? void 0 : (_product$services = product.services) === null || _product$services === void 0 ? void 0 : _product$services.images) === 1 && updateImages();
|
|
1627
|
-
}
|
|
1565
|
+
},
|
|
1566
|
+
showSaveButton: userAssigned()
|
|
1628
1567
|
})]
|
|
1629
1568
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
1630
1569
|
className: "product-information",
|
package/package.json
CHANGED
|
@@ -10,6 +10,7 @@ export const TableHeader = ({
|
|
|
10
10
|
setAssignation,
|
|
11
11
|
isRetailer,
|
|
12
12
|
onClickSave,
|
|
13
|
+
showSaveButton,
|
|
13
14
|
}) => {
|
|
14
15
|
return (
|
|
15
16
|
<Container>
|
|
@@ -24,6 +25,7 @@ export const TableHeader = ({
|
|
|
24
25
|
setAssignation={setAssignation}
|
|
25
26
|
isRetailer={isRetailer}
|
|
26
27
|
onClickSave={onClickSave}
|
|
28
|
+
showSaveButton={showSaveButton}
|
|
27
29
|
/>
|
|
28
30
|
</Container>
|
|
29
31
|
);
|
|
@@ -15,6 +15,7 @@ export const ImageDataTable = ({
|
|
|
15
15
|
setAssignation,
|
|
16
16
|
isRetailer,
|
|
17
17
|
onClickSave,
|
|
18
|
+
showSaveButton,
|
|
18
19
|
}) => {
|
|
19
20
|
return (
|
|
20
21
|
<Container darkMode={darkMode}>
|
|
@@ -24,6 +25,7 @@ export const ImageDataTable = ({
|
|
|
24
25
|
assignationsImages={assignationsImages}
|
|
25
26
|
setAssignation={setAssignation}
|
|
26
27
|
isRetailer={isRetailer}
|
|
28
|
+
showSaveButton={showSaveButton}
|
|
27
29
|
onClickSave={onClickSave}
|
|
28
30
|
/>
|
|
29
31
|
<Row>
|
|
@@ -16,141 +16,126 @@ ProviderProductEditionDefault.args = {
|
|
|
16
16
|
Imágenes: false,
|
|
17
17
|
},
|
|
18
18
|
token:
|
|
19
|
-
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
19
|
+
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI1ODg0YWUzNC01OWQ2LTQ0NTQtYjk4ZS04MjE1MThiY2MzYTciLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6IjU4ODRhZTM0LTU5ZDYtNDQ1NC1iOThlLTgyMTUxOGJjYzNhNyIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiI5MzhiMGQyMC0yOTM4LTQ2OWItOTY2Zi0wY2VkOTVkMmI4NWEiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY1NTc1MDcxMCwibmFtZSI6IkNhZGVuYSBJc21hZWwiLCJwaG9uZV9udW1iZXIiOiIrNTIzMTExMzY2MzM2IiwiZXhwIjoxNjU1NzU0MzEwLCJpYXQiOjE2NTU3NTA3MTAsImVtYWlsIjoiY2FkZW5hLmlzbWFlbEBhbGxmcmVlbWFpbC5uZXQifQ.Ujee6tuptp9LLqZq9fJN83TGjRZDfhGPMcwcr-zAZKgnGZQLzD8SkxWIabSF5DqTuj5V9pZnLHMG3iwlXM1QV54HqeF9xwL6s41EmOsaJFRLT8f_x8i599RBw_6Yfltmo-qWw2sbD-SA29etm8g5yNoJiK8Nqth9xbE8uyUqSOpwqe1MX4uE7Gbx14nEUXjdeRxnr3Nis7mad4miWxCUurl_RaoPd5JKvhwhvhnvG1RGlZTa0wOSW36Y4GjJ-MgG63akBwNCouDUlcOSe--Dy0gXpNVPgh5XRDr-mHVtz_iOarJ_mRGbY5jAlMmw1DzxcH0sD-ppFQzMMbguFxnH9g",
|
|
20
20
|
articleId: 238,
|
|
21
21
|
category: 846,
|
|
22
22
|
version: 2,
|
|
23
23
|
productSelected: {
|
|
24
|
-
|
|
25
|
-
article_status: "AP",
|
|
26
|
-
datasheet_status: "AA",
|
|
27
|
-
description_status: "AA",
|
|
28
|
-
images_status: "NS",
|
|
29
|
-
prio: "none",
|
|
30
|
-
version: 2,
|
|
24
|
+
version: 1,
|
|
31
25
|
brand: null,
|
|
26
|
+
missing: {
|
|
27
|
+
datasheet: null,
|
|
28
|
+
descriptions: null,
|
|
29
|
+
images: null,
|
|
30
|
+
},
|
|
32
31
|
article: {
|
|
33
|
-
category:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
upc: "159786",
|
|
32
|
+
category: "MATERIALES DE CONSTRUCCIÓN|BÁSICOS DE CONSTRUCCIÓN|ADOQUINES",
|
|
33
|
+
company_name: "TABICEL DEL CENTRO",
|
|
34
|
+
company_id: 529,
|
|
35
|
+
id_category: "2578",
|
|
36
|
+
id_article: 24,
|
|
37
|
+
name: "ADOQUIN ROJO 20X 40 X 6",
|
|
38
|
+
upc: "85369",
|
|
41
39
|
},
|
|
40
|
+
asignations: [62],
|
|
42
41
|
retailers: [
|
|
43
42
|
{
|
|
44
43
|
id: 58,
|
|
45
44
|
name: "The Home Depot Golden",
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
name: "The Home Depot Platinum",
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
id: 60,
|
|
53
|
-
name: "The Home Depot Resizing",
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
id: 61,
|
|
57
|
-
name: "Home Depot TAB",
|
|
45
|
+
country: "México",
|
|
46
|
+
id_region: 1,
|
|
47
|
+
active: 1,
|
|
58
48
|
},
|
|
59
49
|
],
|
|
60
|
-
services: {
|
|
61
|
-
datasheets: 1,
|
|
62
|
-
descriptions: 1,
|
|
63
|
-
images: 0,
|
|
64
|
-
},
|
|
65
|
-
id_article: 55126,
|
|
66
50
|
retailersAvailable: [
|
|
67
51
|
{
|
|
68
52
|
id: 58,
|
|
69
53
|
name: "The Home Depot Golden",
|
|
54
|
+
country: "México",
|
|
55
|
+
id_region: 1,
|
|
56
|
+
active: 1,
|
|
70
57
|
},
|
|
58
|
+
],
|
|
59
|
+
upc: "85369",
|
|
60
|
+
name: "ADOQUIN ROJO 20X 40 X 6",
|
|
61
|
+
categoryName:
|
|
62
|
+
"MATERIALES DE CONSTRUCCIÓN|BÁSICOS DE CONSTRUCCIÓN|ADOQUINES",
|
|
63
|
+
id_category: "2578",
|
|
64
|
+
id_article: 24,
|
|
65
|
+
services: [
|
|
71
66
|
{
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
{
|
|
80
|
-
id: 61,
|
|
81
|
-
name: "Home Depot TAB",
|
|
67
|
+
id_article: 24,
|
|
68
|
+
service: "datasheet",
|
|
69
|
+
quantity: 1,
|
|
70
|
+
price: 0,
|
|
71
|
+
id_user: 59,
|
|
72
|
+
datasheet_common: null,
|
|
73
|
+
discount: null,
|
|
82
74
|
},
|
|
83
75
|
],
|
|
84
76
|
},
|
|
85
77
|
productToEdit: {
|
|
86
|
-
ArticleId:
|
|
87
|
-
idCategory: "
|
|
78
|
+
ArticleId: 24,
|
|
79
|
+
idCategory: "2578",
|
|
88
80
|
product: {
|
|
89
|
-
|
|
90
|
-
article_status: "AP",
|
|
91
|
-
datasheet_status: "AA",
|
|
92
|
-
description_status: "AA",
|
|
93
|
-
images_status: "NS",
|
|
94
|
-
prio: "none",
|
|
95
|
-
version: 2,
|
|
81
|
+
version: 1,
|
|
96
82
|
brand: null,
|
|
83
|
+
missing: {
|
|
84
|
+
datasheet: null,
|
|
85
|
+
descriptions: null,
|
|
86
|
+
images: null,
|
|
87
|
+
},
|
|
97
88
|
article: {
|
|
98
89
|
category:
|
|
99
|
-
"
|
|
100
|
-
company_name: "
|
|
101
|
-
|
|
102
|
-
id_category: "
|
|
103
|
-
id_article:
|
|
104
|
-
name: "
|
|
105
|
-
upc: "
|
|
90
|
+
"MATERIALES DE CONSTRUCCIÓN|BÁSICOS DE CONSTRUCCIÓN|ADOQUINES",
|
|
91
|
+
company_name: "TABICEL DEL CENTRO",
|
|
92
|
+
company_id: 529,
|
|
93
|
+
id_category: "2578",
|
|
94
|
+
id_article: 24,
|
|
95
|
+
name: "ADOQUIN ROJO 20X 40 X 6",
|
|
96
|
+
upc: "85369",
|
|
106
97
|
},
|
|
98
|
+
asignations: [62],
|
|
107
99
|
retailers: [
|
|
108
100
|
{
|
|
109
101
|
id: 58,
|
|
110
102
|
name: "The Home Depot Golden",
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
name: "The Home Depot Platinum",
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
id: 60,
|
|
118
|
-
name: "The Home Depot Resizing",
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
id: 61,
|
|
122
|
-
name: "Home Depot TAB",
|
|
103
|
+
country: "México",
|
|
104
|
+
id_region: 1,
|
|
105
|
+
active: 1,
|
|
123
106
|
},
|
|
124
107
|
],
|
|
125
|
-
services: {
|
|
126
|
-
datasheets: 1,
|
|
127
|
-
descriptions: 1,
|
|
128
|
-
images: 0,
|
|
129
|
-
},
|
|
130
|
-
id_article: 55126,
|
|
131
108
|
retailersAvailable: [
|
|
132
109
|
{
|
|
133
110
|
id: 58,
|
|
134
111
|
name: "The Home Depot Golden",
|
|
112
|
+
country: "México",
|
|
113
|
+
id_region: 1,
|
|
114
|
+
active: 1,
|
|
135
115
|
},
|
|
116
|
+
],
|
|
117
|
+
upc: "85369",
|
|
118
|
+
name: "ADOQUIN ROJO 20X 40 X 6",
|
|
119
|
+
categoryName:
|
|
120
|
+
"MATERIALES DE CONSTRUCCIÓN|BÁSICOS DE CONSTRUCCIÓN|ADOQUINES",
|
|
121
|
+
id_category: "2578",
|
|
122
|
+
id_article: 24,
|
|
123
|
+
services: [
|
|
136
124
|
{
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
{
|
|
145
|
-
id: 61,
|
|
146
|
-
name: "Home Depot TAB",
|
|
125
|
+
id_article: 24,
|
|
126
|
+
service: "datasheet",
|
|
127
|
+
quantity: 1,
|
|
128
|
+
price: 0,
|
|
129
|
+
id_user: 59,
|
|
130
|
+
datasheet_common: null,
|
|
131
|
+
discount: null,
|
|
147
132
|
},
|
|
148
133
|
],
|
|
149
134
|
},
|
|
150
135
|
},
|
|
151
136
|
location: {
|
|
152
137
|
product: { articleId: 109485, versionId: 3 },
|
|
153
|
-
state: {
|
|
138
|
+
state: {},
|
|
154
139
|
},
|
|
155
140
|
user: {
|
|
156
141
|
id_user: 59,
|
|
@@ -182,6 +167,6 @@ ProviderProductEditionDefault.args = {
|
|
|
182
167
|
products_limit: "10000",
|
|
183
168
|
type: "Enterprise",
|
|
184
169
|
},
|
|
185
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?
|
|
170
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1655750711586",
|
|
186
171
|
},
|
|
187
172
|
};
|