contentoh-components-library 21.1.29 → 21.1.30
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/ValidationPanel/index.js +4 -3
- package/dist/components/molecules/AvatarAndValidation/index.js +4 -0
- package/dist/components/organisms/FullProductNameHeader/index.js +5 -1
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +99 -109
- package/dist/components/pages/ProviderProductEdition/index.js +143 -59
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +56 -65
- package/dist/components/pages/RetailerProductEdition/index.js +127 -18
- package/package.json +1 -1
- package/src/components/atoms/ValidationPanel/index.js +5 -4
- package/src/components/molecules/AvatarAndValidation/index.js +5 -1
- package/src/components/organisms/FullProductNameHeader/index.js +5 -1
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +106 -108
- package/src/components/pages/ProviderProductEdition/index.js +108 -34
- package/src/components/pages/ProviderProductEdition/styles.js +1 -1
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +57 -68
- package/src/components/pages/RetailerProductEdition/index.js +103 -3
|
@@ -16,136 +16,134 @@ ProviderProductEditionDefault.args = {
|
|
|
16
16
|
Imágenes: false,
|
|
17
17
|
},
|
|
18
18
|
token:
|
|
19
|
-
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
19
|
+
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI1ODg0YWUzNC01OWQ2LTQ0NTQtYjk4ZS04MjE1MThiY2MzYTciLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwia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: 2,
|
|
23
23
|
productSelected: {
|
|
24
|
-
orderId:
|
|
25
|
-
|
|
24
|
+
orderId: 55,
|
|
25
|
+
article_status: "AP",
|
|
26
26
|
datasheet_status: "AP",
|
|
27
|
-
prio: "none",
|
|
28
|
-
version: 7,
|
|
29
27
|
description_status: "AP",
|
|
30
28
|
images_status: "AP",
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
datasheet: null,
|
|
35
|
-
descriptions: null,
|
|
36
|
-
images: null,
|
|
37
|
-
},
|
|
38
|
-
services: {
|
|
39
|
-
datasheets: 1,
|
|
40
|
-
descriptions: 1,
|
|
41
|
-
images: 1,
|
|
42
|
-
},
|
|
29
|
+
prio: "none",
|
|
30
|
+
version: 2,
|
|
31
|
+
brand: null,
|
|
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: 64,
|
|
55
|
-
id_article: 35707,
|
|
56
|
-
id_auditor: 37,
|
|
57
|
-
name: "chetos",
|
|
58
|
-
upc: "1010101010",
|
|
36
|
+
id_category: "2143",
|
|
37
|
+
id_article: 55118,
|
|
38
|
+
name: "FOCO BLUETOOTH SPOT PHILIPS 6 WATTS 300 LÚMENES MULTICOLOR",
|
|
39
|
+
upc: "145582",
|
|
59
40
|
},
|
|
60
41
|
retailers: [
|
|
61
42
|
{
|
|
62
|
-
id:
|
|
63
|
-
name: "
|
|
43
|
+
id: 58,
|
|
44
|
+
name: "The Home Depot Golden",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
id: 59,
|
|
48
|
+
name: "The Home Depot Platinum",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: 60,
|
|
52
|
+
name: "The Home Depot Resizing",
|
|
64
53
|
},
|
|
65
54
|
{
|
|
66
|
-
id:
|
|
67
|
-
name: "
|
|
55
|
+
id: 61,
|
|
56
|
+
name: "Home Depot TAB",
|
|
68
57
|
},
|
|
69
58
|
],
|
|
59
|
+
services: {
|
|
60
|
+
datasheets: 1,
|
|
61
|
+
descriptions: 1,
|
|
62
|
+
images: 1,
|
|
63
|
+
},
|
|
64
|
+
id_article: 55118,
|
|
70
65
|
retailersAvailable: [
|
|
71
66
|
{
|
|
72
|
-
id:
|
|
73
|
-
name: "
|
|
67
|
+
id: 58,
|
|
68
|
+
name: "The Home Depot Golden",
|
|
74
69
|
},
|
|
75
70
|
{
|
|
76
|
-
id:
|
|
77
|
-
name: "
|
|
71
|
+
id: 59,
|
|
72
|
+
name: "The Home Depot Platinum",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
id: 60,
|
|
76
|
+
name: "The Home Depot Resizing",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
id: 61,
|
|
80
|
+
name: "Home Depot TAB",
|
|
78
81
|
},
|
|
79
82
|
],
|
|
80
|
-
categoryName: "ABARROTES|BOTANAS, GOLOSINAS Y CHOCOLATES|BOTANAS",
|
|
81
|
-
upc: "1010101010",
|
|
82
|
-
id_article: 35707,
|
|
83
|
-
id_order: 64,
|
|
84
83
|
},
|
|
85
84
|
productToEdit: {
|
|
86
|
-
ArticleId:
|
|
87
|
-
idCategory: "
|
|
85
|
+
ArticleId: 55118,
|
|
86
|
+
idCategory: "2143",
|
|
88
87
|
product: {
|
|
89
|
-
orderId:
|
|
90
|
-
|
|
88
|
+
orderId: 55,
|
|
89
|
+
article_status: "AP",
|
|
91
90
|
datasheet_status: "AP",
|
|
92
|
-
prio: "none",
|
|
93
|
-
version: 7,
|
|
94
91
|
description_status: "AP",
|
|
95
92
|
images_status: "AP",
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
datasheet: null,
|
|
100
|
-
descriptions: null,
|
|
101
|
-
images: null,
|
|
102
|
-
},
|
|
103
|
-
services: {
|
|
104
|
-
datasheets: 1,
|
|
105
|
-
descriptions: 1,
|
|
106
|
-
images: 1,
|
|
107
|
-
},
|
|
93
|
+
prio: "none",
|
|
94
|
+
version: 2,
|
|
95
|
+
brand: null,
|
|
108
96
|
article: {
|
|
109
|
-
category: "
|
|
110
|
-
company_name: "
|
|
97
|
+
category: "ILUMINACIÓN|FOCOS|FOCOS",
|
|
98
|
+
company_name: "THD Proveedor",
|
|
111
99
|
country: "México",
|
|
112
|
-
id_category: "
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
id_description_facilitator: 52,
|
|
117
|
-
id_images_especialist: 55,
|
|
118
|
-
id_images_facilitator: 53,
|
|
119
|
-
id_order: 64,
|
|
120
|
-
id_article: 35707,
|
|
121
|
-
id_auditor: 37,
|
|
122
|
-
name: "chetos",
|
|
123
|
-
upc: "1010101010",
|
|
100
|
+
id_category: "2143",
|
|
101
|
+
id_article: 55118,
|
|
102
|
+
name: "FOCO BLUETOOTH SPOT PHILIPS 6 WATTS 300 LÚMENES MULTICOLOR",
|
|
103
|
+
upc: "145582",
|
|
124
104
|
},
|
|
125
105
|
retailers: [
|
|
126
106
|
{
|
|
127
|
-
id:
|
|
128
|
-
name: "
|
|
107
|
+
id: 58,
|
|
108
|
+
name: "The Home Depot Golden",
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
id: 59,
|
|
112
|
+
name: "The Home Depot Platinum",
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
id: 60,
|
|
116
|
+
name: "The Home Depot Resizing",
|
|
129
117
|
},
|
|
130
118
|
{
|
|
131
|
-
id:
|
|
132
|
-
name: "
|
|
119
|
+
id: 61,
|
|
120
|
+
name: "Home Depot TAB",
|
|
133
121
|
},
|
|
134
122
|
],
|
|
123
|
+
services: {
|
|
124
|
+
datasheets: 1,
|
|
125
|
+
descriptions: 1,
|
|
126
|
+
images: 1,
|
|
127
|
+
},
|
|
128
|
+
id_article: 55118,
|
|
135
129
|
retailersAvailable: [
|
|
136
130
|
{
|
|
137
|
-
id:
|
|
138
|
-
name: "
|
|
131
|
+
id: 58,
|
|
132
|
+
name: "The Home Depot Golden",
|
|
139
133
|
},
|
|
140
134
|
{
|
|
141
|
-
id:
|
|
142
|
-
name: "
|
|
135
|
+
id: 59,
|
|
136
|
+
name: "The Home Depot Platinum",
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
id: 60,
|
|
140
|
+
name: "The Home Depot Resizing",
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
id: 61,
|
|
144
|
+
name: "Home Depot TAB",
|
|
143
145
|
},
|
|
144
146
|
],
|
|
145
|
-
categoryName: "ABARROTES|BOTANAS, GOLOSINAS Y CHOCOLATES|BOTANAS",
|
|
146
|
-
upc: "1010101010",
|
|
147
|
-
id_article: 35707,
|
|
148
|
-
id_order: 64,
|
|
149
147
|
},
|
|
150
148
|
},
|
|
151
149
|
location: {
|
|
@@ -153,36 +151,36 @@ ProviderProductEditionDefault.args = {
|
|
|
153
151
|
state: { origin: "Contentoh" },
|
|
154
152
|
},
|
|
155
153
|
user: {
|
|
156
|
-
id_user:
|
|
157
|
-
name: "
|
|
158
|
-
last_name: "
|
|
159
|
-
email: "
|
|
160
|
-
position: "
|
|
161
|
-
telephone: "+
|
|
154
|
+
id_user: 59,
|
|
155
|
+
name: "The Home",
|
|
156
|
+
last_name: "Depot",
|
|
157
|
+
email: "cadena.ismael@allfreemail.net",
|
|
158
|
+
position: "Admin",
|
|
159
|
+
telephone: "+523111366336",
|
|
162
160
|
country: "México",
|
|
163
|
-
id_company:
|
|
164
|
-
id_cognito: "
|
|
161
|
+
id_company: 7,
|
|
162
|
+
id_cognito: "5884ae34-59d6-4454-b98e-821518bcc3a7",
|
|
165
163
|
birth_Date: null,
|
|
166
164
|
about_me: null,
|
|
167
165
|
zip_code: null,
|
|
168
166
|
address: null,
|
|
169
167
|
job: null,
|
|
170
|
-
id_stripe:
|
|
168
|
+
id_stripe: "",
|
|
171
169
|
id_role: 0,
|
|
172
170
|
active: 1,
|
|
173
|
-
is_retailer:
|
|
174
|
-
email_notify:
|
|
171
|
+
is_retailer: 0,
|
|
172
|
+
email_notify: 1,
|
|
175
173
|
membership: {
|
|
176
|
-
id:
|
|
177
|
-
start_date: "
|
|
178
|
-
end_date: "
|
|
179
|
-
planID:
|
|
180
|
-
plan: "
|
|
181
|
-
name: "Plan
|
|
182
|
-
user_limit: "
|
|
183
|
-
products_limit: "
|
|
174
|
+
id: 24,
|
|
175
|
+
start_date: "2021-11-23T03:35:50.000Z",
|
|
176
|
+
end_date: "2022-11-23T03:35:50.000Z",
|
|
177
|
+
planID: 9,
|
|
178
|
+
plan: "prod_KtlkzZVGq6bRTO",
|
|
179
|
+
name: "Plan Enterprise Full",
|
|
180
|
+
user_limit: "30",
|
|
181
|
+
products_limit: "10000",
|
|
184
182
|
type: "Enterprise",
|
|
185
183
|
},
|
|
186
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
184
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1656113146885",
|
|
187
185
|
},
|
|
188
|
-
};
|
|
186
|
+
};
|
|
@@ -216,6 +216,7 @@ export const ProviderProductEdition = ({
|
|
|
216
216
|
const loadData = async () => {
|
|
217
217
|
const services = await getRetailerServices(
|
|
218
218
|
product?.id_article || product?.article?.id_article,
|
|
219
|
+
product?.article?.company_name || product?.categoryName,
|
|
219
220
|
parseInt(product?.article?.id_category || product?.id_category),
|
|
220
221
|
product?.version
|
|
221
222
|
);
|
|
@@ -833,6 +834,7 @@ export const ProviderProductEdition = ({
|
|
|
833
834
|
},
|
|
834
835
|
});
|
|
835
836
|
setProduct(productTemp);
|
|
837
|
+
sessionStorage.setItem("productSelected", JSON.stringify(productTemp));
|
|
836
838
|
setProductEdit({
|
|
837
839
|
ArticleId: productTemp.id_article,
|
|
838
840
|
idCategory: productTemp.article.id_category,
|
|
@@ -854,10 +856,10 @@ export const ProviderProductEdition = ({
|
|
|
854
856
|
|
|
855
857
|
const validateAll = async (result) => {
|
|
856
858
|
try {
|
|
859
|
+
setLoading(true);
|
|
857
860
|
const evaluationArray = [];
|
|
858
861
|
const sendAll = [];
|
|
859
862
|
const conceptArray = ["description", "datasheet", "images"];
|
|
860
|
-
console.log(servicesData);
|
|
861
863
|
|
|
862
864
|
servicesData?.forEach((ret) => {
|
|
863
865
|
let data = {
|
|
@@ -876,7 +878,9 @@ export const ProviderProductEdition = ({
|
|
|
876
878
|
);
|
|
877
879
|
});
|
|
878
880
|
|
|
879
|
-
|
|
881
|
+
await Promise.all(evaluationArray);
|
|
882
|
+
|
|
883
|
+
conceptArray?.forEach((concept) => {
|
|
880
884
|
let data = {
|
|
881
885
|
articleId: product.id_article,
|
|
882
886
|
orderId: product.id_order ?? product.orderId,
|
|
@@ -891,8 +895,32 @@ export const ProviderProductEdition = ({
|
|
|
891
895
|
);
|
|
892
896
|
});
|
|
893
897
|
|
|
894
|
-
Promise.all(
|
|
895
|
-
|
|
898
|
+
await Promise.all(sendAll);
|
|
899
|
+
const productTemp = product;
|
|
900
|
+
productTemp.article_status = `${result}C`;
|
|
901
|
+
productTemp.datasheet_status =
|
|
902
|
+
productTemp.datasheet_status === "NA" ? "NA" : `${result}C`;
|
|
903
|
+
productTemp.description_status =
|
|
904
|
+
productTemp.description_status === "NA" ? "NA" : `${result}C`;
|
|
905
|
+
productTemp.images_status =
|
|
906
|
+
productTemp.images_status === "NA" ? "NA" : `${result}C`;
|
|
907
|
+
setProduct(productTemp);
|
|
908
|
+
sessionStorage.setItem("productSelected", JSON.stringify(productTemp));
|
|
909
|
+
setProductEdit({
|
|
910
|
+
ArticleId: productTemp.id_article,
|
|
911
|
+
idCategory: productTemp.article.id_category,
|
|
912
|
+
product: productTemp,
|
|
913
|
+
});
|
|
914
|
+
sessionStorage.setItem(
|
|
915
|
+
"productEdit",
|
|
916
|
+
JSON.stringify({
|
|
917
|
+
ArticleId: productTemp.id_article,
|
|
918
|
+
idCategory: productTemp.article.id_category,
|
|
919
|
+
product: productTemp,
|
|
920
|
+
})
|
|
921
|
+
);
|
|
922
|
+
|
|
923
|
+
loadData();
|
|
896
924
|
} catch (error) {
|
|
897
925
|
console.log(error);
|
|
898
926
|
}
|
|
@@ -948,6 +976,10 @@ export const ProviderProductEdition = ({
|
|
|
948
976
|
}
|
|
949
977
|
};
|
|
950
978
|
|
|
979
|
+
useEffect(() => {
|
|
980
|
+
setSaving(loading);
|
|
981
|
+
}, [loading]);
|
|
982
|
+
|
|
951
983
|
const slidefront = [
|
|
952
984
|
{
|
|
953
985
|
slide: Slide1_1,
|
|
@@ -977,18 +1009,6 @@ export const ProviderProductEdition = ({
|
|
|
977
1009
|
},
|
|
978
1010
|
];
|
|
979
1011
|
|
|
980
|
-
useEffect(() => {
|
|
981
|
-
setSaving(loading);
|
|
982
|
-
}, [loading]);
|
|
983
|
-
|
|
984
|
-
console.log(
|
|
985
|
-
user.is_retailer === 1,
|
|
986
|
-
product.id_order || product.orderId,
|
|
987
|
-
isRevision(),
|
|
988
|
-
getSectionStatus(),
|
|
989
|
-
"XD"
|
|
990
|
-
);
|
|
991
|
-
|
|
992
1012
|
return (
|
|
993
1013
|
<Container headerTop={headerTop}>
|
|
994
1014
|
<HeaderTop setHeaderTop={setHeaderTop} />
|
|
@@ -1022,14 +1042,68 @@ export const ProviderProductEdition = ({
|
|
|
1022
1042
|
setActiveRetailer={setActiveRetailer}
|
|
1023
1043
|
showValidationButtons={isRevision() && getSectionStatus()}
|
|
1024
1044
|
servicesData={servicesData ? servicesData : null}
|
|
1025
|
-
showApproveRejectAll={
|
|
1026
|
-
|
|
1027
|
-
(
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1045
|
+
showApproveRejectAll={isRevision() && getSectionStatus()}
|
|
1046
|
+
approveAll={() => {
|
|
1047
|
+
if (
|
|
1048
|
+
originProp === "RequestWithoutContentoh" &&
|
|
1049
|
+
!user.is_retailer &&
|
|
1050
|
+
(!product.id_order || !product.orderId)
|
|
1051
|
+
) {
|
|
1052
|
+
setDataGenericModal((prev) => ({
|
|
1053
|
+
...prev,
|
|
1054
|
+
button2: {
|
|
1055
|
+
name: "Continuar",
|
|
1056
|
+
action: () => evaluationToRetailer("A"),
|
|
1057
|
+
},
|
|
1058
|
+
}));
|
|
1059
|
+
setShowGenericModal(true);
|
|
1060
|
+
} else {
|
|
1061
|
+
if (user.is_retailer) {
|
|
1062
|
+
if (product.id_order || product.orderId) {
|
|
1063
|
+
validateAll("A");
|
|
1064
|
+
} else {
|
|
1065
|
+
setDataGenericModal((prev) => ({
|
|
1066
|
+
...prev,
|
|
1067
|
+
button2: {
|
|
1068
|
+
name: "Continuar",
|
|
1069
|
+
action: () => evaluationToRetailer("A"),
|
|
1070
|
+
},
|
|
1071
|
+
}));
|
|
1072
|
+
setShowGenericModal(true);
|
|
1073
|
+
}
|
|
1074
|
+
} else {
|
|
1075
|
+
validateAll("A");
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
}}
|
|
1079
|
+
rejectAll={() => {
|
|
1080
|
+
if (
|
|
1081
|
+
originProp === "RequestWithoutContentoh" &&
|
|
1082
|
+
!user.is_retailer &&
|
|
1083
|
+
(!product.id_order || !product.orderId)
|
|
1084
|
+
) {
|
|
1085
|
+
return;
|
|
1086
|
+
} else {
|
|
1087
|
+
if (user.is_retailer) {
|
|
1088
|
+
if (product.id_order || product.orderId) {
|
|
1089
|
+
validateAll("R");
|
|
1090
|
+
setModalViewError(true);
|
|
1091
|
+
} else {
|
|
1092
|
+
setDataGenericModal((prev) => ({
|
|
1093
|
+
...prev,
|
|
1094
|
+
button2: {
|
|
1095
|
+
name: "Continuar",
|
|
1096
|
+
action: () => evaluationToRetailer("R"),
|
|
1097
|
+
},
|
|
1098
|
+
}));
|
|
1099
|
+
setShowGenericModal(true);
|
|
1100
|
+
}
|
|
1101
|
+
} else {
|
|
1102
|
+
validateAll("R");
|
|
1103
|
+
setModalViewError(true);
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
}}
|
|
1033
1107
|
approve={() => {
|
|
1034
1108
|
if (
|
|
1035
1109
|
origin[activeTab] === "RequestWithoutContentoh" &&
|
|
@@ -1272,20 +1346,20 @@ export const ProviderProductEdition = ({
|
|
|
1272
1346
|
</button>
|
|
1273
1347
|
) : (
|
|
1274
1348
|
<>
|
|
1275
|
-
|
|
1349
|
+
<SliderToolTip
|
|
1276
1350
|
infoIcon={InfoIcon}
|
|
1277
1351
|
slidefront={slidefront}
|
|
1278
1352
|
iconSize={"big-image"}
|
|
1279
1353
|
slidePosition={"top-slide"}
|
|
1280
1354
|
></SliderToolTip>
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1355
|
+
<Button
|
|
1356
|
+
onClick={() => {
|
|
1357
|
+
setShowContentohRequestModal &&
|
|
1358
|
+
setShowContentohRequestModal(true);
|
|
1359
|
+
}}
|
|
1360
|
+
buttonType="general-default-button"
|
|
1361
|
+
label="Enviar a Content-oh!"
|
|
1362
|
+
/>
|
|
1289
1363
|
</>
|
|
1290
1364
|
)}
|
|
1291
1365
|
</div>
|
|
@@ -1367,4 +1441,4 @@ export const ProviderProductEdition = ({
|
|
|
1367
1441
|
)}
|
|
1368
1442
|
</Container>
|
|
1369
1443
|
);
|
|
1370
|
-
};
|
|
1444
|
+
};
|
|
@@ -16,110 +16,99 @@ RetailerProductEditionDefault.args = {
|
|
|
16
16
|
Imágenes: false,
|
|
17
17
|
},
|
|
18
18
|
token:
|
|
19
|
-
"
|
|
20
|
-
articleId: 238,
|
|
21
|
-
category: 846,
|
|
22
|
-
version: 2,
|
|
19
|
+
"eyJraWQiOiJkQWJkZCtlclwvT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rFjz5hQM0gWYsvOMmSX3JKQWl4thirzTOqJxrKebFeWnUMs5D3hlFpKeBSKodgB6lLw2522SJmxWXmGCaDOVSMUP9LqB9PsboSOBfSeQpkbIZqd9iNWbrFCusGhnoRrQABucqFwlQ6KPHYTPaOOux-X3pf6i5woX4g",
|
|
23
20
|
productSelected: {
|
|
24
21
|
services: {
|
|
25
22
|
datasheets: 1,
|
|
26
23
|
descriptions: 1,
|
|
27
24
|
images: 1,
|
|
28
25
|
},
|
|
29
|
-
orderId:
|
|
30
|
-
status: "
|
|
31
|
-
datasheet_status: "
|
|
32
|
-
prio: "
|
|
33
|
-
version:
|
|
34
|
-
description_status: "
|
|
35
|
-
images_status: "
|
|
26
|
+
orderId: 64,
|
|
27
|
+
status: "AF",
|
|
28
|
+
datasheet_status: "AF",
|
|
29
|
+
prio: "none",
|
|
30
|
+
version: 7,
|
|
31
|
+
description_status: "AF",
|
|
32
|
+
images_status: "AF",
|
|
36
33
|
article: {
|
|
37
|
-
id_article:
|
|
38
|
-
id_category: "
|
|
39
|
-
name: "
|
|
40
|
-
upc: "
|
|
41
|
-
timestamp: "
|
|
42
|
-
id_user:
|
|
43
|
-
status: "
|
|
34
|
+
id_article: 35707,
|
|
35
|
+
id_category: "41",
|
|
36
|
+
name: "chetos",
|
|
37
|
+
upc: "1010101010",
|
|
38
|
+
timestamp: "2022-06-16T18:12:42.000Z",
|
|
39
|
+
id_user: 28,
|
|
40
|
+
status: "NULL",
|
|
44
41
|
active: 1,
|
|
45
|
-
company_id:
|
|
46
|
-
company_name: "
|
|
47
|
-
country: "
|
|
48
|
-
id_order:
|
|
49
|
-
id_datasheet_especialist:
|
|
50
|
-
id_datasheet_facilitator:
|
|
51
|
-
id_description_especialist:
|
|
52
|
-
id_description_facilitator:
|
|
53
|
-
id_images_especialist:
|
|
54
|
-
id_images_facilitator:
|
|
55
|
-
id_auditor:
|
|
42
|
+
company_id: 1,
|
|
43
|
+
company_name: "COMPANY DEV",
|
|
44
|
+
country: "México",
|
|
45
|
+
id_order: 64,
|
|
46
|
+
id_datasheet_especialist: 54,
|
|
47
|
+
id_datasheet_facilitator: 52,
|
|
48
|
+
id_description_especialist: 54,
|
|
49
|
+
id_description_facilitator: 52,
|
|
50
|
+
id_images_especialist: 55,
|
|
51
|
+
id_images_facilitator: 53,
|
|
52
|
+
id_auditor: 30,
|
|
56
53
|
id_recepcionist: null,
|
|
57
|
-
category:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
missingImages: -4,
|
|
54
|
+
category: "ABARROTES|BOTANAS, GOLOSINAS Y CHOCOLATES|BOTANAS",
|
|
55
|
+
missingAttributes: null,
|
|
56
|
+
missingDescriptions: null,
|
|
57
|
+
missingImages: null,
|
|
62
58
|
},
|
|
63
59
|
retailers: [
|
|
64
60
|
{
|
|
65
|
-
id:
|
|
66
|
-
name: "
|
|
61
|
+
id: 3,
|
|
62
|
+
name: "Sam´s Club",
|
|
67
63
|
country: "México",
|
|
68
64
|
id_region: 1,
|
|
69
65
|
active: 1,
|
|
70
66
|
},
|
|
71
67
|
{
|
|
72
|
-
id:
|
|
73
|
-
name: "
|
|
74
|
-
country: "México",
|
|
75
|
-
id_region: 1,
|
|
76
|
-
active: 1,
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
id: 29,
|
|
80
|
-
name: "Farmacias del Ahorro",
|
|
68
|
+
id: 8,
|
|
69
|
+
name: "Fragua",
|
|
81
70
|
country: "México",
|
|
82
71
|
id_region: 1,
|
|
83
72
|
active: 1,
|
|
84
73
|
},
|
|
85
74
|
],
|
|
86
|
-
country: "
|
|
87
|
-
upc: "
|
|
75
|
+
country: "México",
|
|
76
|
+
upc: "1010101010",
|
|
88
77
|
},
|
|
89
78
|
location: {
|
|
90
79
|
product: { articleId: 109485, versionId: 3 },
|
|
91
80
|
},
|
|
92
81
|
user: {
|
|
93
|
-
id_user:
|
|
94
|
-
name: "
|
|
95
|
-
last_name: "
|
|
96
|
-
email: "
|
|
97
|
-
position: "
|
|
82
|
+
id_user: 30,
|
|
83
|
+
name: "Admin",
|
|
84
|
+
last_name: "Ulises",
|
|
85
|
+
email: "salmeron.5@hotmail.com",
|
|
86
|
+
position: "Admin",
|
|
98
87
|
telephone: null,
|
|
99
|
-
country:
|
|
100
|
-
id_company:
|
|
101
|
-
id_cognito: "
|
|
88
|
+
country: "México",
|
|
89
|
+
id_company: 2,
|
|
90
|
+
id_cognito: "c94a7305-9365-46ff-a423-4b4bc3b8b180",
|
|
102
91
|
birth_Date: null,
|
|
103
92
|
about_me: null,
|
|
104
93
|
zip_code: null,
|
|
105
94
|
address: null,
|
|
106
95
|
job: null,
|
|
107
96
|
id_stripe: null,
|
|
108
|
-
id_role:
|
|
97
|
+
id_role: 6,
|
|
109
98
|
active: 1,
|
|
110
99
|
is_retailer: 0,
|
|
111
|
-
email_notify:
|
|
100
|
+
email_notify: 0,
|
|
112
101
|
membership: {
|
|
113
|
-
id:
|
|
114
|
-
start_date: "
|
|
115
|
-
end_date: "
|
|
116
|
-
planID:
|
|
117
|
-
plan: "
|
|
118
|
-
name: "Plan
|
|
119
|
-
user_limit: "
|
|
120
|
-
products_limit: "
|
|
121
|
-
type: "
|
|
102
|
+
id: 2,
|
|
103
|
+
start_date: "2021-11-05T02:35:12.000Z",
|
|
104
|
+
end_date: "2022-11-05T02:34:49.000Z",
|
|
105
|
+
planID: 1,
|
|
106
|
+
plan: "prod_KtkvuFFLpOdP6e",
|
|
107
|
+
name: "Plan Free",
|
|
108
|
+
user_limit: "1",
|
|
109
|
+
products_limit: "3",
|
|
110
|
+
type: "PyMES",
|
|
122
111
|
},
|
|
123
|
-
src: "https://content-management-profile
|
|
112
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-30/30.png?1656375350443",
|
|
124
113
|
},
|
|
125
|
-
};
|
|
114
|
+
};
|