contentoh-components-library 21.1.53 → 21.1.56
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 +152 -128
- package/dist/components/pages/ProviderProductEdition/index.js +71 -48
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +33 -33
- package/dist/components/pages/RetailerProductEdition/index.js +10 -8
- package/dist/global-files/data.js +2 -2
- package/package.json +1 -1
- package/src/components/atoms/GeneralInput/index.js +1 -0
- package/src/components/atoms/StatusTag/index.js +2 -12
- package/src/components/atoms/StatusTag/styles.js +11 -11
- package/src/components/atoms/ValidationPanel/index.js +1 -1
- package/src/components/molecules/HeaderTop/index.js +1 -6
- package/src/components/molecules/RetailerSelector/index.js +0 -15
- package/src/components/molecules/StatusAsignationInfo/index.js +2 -3
- package/src/components/organisms/FullProductNameHeader/index.js +1 -1
- package/src/components/organisms/FullTabsMenu/index.js +0 -2
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +131 -121
- package/src/components/pages/ProviderProductEdition/index.js +167 -171
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +87 -38
- package/src/components/pages/RetailerProductEdition/index.js +140 -166
- package/src/components/pages/RetailerProductEdition/styles.js +1 -1
- package/src/global-files/data.js +2 -1
- package/src/index.js +0 -1
|
@@ -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, _comment$message;
|
|
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, _product$;
|
|
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 = product["".concat(getConcept(tab), "_status")]
|
|
1017
|
+
var currStatus = (_product$ = product["".concat(getConcept(tab), "_status")]) === null || _product$ === void 0 ? void 0 : _product$.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 === null || body === void 0 ? void 0 : body.replace(/<.*?\/?>/gm, ""),
|
|
1253
1253
|
concept: concept,
|
|
1254
1254
|
version: version
|
|
1255
1255
|
};
|
|
@@ -1313,7 +1313,9 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1313
1313
|
requested = _servicesData$filter4[0];
|
|
1314
1314
|
|
|
1315
1315
|
requested && description.inputs.forEach(function (input) {
|
|
1316
|
-
|
|
1316
|
+
var _input$value;
|
|
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++;
|
|
1317
1319
|
});
|
|
1318
1320
|
});
|
|
1319
1321
|
objetcTemp["Descripción"] = desInputsRequired;
|
|
@@ -1664,7 +1666,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1664
1666
|
|
|
1665
1667
|
return (product === null || product === void 0 ? void 0 : (_product$services = product.services) === null || _product$services === void 0 ? void 0 : _product$services.images) === 1 && updateImages();
|
|
1666
1668
|
},
|
|
1667
|
-
showSaveButton: userAssigned()
|
|
1669
|
+
showSaveButton: auditorAssigned() || userAssigned()
|
|
1668
1670
|
})]
|
|
1669
1671
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
1670
1672
|
className: "product-information",
|
|
@@ -1742,7 +1744,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1742
1744
|
assig: assig[activeTab],
|
|
1743
1745
|
setAssignation: setAssignation,
|
|
1744
1746
|
isRetailer: isRetailer,
|
|
1745
|
-
showSaveButton: userAssigned(),
|
|
1747
|
+
showSaveButton: auditorAssigned() || userAssigned(),
|
|
1746
1748
|
onClickSave: function onClickSave() {
|
|
1747
1749
|
switch (activeTab) {
|
|
1748
1750
|
case "Descripción":
|
|
@@ -1830,7 +1832,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1830
1832
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
1831
1833
|
className: "feedback-box",
|
|
1832
1834
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Commentary.Commentary, {
|
|
1833
|
-
comment: comment.message,
|
|
1835
|
+
comment: comment === null || comment === void 0 ? void 0 : (_comment$message = comment.message) === null || _comment$message === void 0 ? void 0 : _comment$message.replace(/<.*?\/?>/gm, ""),
|
|
1834
1836
|
reviewed: crossComment
|
|
1835
1837
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
1836
1838
|
buttonType: "circular-button accept-button",
|
|
@@ -280,17 +280,17 @@ var getNewStatus = function getNewStatus(statusArray) {
|
|
|
280
280
|
statusArray.forEach(function (element) {
|
|
281
281
|
return lookupString += element + "/";
|
|
282
282
|
});
|
|
283
|
+
if (lookupString.includes("RCA")) return "RCA";
|
|
283
284
|
if (lookupString.includes("RC")) return "RC";
|
|
284
285
|
if (lookupString.includes("RA")) return "RA";
|
|
285
286
|
if (lookupString.includes("RP")) return "RP";
|
|
286
|
-
if (lookupString.includes("
|
|
287
|
+
if (lookupString.includes("ACA")) return "ACA";
|
|
287
288
|
if (lookupString.includes("UNASSIGNED")) return "CA";
|
|
288
289
|
if (lookupString.includes("CA")) return "CA";
|
|
289
290
|
if (lookupString.includes("IE")) return "IE";
|
|
290
291
|
if (lookupString.includes("AC")) return "AC";
|
|
291
292
|
if (lookupString.includes("AA")) return "AA";
|
|
292
293
|
if (lookupString.includes("AP")) return "AP";
|
|
293
|
-
if (lookupString.includes("ACA")) return "ACA";
|
|
294
294
|
if (lookupString.includes("R")) return "R";
|
|
295
295
|
if (lookupString.includes("NA")) return "NA";
|
|
296
296
|
console.log("Status not found");
|
package/package.json
CHANGED
|
@@ -42,6 +42,7 @@ export const GeneralInput = ({
|
|
|
42
42
|
if (optionList?.length > 0) {
|
|
43
43
|
let index = evt.target.selectedIndex;
|
|
44
44
|
let valueSelected = evt.target.value;
|
|
45
|
+
console.log(valueSelected);
|
|
45
46
|
generalValue = valueSelected;
|
|
46
47
|
setTextValue({ value: generalValue });
|
|
47
48
|
} else {
|
|
@@ -5,20 +5,10 @@ export const StatusTag = ({ statusType, ovalForm }) => {
|
|
|
5
5
|
switch (status) {
|
|
6
6
|
case "COMPLETED":
|
|
7
7
|
return "C";
|
|
8
|
-
case "RECEPTION":
|
|
9
|
-
return "Pr";
|
|
10
8
|
case "NULL":
|
|
11
|
-
return "
|
|
12
|
-
case "RECEIVED":
|
|
13
|
-
return "Rc";
|
|
14
|
-
case "IN_PROGRESS":
|
|
15
|
-
return "P";
|
|
16
|
-
case "ASSIGNED":
|
|
17
|
-
return "As";
|
|
9
|
+
return "--";
|
|
18
10
|
case "APPROVED":
|
|
19
11
|
return "Ap";
|
|
20
|
-
case "VALIDATING":
|
|
21
|
-
return "V";
|
|
22
12
|
case "PAID_OUT":
|
|
23
13
|
return "Po";
|
|
24
14
|
default:
|
|
@@ -27,7 +17,7 @@ export const StatusTag = ({ statusType, ovalForm }) => {
|
|
|
27
17
|
};
|
|
28
18
|
return (
|
|
29
19
|
<Container
|
|
30
|
-
className={`status-${getShortStatus(statusType)} ${
|
|
20
|
+
className={`status-${getShortStatus(statusType?.replace(/\/.*/, ""))} ${
|
|
31
21
|
ovalForm && "oval-form"
|
|
32
22
|
}`}
|
|
33
23
|
>
|
|
@@ -16,30 +16,27 @@ export const Container = styled.div`
|
|
|
16
16
|
line-height: 20px;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
&.status-
|
|
20
|
-
&.status-
|
|
21
|
-
&.status-
|
|
22
|
-
&.status-QF {
|
|
19
|
+
&.status-AS,
|
|
20
|
+
&.status-CA,
|
|
21
|
+
&.status-IE {
|
|
23
22
|
background-color: ${GlobalColors.in_progress};
|
|
24
23
|
}
|
|
25
24
|
|
|
26
|
-
&.status-
|
|
27
|
-
&.status-Rr,
|
|
28
|
-
&.status-Rc {
|
|
25
|
+
&.status-R {
|
|
29
26
|
background-color: ${GlobalColors.reception};
|
|
30
27
|
}
|
|
31
28
|
|
|
32
29
|
&.status-AA,
|
|
33
30
|
&.status-AP,
|
|
34
|
-
&.status-
|
|
35
|
-
&.status-
|
|
31
|
+
&.status-ACA,
|
|
32
|
+
&.status-AC {
|
|
36
33
|
background-color: ${GlobalColors.finished};
|
|
37
34
|
}
|
|
38
35
|
|
|
39
36
|
&.status-RA,
|
|
40
|
-
&.status-
|
|
37
|
+
&.status-RC,
|
|
41
38
|
&.status-RP,
|
|
42
|
-
&.status-
|
|
39
|
+
&.status-RCA {
|
|
43
40
|
background-color: ${GlobalColors.rejected_status};
|
|
44
41
|
}
|
|
45
42
|
|
|
@@ -73,4 +70,7 @@ export const Container = styled.div`
|
|
|
73
70
|
&.oval-form {
|
|
74
71
|
border-radius: 10px;
|
|
75
72
|
}
|
|
73
|
+
&.delThis {
|
|
74
|
+
color: red;
|
|
75
|
+
}
|
|
76
76
|
`;
|
|
@@ -13,12 +13,7 @@ export const HeaderTop = ({ setHeaderTop }) => {
|
|
|
13
13
|
return (
|
|
14
14
|
<Container ref={headerTop}>
|
|
15
15
|
<ScreenHeader text="Edición de producto" />
|
|
16
|
-
<Button
|
|
17
|
-
buttonType="close-button"
|
|
18
|
-
onClick={() => {
|
|
19
|
-
window.location.href = `/products`;
|
|
20
|
-
}}
|
|
21
|
-
/>
|
|
16
|
+
<Button buttonType="close-button" />
|
|
22
17
|
</Container>
|
|
23
18
|
);
|
|
24
19
|
};
|
|
@@ -19,27 +19,12 @@ export const RetailerSelector = ({
|
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
const getRetailerImage = async () => {
|
|
23
|
-
console.log(
|
|
24
|
-
`https://content-management-images.s3.amazonaws.com/retailers/${activeRetailer.id}.png`
|
|
25
|
-
);
|
|
26
|
-
activeRetailer.image = `https://content-management-images.s3.amazonaws.com/retailers/${activeRetailer.id}.png`;
|
|
27
|
-
retailers.forEach(
|
|
28
|
-
(retailer) =>
|
|
29
|
-
(retailer.image = `https://content-management-images.s3.amazonaws.com/retailers/${retailer.id}.png`)
|
|
30
|
-
);
|
|
31
|
-
};
|
|
32
|
-
|
|
33
22
|
useEffect(() => {
|
|
34
23
|
if (retailersPanel) {
|
|
35
24
|
document.addEventListener("click", closeRetailersPanel, false);
|
|
36
25
|
}
|
|
37
26
|
}, [retailersPanel]);
|
|
38
27
|
|
|
39
|
-
useEffect(() => {
|
|
40
|
-
getRetailerImage();
|
|
41
|
-
}, [activeRetailer]);
|
|
42
|
-
|
|
43
28
|
return (
|
|
44
29
|
<Container id="retailers-assignation">
|
|
45
30
|
<Avatar
|
|
@@ -25,7 +25,6 @@ export const StatusAsignationInfo = ({
|
|
|
25
25
|
id = "default-id",
|
|
26
26
|
onClickSave,
|
|
27
27
|
showSaveButton,
|
|
28
|
-
canAssign,
|
|
29
28
|
}) => {
|
|
30
29
|
const [showAsignationPanel, setShowAsignationPanel] = useState(false);
|
|
31
30
|
const [layout, setLayout] = useState(false);
|
|
@@ -71,7 +70,7 @@ export const StatusAsignationInfo = ({
|
|
|
71
70
|
slidefront={slidefront}
|
|
72
71
|
iconSize={"medium-image"}
|
|
73
72
|
slidePosition={"bottom-slide"}
|
|
74
|
-
|
|
73
|
+
/>
|
|
75
74
|
{status !== "-" && <StatusTag statusType={status} ovalForm={true} />}
|
|
76
75
|
{showSaveButton && (
|
|
77
76
|
<Button
|
|
@@ -124,7 +123,7 @@ export const StatusAsignationInfo = ({
|
|
|
124
123
|
fontFamily={"Avenir Next"}
|
|
125
124
|
headerType={"input-name-header"}
|
|
126
125
|
/>
|
|
127
|
-
{showAsignationPanel &&
|
|
126
|
+
{showAsignationPanel && (
|
|
128
127
|
<div className="asignation-panel">
|
|
129
128
|
<div className="asignation-header">
|
|
130
129
|
<div className="asignation-status">
|
|
@@ -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 : "R");
|
|
30
30
|
} else element.push("NA");
|
|
31
31
|
rt["services"] = element;
|
|
32
32
|
});
|
|
@@ -16,7 +16,6 @@ export const FullTabsMenu = ({
|
|
|
16
16
|
askToDeleteImages,
|
|
17
17
|
onClickSave,
|
|
18
18
|
showSaveButton,
|
|
19
|
-
canAssign,
|
|
20
19
|
}) => {
|
|
21
20
|
const [imagesSection, setImagesSection] = useState(false);
|
|
22
21
|
|
|
@@ -28,7 +27,6 @@ export const FullTabsMenu = ({
|
|
|
28
27
|
setActiveTab={setActiveTab}
|
|
29
28
|
/>
|
|
30
29
|
<StatusAsignationInfo
|
|
31
|
-
canAssign={canAssign}
|
|
32
30
|
status={status}
|
|
33
31
|
activeTab={activeTab}
|
|
34
32
|
setImageLayout={setImageLayout}
|
|
@@ -16,27 +16,27 @@ ProviderProductEditionDefault.args = {
|
|
|
16
16
|
Imágenes: false,
|
|
17
17
|
},
|
|
18
18
|
token:
|
|
19
|
-
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
20
|
-
articleId:
|
|
21
|
-
category:
|
|
22
|
-
version:
|
|
19
|
+
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNTkyN2Y4ZS1jYmY3LTQ5MjItOWUwOS1lNjllYzBiMjczMWEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImY1OTI3ZjhlLWNiZjctNDkyMi05ZTA5LWU2OWVjMGIyNzMxYSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiJlMDk1ODJkMi03MDU0LTQ3OGEtYjgzOS1hZThiNWVmZTRjYWMiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY1NzU2OTA1MywibmFtZSI6IklzbWFlbCBMb3BleiIsInBob25lX251bWJlciI6Iis1MjMxMTEzNjYzMzYiLCJleHAiOjE2NTc1NzI2NTMsImlhdCI6MTY1NzU2OTA1MywiZW1haWwiOiJpbG9wZXpAY29udGVudG9oLmNvbSJ9.TQmeBJjBJC21O6Ag-Gi0ER2sLKjuSiCSM9PLON0JzQ00FC88hgrUxlPQHDnMDgWtcRRP3aylo0AB1UStV9GJlkyg7-8jNtTkIsgjCiPBV754NizoSDUonLgKTtjs5Sx-rM_Uv14h8tlybegw0X5Dqlyl2FNwl5Vr_096e5SD4gqrBoFXH9nMTxbUQlQ4i4fD_5xxdnhnFjnVT0z9hA59tdTj1jEYXZjNtod98hx_-Rm9LL5SpnYt7_uBsVbQkIIn8iKrGhJ3dG5RZFO3P3_Ydg1eWdbbKCSIO17kW2_orn3hGPiXtA29Hls5IbUu0xst6oppZmKx2mHGHmIdHx_IIA",
|
|
20
|
+
articleId: 55154,
|
|
21
|
+
category: 2568,
|
|
22
|
+
version: 3,
|
|
23
23
|
productSelected: {
|
|
24
|
-
orderId:
|
|
25
|
-
article_status: "
|
|
26
|
-
datasheet_status: "
|
|
27
|
-
description_status: "
|
|
28
|
-
images_status: "
|
|
24
|
+
orderId: 96,
|
|
25
|
+
article_status: "AA",
|
|
26
|
+
datasheet_status: "AA",
|
|
27
|
+
description_status: "AA",
|
|
28
|
+
images_status: "AA",
|
|
29
29
|
prio: "none",
|
|
30
|
-
version:
|
|
30
|
+
version: 3,
|
|
31
31
|
brand: null,
|
|
32
32
|
article: {
|
|
33
33
|
category: "ILUMINACIÓN|FOCOS|FOCOS",
|
|
34
34
|
company_name: "THD Proveedor",
|
|
35
35
|
country: "México",
|
|
36
|
-
id_category: "
|
|
37
|
-
id_article:
|
|
38
|
-
name: "
|
|
39
|
-
upc: "
|
|
36
|
+
id_category: "2568",
|
|
37
|
+
id_article: 55154,
|
|
38
|
+
name: "Prueba 12312",
|
|
39
|
+
upc: "977812",
|
|
40
40
|
},
|
|
41
41
|
retailers: [
|
|
42
42
|
{
|
|
@@ -49,89 +49,24 @@ ProviderProductEditionDefault.args = {
|
|
|
49
49
|
name: "The Home Depot Platinum",
|
|
50
50
|
services: ["NA", "NA", "NA", "AA"],
|
|
51
51
|
},
|
|
52
|
-
{
|
|
53
|
-
id: 60,
|
|
54
|
-
name: "The Home Depot Resizing",
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
id: 61,
|
|
58
|
-
name: "Home Depot TAB",
|
|
59
|
-
},
|
|
60
52
|
],
|
|
61
53
|
services: {
|
|
62
54
|
datasheets: 1,
|
|
63
55
|
descriptions: 1,
|
|
64
56
|
images: 1,
|
|
65
57
|
},
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
percentage: 100,
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
id: 59,
|
|
75
|
-
name: "The Home Depot Platinum",
|
|
76
|
-
percentage: 100,
|
|
58
|
+
statusByRetailer: {
|
|
59
|
+
58: {
|
|
60
|
+
datasheet: "AA",
|
|
61
|
+
description: "AA",
|
|
62
|
+
images: "AA",
|
|
77
63
|
},
|
|
78
|
-
{
|
|
79
|
-
id: 60,
|
|
80
|
-
name: "The Home Depot Resizing",
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
id: 61,
|
|
84
|
-
name: "Home Depot TAB",
|
|
85
|
-
},
|
|
86
|
-
],
|
|
87
|
-
},
|
|
88
|
-
productToEdit: {
|
|
89
|
-
ArticleId: 55118,
|
|
90
|
-
idCategory: "2143",
|
|
91
|
-
product: {
|
|
92
|
-
orderId: 55,
|
|
93
|
-
article_status: "AP",
|
|
94
|
-
datasheet_status: "AP",
|
|
95
|
-
description_status: "AP",
|
|
96
|
-
images_status: "AP",
|
|
97
|
-
prio: "none",
|
|
98
|
-
version: 2,
|
|
99
|
-
brand: null,
|
|
100
|
-
article: {
|
|
101
|
-
category: "ILUMINACIÓN|FOCOS|FOCOS",
|
|
102
|
-
company_name: "THD Proveedor",
|
|
103
|
-
country: "México",
|
|
104
|
-
id_category: "2143",
|
|
105
|
-
id_article: 55118,
|
|
106
|
-
name: "FOCO BLUETOOTH SPOT PHILIPS 6 WATTS 300 LÚMENES MULTICOLOR",
|
|
107
|
-
upc: "145582",
|
|
108
|
-
},
|
|
109
|
-
retailers: [
|
|
110
|
-
{
|
|
111
|
-
id: 58,
|
|
112
|
-
name: "The Home Depot Golden",
|
|
113
|
-
services: ["AA", "AA", "AA", "NA"],
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
id: 59,
|
|
117
|
-
name: "The Home Depot Platinum",
|
|
118
|
-
services: ["NA", "NA", "NA", "AA"],
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
id: 60,
|
|
122
|
-
name: "The Home Depot Resizing",
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
id: 61,
|
|
126
|
-
name: "Home Depot TAB",
|
|
127
|
-
},
|
|
128
|
-
],
|
|
129
64
|
services: {
|
|
130
65
|
datasheets: 1,
|
|
131
66
|
descriptions: 1,
|
|
132
67
|
images: 1,
|
|
133
68
|
},
|
|
134
|
-
id_article:
|
|
69
|
+
id_article: 55154,
|
|
135
70
|
retailersAvailable: [
|
|
136
71
|
{
|
|
137
72
|
id: 58,
|
|
@@ -152,43 +87,118 @@ ProviderProductEditionDefault.args = {
|
|
|
152
87
|
name: "Home Depot TAB",
|
|
153
88
|
},
|
|
154
89
|
],
|
|
90
|
+
status: "AA",
|
|
155
91
|
},
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
92
|
+
productToEdit: {
|
|
93
|
+
ArticleId: 55118,
|
|
94
|
+
idCategory: "2143",
|
|
95
|
+
product: {
|
|
96
|
+
orderId: 96,
|
|
97
|
+
article_status: "AA",
|
|
98
|
+
datasheet_status: "AA",
|
|
99
|
+
description_status: "AA",
|
|
100
|
+
images_status: "AA",
|
|
101
|
+
prio: "none",
|
|
102
|
+
version: 3,
|
|
103
|
+
brand: null,
|
|
104
|
+
article: {
|
|
105
|
+
category: "ILUMINACIÓN|FOCOS|FOCOS",
|
|
106
|
+
company_name: "THD Proveedor",
|
|
107
|
+
country: "México",
|
|
108
|
+
id_category: "2568",
|
|
109
|
+
id_article: 55154,
|
|
110
|
+
name: "Prueba 12312",
|
|
111
|
+
upc: "977812",
|
|
112
|
+
},
|
|
113
|
+
retailers: [
|
|
114
|
+
{
|
|
115
|
+
id: 58,
|
|
116
|
+
name: "The Home Depot Golden",
|
|
117
|
+
services: ["AA", "AA", "AA", "NA"],
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
id: 59,
|
|
121
|
+
name: "The Home Depot Platinum",
|
|
122
|
+
services: ["NA", "NA", "NA", "AA"],
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
services: {
|
|
126
|
+
datasheets: 1,
|
|
127
|
+
descriptions: 1,
|
|
128
|
+
images: 1,
|
|
129
|
+
},
|
|
130
|
+
statusByRetailer: {
|
|
131
|
+
58: {
|
|
132
|
+
datasheet: "AA",
|
|
133
|
+
description: "AA",
|
|
134
|
+
images: "AA",
|
|
135
|
+
},
|
|
136
|
+
services: {
|
|
137
|
+
datasheets: 1,
|
|
138
|
+
descriptions: 1,
|
|
139
|
+
images: 1,
|
|
140
|
+
},
|
|
141
|
+
id_article: 55154,
|
|
142
|
+
retailersAvailable: [
|
|
143
|
+
{
|
|
144
|
+
id: 58,
|
|
145
|
+
name: "The Home Depot Golden",
|
|
146
|
+
percentage: 100,
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
id: 59,
|
|
150
|
+
name: "The Home Depot Platinum",
|
|
151
|
+
percentage: 100,
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
id: 60,
|
|
155
|
+
name: "The Home Depot Resizing",
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
id: 61,
|
|
159
|
+
name: "Home Depot TAB",
|
|
160
|
+
},
|
|
161
|
+
],
|
|
162
|
+
status: "AA",
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
location: {
|
|
166
|
+
product: { articleId: 109485, versionId: 3 },
|
|
167
|
+
state: { origin: "Contentoh" },
|
|
168
|
+
},
|
|
169
|
+
user: {
|
|
170
|
+
id_user: 59,
|
|
171
|
+
name: "The Home",
|
|
172
|
+
last_name: "Depot",
|
|
173
|
+
email: "cadena.ismael@allfreemail.net",
|
|
174
|
+
position: "Admin",
|
|
175
|
+
telephone: "+523111366336",
|
|
176
|
+
country: "México",
|
|
177
|
+
id_company: 7,
|
|
178
|
+
id_cognito: "5884ae34-59d6-4454-b98e-821518bcc3a7",
|
|
179
|
+
birth_Date: null,
|
|
180
|
+
about_me: null,
|
|
181
|
+
zip_code: null,
|
|
182
|
+
address: null,
|
|
183
|
+
job: null,
|
|
184
|
+
id_stripe: "",
|
|
185
|
+
id_role: 0,
|
|
186
|
+
active: 1,
|
|
187
|
+
is_retailer: 0,
|
|
188
|
+
email_notify: 1,
|
|
189
|
+
membership: {
|
|
190
|
+
id: 24,
|
|
191
|
+
start_date: "2021-11-23T03:35:50.000Z",
|
|
192
|
+
end_date: "2022-11-23T03:35:50.000Z",
|
|
193
|
+
planID: 9,
|
|
194
|
+
plan: "prod_KtlkzZVGq6bRTO",
|
|
195
|
+
name: "Plan Enterprise Full",
|
|
196
|
+
user_limit: "30",
|
|
197
|
+
products_limit: "10000",
|
|
198
|
+
type: "Enterprise",
|
|
199
|
+
},
|
|
200
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1657069378649",
|
|
201
|
+
},
|
|
191
202
|
},
|
|
192
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1656113146885",
|
|
193
203
|
},
|
|
194
204
|
};
|