contentoh-components-library 21.0.83 → 21.0.84
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/ProviderProductEdition/ProviderProductEdition.stories.js +95 -47
- package/dist/components/pages/ProviderProductEdition/index.js +25 -23
- package/dist/index.js +22 -9
- package/package.json +1 -1
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +102 -54
- package/src/components/pages/ProviderProductEdition/index.js +6 -2
- package/src/index.js +1 -0
|
@@ -36,60 +36,108 @@ ProviderProductEditionDefault.args = {
|
|
|
36
36
|
category: 846,
|
|
37
37
|
version: 2,
|
|
38
38
|
productSelected: {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
timestamp: "2021-11-09T23:22:36.000Z",
|
|
44
|
-
status: "NULL",
|
|
45
|
-
categoryName: "TECNOLOGÍA Y ELECTRÓNICA|VIDEO|DVD Y BLU-RAY",
|
|
46
|
-
asignations: [],
|
|
39
|
+
orderId: 2,
|
|
40
|
+
status: "AA",
|
|
41
|
+
datasheet_status: "AA",
|
|
42
|
+
prio: "none",
|
|
47
43
|
version: 2,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
44
|
+
description_status: "AP",
|
|
45
|
+
images_status: "AA",
|
|
46
|
+
brand: null,
|
|
47
|
+
retailerOrder: 0,
|
|
48
|
+
missing: {
|
|
49
|
+
datasheet: 0,
|
|
50
|
+
descriptions: 0,
|
|
51
|
+
images: -1
|
|
52
|
+
},
|
|
53
|
+
services: {
|
|
54
|
+
datasheets: 1,
|
|
55
|
+
descriptions: 1,
|
|
56
|
+
images: 1
|
|
57
|
+
},
|
|
58
|
+
article: {
|
|
59
|
+
category: "ILUMINACIÓN|FOCOS|LEDS",
|
|
60
|
+
company_name: "COMPANY DEV",
|
|
58
61
|
country: "México",
|
|
59
|
-
|
|
60
|
-
|
|
62
|
+
id_category: "2146",
|
|
63
|
+
id_datasheet_especialist: 54,
|
|
64
|
+
id_datasheet_facilitator: 52,
|
|
65
|
+
id_description_especialist: 54,
|
|
66
|
+
id_description_facilitator: 52,
|
|
67
|
+
id_images_especialist: 55,
|
|
68
|
+
id_images_facilitator: 53,
|
|
69
|
+
id_order: 2,
|
|
70
|
+
id_article: 35319,
|
|
71
|
+
id_auditor: 30,
|
|
72
|
+
name: "FOCO LED A19 (60W) LUZ AMARILLA",
|
|
73
|
+
upc: "120873"
|
|
74
|
+
},
|
|
75
|
+
retailers: [{
|
|
76
|
+
id: 58,
|
|
77
|
+
name: "The Home Depot Golden"
|
|
78
|
+
}],
|
|
79
|
+
retailersAvailable: [{
|
|
80
|
+
id: 58,
|
|
81
|
+
name: "The Home Depot Golden"
|
|
61
82
|
}],
|
|
62
|
-
|
|
83
|
+
categoryName: "ILUMINACIÓN|FOCOS|LEDS",
|
|
84
|
+
upc: "120873",
|
|
85
|
+
id_article: 35319,
|
|
86
|
+
id_order: 2
|
|
63
87
|
},
|
|
64
88
|
productToEdit: {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
product:
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
timestamp: "2021-11-09T23:22:36.000Z",
|
|
73
|
-
status: "NULL",
|
|
74
|
-
categoryName: "TECNOLOGÍA Y ELECTRÓNICA|VIDEO|DVD Y BLU-RAY",
|
|
75
|
-
asignations: [],
|
|
89
|
+
ArticleId: 35319,
|
|
90
|
+
idCategory: "2146",
|
|
91
|
+
product: {
|
|
92
|
+
orderId: 2,
|
|
93
|
+
status: "AA",
|
|
94
|
+
datasheet_status: "AA",
|
|
95
|
+
prio: "none",
|
|
76
96
|
version: 2,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
97
|
+
description_status: "AP",
|
|
98
|
+
images_status: "AA",
|
|
99
|
+
brand: null,
|
|
100
|
+
retailerOrder: 0,
|
|
101
|
+
missing: {
|
|
102
|
+
datasheet: 0,
|
|
103
|
+
descriptions: 0,
|
|
104
|
+
images: -1
|
|
105
|
+
},
|
|
106
|
+
services: {
|
|
107
|
+
datasheets: 1,
|
|
108
|
+
descriptions: 1,
|
|
109
|
+
images: 1
|
|
110
|
+
},
|
|
111
|
+
article: {
|
|
112
|
+
category: "ILUMINACIÓN|FOCOS|LEDS",
|
|
113
|
+
company_name: "COMPANY DEV",
|
|
87
114
|
country: "México",
|
|
88
|
-
|
|
89
|
-
|
|
115
|
+
id_category: "2146",
|
|
116
|
+
id_datasheet_especialist: 54,
|
|
117
|
+
id_datasheet_facilitator: 52,
|
|
118
|
+
id_description_especialist: 54,
|
|
119
|
+
id_description_facilitator: 52,
|
|
120
|
+
id_images_especialist: 55,
|
|
121
|
+
id_images_facilitator: 53,
|
|
122
|
+
id_order: 2,
|
|
123
|
+
id_article: 35319,
|
|
124
|
+
id_auditor: 30,
|
|
125
|
+
name: "FOCO LED A19 (60W) LUZ AMARILLA",
|
|
126
|
+
upc: "120873"
|
|
127
|
+
},
|
|
128
|
+
retailers: [{
|
|
129
|
+
id: 58,
|
|
130
|
+
name: "The Home Depot Golden"
|
|
90
131
|
}],
|
|
91
|
-
|
|
92
|
-
|
|
132
|
+
retailersAvailable: [{
|
|
133
|
+
id: 58,
|
|
134
|
+
name: "The Home Depot Golden"
|
|
135
|
+
}],
|
|
136
|
+
categoryName: "ILUMINACIÓN|FOCOS|LEDS",
|
|
137
|
+
upc: "120873",
|
|
138
|
+
id_article: 35319,
|
|
139
|
+
id_order: 2
|
|
140
|
+
}
|
|
93
141
|
},
|
|
94
142
|
location: {
|
|
95
143
|
product: {
|
|
@@ -130,6 +178,6 @@ ProviderProductEditionDefault.args = {
|
|
|
130
178
|
products_limit: "5000",
|
|
131
179
|
type: "Enterprise"
|
|
132
180
|
},
|
|
133
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?
|
|
181
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1655246340910"
|
|
134
182
|
}
|
|
135
183
|
};
|
|
@@ -543,9 +543,10 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
543
543
|
|
|
544
544
|
var isRevision = function isRevision() {
|
|
545
545
|
if (productEdit) {
|
|
546
|
-
var
|
|
546
|
+
var _concept = getConcept(activeTab);
|
|
547
|
+
|
|
547
548
|
var _isRetailer = user.is_retailer;
|
|
548
|
-
var currentService = productEdit === null || productEdit === void 0 ? void 0 : productEdit.product["".concat(
|
|
549
|
+
var currentService = productEdit === null || productEdit === void 0 ? void 0 : productEdit.product["".concat(_concept, "_status")];
|
|
549
550
|
var orgn = origin[activeTab];
|
|
550
551
|
|
|
551
552
|
var _revision = ["RequestWithContentoh", "RequestWithoutContentoh", "Contentoh"].includes(orgn);
|
|
@@ -1550,7 +1551,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1550
1551
|
|
|
1551
1552
|
var sendEvaluation = /*#__PURE__*/function () {
|
|
1552
1553
|
var _ref14 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee13(result) {
|
|
1553
|
-
var data, retailerId, _product$id_order2, _product$id_order3,
|
|
1554
|
+
var data, retailerId, productTemp, _product$id_order2, _product$id_order3, _concept2;
|
|
1554
1555
|
|
|
1555
1556
|
return _regenerator.default.wrap(function _callee13$(_context13) {
|
|
1556
1557
|
while (1) {
|
|
@@ -1558,9 +1559,10 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1558
1559
|
case 0:
|
|
1559
1560
|
data = {};
|
|
1560
1561
|
retailerId = activeRetailer === null || activeRetailer === void 0 ? void 0 : activeRetailer.id;
|
|
1562
|
+
productTemp = product;
|
|
1561
1563
|
|
|
1562
1564
|
if (!result) {
|
|
1563
|
-
_context13.next =
|
|
1565
|
+
_context13.next = 10;
|
|
1564
1566
|
break;
|
|
1565
1567
|
}
|
|
1566
1568
|
|
|
@@ -1571,25 +1573,25 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1571
1573
|
result: result,
|
|
1572
1574
|
retailerId: retailerId
|
|
1573
1575
|
};
|
|
1574
|
-
|
|
1576
|
+
productTemp["".concat(concept, "_status")] = "".concat(result, "P");
|
|
1577
|
+
_context13.next = 8;
|
|
1575
1578
|
return _axios.default.put("".concat(process.env.REACT_APP_EVALUATION_ENDPOINT), data, {
|
|
1576
1579
|
headers: {
|
|
1577
1580
|
Authorization: token
|
|
1578
1581
|
}
|
|
1579
1582
|
});
|
|
1580
1583
|
|
|
1581
|
-
case
|
|
1582
|
-
_context13.next =
|
|
1584
|
+
case 8:
|
|
1585
|
+
_context13.next = 18;
|
|
1583
1586
|
break;
|
|
1584
1587
|
|
|
1585
|
-
case
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
_productTemp["".concat(concept, "_status")] = "Evaluated";
|
|
1588
|
+
case 10:
|
|
1589
|
+
_concept2 = getConcept(activeTab);
|
|
1590
|
+
productTemp["".concat(_concept2, "_status")] = "Evaluated";
|
|
1589
1591
|
data = {
|
|
1590
1592
|
articleId: product.id_article,
|
|
1591
1593
|
orderId: (_product$id_order3 = product.id_order) !== null && _product$id_order3 !== void 0 ? _product$id_order3 : product.orderId,
|
|
1592
|
-
concept:
|
|
1594
|
+
concept: _concept2,
|
|
1593
1595
|
retailerId: retailerId
|
|
1594
1596
|
};
|
|
1595
1597
|
|
|
@@ -1599,26 +1601,26 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1599
1601
|
}
|
|
1600
1602
|
});
|
|
1601
1603
|
|
|
1602
|
-
setProduct(
|
|
1604
|
+
setProduct(productTemp);
|
|
1603
1605
|
setProductEdit({
|
|
1604
|
-
ArticleId:
|
|
1605
|
-
idCategory:
|
|
1606
|
-
product:
|
|
1606
|
+
ArticleId: productTemp.id_article,
|
|
1607
|
+
idCategory: productTemp.article.id_category,
|
|
1608
|
+
product: productTemp
|
|
1607
1609
|
});
|
|
1608
1610
|
sessionStorage.setItem("productEdit", JSON.stringify({
|
|
1609
|
-
ArticleId:
|
|
1610
|
-
idCategory:
|
|
1611
|
-
product:
|
|
1611
|
+
ArticleId: productTemp.id_article,
|
|
1612
|
+
idCategory: productTemp.article.id_category,
|
|
1613
|
+
product: productTemp
|
|
1612
1614
|
}));
|
|
1613
1615
|
setOrigin(function (prev) {
|
|
1614
|
-
return (0, _objectSpread3.default)((0, _objectSpread3.default)({}, prev), {}, (0, _defineProperty2.default)({},
|
|
1616
|
+
return (0, _objectSpread3.default)((0, _objectSpread3.default)({}, prev), {}, (0, _defineProperty2.default)({}, _concept2, "Evaluated"));
|
|
1615
1617
|
});
|
|
1616
1618
|
|
|
1617
|
-
case
|
|
1619
|
+
case 18:
|
|
1618
1620
|
loadData();
|
|
1619
1621
|
showSurvey && showSurvey(confirmStatusComplete());
|
|
1620
1622
|
|
|
1621
|
-
case
|
|
1623
|
+
case 20:
|
|
1622
1624
|
case "end":
|
|
1623
1625
|
return _context13.stop();
|
|
1624
1626
|
}
|
|
@@ -1789,7 +1791,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1789
1791
|
}
|
|
1790
1792
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_FullTabsMenu.FullTabsMenu, {
|
|
1791
1793
|
tabsSections: tabsSections,
|
|
1792
|
-
status: product === null || product === void 0 ? void 0 : product.version_status,
|
|
1794
|
+
status: product["".concat(getConcept(activeTab), "_status")] || (product === null || product === void 0 ? void 0 : product.version_status),
|
|
1793
1795
|
activeTab: activeTab,
|
|
1794
1796
|
setActiveTab: setActiveTab,
|
|
1795
1797
|
setImageLayout: setImageLayout,
|
package/dist/index.js
CHANGED
|
@@ -602,7 +602,7 @@ Object.keys(_index45).forEach(function (key) {
|
|
|
602
602
|
});
|
|
603
603
|
});
|
|
604
604
|
|
|
605
|
-
var _index46 = require("./components/
|
|
605
|
+
var _index46 = require("./components/molecules/RetailerSelector/index");
|
|
606
606
|
|
|
607
607
|
Object.keys(_index46).forEach(function (key) {
|
|
608
608
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -615,7 +615,7 @@ Object.keys(_index46).forEach(function (key) {
|
|
|
615
615
|
});
|
|
616
616
|
});
|
|
617
617
|
|
|
618
|
-
var _index47 = require("./components/organisms/
|
|
618
|
+
var _index47 = require("./components/organisms/ChangePassword/index");
|
|
619
619
|
|
|
620
620
|
Object.keys(_index47).forEach(function (key) {
|
|
621
621
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -628,7 +628,7 @@ Object.keys(_index47).forEach(function (key) {
|
|
|
628
628
|
});
|
|
629
629
|
});
|
|
630
630
|
|
|
631
|
-
var _index48 = require("./components/organisms/
|
|
631
|
+
var _index48 = require("./components/organisms/Fullplan/index");
|
|
632
632
|
|
|
633
633
|
Object.keys(_index48).forEach(function (key) {
|
|
634
634
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -641,7 +641,7 @@ Object.keys(_index48).forEach(function (key) {
|
|
|
641
641
|
});
|
|
642
642
|
});
|
|
643
643
|
|
|
644
|
-
var _index49 = require("./components/organisms/
|
|
644
|
+
var _index49 = require("./components/organisms/FullProductNameHeader/index");
|
|
645
645
|
|
|
646
646
|
Object.keys(_index49).forEach(function (key) {
|
|
647
647
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -654,7 +654,7 @@ Object.keys(_index49).forEach(function (key) {
|
|
|
654
654
|
});
|
|
655
655
|
});
|
|
656
656
|
|
|
657
|
-
var _index50 = require("./components/organisms/
|
|
657
|
+
var _index50 = require("./components/organisms/FullTabsMenu/index");
|
|
658
658
|
|
|
659
659
|
Object.keys(_index50).forEach(function (key) {
|
|
660
660
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -667,7 +667,7 @@ Object.keys(_index50).forEach(function (key) {
|
|
|
667
667
|
});
|
|
668
668
|
});
|
|
669
669
|
|
|
670
|
-
var _index51 = require("./components/organisms/
|
|
670
|
+
var _index51 = require("./components/organisms/ImageDataTable/index");
|
|
671
671
|
|
|
672
672
|
Object.keys(_index51).forEach(function (key) {
|
|
673
673
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -680,7 +680,7 @@ Object.keys(_index51).forEach(function (key) {
|
|
|
680
680
|
});
|
|
681
681
|
});
|
|
682
682
|
|
|
683
|
-
var _index52 = require("./components/organisms/
|
|
683
|
+
var _index52 = require("./components/organisms/ImagePreviewer/index");
|
|
684
684
|
|
|
685
685
|
Object.keys(_index52).forEach(function (key) {
|
|
686
686
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -693,7 +693,7 @@ Object.keys(_index52).forEach(function (key) {
|
|
|
693
693
|
});
|
|
694
694
|
});
|
|
695
695
|
|
|
696
|
-
var _index53 = require("./components/organisms/
|
|
696
|
+
var _index53 = require("./components/organisms/ImagesGroup/index");
|
|
697
697
|
|
|
698
698
|
Object.keys(_index53).forEach(function (key) {
|
|
699
699
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -706,7 +706,7 @@ Object.keys(_index53).forEach(function (key) {
|
|
|
706
706
|
});
|
|
707
707
|
});
|
|
708
708
|
|
|
709
|
-
var _index54 = require("./components/organisms/
|
|
709
|
+
var _index54 = require("./components/organisms/InputGroup/index");
|
|
710
710
|
|
|
711
711
|
Object.keys(_index54).forEach(function (key) {
|
|
712
712
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -719,6 +719,19 @@ Object.keys(_index54).forEach(function (key) {
|
|
|
719
719
|
});
|
|
720
720
|
});
|
|
721
721
|
|
|
722
|
+
var _index55 = require("./components/organisms/ProductImageModal/index");
|
|
723
|
+
|
|
724
|
+
Object.keys(_index55).forEach(function (key) {
|
|
725
|
+
if (key === "default" || key === "__esModule") return;
|
|
726
|
+
if (key in exports && exports[key] === _index55[key]) return;
|
|
727
|
+
Object.defineProperty(exports, key, {
|
|
728
|
+
enumerable: true,
|
|
729
|
+
get: function get() {
|
|
730
|
+
return _index55[key];
|
|
731
|
+
}
|
|
732
|
+
});
|
|
733
|
+
});
|
|
734
|
+
|
|
722
735
|
var _ChangePasswordLogin = require("./components/pages/ChangePasswordLogin");
|
|
723
736
|
|
|
724
737
|
Object.keys(_ChangePasswordLogin).forEach(function (key) {
|
package/package.json
CHANGED
|
@@ -21,68 +21,116 @@ ProviderProductEditionDefault.args = {
|
|
|
21
21
|
category: 846,
|
|
22
22
|
version: 2,
|
|
23
23
|
productSelected: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
timestamp: "2021-11-09T23:22:36.000Z",
|
|
29
|
-
status: "NULL",
|
|
30
|
-
categoryName: "TECNOLOGÍA Y ELECTRÓNICA|VIDEO|DVD Y BLU-RAY",
|
|
31
|
-
asignations: [],
|
|
24
|
+
orderId: 2,
|
|
25
|
+
status: "AA",
|
|
26
|
+
datasheet_status: "AA",
|
|
27
|
+
prio: "none",
|
|
32
28
|
version: 2,
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
description_status: "AP",
|
|
30
|
+
images_status: "AA",
|
|
31
|
+
brand: null,
|
|
32
|
+
retailerOrder: 0,
|
|
33
|
+
missing: {
|
|
34
|
+
datasheet: 0,
|
|
35
|
+
descriptions: 0,
|
|
36
|
+
images: -1,
|
|
37
|
+
},
|
|
38
|
+
services: {
|
|
39
|
+
datasheets: 1,
|
|
40
|
+
descriptions: 1,
|
|
41
|
+
images: 1,
|
|
42
|
+
},
|
|
43
|
+
article: {
|
|
44
|
+
category: "ILUMINACIÓN|FOCOS|LEDS",
|
|
45
|
+
company_name: "COMPANY DEV",
|
|
46
|
+
country: "México",
|
|
47
|
+
id_category: "2146",
|
|
48
|
+
id_datasheet_especialist: 54,
|
|
49
|
+
id_datasheet_facilitator: 52,
|
|
50
|
+
id_description_especialist: 54,
|
|
51
|
+
id_description_facilitator: 52,
|
|
52
|
+
id_images_especialist: 55,
|
|
53
|
+
id_images_facilitator: 53,
|
|
54
|
+
id_order: 2,
|
|
55
|
+
id_article: 35319,
|
|
56
|
+
id_auditor: 30,
|
|
57
|
+
name: "FOCO LED A19 (60W) LUZ AMARILLA",
|
|
58
|
+
upc: "120873",
|
|
59
|
+
},
|
|
60
|
+
retailers: [
|
|
35
61
|
{
|
|
36
|
-
id:
|
|
37
|
-
name: "
|
|
38
|
-
country: "México",
|
|
39
|
-
id_region: 1,
|
|
40
|
-
active: 1,
|
|
62
|
+
id: 58,
|
|
63
|
+
name: "The Home Depot Golden",
|
|
41
64
|
},
|
|
65
|
+
],
|
|
66
|
+
retailersAvailable: [
|
|
42
67
|
{
|
|
43
|
-
id:
|
|
44
|
-
name: "
|
|
45
|
-
country: "México",
|
|
46
|
-
id_region: 1,
|
|
47
|
-
active: 1,
|
|
68
|
+
id: 58,
|
|
69
|
+
name: "The Home Depot Golden",
|
|
48
70
|
},
|
|
49
71
|
],
|
|
50
|
-
|
|
72
|
+
categoryName: "ILUMINACIÓN|FOCOS|LEDS",
|
|
73
|
+
upc: "120873",
|
|
74
|
+
id_article: 35319,
|
|
75
|
+
id_order: 2,
|
|
51
76
|
},
|
|
52
77
|
productToEdit: {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
product:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
id: 2,
|
|
70
|
-
name: "Walmart Mercancías Generales",
|
|
71
|
-
country: "México",
|
|
72
|
-
id_region: 1,
|
|
73
|
-
active: 1,
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
id: 3,
|
|
77
|
-
name: "Sam´s Club",
|
|
78
|
-
country: "México",
|
|
79
|
-
id_region: 1,
|
|
80
|
-
active: 1,
|
|
81
|
-
},
|
|
82
|
-
],
|
|
83
|
-
missing: {},
|
|
78
|
+
ArticleId: 35319,
|
|
79
|
+
idCategory: "2146",
|
|
80
|
+
product: {
|
|
81
|
+
orderId: 2,
|
|
82
|
+
status: "AA",
|
|
83
|
+
datasheet_status: "AA",
|
|
84
|
+
prio: "none",
|
|
85
|
+
version: 2,
|
|
86
|
+
description_status: "AP",
|
|
87
|
+
images_status: "AA",
|
|
88
|
+
brand: null,
|
|
89
|
+
retailerOrder: 0,
|
|
90
|
+
missing: {
|
|
91
|
+
datasheet: 0,
|
|
92
|
+
descriptions: 0,
|
|
93
|
+
images: -1,
|
|
84
94
|
},
|
|
85
|
-
|
|
95
|
+
services: {
|
|
96
|
+
datasheets: 1,
|
|
97
|
+
descriptions: 1,
|
|
98
|
+
images: 1,
|
|
99
|
+
},
|
|
100
|
+
article: {
|
|
101
|
+
category: "ILUMINACIÓN|FOCOS|LEDS",
|
|
102
|
+
company_name: "COMPANY DEV",
|
|
103
|
+
country: "México",
|
|
104
|
+
id_category: "2146",
|
|
105
|
+
id_datasheet_especialist: 54,
|
|
106
|
+
id_datasheet_facilitator: 52,
|
|
107
|
+
id_description_especialist: 54,
|
|
108
|
+
id_description_facilitator: 52,
|
|
109
|
+
id_images_especialist: 55,
|
|
110
|
+
id_images_facilitator: 53,
|
|
111
|
+
id_order: 2,
|
|
112
|
+
id_article: 35319,
|
|
113
|
+
id_auditor: 30,
|
|
114
|
+
name: "FOCO LED A19 (60W) LUZ AMARILLA",
|
|
115
|
+
upc: "120873",
|
|
116
|
+
},
|
|
117
|
+
retailers: [
|
|
118
|
+
{
|
|
119
|
+
id: 58,
|
|
120
|
+
name: "The Home Depot Golden",
|
|
121
|
+
},
|
|
122
|
+
],
|
|
123
|
+
retailersAvailable: [
|
|
124
|
+
{
|
|
125
|
+
id: 58,
|
|
126
|
+
name: "The Home Depot Golden",
|
|
127
|
+
},
|
|
128
|
+
],
|
|
129
|
+
categoryName: "ILUMINACIÓN|FOCOS|LEDS",
|
|
130
|
+
upc: "120873",
|
|
131
|
+
id_article: 35319,
|
|
132
|
+
id_order: 2,
|
|
133
|
+
},
|
|
86
134
|
},
|
|
87
135
|
location: {
|
|
88
136
|
product: { articleId: 109485, versionId: 3 },
|
|
@@ -118,6 +166,6 @@ ProviderProductEditionDefault.args = {
|
|
|
118
166
|
products_limit: "5000",
|
|
119
167
|
type: "Enterprise",
|
|
120
168
|
},
|
|
121
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?
|
|
169
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1655246340910",
|
|
122
170
|
},
|
|
123
171
|
};
|
|
@@ -1072,6 +1072,7 @@ export const ProviderProductEdition = ({
|
|
|
1072
1072
|
const sendEvaluation = async (result) => {
|
|
1073
1073
|
let data = {};
|
|
1074
1074
|
const retailerId = activeRetailer?.id;
|
|
1075
|
+
const productTemp = product;
|
|
1075
1076
|
if (result) {
|
|
1076
1077
|
data = {
|
|
1077
1078
|
articleId: product.id_article,
|
|
@@ -1080,6 +1081,7 @@ export const ProviderProductEdition = ({
|
|
|
1080
1081
|
result: result,
|
|
1081
1082
|
retailerId,
|
|
1082
1083
|
};
|
|
1084
|
+
productTemp[`${concept}_status`] = `${result}P`;
|
|
1083
1085
|
await axios.put(`${process.env.REACT_APP_EVALUATION_ENDPOINT}`, data, {
|
|
1084
1086
|
headers: {
|
|
1085
1087
|
Authorization: token,
|
|
@@ -1087,7 +1089,6 @@ export const ProviderProductEdition = ({
|
|
|
1087
1089
|
});
|
|
1088
1090
|
} else {
|
|
1089
1091
|
const concept = getConcept(activeTab);
|
|
1090
|
-
const productTemp = product;
|
|
1091
1092
|
productTemp[`${concept}_status`] = "Evaluated";
|
|
1092
1093
|
data = {
|
|
1093
1094
|
articleId: product.id_article,
|
|
@@ -1256,7 +1257,10 @@ export const ProviderProductEdition = ({
|
|
|
1256
1257
|
/>
|
|
1257
1258
|
<FullTabsMenu
|
|
1258
1259
|
tabsSections={tabsSections}
|
|
1259
|
-
status={
|
|
1260
|
+
status={
|
|
1261
|
+
product[`${getConcept(activeTab)}_status`] ||
|
|
1262
|
+
product?.version_status
|
|
1263
|
+
}
|
|
1260
1264
|
activeTab={activeTab}
|
|
1261
1265
|
setActiveTab={setActiveTab}
|
|
1262
1266
|
setImageLayout={setImageLayout}
|
package/src/index.js
CHANGED
|
@@ -47,6 +47,7 @@ export * from "./components/molecules/TableRow/index";
|
|
|
47
47
|
export * from "./components/molecules/TabsMenu/index";
|
|
48
48
|
export * from "./components/molecules/TagAndInput/index";
|
|
49
49
|
export * from "./components/molecules/VerificationCodeResetPasswordLogin/index";
|
|
50
|
+
export * from "./components/molecules/RetailerSelector/index";
|
|
50
51
|
|
|
51
52
|
//organisms
|
|
52
53
|
export * from "./components/organisms/ChangePassword/index";
|