contentoh-components-library 21.3.54 → 21.3.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/.env.development +0 -2
- package/dist/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/dist/components/molecules/HeaderTop/index.js +11 -68
- package/dist/components/organisms/Chat/Chat.stories.js +1 -21
- package/dist/components/organisms/Chat/ContainerItems/index.js +3 -19
- package/dist/components/organisms/Chat/ContainerItems/styles.js +1 -1
- package/dist/components/organisms/Chat/ContentChat/index.js +191 -343
- package/dist/components/organisms/Chat/Footer/index.js +39 -48
- package/dist/components/organisms/Chat/index.js +3 -48
- package/dist/components/organisms/FullProductNameHeader/index.js +2 -2
- package/dist/components/pages/Dashboard/Dashboard.stories.js +41 -34
- package/dist/components/pages/Dashboard/index.js +2 -2
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +127 -172
- package/dist/components/pages/ProviderProductEdition/index.js +129 -188
- package/dist/components/pages/ProviderProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +78 -75
- package/dist/components/pages/RetailerProductEdition/index.js +296 -287
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/utils.js +2 -61
- package/package.json +1 -1
- package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/src/components/molecules/HeaderTop/index.js +6 -52
- package/src/components/organisms/Chat/Chat.stories.js +0 -21
- package/src/components/organisms/Chat/ContainerItems/index.js +2 -18
- package/src/components/organisms/Chat/ContainerItems/styles.js +2 -10
- package/src/components/organisms/Chat/ContentChat/index.js +6 -81
- package/src/components/organisms/Chat/Footer/index.js +0 -11
- package/src/components/organisms/Chat/index.js +3 -47
- package/src/components/organisms/FullProductNameHeader/index.js +1 -1
- package/src/components/organisms/OrderDetail/index.js +0 -1
- package/src/components/pages/Dashboard/Dashboard.stories.js +43 -34
- package/src/components/pages/Dashboard/index.js +2 -2
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +130 -177
- package/src/components/pages/ProviderProductEdition/index.js +55 -105
- package/src/components/pages/ProviderProductEdition/styles.js +1 -5
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +74 -69
- package/src/components/pages/RetailerProductEdition/index.js +157 -129
- package/src/components/pages/RetailerProductEdition/styles.js +0 -4
- package/src/components/pages/RetailerProductEdition/utils.js +0 -37
|
@@ -39,9 +39,6 @@ import Slide1_4 from "../../../assets/images/sliderToolTip/slide4.svg";
|
|
|
39
39
|
import Slide1_5 from "../../../assets/images/sliderToolTip/slide5.svg";
|
|
40
40
|
import { VersionSelector } from "../../organisms/VersionSelector";
|
|
41
41
|
import { useCloseModal } from "../../../global-files/customHooks";
|
|
42
|
-
import { createMessage, sendMessage } from "../RetailerProductEdition/utils";
|
|
43
|
-
import { Modal } from "../../organisms/Modal";
|
|
44
|
-
import { ButtonV2 } from "../../atoms/ButtonV2";
|
|
45
42
|
|
|
46
43
|
const reducerImages = (state, action) => {
|
|
47
44
|
let { values, attrForImgs, inputsByRetailer } = state;
|
|
@@ -217,7 +214,6 @@ export const ProviderProductEdition = ({
|
|
|
217
214
|
const isRetailer = user?.is_retailer;
|
|
218
215
|
const [loading, setLoading] = useState(true);
|
|
219
216
|
const [validatedAll, setValidatedAll] = useState(false);
|
|
220
|
-
const [showRejectModal, setShowRejectModal] = useState(false);
|
|
221
217
|
|
|
222
218
|
const originProp = location?.state?.origin;
|
|
223
219
|
const [origin, setOrigin] = useState({
|
|
@@ -347,6 +343,28 @@ export const ProviderProductEdition = ({
|
|
|
347
343
|
(type) => {
|
|
348
344
|
const formatter = new Intl.ListFormat("es", { type: "conjunction" });
|
|
349
345
|
switch (type) {
|
|
346
|
+
case "error":
|
|
347
|
+
setGlobalModal({
|
|
348
|
+
message: `${activeTab} rechazada`,
|
|
349
|
+
detail: "Agrega tu comentarios para enviar el rechazo",
|
|
350
|
+
img: errorModal,
|
|
351
|
+
textArea: true,
|
|
352
|
+
button1: {
|
|
353
|
+
name: "Enviar",
|
|
354
|
+
action: (e) => {
|
|
355
|
+
const textArea = document.querySelector("#area");
|
|
356
|
+
if (textArea.value) {
|
|
357
|
+
textArea.style.border = "none";
|
|
358
|
+
createComment(e, textArea.value);
|
|
359
|
+
showGlobalModal("commentsSent");
|
|
360
|
+
validatedAll ? validateAll("R") : sendEvaluation("R");
|
|
361
|
+
} else {
|
|
362
|
+
textArea.style.border = "2px solid red";
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
},
|
|
366
|
+
});
|
|
367
|
+
break;
|
|
350
368
|
case "generic":
|
|
351
369
|
setGlobalModal(dataGenericModal);
|
|
352
370
|
break;
|
|
@@ -498,9 +516,7 @@ export const ProviderProductEdition = ({
|
|
|
498
516
|
);
|
|
499
517
|
setServicesData(parsedResponse);
|
|
500
518
|
}
|
|
501
|
-
|
|
502
|
-
!activeRetailer.id &&
|
|
503
|
-
setActiveRetailer(active ? active : retailers[0]);
|
|
519
|
+
!activeRetailer.id && setActiveRetailer(active ? active : retailers[0]);
|
|
504
520
|
};
|
|
505
521
|
|
|
506
522
|
const isRevision = () => {
|
|
@@ -576,7 +592,7 @@ export const ProviderProductEdition = ({
|
|
|
576
592
|
});
|
|
577
593
|
}
|
|
578
594
|
setProduct(productTemp);
|
|
579
|
-
|
|
595
|
+
setActivePercentage(retailers[0]?.percentage);
|
|
580
596
|
}, [percentages]);
|
|
581
597
|
|
|
582
598
|
const loadInputs = () => {
|
|
@@ -817,19 +833,32 @@ export const ProviderProductEdition = ({
|
|
|
817
833
|
}
|
|
818
834
|
};
|
|
819
835
|
|
|
820
|
-
const createComment = async (
|
|
836
|
+
const createComment = async (e, body, tab) => {
|
|
837
|
+
let concept = "";
|
|
838
|
+
switch (activeTab) {
|
|
839
|
+
case "Ficha técnica":
|
|
840
|
+
concept = "datasheet";
|
|
841
|
+
break;
|
|
842
|
+
case "Imágenes":
|
|
843
|
+
concept = "images";
|
|
844
|
+
break;
|
|
845
|
+
|
|
846
|
+
default:
|
|
847
|
+
concept = "description";
|
|
848
|
+
break;
|
|
849
|
+
}
|
|
821
850
|
const data = {
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
status: product.status || productEdit.product.status,
|
|
828
|
-
},
|
|
829
|
-
paramsHeader: { Authorization: token },
|
|
851
|
+
articleId: product?.id_article,
|
|
852
|
+
orderId: product?.orderId,
|
|
853
|
+
message: body,
|
|
854
|
+
concept: concept,
|
|
855
|
+
version: version,
|
|
830
856
|
};
|
|
831
|
-
|
|
832
|
-
|
|
857
|
+
await axios.post(`${process.env.REACT_APP_COMMENTS_ENDPOINT}`, data, {
|
|
858
|
+
headers: {
|
|
859
|
+
Authorization: token,
|
|
860
|
+
},
|
|
861
|
+
});
|
|
833
862
|
};
|
|
834
863
|
|
|
835
864
|
useEffect(() => {
|
|
@@ -1029,27 +1058,6 @@ export const ProviderProductEdition = ({
|
|
|
1029
1058
|
const { newArticleStatus, newServiceStatus, newStatus } = JSON.parse(
|
|
1030
1059
|
res.data.body
|
|
1031
1060
|
);
|
|
1032
|
-
|
|
1033
|
-
const message = createMessage(
|
|
1034
|
-
product.retailers || product.retailersAvailable,
|
|
1035
|
-
activeRetailer.id,
|
|
1036
|
-
product[sectionStatusKey],
|
|
1037
|
-
newStatus,
|
|
1038
|
-
activeTab
|
|
1039
|
-
);
|
|
1040
|
-
|
|
1041
|
-
const messageData = {
|
|
1042
|
-
paramsBody: {
|
|
1043
|
-
id: product.article.id_article || productEdit.ArticleId,
|
|
1044
|
-
version: version,
|
|
1045
|
-
items: [{ type: "status", value: message }],
|
|
1046
|
-
retailerId: activeRetailer.id,
|
|
1047
|
-
status: product.status || productEdit.product.status,
|
|
1048
|
-
},
|
|
1049
|
-
paramsHeader: { Authorization: token },
|
|
1050
|
-
};
|
|
1051
|
-
await sendMessage(messageData);
|
|
1052
|
-
|
|
1053
1061
|
if (newArticleStatus) productTemp.status = newArticleStatus[articleId];
|
|
1054
1062
|
const retailerStatusCopy = { ...retailerStatus };
|
|
1055
1063
|
retailerStatusCopy[activeRetailer.id][concept] = newStatus;
|
|
@@ -1081,7 +1089,6 @@ export const ProviderProductEdition = ({
|
|
|
1081
1089
|
result,
|
|
1082
1090
|
isAproved: result === "A",
|
|
1083
1091
|
};
|
|
1084
|
-
const messages = [];
|
|
1085
1092
|
servicesData?.forEach((ret) => {
|
|
1086
1093
|
const { service, id_retailer } = ret;
|
|
1087
1094
|
let data = {};
|
|
@@ -1098,18 +1105,6 @@ export const ProviderProductEdition = ({
|
|
|
1098
1105
|
},
|
|
1099
1106
|
})
|
|
1100
1107
|
);
|
|
1101
|
-
if (product[`${ret.service}_status`] !== "NS") {
|
|
1102
|
-
const message = createMessage(
|
|
1103
|
-
product.retailers,
|
|
1104
|
-
ret.id_retailer,
|
|
1105
|
-
product[`${ret.service}_status`],
|
|
1106
|
-
`${result}A`,
|
|
1107
|
-
ret.service
|
|
1108
|
-
);
|
|
1109
|
-
messages.push(
|
|
1110
|
-
createComment([{ type: "status", value: message }], ret.id_retailer)
|
|
1111
|
-
);
|
|
1112
|
-
}
|
|
1113
1108
|
});
|
|
1114
1109
|
await Promise.all(evaluationArray);
|
|
1115
1110
|
const userType = user.is_retailer === 1 ? "CA" : "P";
|
|
@@ -1149,7 +1144,6 @@ export const ProviderProductEdition = ({
|
|
|
1149
1144
|
product: productTemp,
|
|
1150
1145
|
})
|
|
1151
1146
|
);
|
|
1152
|
-
await Promise.all(messages);
|
|
1153
1147
|
|
|
1154
1148
|
await loadData();
|
|
1155
1149
|
} catch (error) {
|
|
@@ -1277,7 +1271,8 @@ export const ProviderProductEdition = ({
|
|
|
1277
1271
|
return;
|
|
1278
1272
|
} else if (user.is_retailer) {
|
|
1279
1273
|
if (product.id_order || product.orderId) {
|
|
1280
|
-
|
|
1274
|
+
setValidatedAll(true);
|
|
1275
|
+
showGlobalModal("error");
|
|
1281
1276
|
} else {
|
|
1282
1277
|
setDataGenericModal((prev) => ({
|
|
1283
1278
|
...prev,
|
|
@@ -1289,7 +1284,8 @@ export const ProviderProductEdition = ({
|
|
|
1289
1284
|
showGlobalModal("generic");
|
|
1290
1285
|
}
|
|
1291
1286
|
} else {
|
|
1292
|
-
|
|
1287
|
+
setValidatedAll(true);
|
|
1288
|
+
showGlobalModal("error");
|
|
1293
1289
|
}
|
|
1294
1290
|
}
|
|
1295
1291
|
};
|
|
@@ -1298,7 +1294,6 @@ export const ProviderProductEdition = ({
|
|
|
1298
1294
|
<HeaderTop
|
|
1299
1295
|
setHeaderTop={setHeaderTop}
|
|
1300
1296
|
withChat={location?.state?.withChat}
|
|
1301
|
-
chatType={location?.state?.chatType}
|
|
1302
1297
|
productSelected={productSelected}
|
|
1303
1298
|
token={token}
|
|
1304
1299
|
activeRetailer={activeRetailer}
|
|
@@ -1377,7 +1372,7 @@ export const ProviderProductEdition = ({
|
|
|
1377
1372
|
} else if (user.is_retailer) {
|
|
1378
1373
|
if (product.id_order || product.orderId) {
|
|
1379
1374
|
setValidatedAll(true);
|
|
1380
|
-
|
|
1375
|
+
showGlobalModal("error");
|
|
1381
1376
|
} else {
|
|
1382
1377
|
setDataGenericModal((prev) => ({
|
|
1383
1378
|
...prev,
|
|
@@ -1389,14 +1384,12 @@ export const ProviderProductEdition = ({
|
|
|
1389
1384
|
showGlobalModal("generic");
|
|
1390
1385
|
}
|
|
1391
1386
|
} else {
|
|
1392
|
-
setShowRejectModal(true);
|
|
1393
1387
|
setValidatedAll(true);
|
|
1388
|
+
showGlobalModal("error");
|
|
1394
1389
|
}
|
|
1395
1390
|
}}
|
|
1396
1391
|
approve={() => sendToEvaluation("A")}
|
|
1397
|
-
reject={() =>
|
|
1398
|
-
setShowRejectModal(true);
|
|
1399
|
-
}}
|
|
1392
|
+
reject={() => sendToEvaluation("R")}
|
|
1400
1393
|
/>
|
|
1401
1394
|
<FullTabsMenu
|
|
1402
1395
|
tabsSections={tabsSections}
|
|
@@ -1631,49 +1624,6 @@ export const ProviderProductEdition = ({
|
|
|
1631
1624
|
jwt={token}
|
|
1632
1625
|
/>
|
|
1633
1626
|
)}
|
|
1634
|
-
{showRejectModal && (
|
|
1635
|
-
<Modal
|
|
1636
|
-
title={"Agregar mensaje de rechazo"}
|
|
1637
|
-
show={showRejectModal}
|
|
1638
|
-
customComponent={
|
|
1639
|
-
<TagAndInput
|
|
1640
|
-
label={"Caja de Comentario"}
|
|
1641
|
-
inputType={"textarea"}
|
|
1642
|
-
inputId={"modal-message-box"}
|
|
1643
|
-
index={0}
|
|
1644
|
-
color={"white"}
|
|
1645
|
-
/>
|
|
1646
|
-
}
|
|
1647
|
-
buttons={[
|
|
1648
|
-
<ButtonV2
|
|
1649
|
-
key={"btn-Cancelar"}
|
|
1650
|
-
type={"white"}
|
|
1651
|
-
label={"Cancelar"}
|
|
1652
|
-
size={12}
|
|
1653
|
-
onClick={() => {
|
|
1654
|
-
setShowRejectModal(false);
|
|
1655
|
-
}}
|
|
1656
|
-
/>,
|
|
1657
|
-
<ButtonV2
|
|
1658
|
-
key={"btn-Aceptar"}
|
|
1659
|
-
type={"pink"}
|
|
1660
|
-
label={"Aceptar"}
|
|
1661
|
-
size={12}
|
|
1662
|
-
onClick={async () => {
|
|
1663
|
-
const body = document.querySelector(
|
|
1664
|
-
"#modal-message-box .ql-container .ql-editor > p"
|
|
1665
|
-
).innerHTML;
|
|
1666
|
-
const messages = [
|
|
1667
|
-
{ type: "message", value: body?.replace(/<.*?\/?>/gm, "") },
|
|
1668
|
-
];
|
|
1669
|
-
await createComment(messages, activeRetailer.id);
|
|
1670
|
-
validatedAll ? validateAll("R") : sendToEvaluation("R");
|
|
1671
|
-
setShowRejectModal(false);
|
|
1672
|
-
}}
|
|
1673
|
-
/>,
|
|
1674
|
-
]}
|
|
1675
|
-
/>
|
|
1676
|
-
)}
|
|
1677
1627
|
</Container>
|
|
1678
1628
|
);
|
|
1679
1629
|
};
|
|
@@ -107,10 +107,6 @@ export const Container = styled.div`
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
#modal-message-box {
|
|
111
|
-
width: 400px;
|
|
112
|
-
height: 100px;
|
|
113
|
-
}
|
|
114
110
|
.container {
|
|
115
111
|
width: 100%;
|
|
116
112
|
height: 100%;
|
|
@@ -119,4 +115,4 @@ export const Container = styled.div`
|
|
|
119
115
|
width: 100%;
|
|
120
116
|
}
|
|
121
117
|
}
|
|
122
|
-
`;
|
|
118
|
+
`;
|
|
@@ -16,107 +16,112 @@ RetailerProductEditionDefault.args = {
|
|
|
16
16
|
Imágenes: false,
|
|
17
17
|
},
|
|
18
18
|
token:
|
|
19
|
-
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
19
|
+
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJhNmM0ZDNkNi0yNGE0LTQxZDQtYWQwZi1kMDg3NDM4YWI1YjYiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6ImE2YzRkM2Q2LTI0YTQtNDFkNC1hZDBmLWQwODc0MzhhYjViNiIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiIyYjU3MjZlMy04MjM2LTRmYzMtODBkMi05NWVmYmU4ODdjOTYiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4MjAxNjI5MSwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY4MjAxOTg5MSwiaWF0IjoxNjgyMDE2MjkxLCJlbWFpbCI6ImV0Y0Bjb250ZW50b2guY29tIn0.SCj_yp1NkGCED59JHoDSdFAOakIOvZVeC0yLwt9z0BtenDXlU0m5cUofQQonnWPM8Q70yMFEkyMGI9kQs_fz1gxrmrSc2FGefn3B_1Vymq3pQ_S1JrY_syYf88m_GtJKOywEnE6--Ef9lZhFBFKGtqRJ4H8JBa9Xb96uCjAKyEMCSURDlw37pk2RQdULlZPj17Zb6Xrqi2lwrhpI1ByptX3__UoTiZklnTXwIxM4JdU7yuhXLznaEH8NOSd2Jw-CV6FCUbYBHlnRYBQg7B5mwyVKtDQm6QpRgBTBPCvljJJpFjRKUcnon8WZiFXx1qVbkWPt2vCT1TZqqoSLdlP6lA",
|
|
20
20
|
productSelected: {
|
|
21
|
-
orderId:
|
|
22
|
-
status: "
|
|
23
|
-
datasheet_status: "
|
|
21
|
+
orderId: 15160,
|
|
22
|
+
status: "SAC",
|
|
23
|
+
datasheet_status: "SAC",
|
|
24
24
|
prio: "none",
|
|
25
|
-
version:
|
|
26
|
-
description_status: "
|
|
27
|
-
images_status: "
|
|
28
|
-
brand:
|
|
29
|
-
retailerOrder:
|
|
25
|
+
version: 7,
|
|
26
|
+
description_status: "SAC",
|
|
27
|
+
images_status: "SAC",
|
|
28
|
+
brand: null,
|
|
29
|
+
retailerOrder: 1,
|
|
30
30
|
missing: {
|
|
31
31
|
datasheet: null,
|
|
32
32
|
descriptions: null,
|
|
33
33
|
images: null,
|
|
34
34
|
},
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
orderId: 14606,
|
|
36
|
+
status: "AC",
|
|
37
|
+
datasheet_status: "AC",
|
|
38
|
+
prio: "none",
|
|
39
|
+
version: 3,
|
|
40
|
+
description_status: "AC",
|
|
41
|
+
images_status: "AC",
|
|
42
|
+
statusByRetailer: {
|
|
43
|
+
4: {
|
|
44
|
+
datasheet: "AC",
|
|
45
|
+
description: "AC",
|
|
46
|
+
images: "AC",
|
|
47
|
+
},
|
|
48
|
+
5: {
|
|
49
|
+
datasheet: "AC",
|
|
50
|
+
description: "AC",
|
|
51
|
+
images: "AC",
|
|
52
|
+
},
|
|
53
|
+
6: {
|
|
54
|
+
description: "AC",
|
|
55
|
+
images: "AC",
|
|
56
|
+
datasheet: "AC",
|
|
57
|
+
},
|
|
58
|
+
12: {
|
|
59
|
+
datasheet: "AC",
|
|
60
|
+
description: "AC",
|
|
61
|
+
images: "AC",
|
|
62
|
+
},
|
|
63
|
+
17: {
|
|
64
|
+
datasheet: "AC",
|
|
65
|
+
description: "AC",
|
|
66
|
+
images: "AC",
|
|
67
|
+
},
|
|
39
68
|
},
|
|
40
69
|
article: {
|
|
41
|
-
category:
|
|
42
|
-
|
|
43
|
-
company_name: "GRUPO BRAHMA",
|
|
70
|
+
category: "Puertas y Ventanas|Molduras|Molduras Madera Blanda",
|
|
71
|
+
company_name: "Demo",
|
|
44
72
|
country: "México",
|
|
45
|
-
id_category: "
|
|
46
|
-
id_datasheet_especialist:
|
|
47
|
-
id_datasheet_facilitator:
|
|
48
|
-
id_description_especialist:
|
|
49
|
-
id_description_facilitator:
|
|
50
|
-
id_images_especialist:
|
|
51
|
-
id_images_facilitator:
|
|
52
|
-
id_order:
|
|
53
|
-
id_article:
|
|
73
|
+
id_category: "2366",
|
|
74
|
+
id_datasheet_especialist: null,
|
|
75
|
+
id_datasheet_facilitator: null,
|
|
76
|
+
id_description_especialist: null,
|
|
77
|
+
id_description_facilitator: null,
|
|
78
|
+
id_images_especialist: null,
|
|
79
|
+
id_images_facilitator: null,
|
|
80
|
+
id_order: 15160,
|
|
81
|
+
id_article: 39290,
|
|
54
82
|
id_auditor: 37,
|
|
55
|
-
name: "
|
|
56
|
-
timestamp: "2023-
|
|
57
|
-
upc: "
|
|
83
|
+
name: "MOLDURA MARCO MODER 11X4X244 CM",
|
|
84
|
+
timestamp: "2023-04-19T21:36:02.000Z",
|
|
85
|
+
upc: "100030",
|
|
58
86
|
},
|
|
59
87
|
retailers: [
|
|
60
88
|
{
|
|
61
|
-
id:
|
|
62
|
-
name: "
|
|
63
|
-
image:
|
|
64
|
-
"https://content-management-images.s3.amazonaws.com/retailers/12.png",
|
|
65
|
-
services: ["CA", "CA", "AC", "NA", "NA", "NA", "NA", "NA", "NA"],
|
|
66
|
-
percentage: 100,
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
id: 29,
|
|
70
|
-
name: "Farmacias del Ahorro",
|
|
71
|
-
image:
|
|
72
|
-
"https://content-management-images.s3.amazonaws.com/retailers/29.png",
|
|
73
|
-
services: ["NA", "NA", "NA", "CA", "CA", "CA", "NA", "NA", "NA"],
|
|
74
|
-
percentage: 100,
|
|
89
|
+
id: 58,
|
|
90
|
+
name: "The Home Depot Golden",
|
|
75
91
|
},
|
|
76
92
|
{
|
|
77
|
-
id:
|
|
78
|
-
name: "
|
|
79
|
-
image:
|
|
80
|
-
"https://content-management-images.s3.amazonaws.com/retailers/63.png",
|
|
81
|
-
services: ["NA", "NA", "NA", "NA", "NA", "NA", "AC", "AC", "CA"],
|
|
82
|
-
percentage: 83,
|
|
93
|
+
id: 68,
|
|
94
|
+
name: "The Home Depot Merchants",
|
|
83
95
|
},
|
|
84
96
|
],
|
|
85
97
|
statusByRetailer: {
|
|
86
|
-
|
|
87
|
-
datasheet: "
|
|
88
|
-
description: "
|
|
89
|
-
|
|
90
|
-
29: {
|
|
91
|
-
datasheet: "CA",
|
|
92
|
-
description: "CA",
|
|
98
|
+
58: {
|
|
99
|
+
datasheet: "SAC",
|
|
100
|
+
description: "SAC",
|
|
101
|
+
images: "SAC",
|
|
93
102
|
},
|
|
94
103
|
},
|
|
95
104
|
},
|
|
96
105
|
location: {
|
|
97
|
-
product: { articleId:
|
|
98
|
-
state: {
|
|
99
|
-
withChat: true,
|
|
100
|
-
chatType: "product_status",
|
|
101
|
-
},
|
|
106
|
+
product: { articleId: 39290, versionId: 7 },
|
|
102
107
|
},
|
|
103
108
|
user: {
|
|
104
|
-
id_user:
|
|
105
|
-
name: "
|
|
106
|
-
last_name: "
|
|
107
|
-
email: "
|
|
108
|
-
position: "
|
|
109
|
+
id_user: 51,
|
|
110
|
+
name: "ADMIN PRUEBA",
|
|
111
|
+
last_name: "",
|
|
112
|
+
email: "etc@contentoh.com",
|
|
113
|
+
position: "",
|
|
109
114
|
telephone: "",
|
|
110
|
-
country: "
|
|
115
|
+
country: "",
|
|
111
116
|
id_company: 2,
|
|
112
|
-
id_cognito: "
|
|
117
|
+
id_cognito: "a6c4d3d6-24a4-41d4-ad0f-d087438ab5b6",
|
|
113
118
|
birth_Date: null,
|
|
114
119
|
about_me: "",
|
|
115
120
|
zip_code: "",
|
|
116
121
|
address: "",
|
|
117
122
|
job: "",
|
|
118
123
|
id_stripe: "",
|
|
119
|
-
id_role:
|
|
124
|
+
id_role: 1,
|
|
120
125
|
active: 1,
|
|
121
126
|
is_retailer: 0,
|
|
122
127
|
email_notify: 1,
|
|
@@ -132,6 +137,6 @@ RetailerProductEditionDefault.args = {
|
|
|
132
137
|
products_limit: "3",
|
|
133
138
|
type: "PyMES",
|
|
134
139
|
},
|
|
135
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
140
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-51/51.png?1682016291518",
|
|
136
141
|
},
|
|
137
142
|
};
|