contentoh-components-library 21.1.50 → 21.1.53
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/atoms/GeneralInput/index.js +1 -0
- package/dist/components/molecules/HeaderTop/index.js +1 -4
- package/dist/components/molecules/RetailerSelector/index.js +0 -34
- package/dist/components/molecules/StatusAsignationInfo/index.js +2 -3
- package/dist/components/organisms/FullTabsMenu/index.js +2 -4
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +46 -80
- package/dist/components/pages/ProviderProductEdition/index.js +21 -48
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +35 -32
- package/dist/components/pages/RetailerProductEdition/index.js +8 -11
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/package.json +1 -1
- package/src/components/atoms/StatusTag/index.js +12 -2
- package/src/components/atoms/StatusTag/styles.js +11 -11
- package/src/components/atoms/ValidationPanel/index.js +1 -1
- package/src/components/molecules/RetailerSelector/index.js +0 -1
- package/src/components/molecules/StatusAsignationInfo/index.js +1 -1
- package/src/components/organisms/FullProductNameHeader/index.js +1 -1
- package/src/components/organisms/FullTabsMenu/index.js +1 -1
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +99 -115
- package/src/components/pages/ProviderProductEdition/index.js +183 -177
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +31 -77
- package/src/components/pages/RetailerProductEdition/index.js +165 -140
- package/src/components/pages/RetailerProductEdition/styles.js +1 -1
- package/src/global-files/data.js +3 -4
- package/src/index.js +1 -0
|
@@ -133,7 +133,7 @@ var myBucket = new _awsSdk.default.S3({
|
|
|
133
133
|
});
|
|
134
134
|
|
|
135
135
|
var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
136
|
-
var _product$retailers, _product$services2, _datasheets$, _datasheets$$data, _product$article14
|
|
136
|
+
var _product$retailers, _product$services2, _datasheets$, _datasheets$$data, _product$article14;
|
|
137
137
|
|
|
138
138
|
var tabsSections = _ref.tabsSections,
|
|
139
139
|
_ref$productSelected = _ref.productSelected,
|
|
@@ -1006,7 +1006,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1006
1006
|
})), [dataImages, imagesUploaded]);
|
|
1007
1007
|
|
|
1008
1008
|
var evaluationFinished = function evaluationFinished(userId, tab, statusArray) {
|
|
1009
|
-
var _srv$find, _srv$find$status
|
|
1009
|
+
var _srv$find, _srv$find$status;
|
|
1010
1010
|
|
|
1011
1011
|
var srv = servicesData.filter(function (serv) {
|
|
1012
1012
|
return serv.service === getConcept(tab);
|
|
@@ -1014,7 +1014,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1014
1014
|
var srvActive = (_srv$find = srv.find(function (serv) {
|
|
1015
1015
|
return serv.id_retailer === (activeRetailer === null || activeRetailer === void 0 ? void 0 : activeRetailer.id);
|
|
1016
1016
|
})) === null || _srv$find === void 0 ? void 0 : (_srv$find$status = _srv$find.status) === null || _srv$find$status === void 0 ? void 0 : _srv$find$status.replace(/.*\//, "");
|
|
1017
|
-
var currStatus =
|
|
1017
|
+
var currStatus = product["".concat(getConcept(tab), "_status")].replace(/.*\//, "");
|
|
1018
1018
|
var unvalidated = ["IE", "CA"].includes(currStatus);
|
|
1019
1019
|
var auditorUnvalidated = !["RA", "AA", "ACA", "AP"].includes(currStatus);
|
|
1020
1020
|
|
|
@@ -1249,7 +1249,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1249
1249
|
data = {
|
|
1250
1250
|
articleId: product === null || product === void 0 ? void 0 : (_product$article12 = product.article) === null || _product$article12 === void 0 ? void 0 : _product$article12.id_article,
|
|
1251
1251
|
orderId: product === null || product === void 0 ? void 0 : product.orderId,
|
|
1252
|
-
message: body
|
|
1252
|
+
message: body,
|
|
1253
1253
|
concept: concept,
|
|
1254
1254
|
version: version
|
|
1255
1255
|
};
|
|
@@ -1313,9 +1313,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1313
1313
|
requested = _servicesData$filter4[0];
|
|
1314
1314
|
|
|
1315
1315
|
requested && description.inputs.forEach(function (input) {
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
return input.required && (!input.value || ((_input$value = input.value) === null || _input$value === void 0 ? void 0 : _input$value.replace(/(<\/?p>)|(<\/?strong>)|(<br>)/gm, "")) === "") && desInputsRequired++;
|
|
1316
|
+
return input.required && (!input.value || input.value.replace(/(<\/?p>)|(<\/?strong>)|(<br>)/gm, "") === "") && desInputsRequired++;
|
|
1319
1317
|
});
|
|
1320
1318
|
});
|
|
1321
1319
|
objetcTemp["Descripción"] = desInputsRequired;
|
|
@@ -1666,7 +1664,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1666
1664
|
|
|
1667
1665
|
return (product === null || product === void 0 ? void 0 : (_product$services = product.services) === null || _product$services === void 0 ? void 0 : _product$services.images) === 1 && updateImages();
|
|
1668
1666
|
},
|
|
1669
|
-
showSaveButton:
|
|
1667
|
+
showSaveButton: userAssigned()
|
|
1670
1668
|
})]
|
|
1671
1669
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
1672
1670
|
className: "product-information",
|
|
@@ -1734,7 +1732,6 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1734
1732
|
})]);
|
|
1735
1733
|
}
|
|
1736
1734
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_FullTabsMenu.FullTabsMenu, {
|
|
1737
|
-
canAssign: ![7, 8].includes(user.id_role),
|
|
1738
1735
|
tabsSections: tabsSections,
|
|
1739
1736
|
status: retailerStatus,
|
|
1740
1737
|
activeTab: activeTab,
|
|
@@ -1745,7 +1742,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1745
1742
|
assig: assig[activeTab],
|
|
1746
1743
|
setAssignation: setAssignation,
|
|
1747
1744
|
isRetailer: isRetailer,
|
|
1748
|
-
showSaveButton:
|
|
1745
|
+
showSaveButton: userAssigned(),
|
|
1749
1746
|
onClickSave: function onClickSave() {
|
|
1750
1747
|
switch (activeTab) {
|
|
1751
1748
|
case "Descripción":
|
|
@@ -1833,7 +1830,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1833
1830
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
1834
1831
|
className: "feedback-box",
|
|
1835
1832
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Commentary.Commentary, {
|
|
1836
|
-
comment: comment
|
|
1833
|
+
comment: comment.message,
|
|
1837
1834
|
reviewed: crossComment
|
|
1838
1835
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
1839
1836
|
buttonType: "circular-button accept-button",
|
|
@@ -13,7 +13,7 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
13
13
|
|
|
14
14
|
var _templateObject;
|
|
15
15
|
|
|
16
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n height: 100%;\n flex: 1;\n overflow: auto;\n\n .data-container {\n display: flex;\n flex: 0%;\n height: calc(100% - ", "px);\n .image-data-panel {\n width: 340px;\n\n & + * {\n margin-left: 10px;\n }\n }\n\n .product-information {\n width:
|
|
16
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n height: 100%;\n flex: 1;\n overflow: auto;\n\n .data-container {\n display: flex;\n flex: 0%;\n height: calc(100% - ", "px);\n .image-data-panel {\n width: 340px;\n\n & + * {\n margin-left: 10px;\n }\n }\n\n .product-information {\n width: 100%;\n display: flex;\n flex-direction: column;\n\n .services-information-container {\n height: 100%;\n overflow: auto;\n }\n\n .image-services {\n aside {\n display: grid;\n grid-template-columns: repeat(auto-fill, 179px);\n column-gap: 15px;\n row-gap: 15px;\n padding: 20px;\n }\n }\n\n .commentary-box {\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n padding: 10px;\n padding-left: 0;\n\n .commentary {\n display: flex;\n align-items: flex-end;\n\n .input-container {\n width: 500px;\n\n .quill {\n height: 100px;\n }\n\n & + * {\n margin-left: 5px;\n }\n }\n\n .buttons-box {\n display: flex;\n width: 210px;\n flex-wrap: wrap;\n\n .general-transparent-button {\n & + * {\n margin-top: 5px;\n }\n }\n\n .general-transparent-button,\n .general-green-button,\n .general-button-disabled {\n width: fit-content;\n min-width: 201px;\n height: 40px;\n }\n }\n }\n }\n\n .feedback-box {\n display: flex;\n }\n }\n }\n .container {\n width: 100%;\n height: 100%;\n .dropzone {\n height: 100%;\n width: 100%;\n }\n }\n"])), function (_ref) {
|
|
17
17
|
var headerTop = _ref.headerTop;
|
|
18
18
|
return headerTop;
|
|
19
19
|
});
|
package/package.json
CHANGED
|
@@ -5,10 +5,20 @@ export const StatusTag = ({ statusType, ovalForm }) => {
|
|
|
5
5
|
switch (status) {
|
|
6
6
|
case "COMPLETED":
|
|
7
7
|
return "C";
|
|
8
|
+
case "RECEPTION":
|
|
9
|
+
return "Pr";
|
|
8
10
|
case "NULL":
|
|
9
|
-
return "
|
|
11
|
+
return "-";
|
|
12
|
+
case "RECEIVED":
|
|
13
|
+
return "Rc";
|
|
14
|
+
case "IN_PROGRESS":
|
|
15
|
+
return "P";
|
|
16
|
+
case "ASSIGNED":
|
|
17
|
+
return "As";
|
|
10
18
|
case "APPROVED":
|
|
11
19
|
return "Ap";
|
|
20
|
+
case "VALIDATING":
|
|
21
|
+
return "V";
|
|
12
22
|
case "PAID_OUT":
|
|
13
23
|
return "Po";
|
|
14
24
|
default:
|
|
@@ -17,7 +27,7 @@ export const StatusTag = ({ statusType, ovalForm }) => {
|
|
|
17
27
|
};
|
|
18
28
|
return (
|
|
19
29
|
<Container
|
|
20
|
-
className={`status-${getShortStatus(statusType
|
|
30
|
+
className={`status-${getShortStatus(statusType)} ${
|
|
21
31
|
ovalForm && "oval-form"
|
|
22
32
|
}`}
|
|
23
33
|
>
|
|
@@ -16,27 +16,30 @@ export const Container = styled.div`
|
|
|
16
16
|
line-height: 20px;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
&.status-
|
|
20
|
-
&.status-
|
|
21
|
-
&.status-
|
|
19
|
+
&.status-As,
|
|
20
|
+
&.status-P,
|
|
21
|
+
&.status-IN_PROGRESS,
|
|
22
|
+
&.status-QF {
|
|
22
23
|
background-color: ${GlobalColors.in_progress};
|
|
23
24
|
}
|
|
24
25
|
|
|
25
|
-
&.status-
|
|
26
|
+
&.status-Pr,
|
|
27
|
+
&.status-Rr,
|
|
28
|
+
&.status-Rc {
|
|
26
29
|
background-color: ${GlobalColors.reception};
|
|
27
30
|
}
|
|
28
31
|
|
|
29
32
|
&.status-AA,
|
|
30
33
|
&.status-AP,
|
|
31
|
-
&.status-
|
|
32
|
-
&.status-
|
|
34
|
+
&.status-AC,
|
|
35
|
+
&.status-AF {
|
|
33
36
|
background-color: ${GlobalColors.finished};
|
|
34
37
|
}
|
|
35
38
|
|
|
36
39
|
&.status-RA,
|
|
37
|
-
&.status-
|
|
40
|
+
&.status-RF,
|
|
38
41
|
&.status-RP,
|
|
39
|
-
&.status-
|
|
42
|
+
&.status-RC {
|
|
40
43
|
background-color: ${GlobalColors.rejected_status};
|
|
41
44
|
}
|
|
42
45
|
|
|
@@ -70,7 +73,4 @@ export const Container = styled.div`
|
|
|
70
73
|
&.oval-form {
|
|
71
74
|
border-radius: 10px;
|
|
72
75
|
}
|
|
73
|
-
&.delThis {
|
|
74
|
-
color: red;
|
|
75
|
-
}
|
|
76
76
|
`;
|
|
@@ -3,7 +3,6 @@ import { Avatar } from "../../atoms/Avatar";
|
|
|
3
3
|
import { useEffect, useState } from "react";
|
|
4
4
|
import { AsignationOption } from "../../atoms/AsignationOption";
|
|
5
5
|
import { DropDownButton } from "../../atoms/DropDownButton";
|
|
6
|
-
import axios from "axios";
|
|
7
6
|
|
|
8
7
|
export const RetailerSelector = ({
|
|
9
8
|
retailers,
|
|
@@ -71,7 +71,7 @@ export const StatusAsignationInfo = ({
|
|
|
71
71
|
slidefront={slidefront}
|
|
72
72
|
iconSize={"medium-image"}
|
|
73
73
|
slidePosition={"bottom-slide"}
|
|
74
|
-
|
|
74
|
+
></SliderToolTip>
|
|
75
75
|
{status !== "-" && <StatusTag statusType={status} ovalForm={true} />}
|
|
76
76
|
{showSaveButton && (
|
|
77
77
|
<Button
|
|
@@ -26,7 +26,7 @@ export const FullProductNameHeader = ({
|
|
|
26
26
|
const element = [];
|
|
27
27
|
servicesData.forEach((sd) => {
|
|
28
28
|
if (sd.id_retailer === rt.id) {
|
|
29
|
-
element.push(sd.status ? sd.status : "
|
|
29
|
+
element.push(sd.status ? sd.status : "RECEIVED");
|
|
30
30
|
} else element.push("NA");
|
|
31
31
|
rt["services"] = element;
|
|
32
32
|
});
|
|
@@ -28,6 +28,7 @@ export const FullTabsMenu = ({
|
|
|
28
28
|
setActiveTab={setActiveTab}
|
|
29
29
|
/>
|
|
30
30
|
<StatusAsignationInfo
|
|
31
|
+
canAssign={canAssign}
|
|
31
32
|
status={status}
|
|
32
33
|
activeTab={activeTab}
|
|
33
34
|
setImageLayout={setImageLayout}
|
|
@@ -39,7 +40,6 @@ export const FullTabsMenu = ({
|
|
|
39
40
|
onClickSave={onClickSave}
|
|
40
41
|
askToDeleteImages={askToDeleteImages}
|
|
41
42
|
showSaveButton={showSaveButton}
|
|
42
|
-
canAssign={canAssign}
|
|
43
43
|
/>
|
|
44
44
|
</Container>
|
|
45
45
|
);
|
|
@@ -12,199 +12,183 @@ export const ProviderProductEditionDefault = Template.bind({});
|
|
|
12
12
|
ProviderProductEditionDefault.args = {
|
|
13
13
|
tabsSections: {
|
|
14
14
|
Descripción: true,
|
|
15
|
-
"Ficha técnica":
|
|
16
|
-
Imágenes:
|
|
15
|
+
"Ficha técnica": false,
|
|
16
|
+
Imágenes: false,
|
|
17
17
|
},
|
|
18
18
|
token:
|
|
19
|
-
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
20
|
-
articleId:
|
|
21
|
-
category:
|
|
22
|
-
version:
|
|
19
|
+
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI1ODg0YWUzNC01OWQ2LTQ0NTQtYjk4ZS04MjE1MThiY2MzYTciLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6IjU4ODRhZTM0LTU5ZDYtNDQ1NC1iOThlLTgyMTUxOGJjYzNhNyIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiJhODE2NGMwNi1hN2U5LTQ2OGItYTBiMS02MDIxNzMyNWY0ZTgiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY1NjExMzE0NiwibmFtZSI6IkNhZGVuYSBJc21hZWwiLCJwaG9uZV9udW1iZXIiOiIrNTIzMTExMzY2MzM2IiwiZXhwIjoxNjU2MTE2NzQ2LCJpYXQiOjE2NTYxMTMxNDYsImVtYWlsIjoiY2FkZW5hLmlzbWFlbEBhbGxmcmVlbWFpbC5uZXQifQ.kfMoKcxYDkpNZJibGdw50oOkRwPVl26YNAwwDoLEfQjOZB6WRCY95iHfU1maYcTTvA5KlT5ali8XZ-nLnxh60vZoLGTDOfCvEnwd1t94JtfE5CsWDr_jfH1U0AVidxihqKnkwvCezkHwU1DUFlbu2iBNo7MHQw4ydiK2sx4q0-QGltmE7W2JJ0sayRDuNchy2S6FQoyIWhsP3oaKTvJGDKCaJxwkFEKk-3antoMtfua9H8V4p2Kkqa_eDbFk8pLYGaYgImLlaia2orGgETkHZIWEMr4WJq1V_7qOg4lYq2BUUuMhWdmK6XUL_Jhmv05TUJ3Rp_Ti4_J2WE4zQqhbfQ",
|
|
20
|
+
articleId: 238,
|
|
21
|
+
category: 846,
|
|
22
|
+
version: 2,
|
|
23
23
|
productSelected: {
|
|
24
|
-
orderId:
|
|
25
|
-
|
|
26
|
-
datasheet_status: "
|
|
24
|
+
orderId: 55,
|
|
25
|
+
article_status: "AP",
|
|
26
|
+
datasheet_status: "AP",
|
|
27
|
+
description_status: "AP",
|
|
28
|
+
images_status: "AP",
|
|
27
29
|
prio: "none",
|
|
28
|
-
version:
|
|
29
|
-
description_status: "AA",
|
|
30
|
-
images_status: "AA",
|
|
30
|
+
version: 2,
|
|
31
31
|
brand: null,
|
|
32
|
-
retailerOrder: 0,
|
|
33
|
-
missing: {
|
|
34
|
-
datasheet: null,
|
|
35
|
-
descriptions: null,
|
|
36
|
-
images: null,
|
|
37
|
-
},
|
|
38
|
-
services: {
|
|
39
|
-
datasheets: 1,
|
|
40
|
-
descriptions: 1,
|
|
41
|
-
images: 1,
|
|
42
|
-
},
|
|
43
32
|
article: {
|
|
44
|
-
category: "
|
|
45
|
-
company_name: "
|
|
33
|
+
category: "ILUMINACIÓN|FOCOS|FOCOS",
|
|
34
|
+
company_name: "THD Proveedor",
|
|
46
35
|
country: "México",
|
|
47
|
-
id_category: "
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
id_description_facilitator: 52,
|
|
52
|
-
id_images_especialist: 55,
|
|
53
|
-
id_images_facilitator: 53,
|
|
54
|
-
id_order: 96,
|
|
55
|
-
id_article: 55154,
|
|
56
|
-
id_auditor: 37,
|
|
57
|
-
name: "Prueba 12312",
|
|
58
|
-
timestamp: "2022-07-04T22:17:43.000Z",
|
|
59
|
-
upc: "977812",
|
|
36
|
+
id_category: "2143",
|
|
37
|
+
id_article: 55118,
|
|
38
|
+
name: "FOCO BLUETOOTH SPOT PHILIPS 6 WATTS 300 LÚMENES MULTICOLOR",
|
|
39
|
+
upc: "145582",
|
|
60
40
|
},
|
|
61
41
|
retailers: [
|
|
62
42
|
{
|
|
63
43
|
id: 58,
|
|
64
44
|
name: "The Home Depot Golden",
|
|
45
|
+
services: ["AA", "AA", "AA", "AA"],
|
|
65
46
|
},
|
|
66
47
|
{
|
|
67
48
|
id: 59,
|
|
68
49
|
name: "The Home Depot Platinum",
|
|
50
|
+
services: ["NA", "NA", "NA", "AA"],
|
|
69
51
|
},
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
datasheet: "AA",
|
|
74
|
-
description: "AA",
|
|
75
|
-
images: "AA",
|
|
52
|
+
{
|
|
53
|
+
id: 60,
|
|
54
|
+
name: "The Home Depot Resizing",
|
|
76
55
|
},
|
|
77
|
-
|
|
78
|
-
|
|
56
|
+
{
|
|
57
|
+
id: 61,
|
|
58
|
+
name: "Home Depot TAB",
|
|
79
59
|
},
|
|
60
|
+
],
|
|
61
|
+
services: {
|
|
62
|
+
datasheets: 1,
|
|
63
|
+
descriptions: 1,
|
|
64
|
+
images: 1,
|
|
80
65
|
},
|
|
66
|
+
id_article: 55118,
|
|
81
67
|
retailersAvailable: [
|
|
82
68
|
{
|
|
83
69
|
id: 58,
|
|
84
70
|
name: "The Home Depot Golden",
|
|
71
|
+
percentage: 100,
|
|
85
72
|
},
|
|
86
73
|
{
|
|
87
74
|
id: 59,
|
|
88
75
|
name: "The Home Depot Platinum",
|
|
76
|
+
percentage: 100,
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
id: 60,
|
|
80
|
+
name: "The Home Depot Resizing",
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
id: 61,
|
|
84
|
+
name: "Home Depot TAB",
|
|
89
85
|
},
|
|
90
86
|
],
|
|
91
|
-
categoryName: "SEGURIDAD|BATERÍAS Y PILAS|BATERÍAS Y PILAS",
|
|
92
|
-
upc: "977812",
|
|
93
|
-
id_article: 55154,
|
|
94
|
-
id_order: 96,
|
|
95
87
|
},
|
|
96
88
|
productToEdit: {
|
|
97
|
-
ArticleId:
|
|
98
|
-
idCategory: "
|
|
89
|
+
ArticleId: 55118,
|
|
90
|
+
idCategory: "2143",
|
|
99
91
|
product: {
|
|
100
|
-
orderId:
|
|
101
|
-
|
|
102
|
-
datasheet_status: "
|
|
92
|
+
orderId: 55,
|
|
93
|
+
article_status: "AP",
|
|
94
|
+
datasheet_status: "AP",
|
|
95
|
+
description_status: "AP",
|
|
96
|
+
images_status: "AP",
|
|
103
97
|
prio: "none",
|
|
104
|
-
version:
|
|
105
|
-
description_status: "AA",
|
|
106
|
-
images_status: "AA",
|
|
98
|
+
version: 2,
|
|
107
99
|
brand: null,
|
|
108
|
-
retailerOrder: 0,
|
|
109
|
-
missing: {
|
|
110
|
-
datasheet: null,
|
|
111
|
-
descriptions: null,
|
|
112
|
-
images: null,
|
|
113
|
-
},
|
|
114
|
-
services: {
|
|
115
|
-
datasheets: 1,
|
|
116
|
-
descriptions: 1,
|
|
117
|
-
images: 1,
|
|
118
|
-
},
|
|
119
100
|
article: {
|
|
120
|
-
category: "
|
|
121
|
-
company_name: "
|
|
101
|
+
category: "ILUMINACIÓN|FOCOS|FOCOS",
|
|
102
|
+
company_name: "THD Proveedor",
|
|
122
103
|
country: "México",
|
|
123
|
-
id_category: "
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
id_description_facilitator: 52,
|
|
128
|
-
id_images_especialist: 55,
|
|
129
|
-
id_images_facilitator: 53,
|
|
130
|
-
id_order: 96,
|
|
131
|
-
id_article: 55154,
|
|
132
|
-
id_auditor: 37,
|
|
133
|
-
name: "Prueba 12312",
|
|
134
|
-
timestamp: "2022-07-04T22:17:43.000Z",
|
|
135
|
-
upc: "977812",
|
|
104
|
+
id_category: "2143",
|
|
105
|
+
id_article: 55118,
|
|
106
|
+
name: "FOCO BLUETOOTH SPOT PHILIPS 6 WATTS 300 LÚMENES MULTICOLOR",
|
|
107
|
+
upc: "145582",
|
|
136
108
|
},
|
|
137
109
|
retailers: [
|
|
138
110
|
{
|
|
139
111
|
id: 58,
|
|
140
112
|
name: "The Home Depot Golden",
|
|
113
|
+
services: ["AA", "AA", "AA", "NA"],
|
|
141
114
|
},
|
|
142
115
|
{
|
|
143
116
|
id: 59,
|
|
144
117
|
name: "The Home Depot Platinum",
|
|
118
|
+
services: ["NA", "NA", "NA", "AA"],
|
|
145
119
|
},
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
datasheet: "AA",
|
|
150
|
-
description: "AA",
|
|
151
|
-
images: "AA",
|
|
120
|
+
{
|
|
121
|
+
id: 60,
|
|
122
|
+
name: "The Home Depot Resizing",
|
|
152
123
|
},
|
|
153
|
-
|
|
154
|
-
|
|
124
|
+
{
|
|
125
|
+
id: 61,
|
|
126
|
+
name: "Home Depot TAB",
|
|
155
127
|
},
|
|
128
|
+
],
|
|
129
|
+
services: {
|
|
130
|
+
datasheets: 1,
|
|
131
|
+
descriptions: 1,
|
|
132
|
+
images: 1,
|
|
156
133
|
},
|
|
134
|
+
id_article: 55118,
|
|
157
135
|
retailersAvailable: [
|
|
158
136
|
{
|
|
159
137
|
id: 58,
|
|
160
138
|
name: "The Home Depot Golden",
|
|
139
|
+
percentage: 100,
|
|
161
140
|
},
|
|
162
141
|
{
|
|
163
142
|
id: 59,
|
|
164
143
|
name: "The Home Depot Platinum",
|
|
144
|
+
percentage: 100,
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
id: 60,
|
|
148
|
+
name: "The Home Depot Resizing",
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
id: 61,
|
|
152
|
+
name: "Home Depot TAB",
|
|
165
153
|
},
|
|
166
154
|
],
|
|
167
|
-
categoryName: "SEGURIDAD|BATERÍAS Y PILAS|BATERÍAS Y PILAS",
|
|
168
|
-
upc: "977812",
|
|
169
|
-
id_article: 55154,
|
|
170
|
-
id_order: 96,
|
|
171
155
|
},
|
|
172
156
|
},
|
|
173
157
|
location: {
|
|
174
|
-
product: { articleId:
|
|
158
|
+
product: { articleId: 109485, versionId: 3 },
|
|
175
159
|
state: { origin: "Contentoh" },
|
|
176
160
|
},
|
|
177
161
|
user: {
|
|
178
|
-
id_user:
|
|
179
|
-
name: "
|
|
180
|
-
last_name: "
|
|
181
|
-
email: "
|
|
182
|
-
position: "
|
|
162
|
+
id_user: 59,
|
|
163
|
+
name: "The Home",
|
|
164
|
+
last_name: "Depot",
|
|
165
|
+
email: "cadena.ismael@allfreemail.net",
|
|
166
|
+
position: "Admin",
|
|
183
167
|
telephone: "+523111366336",
|
|
184
168
|
country: "México",
|
|
185
|
-
id_company:
|
|
186
|
-
id_cognito: "
|
|
169
|
+
id_company: 7,
|
|
170
|
+
id_cognito: "5884ae34-59d6-4454-b98e-821518bcc3a7",
|
|
187
171
|
birth_Date: null,
|
|
188
172
|
about_me: null,
|
|
189
173
|
zip_code: null,
|
|
190
174
|
address: null,
|
|
191
175
|
job: null,
|
|
192
|
-
id_stripe: "
|
|
176
|
+
id_stripe: "",
|
|
193
177
|
id_role: 0,
|
|
194
178
|
active: 1,
|
|
195
179
|
is_retailer: 0,
|
|
196
|
-
email_notify:
|
|
180
|
+
email_notify: 1,
|
|
197
181
|
membership: {
|
|
198
|
-
id:
|
|
199
|
-
start_date: "
|
|
200
|
-
end_date: "
|
|
201
|
-
planID:
|
|
202
|
-
plan: "
|
|
203
|
-
name: "Plan
|
|
204
|
-
user_limit: "
|
|
205
|
-
products_limit: "
|
|
182
|
+
id: 24,
|
|
183
|
+
start_date: "2021-11-23T03:35:50.000Z",
|
|
184
|
+
end_date: "2022-11-23T03:35:50.000Z",
|
|
185
|
+
planID: 9,
|
|
186
|
+
plan: "prod_KtlkzZVGq6bRTO",
|
|
187
|
+
name: "Plan Enterprise Full",
|
|
188
|
+
user_limit: "30",
|
|
189
|
+
products_limit: "10000",
|
|
206
190
|
type: "Enterprise",
|
|
207
191
|
},
|
|
208
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
192
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1656113146885",
|
|
209
193
|
},
|
|
210
194
|
};
|