contentoh-components-library 21.3.48 → 21.3.49
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/assets/fonts/roboto/LICENSE.txt +202 -0
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +83 -111
- package/dist/components/pages/ProviderProductEdition/index.js +8 -0
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +71 -82
- package/package.json +1 -1
- package/src/components/molecules/AvatarAndValidation/index.js +1 -1
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +83 -119
- package/src/components/pages/ProviderProductEdition/index.js +3 -0
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +75 -85
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -31,35 +31,32 @@ ProviderProductEditionDefault.args = {
|
|
|
31
31
|
"Ficha técnica": false,
|
|
32
32
|
Imágenes: false
|
|
33
33
|
},
|
|
34
|
-
token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
34
|
+
token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmYjIzMDRlZi1lMWEyLTRjMmItODg3NC1lYjc1NGU0ZjYzMzIiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6ImZiMjMwNGVmLWUxYTItNGMyYi04ODc0LWViNzU0ZTRmNjMzMiIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiI4MGFmMGIwNi1iMGYyLTQ5YjgtYjczYy1lMzQ5MTFmMGVkNmEiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4MzkxOTkxMSwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY4MzkyMzUxMSwiaWF0IjoxNjgzOTE5OTExLCJlbWFpbCI6ImNhZGVuYWJvZGVnYUBhbGxmcmVlbWFpbC5uZXQifQ.h8rhLTIPMxhCs85K5JIn1efY4yZ5TAvzaBbLItby8W7HdLnNjK4Cv39mTCprrk0yjmKhOGIA1gyVeXcm18n5LqSLmOyz85uwTRwZ91s2on49rX3cO9FZp5S3tg4MseNKePBBetwycXttVm_aJZOLGvt2XoAfdxXHTUk2uDu7IphAdz746qrgXxSFyq_cWX9SdWrYhAn_XjHbNOqOuvcmbD7FquvUq-RYWqTAyeT9qeZUjA8oJvENkpohybxc6OoKaPOcdxWvZsvNcFxpEzjHQja3dAQnlA-Pc9_iJf9S4fzf3d3aqXIIDQuozJiixnT6-kK29p4MVbEJ2r4Pd2Ox2A",
|
|
35
35
|
articleId: 238,
|
|
36
36
|
category: 846,
|
|
37
37
|
version: 2,
|
|
38
38
|
productSelected: {
|
|
39
|
-
orderId:
|
|
40
|
-
article_status: "
|
|
41
|
-
datasheet_status: "
|
|
42
|
-
description_status: "
|
|
43
|
-
images_status: "
|
|
39
|
+
orderId: 15104,
|
|
40
|
+
article_status: "AP",
|
|
41
|
+
datasheet_status: "AP",
|
|
42
|
+
description_status: "AP",
|
|
43
|
+
images_status: "AP",
|
|
44
44
|
prio: "none",
|
|
45
45
|
version: 3,
|
|
46
46
|
brand: null,
|
|
47
47
|
article: {
|
|
48
|
-
category: "
|
|
49
|
-
company_name: "
|
|
50
|
-
id_company:
|
|
48
|
+
category: "Juguetes|Juguetes|Juguetes",
|
|
49
|
+
company_name: "Financiado Bodega",
|
|
50
|
+
id_company: 912,
|
|
51
51
|
country: "México",
|
|
52
|
-
id_category: "
|
|
53
|
-
id_article:
|
|
54
|
-
name: "
|
|
55
|
-
upc: "
|
|
52
|
+
id_category: "4208",
|
|
53
|
+
id_article: 37563,
|
|
54
|
+
name: "CARRIOLA Y MUNECA 30CM",
|
|
55
|
+
upc: "26253713351"
|
|
56
56
|
},
|
|
57
57
|
retailers: [{
|
|
58
|
-
id:
|
|
59
|
-
name: "
|
|
60
|
-
}, {
|
|
61
|
-
id: 68,
|
|
62
|
-
name: "The Home Depot Dropship"
|
|
58
|
+
id: 70,
|
|
59
|
+
name: "Bodega Aurrera"
|
|
63
60
|
}],
|
|
64
61
|
services: {
|
|
65
62
|
datasheets: 1,
|
|
@@ -67,50 +64,44 @@ ProviderProductEditionDefault.args = {
|
|
|
67
64
|
images: 1
|
|
68
65
|
},
|
|
69
66
|
statusByRetailer: {
|
|
70
|
-
|
|
71
|
-
datasheet: "
|
|
72
|
-
description: "
|
|
73
|
-
images: "
|
|
67
|
+
70: {
|
|
68
|
+
datasheet: "AP",
|
|
69
|
+
description: "AP",
|
|
70
|
+
images: "AP"
|
|
74
71
|
}
|
|
75
72
|
},
|
|
76
|
-
retailersWithService: ["
|
|
77
|
-
id_article:
|
|
73
|
+
retailersWithService: ["70"],
|
|
74
|
+
id_article: 37563,
|
|
78
75
|
retailersAvailable: [{
|
|
79
|
-
id:
|
|
80
|
-
name: "
|
|
81
|
-
}, {
|
|
82
|
-
id: 68,
|
|
83
|
-
name: "The Home Depot Dropship"
|
|
76
|
+
id: 70,
|
|
77
|
+
name: "Bodega Aurrera"
|
|
84
78
|
}]
|
|
85
79
|
},
|
|
86
80
|
productToEdit: {
|
|
87
|
-
ArticleId:
|
|
88
|
-
idCategory: "
|
|
81
|
+
ArticleId: 37563,
|
|
82
|
+
idCategory: "4208",
|
|
89
83
|
product: {
|
|
90
|
-
orderId:
|
|
91
|
-
article_status: "
|
|
92
|
-
datasheet_status: "
|
|
93
|
-
description_status: "
|
|
94
|
-
images_status: "
|
|
84
|
+
orderId: 15104,
|
|
85
|
+
article_status: "AP",
|
|
86
|
+
datasheet_status: "AP",
|
|
87
|
+
description_status: "AP",
|
|
88
|
+
images_status: "AP",
|
|
95
89
|
prio: "none",
|
|
96
90
|
version: 3,
|
|
97
91
|
brand: null,
|
|
98
92
|
article: {
|
|
99
|
-
category: "
|
|
100
|
-
company_name: "
|
|
101
|
-
id_company:
|
|
93
|
+
category: "Juguetes|Juguetes|Juguetes",
|
|
94
|
+
company_name: "Financiado Bodega",
|
|
95
|
+
id_company: 912,
|
|
102
96
|
country: "México",
|
|
103
|
-
id_category: "
|
|
104
|
-
id_article:
|
|
105
|
-
name: "
|
|
106
|
-
upc: "
|
|
97
|
+
id_category: "4208",
|
|
98
|
+
id_article: 37563,
|
|
99
|
+
name: "CARRIOLA Y MUNECA 30CM",
|
|
100
|
+
upc: "26253713351"
|
|
107
101
|
},
|
|
108
102
|
retailers: [{
|
|
109
|
-
id:
|
|
110
|
-
name: "
|
|
111
|
-
}, {
|
|
112
|
-
id: 68,
|
|
113
|
-
name: "The Home Depot Dropship"
|
|
103
|
+
id: 70,
|
|
104
|
+
name: "Bodega Aurrera"
|
|
114
105
|
}],
|
|
115
106
|
services: {
|
|
116
107
|
datasheets: 1,
|
|
@@ -118,105 +109,86 @@ ProviderProductEditionDefault.args = {
|
|
|
118
109
|
images: 1
|
|
119
110
|
},
|
|
120
111
|
statusByRetailer: {
|
|
121
|
-
|
|
122
|
-
datasheet: "
|
|
123
|
-
description: "
|
|
124
|
-
images: "
|
|
112
|
+
70: {
|
|
113
|
+
datasheet: "AP",
|
|
114
|
+
description: "AP",
|
|
115
|
+
images: "AP"
|
|
125
116
|
}
|
|
126
117
|
},
|
|
127
|
-
retailersWithService: ["
|
|
128
|
-
id_article:
|
|
118
|
+
retailersWithService: ["70"],
|
|
119
|
+
id_article: 37563,
|
|
129
120
|
retailersAvailable: [{
|
|
130
|
-
id:
|
|
131
|
-
name: "
|
|
132
|
-
}, {
|
|
133
|
-
id: 68,
|
|
134
|
-
name: "The Home Depot Dropship"
|
|
121
|
+
id: 70,
|
|
122
|
+
name: "Bodega Aurrera"
|
|
135
123
|
}]
|
|
136
124
|
}
|
|
137
125
|
},
|
|
138
126
|
location: {
|
|
139
|
-
pathname: "/
|
|
127
|
+
pathname: "/products/37563/datasheet",
|
|
140
128
|
search: "",
|
|
141
129
|
hash: "",
|
|
142
130
|
state: {
|
|
143
|
-
|
|
131
|
+
origin: "RequestWithContentoh"
|
|
144
132
|
},
|
|
145
|
-
key: "
|
|
133
|
+
key: "144zh0"
|
|
146
134
|
},
|
|
147
135
|
user: {
|
|
148
|
-
id_user:
|
|
149
|
-
name: "
|
|
150
|
-
last_name: "
|
|
151
|
-
email: "
|
|
152
|
-
position: "
|
|
153
|
-
telephone: "+
|
|
136
|
+
id_user: 132,
|
|
137
|
+
name: "Bodega",
|
|
138
|
+
last_name: "Aurrera",
|
|
139
|
+
email: "cadenabodega@allfreemail.net",
|
|
140
|
+
position: "TI",
|
|
141
|
+
telephone: "+529999999999",
|
|
154
142
|
country: "México",
|
|
155
|
-
id_company:
|
|
156
|
-
id_cognito: "
|
|
143
|
+
id_company: 912,
|
|
144
|
+
id_cognito: "fb2304ef-e1a2-4c2b-8874-eb754e4f6332",
|
|
157
145
|
birth_Date: null,
|
|
158
|
-
about_me:
|
|
159
|
-
zip_code:
|
|
160
|
-
address:
|
|
161
|
-
job:
|
|
162
|
-
id_stripe:
|
|
146
|
+
about_me: null,
|
|
147
|
+
zip_code: null,
|
|
148
|
+
address: null,
|
|
149
|
+
job: null,
|
|
150
|
+
id_stripe: null,
|
|
163
151
|
id_role: 0,
|
|
164
152
|
active: 1,
|
|
165
153
|
is_retailer: 1,
|
|
166
|
-
email_notify:
|
|
154
|
+
email_notify: 1,
|
|
167
155
|
is_user_tech: null,
|
|
168
156
|
membership: {
|
|
169
|
-
id:
|
|
170
|
-
start_date: "2022-
|
|
171
|
-
end_date: "2023-
|
|
172
|
-
planID:
|
|
173
|
-
plan: "
|
|
157
|
+
id: 101,
|
|
158
|
+
start_date: "2022-12-22T19:16:53.000Z",
|
|
159
|
+
end_date: "2023-12-22T19:16:53.000Z",
|
|
160
|
+
planID: 8,
|
|
161
|
+
plan: "prod_KtlhECVSFG2iro",
|
|
174
162
|
name: "Plan Pro",
|
|
175
|
-
user_limit: "
|
|
176
|
-
products_limit: "
|
|
177
|
-
type: "
|
|
163
|
+
user_limit: "20",
|
|
164
|
+
products_limit: "5000",
|
|
165
|
+
type: "Enterprise"
|
|
178
166
|
},
|
|
179
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
167
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-132/132.png?1683921632099"
|
|
180
168
|
},
|
|
181
169
|
company: {
|
|
182
|
-
id_company:
|
|
183
|
-
trade_name: "
|
|
184
|
-
company_name: "
|
|
185
|
-
rfc: "
|
|
186
|
-
adress: "
|
|
170
|
+
id_company: 912,
|
|
171
|
+
trade_name: "Financiado Bodega",
|
|
172
|
+
company_name: "Bodega",
|
|
173
|
+
rfc: "9395jwhs",
|
|
174
|
+
adress: "Toluca",
|
|
187
175
|
about_company: null,
|
|
188
176
|
telephone: null,
|
|
189
177
|
web_site: null,
|
|
190
178
|
zip_code: null,
|
|
191
179
|
email: null,
|
|
192
180
|
social_link: null,
|
|
193
|
-
is_retailer:
|
|
181
|
+
is_retailer: 0,
|
|
194
182
|
financedRetailers: [{
|
|
195
|
-
id:
|
|
196
|
-
name: "
|
|
183
|
+
id: 70,
|
|
184
|
+
name: "Bodega Aurrera",
|
|
197
185
|
country: "México",
|
|
198
186
|
id_region: 1,
|
|
199
187
|
active: 1
|
|
200
188
|
}],
|
|
201
189
|
retailers: [{
|
|
202
|
-
id:
|
|
203
|
-
name: "
|
|
204
|
-
country: "México"
|
|
205
|
-
}, {
|
|
206
|
-
id: 60,
|
|
207
|
-
name: "The Home Depot Resizing",
|
|
208
|
-
country: "México"
|
|
209
|
-
}, {
|
|
210
|
-
id: 61,
|
|
211
|
-
name: "Home Depot TAB",
|
|
212
|
-
country: "México"
|
|
213
|
-
}, {
|
|
214
|
-
id: 68,
|
|
215
|
-
name: "The Home Depot Dropship",
|
|
216
|
-
country: "México"
|
|
217
|
-
}, {
|
|
218
|
-
id: 58,
|
|
219
|
-
name: "The Home Depot Golden",
|
|
190
|
+
id: 70,
|
|
191
|
+
name: "Bodega Aurrera",
|
|
220
192
|
country: "México"
|
|
221
193
|
}]
|
|
222
194
|
},
|
|
@@ -446,6 +446,9 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
446
446
|
validatedAll = _useState60[0],
|
|
447
447
|
setValidatedAll = _useState60[1];
|
|
448
448
|
|
|
449
|
+
console.log({
|
|
450
|
+
location: location
|
|
451
|
+
});
|
|
449
452
|
var originProp = location === null || location === void 0 ? void 0 : (_location$state = location.state) === null || _location$state === void 0 ? void 0 : _location$state.origin;
|
|
450
453
|
|
|
451
454
|
var _useState61 = (0, _react.useState)({
|
|
@@ -989,6 +992,10 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
989
992
|
var _revision = ["RequestWithContentoh", "RequestWithoutContentoh", "Contentoh"].includes(orgn);
|
|
990
993
|
|
|
991
994
|
if (_isRetailer) {
|
|
995
|
+
console.log({
|
|
996
|
+
revision: _revision,
|
|
997
|
+
currentService: currentService
|
|
998
|
+
});
|
|
992
999
|
if (_revision && currentService === "AP") return true;
|
|
993
1000
|
} else {
|
|
994
1001
|
var _product = productEdit.product;
|
|
@@ -1938,6 +1945,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1938
1945
|
|
|
1939
1946
|
var getSectionStatus = function getSectionStatus() {
|
|
1940
1947
|
var concept = getConcept(activeTab);
|
|
1948
|
+
console.log("getSectionStatus", productEdit.product["".concat(concept, "_status")]);
|
|
1941
1949
|
return ["AA", "AP", "R", "CA", "RCA"].includes(productEdit.product["".concat(concept, "_status")]);
|
|
1942
1950
|
};
|
|
1943
1951
|
|
|
@@ -31,98 +31,87 @@ RetailerProductEditionDefault.args = {
|
|
|
31
31
|
"Ficha técnica": false,
|
|
32
32
|
Imágenes: false
|
|
33
33
|
},
|
|
34
|
-
token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
34
|
+
token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmYjIzMDRlZi1lMWEyLTRjMmItODg3NC1lYjc1NGU0ZjYzMzIiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6ImZiMjMwNGVmLWUxYTItNGMyYi04ODc0LWViNzU0ZTRmNjMzMiIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiI4MGFmMGIwNi1iMGYyLTQ5YjgtYjczYy1lMzQ5MTFmMGVkNmEiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4MzkxOTkxMSwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY4MzkyMzUxMSwiaWF0IjoxNjgzOTE5OTExLCJlbWFpbCI6ImNhZGVuYWJvZGVnYUBhbGxmcmVlbWFpbC5uZXQifQ.h8rhLTIPMxhCs85K5JIn1efY4yZ5TAvzaBbLItby8W7HdLnNjK4Cv39mTCprrk0yjmKhOGIA1gyVeXcm18n5LqSLmOyz85uwTRwZ91s2on49rX3cO9FZp5S3tg4MseNKePBBetwycXttVm_aJZOLGvt2XoAfdxXHTUk2uDu7IphAdz746qrgXxSFyq_cWX9SdWrYhAn_XjHbNOqOuvcmbD7FquvUq-RYWqTAyeT9qeZUjA8oJvENkpohybxc6OoKaPOcdxWvZsvNcFxpEzjHQja3dAQnlA-Pc9_iJf9S4fzf3d3aqXIIDQuozJiixnT6-kK29p4MVbEJ2r4Pd2Ox2A",
|
|
35
35
|
productSelected: {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
"
|
|
36
|
+
orderId: 15104,
|
|
37
|
+
article_status: "AP",
|
|
38
|
+
datasheet_status: "AC",
|
|
39
|
+
description_status: "AC",
|
|
40
|
+
images_status: "AC",
|
|
41
|
+
prio: "none",
|
|
42
|
+
version: 3,
|
|
43
|
+
brand: null,
|
|
44
|
+
article: {
|
|
45
|
+
category: "Juguetes|Juguetes|Juguetes",
|
|
46
|
+
company_name: "Financiado Bodega",
|
|
47
|
+
id_company: 912,
|
|
48
|
+
country: "México",
|
|
49
|
+
id_category: "4208",
|
|
50
|
+
id_article: 37569,
|
|
51
|
+
name: "BB HORA DEL BANO SET MENTA",
|
|
52
|
+
upc: "93905444796"
|
|
49
53
|
},
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"
|
|
53
|
-
"images": 1
|
|
54
|
-
},
|
|
55
|
-
"article": {
|
|
56
|
-
"category": "Puertas y Ventanas|Molduras|Molduras Madera Blanda",
|
|
57
|
-
"company_name": "Demo",
|
|
58
|
-
"country": "México",
|
|
59
|
-
"id_category": "2366",
|
|
60
|
-
"id_datasheet_especialist": null,
|
|
61
|
-
"id_datasheet_facilitator": null,
|
|
62
|
-
"id_description_especialist": null,
|
|
63
|
-
"id_description_facilitator": null,
|
|
64
|
-
"id_images_especialist": null,
|
|
65
|
-
"id_images_facilitator": null,
|
|
66
|
-
"id_order": 15160,
|
|
67
|
-
"id_article": 39290,
|
|
68
|
-
"id_auditor": 37,
|
|
69
|
-
"name": "MOLDURA MARCO MODER 11X4X244 CM",
|
|
70
|
-
"timestamp": "2023-04-19T21:36:02.000Z",
|
|
71
|
-
"upc": "100030"
|
|
72
|
-
},
|
|
73
|
-
"retailers": [{
|
|
74
|
-
"id": 58,
|
|
75
|
-
"name": "The Home Depot Golden"
|
|
76
|
-
}, {
|
|
77
|
-
"id": 68,
|
|
78
|
-
"name": "The Home Depot Merchants"
|
|
54
|
+
retailers: [{
|
|
55
|
+
id: 70,
|
|
56
|
+
name: "Bodega Aurrera"
|
|
79
57
|
}],
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
58
|
+
services: {
|
|
59
|
+
datasheets: 1,
|
|
60
|
+
descriptions: 1,
|
|
61
|
+
images: 1
|
|
62
|
+
},
|
|
63
|
+
statusByRetailer: {
|
|
64
|
+
70: {
|
|
65
|
+
datasheet: "AP",
|
|
66
|
+
description: "AP",
|
|
67
|
+
images: "AP"
|
|
85
68
|
}
|
|
86
|
-
}
|
|
69
|
+
},
|
|
70
|
+
retailersWithService: ["70"],
|
|
71
|
+
id_article: 37569,
|
|
72
|
+
retailersAvailable: [{
|
|
73
|
+
id: 70,
|
|
74
|
+
name: "Bodega Aurrera"
|
|
75
|
+
}]
|
|
87
76
|
},
|
|
88
77
|
location: {
|
|
89
78
|
product: {
|
|
90
|
-
articleId:
|
|
91
|
-
versionId:
|
|
79
|
+
articleId: 37569,
|
|
80
|
+
versionId: 3
|
|
92
81
|
}
|
|
93
82
|
},
|
|
94
83
|
user: {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
84
|
+
id_user: 132,
|
|
85
|
+
name: "Bodega",
|
|
86
|
+
last_name: "Aurrera",
|
|
87
|
+
email: "cadenabodega@allfreemail.net",
|
|
88
|
+
position: "TI",
|
|
89
|
+
telephone: "+529999999999",
|
|
90
|
+
country: "México",
|
|
91
|
+
id_company: 912,
|
|
92
|
+
id_cognito: "fb2304ef-e1a2-4c2b-8874-eb754e4f6332",
|
|
93
|
+
birth_Date: null,
|
|
94
|
+
about_me: null,
|
|
95
|
+
zip_code: null,
|
|
96
|
+
address: null,
|
|
97
|
+
job: null,
|
|
98
|
+
id_stripe: null,
|
|
99
|
+
id_role: 0,
|
|
100
|
+
active: 1,
|
|
101
|
+
is_retailer: 1,
|
|
102
|
+
email_notify: 1,
|
|
103
|
+
is_user_tech: null,
|
|
104
|
+
membership: {
|
|
105
|
+
id: 101,
|
|
106
|
+
start_date: "2022-12-22T19:16:53.000Z",
|
|
107
|
+
end_date: "2023-12-22T19:16:53.000Z",
|
|
108
|
+
planID: 8,
|
|
109
|
+
plan: "prod_KtlhECVSFG2iro",
|
|
110
|
+
name: "Plan Pro",
|
|
111
|
+
user_limit: "20",
|
|
112
|
+
products_limit: "5000",
|
|
113
|
+
type: "Enterprise"
|
|
125
114
|
},
|
|
126
|
-
|
|
115
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-132/132.png?1683919912271"
|
|
127
116
|
}
|
|
128
117
|
};
|
package/package.json
CHANGED
|
@@ -16,37 +16,33 @@ ProviderProductEditionDefault.args = {
|
|
|
16
16
|
Imágenes: false,
|
|
17
17
|
},
|
|
18
18
|
token:
|
|
19
|
-
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
19
|
+
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmYjIzMDRlZi1lMWEyLTRjMmItODg3NC1lYjc1NGU0ZjYzMzIiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6ImZiMjMwNGVmLWUxYTItNGMyYi04ODc0LWViNzU0ZTRmNjMzMiIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiI4MGFmMGIwNi1iMGYyLTQ5YjgtYjczYy1lMzQ5MTFmMGVkNmEiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4MzkxOTkxMSwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY4MzkyMzUxMSwiaWF0IjoxNjgzOTE5OTExLCJlbWFpbCI6ImNhZGVuYWJvZGVnYUBhbGxmcmVlbWFpbC5uZXQifQ.h8rhLTIPMxhCs85K5JIn1efY4yZ5TAvzaBbLItby8W7HdLnNjK4Cv39mTCprrk0yjmKhOGIA1gyVeXcm18n5LqSLmOyz85uwTRwZ91s2on49rX3cO9FZp5S3tg4MseNKePBBetwycXttVm_aJZOLGvt2XoAfdxXHTUk2uDu7IphAdz746qrgXxSFyq_cWX9SdWrYhAn_XjHbNOqOuvcmbD7FquvUq-RYWqTAyeT9qeZUjA8oJvENkpohybxc6OoKaPOcdxWvZsvNcFxpEzjHQja3dAQnlA-Pc9_iJf9S4fzf3d3aqXIIDQuozJiixnT6-kK29p4MVbEJ2r4Pd2Ox2A",
|
|
20
20
|
articleId: 238,
|
|
21
21
|
category: 846,
|
|
22
22
|
version: 2,
|
|
23
23
|
productSelected: {
|
|
24
|
-
orderId:
|
|
25
|
-
article_status: "
|
|
26
|
-
datasheet_status: "
|
|
27
|
-
description_status: "
|
|
28
|
-
images_status: "
|
|
24
|
+
orderId: 15104,
|
|
25
|
+
article_status: "AP",
|
|
26
|
+
datasheet_status: "AP",
|
|
27
|
+
description_status: "AP",
|
|
28
|
+
images_status: "AP",
|
|
29
29
|
prio: "none",
|
|
30
30
|
version: 3,
|
|
31
31
|
brand: null,
|
|
32
32
|
article: {
|
|
33
|
-
category: "
|
|
34
|
-
company_name: "
|
|
35
|
-
id_company:
|
|
33
|
+
category: "Juguetes|Juguetes|Juguetes",
|
|
34
|
+
company_name: "Financiado Bodega",
|
|
35
|
+
id_company: 912,
|
|
36
36
|
country: "México",
|
|
37
|
-
id_category: "
|
|
38
|
-
id_article:
|
|
39
|
-
name: "
|
|
40
|
-
upc: "
|
|
37
|
+
id_category: "4208",
|
|
38
|
+
id_article: 37563,
|
|
39
|
+
name: "CARRIOLA Y MUNECA 30CM",
|
|
40
|
+
upc: "26253713351",
|
|
41
41
|
},
|
|
42
42
|
retailers: [
|
|
43
43
|
{
|
|
44
|
-
id:
|
|
45
|
-
name: "
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
id: 68,
|
|
49
|
-
name: "The Home Depot Dropship",
|
|
44
|
+
id: 70,
|
|
45
|
+
name: "Bodega Aurrera",
|
|
50
46
|
},
|
|
51
47
|
],
|
|
52
48
|
services: {
|
|
@@ -55,55 +51,47 @@ ProviderProductEditionDefault.args = {
|
|
|
55
51
|
images: 1,
|
|
56
52
|
},
|
|
57
53
|
statusByRetailer: {
|
|
58
|
-
|
|
59
|
-
datasheet: "
|
|
60
|
-
description: "
|
|
61
|
-
images: "
|
|
54
|
+
70: {
|
|
55
|
+
datasheet: "AP",
|
|
56
|
+
description: "AP",
|
|
57
|
+
images: "AP",
|
|
62
58
|
},
|
|
63
59
|
},
|
|
64
|
-
retailersWithService: ["
|
|
65
|
-
id_article:
|
|
60
|
+
retailersWithService: ["70"],
|
|
61
|
+
id_article: 37563,
|
|
66
62
|
retailersAvailable: [
|
|
67
63
|
{
|
|
68
|
-
id:
|
|
69
|
-
name: "
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
id: 68,
|
|
73
|
-
name: "The Home Depot Dropship",
|
|
64
|
+
id: 70,
|
|
65
|
+
name: "Bodega Aurrera",
|
|
74
66
|
},
|
|
75
67
|
],
|
|
76
68
|
},
|
|
77
69
|
productToEdit: {
|
|
78
|
-
ArticleId:
|
|
79
|
-
idCategory: "
|
|
70
|
+
ArticleId: 37563,
|
|
71
|
+
idCategory: "4208",
|
|
80
72
|
product: {
|
|
81
|
-
orderId:
|
|
82
|
-
article_status: "
|
|
83
|
-
datasheet_status: "
|
|
84
|
-
description_status: "
|
|
85
|
-
images_status: "
|
|
73
|
+
orderId: 15104,
|
|
74
|
+
article_status: "AP",
|
|
75
|
+
datasheet_status: "AP",
|
|
76
|
+
description_status: "AP",
|
|
77
|
+
images_status: "AP",
|
|
86
78
|
prio: "none",
|
|
87
79
|
version: 3,
|
|
88
80
|
brand: null,
|
|
89
81
|
article: {
|
|
90
|
-
category: "
|
|
91
|
-
company_name: "
|
|
92
|
-
id_company:
|
|
82
|
+
category: "Juguetes|Juguetes|Juguetes",
|
|
83
|
+
company_name: "Financiado Bodega",
|
|
84
|
+
id_company: 912,
|
|
93
85
|
country: "México",
|
|
94
|
-
id_category: "
|
|
95
|
-
id_article:
|
|
96
|
-
name: "
|
|
97
|
-
upc: "
|
|
86
|
+
id_category: "4208",
|
|
87
|
+
id_article: 37563,
|
|
88
|
+
name: "CARRIOLA Y MUNECA 30CM",
|
|
89
|
+
upc: "26253713351",
|
|
98
90
|
},
|
|
99
91
|
retailers: [
|
|
100
92
|
{
|
|
101
|
-
id:
|
|
102
|
-
name: "
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
id: 68,
|
|
106
|
-
name: "The Home Depot Dropship",
|
|
93
|
+
id: 70,
|
|
94
|
+
name: "Bodega Aurrera",
|
|
107
95
|
},
|
|
108
96
|
],
|
|
109
97
|
services: {
|
|
@@ -112,86 +100,82 @@ ProviderProductEditionDefault.args = {
|
|
|
112
100
|
images: 1,
|
|
113
101
|
},
|
|
114
102
|
statusByRetailer: {
|
|
115
|
-
|
|
116
|
-
datasheet: "
|
|
117
|
-
description: "
|
|
118
|
-
images: "
|
|
103
|
+
70: {
|
|
104
|
+
datasheet: "AP",
|
|
105
|
+
description: "AP",
|
|
106
|
+
images: "AP",
|
|
119
107
|
},
|
|
120
108
|
},
|
|
121
|
-
retailersWithService: ["
|
|
122
|
-
id_article:
|
|
109
|
+
retailersWithService: ["70"],
|
|
110
|
+
id_article: 37563,
|
|
123
111
|
retailersAvailable: [
|
|
124
112
|
{
|
|
125
|
-
id:
|
|
126
|
-
name: "
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
id: 68,
|
|
130
|
-
name: "The Home Depot Dropship",
|
|
113
|
+
id: 70,
|
|
114
|
+
name: "Bodega Aurrera",
|
|
131
115
|
},
|
|
132
116
|
],
|
|
133
117
|
},
|
|
134
118
|
},
|
|
135
119
|
location: {
|
|
136
|
-
pathname: "/
|
|
120
|
+
pathname: "/products/37563/datasheet",
|
|
137
121
|
search: "",
|
|
138
122
|
hash: "",
|
|
139
123
|
state: {
|
|
140
|
-
|
|
124
|
+
origin: "RequestWithContentoh",
|
|
141
125
|
},
|
|
142
|
-
key: "
|
|
126
|
+
key: "144zh0",
|
|
143
127
|
},
|
|
144
128
|
user: {
|
|
145
|
-
id_user:
|
|
146
|
-
name: "
|
|
147
|
-
last_name: "
|
|
148
|
-
email: "
|
|
149
|
-
position: "
|
|
150
|
-
telephone: "+
|
|
129
|
+
id_user: 132,
|
|
130
|
+
name: "Bodega",
|
|
131
|
+
last_name: "Aurrera",
|
|
132
|
+
email: "cadenabodega@allfreemail.net",
|
|
133
|
+
position: "TI",
|
|
134
|
+
telephone: "+529999999999",
|
|
151
135
|
country: "México",
|
|
152
|
-
id_company:
|
|
153
|
-
id_cognito: "
|
|
136
|
+
id_company: 912,
|
|
137
|
+
id_cognito: "fb2304ef-e1a2-4c2b-8874-eb754e4f6332",
|
|
154
138
|
birth_Date: null,
|
|
155
|
-
about_me:
|
|
156
|
-
zip_code:
|
|
157
|
-
address:
|
|
158
|
-
job:
|
|
159
|
-
id_stripe:
|
|
139
|
+
about_me: null,
|
|
140
|
+
zip_code: null,
|
|
141
|
+
address: null,
|
|
142
|
+
job: null,
|
|
143
|
+
id_stripe: null,
|
|
160
144
|
id_role: 0,
|
|
161
145
|
active: 1,
|
|
162
146
|
is_retailer: 1,
|
|
163
|
-
email_notify:
|
|
147
|
+
email_notify: 1,
|
|
164
148
|
is_user_tech: null,
|
|
165
149
|
membership: {
|
|
166
|
-
id:
|
|
167
|
-
start_date: "2022-
|
|
168
|
-
end_date: "2023-
|
|
169
|
-
planID:
|
|
170
|
-
plan: "
|
|
150
|
+
id: 101,
|
|
151
|
+
start_date: "2022-12-22T19:16:53.000Z",
|
|
152
|
+
end_date: "2023-12-22T19:16:53.000Z",
|
|
153
|
+
planID: 8,
|
|
154
|
+
plan: "prod_KtlhECVSFG2iro",
|
|
171
155
|
name: "Plan Pro",
|
|
172
|
-
user_limit: "
|
|
173
|
-
products_limit: "
|
|
174
|
-
type: "
|
|
156
|
+
user_limit: "20",
|
|
157
|
+
products_limit: "5000",
|
|
158
|
+
type: "Enterprise",
|
|
175
159
|
},
|
|
176
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
160
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-132/132.png?1683921632099",
|
|
177
161
|
},
|
|
178
162
|
company: {
|
|
179
|
-
id_company:
|
|
180
|
-
trade_name: "
|
|
181
|
-
company_name: "
|
|
182
|
-
rfc: "
|
|
183
|
-
adress: "
|
|
163
|
+
id_company: 912,
|
|
164
|
+
trade_name: "Financiado Bodega",
|
|
165
|
+
company_name: "Bodega",
|
|
166
|
+
rfc: "9395jwhs",
|
|
167
|
+
adress: "Toluca",
|
|
184
168
|
about_company: null,
|
|
185
169
|
telephone: null,
|
|
186
170
|
web_site: null,
|
|
187
171
|
zip_code: null,
|
|
188
172
|
email: null,
|
|
189
173
|
social_link: null,
|
|
190
|
-
is_retailer:
|
|
174
|
+
is_retailer: 0,
|
|
191
175
|
financedRetailers: [
|
|
192
176
|
{
|
|
193
|
-
id:
|
|
194
|
-
name: "
|
|
177
|
+
id: 70,
|
|
178
|
+
name: "Bodega Aurrera",
|
|
195
179
|
country: "México",
|
|
196
180
|
id_region: 1,
|
|
197
181
|
active: 1,
|
|
@@ -199,28 +183,8 @@ ProviderProductEditionDefault.args = {
|
|
|
199
183
|
],
|
|
200
184
|
retailers: [
|
|
201
185
|
{
|
|
202
|
-
id:
|
|
203
|
-
name: "
|
|
204
|
-
country: "México",
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
id: 60,
|
|
208
|
-
name: "The Home Depot Resizing",
|
|
209
|
-
country: "México",
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
id: 61,
|
|
213
|
-
name: "Home Depot TAB",
|
|
214
|
-
country: "México",
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
id: 68,
|
|
218
|
-
name: "The Home Depot Dropship",
|
|
219
|
-
country: "México",
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
id: 58,
|
|
223
|
-
name: "The Home Depot Golden",
|
|
186
|
+
id: 70,
|
|
187
|
+
name: "Bodega Aurrera",
|
|
224
188
|
country: "México",
|
|
225
189
|
},
|
|
226
190
|
],
|
|
@@ -215,6 +215,7 @@ export const ProviderProductEdition = ({
|
|
|
215
215
|
const [loading, setLoading] = useState(true);
|
|
216
216
|
const [validatedAll, setValidatedAll] = useState(false);
|
|
217
217
|
|
|
218
|
+
console.log({ location });
|
|
218
219
|
const originProp = location?.state?.origin;
|
|
219
220
|
const [origin, setOrigin] = useState({
|
|
220
221
|
"Ficha técnica": originProp,
|
|
@@ -531,6 +532,7 @@ export const ProviderProductEdition = ({
|
|
|
531
532
|
"Contentoh",
|
|
532
533
|
].includes(orgn);
|
|
533
534
|
if (isRetailer) {
|
|
535
|
+
console.log({ revision, currentService });
|
|
534
536
|
if (revision && currentService === "AP") return true;
|
|
535
537
|
} else {
|
|
536
538
|
const { product } = productEdit;
|
|
@@ -1180,6 +1182,7 @@ export const ProviderProductEdition = ({
|
|
|
1180
1182
|
|
|
1181
1183
|
const getSectionStatus = () => {
|
|
1182
1184
|
const concept = getConcept(activeTab);
|
|
1185
|
+
console.log("getSectionStatus", productEdit.product[`${concept}_status`]);
|
|
1183
1186
|
return ["AA", "AP", "R", "CA", "RCA"].includes(
|
|
1184
1187
|
productEdit.product[`${concept}_status`]
|
|
1185
1188
|
);
|
|
@@ -16,98 +16,88 @@ RetailerProductEditionDefault.args = {
|
|
|
16
16
|
Imágenes: false,
|
|
17
17
|
},
|
|
18
18
|
token:
|
|
19
|
-
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
19
|
+
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmYjIzMDRlZi1lMWEyLTRjMmItODg3NC1lYjc1NGU0ZjYzMzIiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6ImZiMjMwNGVmLWUxYTItNGMyYi04ODc0LWViNzU0ZTRmNjMzMiIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiI4MGFmMGIwNi1iMGYyLTQ5YjgtYjczYy1lMzQ5MTFmMGVkNmEiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4MzkxOTkxMSwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY4MzkyMzUxMSwiaWF0IjoxNjgzOTE5OTExLCJlbWFpbCI6ImNhZGVuYWJvZGVnYUBhbGxmcmVlbWFpbC5uZXQifQ.h8rhLTIPMxhCs85K5JIn1efY4yZ5TAvzaBbLItby8W7HdLnNjK4Cv39mTCprrk0yjmKhOGIA1gyVeXcm18n5LqSLmOyz85uwTRwZ91s2on49rX3cO9FZp5S3tg4MseNKePBBetwycXttVm_aJZOLGvt2XoAfdxXHTUk2uDu7IphAdz746qrgXxSFyq_cWX9SdWrYhAn_XjHbNOqOuvcmbD7FquvUq-RYWqTAyeT9qeZUjA8oJvENkpohybxc6OoKaPOcdxWvZsvNcFxpEzjHQja3dAQnlA-Pc9_iJf9S4fzf3d3aqXIIDQuozJiixnT6-kK29p4MVbEJ2r4Pd2Ox2A",
|
|
20
20
|
productSelected: {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
21
|
+
orderId: 15104,
|
|
22
|
+
article_status: "AP",
|
|
23
|
+
datasheet_status: "AC",
|
|
24
|
+
description_status: "AC",
|
|
25
|
+
images_status: "AC",
|
|
26
|
+
prio: "none",
|
|
27
|
+
version: 3,
|
|
28
|
+
brand: null,
|
|
29
|
+
article: {
|
|
30
|
+
category: "Juguetes|Juguetes|Juguetes",
|
|
31
|
+
company_name: "Financiado Bodega",
|
|
32
|
+
id_company: 912,
|
|
33
|
+
country: "México",
|
|
34
|
+
id_category: "4208",
|
|
35
|
+
id_article: 37569,
|
|
36
|
+
name: "BB HORA DEL BANO SET MENTA",
|
|
37
|
+
upc: "93905444796",
|
|
34
38
|
},
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
+
retailers: [
|
|
40
|
+
{
|
|
41
|
+
id: 70,
|
|
42
|
+
name: "Bodega Aurrera",
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
services: {
|
|
46
|
+
datasheets: 1,
|
|
47
|
+
descriptions: 1,
|
|
48
|
+
images: 1,
|
|
39
49
|
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"id_datasheet_facilitator": null,
|
|
47
|
-
"id_description_especialist": null,
|
|
48
|
-
"id_description_facilitator": null,
|
|
49
|
-
"id_images_especialist": null,
|
|
50
|
-
"id_images_facilitator": null,
|
|
51
|
-
"id_order": 15160,
|
|
52
|
-
"id_article": 39290,
|
|
53
|
-
"id_auditor": 37,
|
|
54
|
-
"name": "MOLDURA MARCO MODER 11X4X244 CM",
|
|
55
|
-
"timestamp": "2023-04-19T21:36:02.000Z",
|
|
56
|
-
"upc": "100030"
|
|
50
|
+
statusByRetailer: {
|
|
51
|
+
70: {
|
|
52
|
+
datasheet: "AP",
|
|
53
|
+
description: "AP",
|
|
54
|
+
images: "AP",
|
|
55
|
+
},
|
|
57
56
|
},
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"name": "The Home Depot Merchants"
|
|
66
|
-
}
|
|
57
|
+
retailersWithService: ["70"],
|
|
58
|
+
id_article: 37569,
|
|
59
|
+
retailersAvailable: [
|
|
60
|
+
{
|
|
61
|
+
id: 70,
|
|
62
|
+
name: "Bodega Aurrera",
|
|
63
|
+
},
|
|
67
64
|
],
|
|
68
|
-
|
|
69
|
-
"58": {
|
|
70
|
-
"datasheet": "SAC",
|
|
71
|
-
"description": "SAC",
|
|
72
|
-
"images": "SAC"
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
},
|
|
65
|
+
},
|
|
76
66
|
location: {
|
|
77
|
-
product: { articleId:
|
|
67
|
+
product: { articleId: 37569, versionId: 3 },
|
|
78
68
|
},
|
|
79
69
|
user: {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
70
|
+
id_user: 132,
|
|
71
|
+
name: "Bodega",
|
|
72
|
+
last_name: "Aurrera",
|
|
73
|
+
email: "cadenabodega@allfreemail.net",
|
|
74
|
+
position: "TI",
|
|
75
|
+
telephone: "+529999999999",
|
|
76
|
+
country: "México",
|
|
77
|
+
id_company: 912,
|
|
78
|
+
id_cognito: "fb2304ef-e1a2-4c2b-8874-eb754e4f6332",
|
|
79
|
+
birth_Date: null,
|
|
80
|
+
about_me: null,
|
|
81
|
+
zip_code: null,
|
|
82
|
+
address: null,
|
|
83
|
+
job: null,
|
|
84
|
+
id_stripe: null,
|
|
85
|
+
id_role: 0,
|
|
86
|
+
active: 1,
|
|
87
|
+
is_retailer: 1,
|
|
88
|
+
email_notify: 1,
|
|
89
|
+
is_user_tech: null,
|
|
90
|
+
membership: {
|
|
91
|
+
id: 101,
|
|
92
|
+
start_date: "2022-12-22T19:16:53.000Z",
|
|
93
|
+
end_date: "2023-12-22T19:16:53.000Z",
|
|
94
|
+
planID: 8,
|
|
95
|
+
plan: "prod_KtlhECVSFG2iro",
|
|
96
|
+
name: "Plan Pro",
|
|
97
|
+
user_limit: "20",
|
|
98
|
+
products_limit: "5000",
|
|
99
|
+
type: "Enterprise",
|
|
110
100
|
},
|
|
111
|
-
|
|
112
|
-
},
|
|
101
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-132/132.png?1683919912271",
|
|
102
|
+
},
|
|
113
103
|
};
|