contentoh-components-library 21.3.21 → 21.3.23
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 +1 -2
- package/dist/assets/fonts/roboto/Roboto-Black.ttf +0 -0
- package/dist/assets/fonts/roboto/Roboto-BlackItalic.ttf +0 -0
- package/dist/assets/fonts/roboto/Roboto-Bold.ttf +0 -0
- package/dist/assets/fonts/roboto/Roboto-BoldItalic.ttf +0 -0
- package/dist/assets/fonts/roboto/Roboto-Italic.ttf +0 -0
- package/dist/assets/fonts/roboto/Roboto-Light.ttf +0 -0
- package/dist/assets/fonts/roboto/Roboto-LightItalic.ttf +0 -0
- package/dist/assets/fonts/roboto/Roboto-Medium.ttf +0 -0
- package/dist/assets/fonts/roboto/Roboto-MediumItalic.ttf +0 -0
- package/dist/assets/fonts/roboto/Roboto-Regular.ttf +0 -0
- package/dist/assets/fonts/roboto/Roboto-Thin.ttf +0 -0
- package/dist/assets/fonts/roboto/Roboto-ThinItalic.ttf +0 -0
- package/dist/components/atoms/GeneralInput/index.js +3 -1
- package/dist/components/atoms/GeneralInput/styles.js +1 -1
- package/dist/components/molecules/GalleryElement/index.js +12 -3
- package/dist/components/molecules/GalleryElement/styles.js +1 -1
- package/dist/components/molecules/HeaderTop/index.js +12 -14
- package/dist/components/molecules/HeaderTop/styles.js +1 -1
- package/dist/components/molecules/TagAndInput/index.js +6 -2
- package/dist/components/organisms/Chat/ContentChat/index.js +16 -8
- package/dist/components/organisms/Chat/Footer/index.js +2 -2
- package/dist/components/organisms/InputGroup/index.js +19 -8
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +38 -46
- package/dist/components/pages/RetailerProductEdition/index.js +331 -235
- package/dist/components/pages/RetailerProductEdition/utils.js +68 -0
- package/package.json +1 -1
- package/src/assets/fonts/roboto/Roboto-Black.ttf +0 -0
- package/src/assets/fonts/roboto/Roboto-BlackItalic.ttf +0 -0
- package/src/assets/fonts/roboto/Roboto-Bold.ttf +0 -0
- package/src/assets/fonts/roboto/Roboto-BoldItalic.ttf +0 -0
- package/src/assets/fonts/roboto/Roboto-Italic.ttf +0 -0
- package/src/assets/fonts/roboto/Roboto-Light.ttf +0 -0
- package/src/assets/fonts/roboto/Roboto-LightItalic.ttf +0 -0
- package/src/assets/fonts/roboto/Roboto-Medium.ttf +0 -0
- package/src/assets/fonts/roboto/Roboto-MediumItalic.ttf +0 -0
- package/src/assets/fonts/roboto/Roboto-Regular.ttf +0 -0
- package/src/assets/fonts/roboto/Roboto-Thin.ttf +0 -0
- package/src/assets/fonts/roboto/Roboto-ThinItalic.ttf +0 -0
- package/src/components/atoms/GeneralInput/index.js +2 -1
- package/src/components/atoms/GeneralInput/styles.js +9 -1
- package/src/components/molecules/GalleryElement/index.js +14 -2
- package/src/components/molecules/GalleryElement/styles.js +5 -0
- package/src/components/molecules/HeaderTop/index.js +9 -18
- package/src/components/molecules/HeaderTop/styles.js +19 -0
- package/src/components/molecules/TagAndInput/index.js +4 -0
- package/src/components/organisms/Chat/ContentChat/index.js +1 -1
- package/src/components/organisms/Chat/Footer/index.js +2 -2
- package/src/components/organisms/InputGroup/index.js +31 -4
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +38 -47
- package/src/components/pages/RetailerProductEdition/index.js +61 -18
- package/src/components/pages/RetailerProductEdition/utils.js +34 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.getInputsData = exports.getAuditVersion = void 0;
|
|
9
|
+
|
|
10
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
|
+
|
|
12
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/asyncToGenerator"));
|
|
13
|
+
|
|
14
|
+
var _axios = _interopRequireDefault(require("axios"));
|
|
15
|
+
|
|
16
|
+
var getAuditVersion = /*#__PURE__*/function () {
|
|
17
|
+
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(articleId, setState, token) {
|
|
18
|
+
var auditResponse;
|
|
19
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
|
20
|
+
while (1) {
|
|
21
|
+
switch (_context.prev = _context.next) {
|
|
22
|
+
case 0:
|
|
23
|
+
_context.next = 2;
|
|
24
|
+
return _axios.default.get("".concat(process.env.REACT_APP_GET_AUDIT, "?articleId=").concat(articleId), {
|
|
25
|
+
headers: {
|
|
26
|
+
Authorization: token
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
case 2:
|
|
31
|
+
auditResponse = _context.sent;
|
|
32
|
+
console.log(auditResponse, "auditResponse");
|
|
33
|
+
|
|
34
|
+
if (auditResponse.status === 200) {
|
|
35
|
+
setState(JSON.parse(auditResponse.data.body).data);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
case 5:
|
|
39
|
+
case "end":
|
|
40
|
+
return _context.stop();
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}, _callee);
|
|
44
|
+
}));
|
|
45
|
+
|
|
46
|
+
return function getAuditVersion(_x, _x2, _x3) {
|
|
47
|
+
return _ref.apply(this, arguments);
|
|
48
|
+
};
|
|
49
|
+
}();
|
|
50
|
+
|
|
51
|
+
exports.getAuditVersion = getAuditVersion;
|
|
52
|
+
|
|
53
|
+
var getInputsData = function getInputsData(services, activeRetailer, setDatasheetState, setDescriptionState) {
|
|
54
|
+
if (services.length > 0) {
|
|
55
|
+
var _services$0$activeRet, _services$, _services$2;
|
|
56
|
+
|
|
57
|
+
if ((_services$0$activeRet = services[0][activeRetailer.id]) !== null && _services$0$activeRet !== void 0 && _services$0$activeRet.data) services[0][activeRetailer.id].data = Object.values(services[0][activeRetailer.id].data);
|
|
58
|
+
var datagroups = services[0][activeRetailer === null || activeRetailer === void 0 ? void 0 : activeRetailer.id];
|
|
59
|
+
var inputs = (_services$ = services[0]) === null || _services$ === void 0 ? void 0 : _services$.inputs;
|
|
60
|
+
var descriptions = (_services$2 = services[1]) === null || _services$2 === void 0 ? void 0 : _services$2.filter(function (service) {
|
|
61
|
+
return (service === null || service === void 0 ? void 0 : service.id) === (activeRetailer === null || activeRetailer === void 0 ? void 0 : activeRetailer.id);
|
|
62
|
+
});
|
|
63
|
+
setDatasheetState([datagroups, inputs]);
|
|
64
|
+
setDescriptionState(descriptions);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
exports.getInputsData = getInputsData;
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -26,6 +26,7 @@ export const GeneralInput = ({
|
|
|
26
26
|
inputOnChange,
|
|
27
27
|
disabled,
|
|
28
28
|
onKeyDown,
|
|
29
|
+
auditClass,
|
|
29
30
|
}) => {
|
|
30
31
|
const [textValue, setTextValue] = useState({
|
|
31
32
|
value: inputValue,
|
|
@@ -100,7 +101,7 @@ export const GeneralInput = ({
|
|
|
100
101
|
};
|
|
101
102
|
|
|
102
103
|
return (
|
|
103
|
-
<Container isRequired={requiredEmpty}>
|
|
104
|
+
<Container isRequired={requiredEmpty} className={auditClass}>
|
|
104
105
|
{optionList?.length > 0 ? (
|
|
105
106
|
<select
|
|
106
107
|
key={`dropdownK${inputId}`}
|
|
@@ -21,6 +21,8 @@ export const GalleryElement = ({
|
|
|
21
21
|
selectedImages,
|
|
22
22
|
setSelectedImages,
|
|
23
23
|
setCheckAll,
|
|
24
|
+
auditImages,
|
|
25
|
+
compare,
|
|
24
26
|
}) => {
|
|
25
27
|
const [statusValidation, setStatusValidation] = useState(validation);
|
|
26
28
|
const [showValidationPanel, setShowValidationPanel] = useState(false);
|
|
@@ -55,14 +57,24 @@ export const GalleryElement = ({
|
|
|
55
57
|
}
|
|
56
58
|
}, [showValidationPanel]);
|
|
57
59
|
|
|
60
|
+
const isEquals = (value, auditValue) => {
|
|
61
|
+
return !value === auditValue;
|
|
62
|
+
};
|
|
63
|
+
|
|
58
64
|
return (
|
|
59
|
-
<Container
|
|
65
|
+
<Container
|
|
66
|
+
className={`${gridLayout ? "grid-gallery" : "row-gallery"} ${
|
|
67
|
+
!isEquals(image.uuid, auditImages?.values[number].uuid) && compare
|
|
68
|
+
? "audit-class"
|
|
69
|
+
: ""
|
|
70
|
+
}`}
|
|
71
|
+
>
|
|
60
72
|
<div className="buttons-container">
|
|
61
73
|
<CheckBox id={id} label={label} onChange={(e) => checkOnChange(e)} />
|
|
62
74
|
</div>
|
|
63
75
|
<div className="image-container">
|
|
64
76
|
<ProductImage
|
|
65
|
-
img={image?.src}
|
|
77
|
+
img={compare ? auditImages?.values[number]?.src : image?.src}
|
|
66
78
|
altText={image?.altText}
|
|
67
79
|
imageType={`catalogue-image-${gridLayout ? "big" : "small"}-size`}
|
|
68
80
|
/>
|
|
@@ -4,12 +4,7 @@ import { Button } from "../../atoms/GeneralButton/index";
|
|
|
4
4
|
import { useEffect, useRef, useState } from "react";
|
|
5
5
|
import { Chat } from "../../organisms/Chat";
|
|
6
6
|
|
|
7
|
-
export const HeaderTop = ({
|
|
8
|
-
setHeaderTop,
|
|
9
|
-
withChat,
|
|
10
|
-
productSelected,
|
|
11
|
-
token,
|
|
12
|
-
}) => {
|
|
7
|
+
export const HeaderTop = ({ setHeaderTop, auditableVersion, setCompare }) => {
|
|
13
8
|
const headerTop = useRef();
|
|
14
9
|
|
|
15
10
|
useEffect(() => {
|
|
@@ -19,22 +14,18 @@ export const HeaderTop = ({
|
|
|
19
14
|
return (
|
|
20
15
|
<Container ref={headerTop}>
|
|
21
16
|
<ScreenHeader text="Edición de producto" />
|
|
22
|
-
<div className="buttons-
|
|
23
|
-
{
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
id: productSelected.id_article,
|
|
30
|
-
version: productSelected.version,
|
|
17
|
+
<div className="buttons-container">
|
|
18
|
+
{auditableVersion && (
|
|
19
|
+
<Button
|
|
20
|
+
buttonType="general-white-button circular-button"
|
|
21
|
+
label={"A|B"}
|
|
22
|
+
onClick={() => {
|
|
23
|
+
setCompare((current) => !current);
|
|
31
24
|
}}
|
|
32
|
-
size={18}
|
|
33
25
|
/>
|
|
34
26
|
)}
|
|
35
|
-
|
|
36
27
|
<Button
|
|
37
|
-
buttonType="close-button"
|
|
28
|
+
buttonType="general-white-button close-button"
|
|
38
29
|
onClick={() => {
|
|
39
30
|
window.location.href = `/products`;
|
|
40
31
|
}}
|
|
@@ -3,8 +3,27 @@ import styled from "styled-components";
|
|
|
3
3
|
export const Container = styled.div`
|
|
4
4
|
display: flex;
|
|
5
5
|
justify-content: space-between;
|
|
6
|
+
<<<<<<< HEAD
|
|
6
7
|
.buttons-top {
|
|
7
8
|
display: flex;
|
|
8
9
|
align-items: center;
|
|
10
|
+
=======
|
|
11
|
+
padding-top: 10px;
|
|
12
|
+
|
|
13
|
+
.buttons-container {
|
|
14
|
+
display: flex;
|
|
15
|
+
|
|
16
|
+
button {
|
|
17
|
+
width: 30px;
|
|
18
|
+
height: 30px;
|
|
19
|
+
border: 1px solid #f0f0f0;
|
|
20
|
+
background-size: 20px;
|
|
21
|
+
padding: 0;
|
|
22
|
+
|
|
23
|
+
& + * {
|
|
24
|
+
margin-left: 10px;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
>>>>>>> versionManager
|
|
9
28
|
}
|
|
10
29
|
`;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Container } from "./styles";
|
|
2
2
|
import { ScreenHeader } from "../../atoms/ScreenHeader/index";
|
|
3
3
|
import { GeneralInput } from "../../atoms/GeneralInput/index";
|
|
4
|
+
import { useEffect } from "react";
|
|
5
|
+
import { useState } from "react";
|
|
4
6
|
|
|
5
7
|
export const TagAndInput = ({
|
|
6
8
|
inputType,
|
|
@@ -28,6 +30,7 @@ export const TagAndInput = ({
|
|
|
28
30
|
disabled,
|
|
29
31
|
onKeyDown,
|
|
30
32
|
showTooltip,
|
|
33
|
+
auditClass,
|
|
31
34
|
}) => {
|
|
32
35
|
return (
|
|
33
36
|
<Container
|
|
@@ -66,6 +69,7 @@ export const TagAndInput = ({
|
|
|
66
69
|
description={description}
|
|
67
70
|
inputOnChange={inputOnChange}
|
|
68
71
|
onKeyDown={onKeyDown}
|
|
72
|
+
auditClass={auditClass}
|
|
69
73
|
/>
|
|
70
74
|
</Container>
|
|
71
75
|
);
|
|
@@ -107,7 +107,6 @@ export const ContentChat = (props) => {
|
|
|
107
107
|
|
|
108
108
|
// ejecutar update
|
|
109
109
|
useEffect(() => {
|
|
110
|
-
// if (runUpdate == 0) return;
|
|
111
110
|
if (chatType === "merchant_product") {
|
|
112
111
|
if (singleChat.items) getUpdateLatestMerchantProduct();
|
|
113
112
|
else getInitialMerchantProduct();
|
|
@@ -489,6 +488,7 @@ export const ContentChat = (props) => {
|
|
|
489
488
|
};
|
|
490
489
|
|
|
491
490
|
const getUpdateLatestTicket = async (fromUpdate = false) => {
|
|
491
|
+
if (singleChat.statusChat === "closed") return;
|
|
492
492
|
const dataUser = {
|
|
493
493
|
id: dataChat.currentUser?.id,
|
|
494
494
|
companyId: dataChat.currentUser?.companyId,
|
|
@@ -45,8 +45,8 @@ const S3_BUCKET = process.env.REACT_APP_IMAGES_BUCKET;
|
|
|
45
45
|
const REGION = "us-east-1";
|
|
46
46
|
|
|
47
47
|
AWS.config.update({
|
|
48
|
-
accessKeyId: process.env.
|
|
49
|
-
secretAccessKey: process.env.
|
|
48
|
+
accessKeyId: process.env.REACT_APP_KUTS3,
|
|
49
|
+
secretAccessKey: process.env.REACT_APP_AKUTS3,
|
|
50
50
|
});
|
|
51
51
|
|
|
52
52
|
const myBucket = new AWS.S3({
|
|
@@ -4,8 +4,10 @@ import { TagAndInput } from "../../molecules/TagAndInput";
|
|
|
4
4
|
|
|
5
5
|
export const InputGroup = ({
|
|
6
6
|
inputGroup = {},
|
|
7
|
+
auditInputGroup,
|
|
7
8
|
activeSection,
|
|
8
9
|
dataInputs = {},
|
|
10
|
+
auditInputs = {},
|
|
9
11
|
updatedDescriptions,
|
|
10
12
|
setUpdatedDescriptions,
|
|
11
13
|
updatedDatasheets,
|
|
@@ -13,6 +15,7 @@ export const InputGroup = ({
|
|
|
13
15
|
articleId,
|
|
14
16
|
version,
|
|
15
17
|
dinamicHeight,
|
|
18
|
+
compare,
|
|
16
19
|
}) => {
|
|
17
20
|
const inputTypeValue = (type) => {
|
|
18
21
|
switch (type) {
|
|
@@ -24,6 +27,12 @@ export const InputGroup = ({
|
|
|
24
27
|
return "text";
|
|
25
28
|
}
|
|
26
29
|
};
|
|
30
|
+
|
|
31
|
+
const isEquals = (dataInputsVal, auditInputsVal) => {
|
|
32
|
+
const result = dataInputsVal === auditInputsVal;
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
|
|
27
36
|
return (
|
|
28
37
|
<Container
|
|
29
38
|
className={
|
|
@@ -47,7 +56,9 @@ export const InputGroup = ({
|
|
|
47
56
|
"-" +
|
|
48
57
|
dataInputs[input]?.value +
|
|
49
58
|
"-" +
|
|
50
|
-
dataInputs[input]?.id
|
|
59
|
+
dataInputs[input]?.id +
|
|
60
|
+
"-" +
|
|
61
|
+
compare
|
|
51
62
|
}
|
|
52
63
|
//disabled={input === 40001}
|
|
53
64
|
disabled={false}
|
|
@@ -58,7 +69,9 @@ export const InputGroup = ({
|
|
|
58
69
|
dataInputs[input]?.name +
|
|
59
70
|
(dataInputs[input]?.required ? "*" : "")
|
|
60
71
|
}
|
|
61
|
-
value={
|
|
72
|
+
value={
|
|
73
|
+
compare ? auditInputs[input]?.value : dataInputs[input]?.value
|
|
74
|
+
}
|
|
62
75
|
inputPlaceHolder={input?.placeholder}
|
|
63
76
|
articleId={articleId}
|
|
64
77
|
isRequired={dataInputs[input]?.required}
|
|
@@ -72,15 +85,23 @@ export const InputGroup = ({
|
|
|
72
85
|
optionList={dataInputs[input]?.option_list}
|
|
73
86
|
description={dataInputs[input]?.description}
|
|
74
87
|
showTooltip={true}
|
|
88
|
+
auditClass={
|
|
89
|
+
compare &&
|
|
90
|
+
!isEquals(dataInputs[input].value, auditInputs[input].value)
|
|
91
|
+
? "audit-class"
|
|
92
|
+
: ""
|
|
93
|
+
}
|
|
75
94
|
/>
|
|
76
95
|
) : (
|
|
77
96
|
<TagAndInput
|
|
78
|
-
key={index + "-" + input?.value}
|
|
97
|
+
key={index + "-" + input?.value + "-" + compare}
|
|
79
98
|
inputId={input.id}
|
|
80
99
|
index={index}
|
|
81
100
|
inputType={"textarea"}
|
|
82
101
|
label={input?.name + (input.required ? "*" : "")}
|
|
83
|
-
value={
|
|
102
|
+
value={
|
|
103
|
+
compare ? auditInputGroup?.inputs[index]?.value : input?.value
|
|
104
|
+
}
|
|
84
105
|
isRequired={input.required}
|
|
85
106
|
maxChar={input.max_chars}
|
|
86
107
|
inputPlaceHolder={input?.placeholder}
|
|
@@ -91,6 +112,12 @@ export const InputGroup = ({
|
|
|
91
112
|
dinamicHeight={dinamicHeight}
|
|
92
113
|
description={input?.description}
|
|
93
114
|
showTooltip={true}
|
|
115
|
+
auditClass={
|
|
116
|
+
compare &&
|
|
117
|
+
!isEquals(input?.value, auditInputGroup?.inputs[index]?.value)
|
|
118
|
+
? "audit-class"
|
|
119
|
+
: ""
|
|
120
|
+
}
|
|
94
121
|
/>
|
|
95
122
|
)
|
|
96
123
|
)}
|
|
@@ -16,95 +16,86 @@ RetailerProductEditionDefault.args = {
|
|
|
16
16
|
Imágenes: true,
|
|
17
17
|
},
|
|
18
18
|
token:
|
|
19
|
-
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
19
|
+
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJjOTRhNzMwNS05MzY1LTQ2ZmYtYTQyMy00YjRiYzNiOGIxODAiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjp0cnVlLCJjb2duaXRvOnVzZXJuYW1lIjoiYzk0YTczMDUtOTM2NS00NmZmLWE0MjMtNGI0YmMzYjhiMTgwIiwiY29nbml0bzpyb2xlcyI6WyJhcm46YXdzOmlhbTo6ODk4NjcwMjMyODA3OnJvbGVcL2NvbnRlbnRvaC1kZXYtdXMtZWFzdC0xLWxhbWJkYVJvbGUiXSwiYXVkIjoiNWFjOHRwZ3M2Z2JzcTEzZnJ2cnBpZWVwNDAiLCJldmVudF9pZCI6IjllNTRjMDc0LWFjNzktNGEwNC1iOGEzLWNhOWU2ZmQxNDE3ZiIsInRva2VuX3VzZSI6ImlkIiwiYXV0aF90aW1lIjoxNjc3NTQ1NzA2LCJuYW1lIjoiQ29sYWJvcmFkb3IiLCJwaG9uZV9udW1iZXIiOiIrNTIxMTExIiwiZXhwIjoxNjc3NTQ5MzA2LCJpYXQiOjE2Nzc1NDU3MDYsImVtYWlsIjoic2FsbWVyb24uNUBob3RtYWlsLmNvbSJ9.CS5zthG2PFlQIn5yCV64aadrBvh0ccEMlm8osN_BHTqqYARTiGJMnGUzD-FqmCB9JNeLn036eNHQ7TppqlvhBEe66-F7Aq3fSCMR2X31dWkASsg1E9kSmYS2V6NeG1G5WkfaIBOh7d7VH5Dnu6i5phne_BAu_fDbnBgsQUxQQMh-LMfv2heQ_MInJ6O2MrIzbYYMZYK7ioO5C7FvBnOCpDuk3DcgVFwuqBdVJAGkm-VYJbbnR6NYmYMnZfzrFJ8DjNE3O-L3ugVDOIfZOjuVBt2ZsfIB0-I7h_TBuIzwVE309f68AoDAujacOKvPORoN4ympPrAUSa7ZrM6ye2564g",
|
|
20
20
|
productSelected: {
|
|
21
21
|
services: {
|
|
22
22
|
datasheets: 1,
|
|
23
23
|
descriptions: 1,
|
|
24
24
|
images: 1,
|
|
25
25
|
},
|
|
26
|
-
orderId:
|
|
27
|
-
status: "
|
|
28
|
-
datasheet_status: "
|
|
26
|
+
orderId: 130,
|
|
27
|
+
status: "PA",
|
|
28
|
+
datasheet_status: "PA",
|
|
29
29
|
prio: "none",
|
|
30
|
-
version:
|
|
31
|
-
description_status: "
|
|
32
|
-
images_status: "
|
|
30
|
+
version: 17,
|
|
31
|
+
description_status: "PA",
|
|
32
|
+
images_status: "PA",
|
|
33
33
|
statusByRetailer: {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
},
|
|
39
|
-
43: {
|
|
40
|
-
datasheet: "AC",
|
|
41
|
-
description: "AC",
|
|
42
|
-
images: "AC",
|
|
34
|
+
58: {
|
|
35
|
+
datasheet: "PA",
|
|
36
|
+
description: "PA",
|
|
37
|
+
images: "PA",
|
|
43
38
|
},
|
|
44
39
|
},
|
|
45
40
|
article: {
|
|
46
|
-
id_article:
|
|
47
|
-
id_category: "
|
|
48
|
-
name: "
|
|
49
|
-
upc: "
|
|
50
|
-
timestamp: "
|
|
41
|
+
id_article: 3,
|
|
42
|
+
id_category: "2032",
|
|
43
|
+
name: "CORTINA BLACKOUT DE POLIÉSTER CAFÉ 2.13 X 1.06 M",
|
|
44
|
+
upc: "161157",
|
|
45
|
+
timestamp: "2022-11-14T16:02:47.000Z",
|
|
51
46
|
id_user: 28,
|
|
52
47
|
status: "NULL",
|
|
53
48
|
active: 1,
|
|
54
49
|
company_id: 1,
|
|
55
50
|
company_name: "GRUPO BRAHMA",
|
|
56
51
|
country: "México",
|
|
57
|
-
id_order:
|
|
58
|
-
id_datasheet_especialist:
|
|
59
|
-
id_datasheet_facilitator:
|
|
60
|
-
id_description_especialist:
|
|
61
|
-
id_description_facilitator:
|
|
62
|
-
id_images_especialist:
|
|
63
|
-
id_images_facilitator:
|
|
64
|
-
id_auditor:
|
|
52
|
+
id_order: 130,
|
|
53
|
+
id_datasheet_especialist: null,
|
|
54
|
+
id_datasheet_facilitator: null,
|
|
55
|
+
id_description_especialist: null,
|
|
56
|
+
id_description_facilitator: null,
|
|
57
|
+
id_images_especialist: null,
|
|
58
|
+
id_images_facilitator: null,
|
|
59
|
+
id_auditor: null,
|
|
65
60
|
id_recepcionist: null,
|
|
66
|
-
category: "
|
|
61
|
+
category: "Decoración|Cortinas y Persianas|Cortinas",
|
|
67
62
|
missingAttributes: 0,
|
|
68
63
|
missingDescriptions: 0,
|
|
69
64
|
missingImages: 0,
|
|
70
65
|
},
|
|
71
66
|
retailers: [
|
|
72
67
|
{
|
|
73
|
-
id:
|
|
74
|
-
name: "
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
id: 43,
|
|
78
|
-
name: "City Club",
|
|
68
|
+
id: 58,
|
|
69
|
+
name: "The Home Depot Golden",
|
|
79
70
|
},
|
|
80
71
|
],
|
|
81
72
|
country: "México",
|
|
82
|
-
upc: "
|
|
73
|
+
upc: "161157",
|
|
83
74
|
},
|
|
84
75
|
location: {
|
|
85
76
|
product: { articleId: 354, versionId: 3 },
|
|
86
77
|
},
|
|
87
78
|
user: {
|
|
88
|
-
id_user:
|
|
89
|
-
name: "
|
|
90
|
-
last_name: "
|
|
91
|
-
email: "
|
|
92
|
-
position: "",
|
|
79
|
+
id_user: 30,
|
|
80
|
+
name: "Admin",
|
|
81
|
+
last_name: "Ulises",
|
|
82
|
+
email: "salmeron.5@hotmail.com",
|
|
83
|
+
position: "Admin",
|
|
93
84
|
telephone: "",
|
|
94
|
-
country: "",
|
|
85
|
+
country: "México",
|
|
95
86
|
id_company: 2,
|
|
96
|
-
id_cognito: "
|
|
87
|
+
id_cognito: "c94a7305-9365-46ff-a423-4b4bc3b8b180",
|
|
97
88
|
birth_Date: null,
|
|
98
89
|
about_me: "",
|
|
99
90
|
zip_code: "",
|
|
100
91
|
address: "",
|
|
101
92
|
job: "",
|
|
102
93
|
id_stripe: "",
|
|
103
|
-
id_role:
|
|
94
|
+
id_role: 6,
|
|
104
95
|
active: 1,
|
|
105
96
|
is_retailer: 0,
|
|
106
97
|
email_notify: 1,
|
|
107
|
-
is_user_tech: "AS",
|
|
98
|
+
is_user_tech: "ADMIN-AS",
|
|
108
99
|
membership: {
|
|
109
100
|
id: 2,
|
|
110
101
|
start_date: "2021-11-05T02:35:12.000Z",
|
|
@@ -116,6 +107,6 @@ RetailerProductEditionDefault.args = {
|
|
|
116
107
|
products_limit: "3",
|
|
117
108
|
type: "PyMES",
|
|
118
109
|
},
|
|
119
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
110
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-30/30.png?1676494961913",
|
|
120
111
|
},
|
|
121
112
|
};
|