contentoh-components-library 21.3.67 → 21.3.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +81 -111
- package/dist/components/pages/ProviderProductEdition/index.js +7 -3
- package/package.json +1 -1
- package/src/components/molecules/AvatarAndValidation/index.js +1 -1
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +82 -118
- package/src/components/pages/ProviderProductEdition/index.js +4 -3
|
@@ -36,30 +36,27 @@ ProviderProductEditionDefault.args = {
|
|
|
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: 15195,
|
|
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: "Abarrotes Básicos|Abarrotes Básicos y Procesados|Abarrotes Básicos y Procesados",
|
|
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: "4004",
|
|
53
|
+
id_article: 39372,
|
|
54
|
+
name: "PRUEBA04BA",
|
|
55
|
+
upc: "001213"
|
|
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: 39372,
|
|
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: 39372,
|
|
82
|
+
idCategory: "4004",
|
|
89
83
|
product: {
|
|
90
|
-
orderId:
|
|
91
|
-
article_status: "
|
|
92
|
-
datasheet_status: "
|
|
93
|
-
description_status: "
|
|
94
|
-
images_status: "
|
|
84
|
+
orderId: 15195,
|
|
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: "Abarrotes Básicos|Abarrotes Básicos y Procesados|Abarrotes Básicos y Procesados",
|
|
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: "4004",
|
|
98
|
+
id_article: 39372,
|
|
99
|
+
name: "PRUEBA04BA",
|
|
100
|
+
upc: "001213"
|
|
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,20 +109,17 @@ 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: 39372,
|
|
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
|
},
|
|
@@ -140,83 +128,65 @@ ProviderProductEditionDefault.args = {
|
|
|
140
128
|
search: "",
|
|
141
129
|
hash: "",
|
|
142
130
|
state: {
|
|
143
|
-
|
|
131
|
+
origin: "RequestWithContentoh"
|
|
144
132
|
},
|
|
145
133
|
key: "24vwut"
|
|
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?1685370125086"
|
|
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: "
|
|
197
|
-
country: "México"
|
|
198
|
-
id_region: 1,
|
|
199
|
-
active: 1
|
|
183
|
+
id: 70,
|
|
184
|
+
name: "Bodega Aurrera",
|
|
185
|
+
country: "México"
|
|
200
186
|
}],
|
|
201
187
|
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",
|
|
188
|
+
id: 70,
|
|
189
|
+
name: "Bodega Aurrera",
|
|
220
190
|
country: "México"
|
|
221
191
|
}]
|
|
222
192
|
},
|
|
@@ -1985,6 +1985,10 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1985
1985
|
}];
|
|
1986
1986
|
|
|
1987
1987
|
var sendToEvaluation = function sendToEvaluation(result) {
|
|
1988
|
+
console.log({
|
|
1989
|
+
result: result
|
|
1990
|
+
});
|
|
1991
|
+
|
|
1988
1992
|
if (result === "A") {
|
|
1989
1993
|
if (origin[activeTab] === "RequestWithoutContentoh" && !user.is_retailer && (!product.id_order || !product.orderId)) {
|
|
1990
1994
|
setDataGenericModal(function (prev) {
|
|
@@ -2018,7 +2022,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
2018
2022
|
sendEvaluation("A");
|
|
2019
2023
|
}
|
|
2020
2024
|
} else {
|
|
2021
|
-
if (
|
|
2025
|
+
if (origin === "RequestWithoutContentoh" && !user.is_retailer && (!product.id_order || !product.orderId)) {
|
|
2022
2026
|
return;
|
|
2023
2027
|
} else if (user.is_retailer) {
|
|
2024
2028
|
if (product.id_order || product.orderId) {
|
|
@@ -2089,7 +2093,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
2089
2093
|
servicesData: servicesData ? servicesData : null,
|
|
2090
2094
|
showApproveRejectAll: isRevision() && getSectionStatus(),
|
|
2091
2095
|
approveAll: function approveAll() {
|
|
2092
|
-
if (
|
|
2096
|
+
if (origin === "RequestWithoutContentoh" && !user.is_retailer && (!product.id_order || !product.orderId)) {
|
|
2093
2097
|
setDataGenericModal(function (prev) {
|
|
2094
2098
|
return (0, _objectSpread3.default)((0, _objectSpread3.default)({}, prev), {}, {
|
|
2095
2099
|
button2: {
|
|
@@ -2122,7 +2126,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
2122
2126
|
}
|
|
2123
2127
|
},
|
|
2124
2128
|
rejectAll: function rejectAll() {
|
|
2125
|
-
if (
|
|
2129
|
+
if (origin === "RequestWithoutContentoh" && !user.is_retailer && (!product.id_order || !product.orderId)) {
|
|
2126
2130
|
return;
|
|
2127
2131
|
} else if (user.is_retailer) {
|
|
2128
2132
|
if (product.id_order || product.orderId) {
|
package/package.json
CHANGED
|
@@ -21,32 +21,29 @@ ProviderProductEditionDefault.args = {
|
|
|
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: 15195,
|
|
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
|
-
|
|
35
|
-
|
|
33
|
+
category:
|
|
34
|
+
"Abarrotes Básicos|Abarrotes Básicos y Procesados|Abarrotes Básicos y Procesados",
|
|
35
|
+
company_name: "Financiado Bodega",
|
|
36
|
+
id_company: 912,
|
|
36
37
|
country: "México",
|
|
37
|
-
id_category: "
|
|
38
|
-
id_article:
|
|
39
|
-
name: "
|
|
40
|
-
upc: "
|
|
38
|
+
id_category: "4004",
|
|
39
|
+
id_article: 39372,
|
|
40
|
+
name: "PRUEBA04BA",
|
|
41
|
+
upc: "001213",
|
|
41
42
|
},
|
|
42
43
|
retailers: [
|
|
43
44
|
{
|
|
44
|
-
id:
|
|
45
|
-
name: "
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
id: 68,
|
|
49
|
-
name: "The Home Depot Dropship",
|
|
45
|
+
id: 70,
|
|
46
|
+
name: "Bodega Aurrera",
|
|
50
47
|
},
|
|
51
48
|
],
|
|
52
49
|
services: {
|
|
@@ -55,55 +52,48 @@ ProviderProductEditionDefault.args = {
|
|
|
55
52
|
images: 1,
|
|
56
53
|
},
|
|
57
54
|
statusByRetailer: {
|
|
58
|
-
|
|
59
|
-
datasheet: "
|
|
60
|
-
description: "
|
|
61
|
-
images: "
|
|
55
|
+
70: {
|
|
56
|
+
datasheet: "AP",
|
|
57
|
+
description: "AP",
|
|
58
|
+
images: "AP",
|
|
62
59
|
},
|
|
63
60
|
},
|
|
64
|
-
retailersWithService: ["
|
|
65
|
-
id_article:
|
|
61
|
+
retailersWithService: ["70"],
|
|
62
|
+
id_article: 39372,
|
|
66
63
|
retailersAvailable: [
|
|
67
64
|
{
|
|
68
|
-
id:
|
|
69
|
-
name: "
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
id: 68,
|
|
73
|
-
name: "The Home Depot Dropship",
|
|
65
|
+
id: 70,
|
|
66
|
+
name: "Bodega Aurrera",
|
|
74
67
|
},
|
|
75
68
|
],
|
|
76
69
|
},
|
|
77
70
|
productToEdit: {
|
|
78
|
-
ArticleId:
|
|
79
|
-
idCategory: "
|
|
71
|
+
ArticleId: 39372,
|
|
72
|
+
idCategory: "4004",
|
|
80
73
|
product: {
|
|
81
|
-
orderId:
|
|
82
|
-
article_status: "
|
|
83
|
-
datasheet_status: "
|
|
84
|
-
description_status: "
|
|
85
|
-
images_status: "
|
|
74
|
+
orderId: 15195,
|
|
75
|
+
article_status: "AP",
|
|
76
|
+
datasheet_status: "AP",
|
|
77
|
+
description_status: "AP",
|
|
78
|
+
images_status: "AP",
|
|
86
79
|
prio: "none",
|
|
87
80
|
version: 3,
|
|
88
81
|
brand: null,
|
|
89
82
|
article: {
|
|
90
|
-
category:
|
|
91
|
-
|
|
92
|
-
|
|
83
|
+
category:
|
|
84
|
+
"Abarrotes Básicos|Abarrotes Básicos y Procesados|Abarrotes Básicos y Procesados",
|
|
85
|
+
company_name: "Financiado Bodega",
|
|
86
|
+
id_company: 912,
|
|
93
87
|
country: "México",
|
|
94
|
-
id_category: "
|
|
95
|
-
id_article:
|
|
96
|
-
name: "
|
|
97
|
-
upc: "
|
|
88
|
+
id_category: "4004",
|
|
89
|
+
id_article: 39372,
|
|
90
|
+
name: "PRUEBA04BA",
|
|
91
|
+
upc: "001213",
|
|
98
92
|
},
|
|
99
93
|
retailers: [
|
|
100
94
|
{
|
|
101
|
-
id:
|
|
102
|
-
name: "
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
id: 68,
|
|
106
|
-
name: "The Home Depot Dropship",
|
|
95
|
+
id: 70,
|
|
96
|
+
name: "Bodega Aurrera",
|
|
107
97
|
},
|
|
108
98
|
],
|
|
109
99
|
services: {
|
|
@@ -112,22 +102,18 @@ ProviderProductEditionDefault.args = {
|
|
|
112
102
|
images: 1,
|
|
113
103
|
},
|
|
114
104
|
statusByRetailer: {
|
|
115
|
-
|
|
116
|
-
datasheet: "
|
|
117
|
-
description: "
|
|
118
|
-
images: "
|
|
105
|
+
70: {
|
|
106
|
+
datasheet: "AP",
|
|
107
|
+
description: "AP",
|
|
108
|
+
images: "AP",
|
|
119
109
|
},
|
|
120
110
|
},
|
|
121
|
-
retailersWithService: ["
|
|
122
|
-
id_article:
|
|
111
|
+
retailersWithService: ["70"],
|
|
112
|
+
id_article: 39372,
|
|
123
113
|
retailersAvailable: [
|
|
124
114
|
{
|
|
125
|
-
id:
|
|
126
|
-
name: "
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
id: 68,
|
|
130
|
-
name: "The Home Depot Dropship",
|
|
115
|
+
id: 70,
|
|
116
|
+
name: "Bodega Aurrera",
|
|
131
117
|
},
|
|
132
118
|
],
|
|
133
119
|
},
|
|
@@ -137,90 +123,68 @@ ProviderProductEditionDefault.args = {
|
|
|
137
123
|
search: "",
|
|
138
124
|
hash: "",
|
|
139
125
|
state: {
|
|
140
|
-
|
|
126
|
+
origin: "RequestWithContentoh",
|
|
141
127
|
},
|
|
142
128
|
key: "24vwut",
|
|
143
129
|
},
|
|
144
130
|
user: {
|
|
145
|
-
id_user:
|
|
146
|
-
name: "
|
|
147
|
-
last_name: "
|
|
148
|
-
email: "
|
|
149
|
-
position: "
|
|
150
|
-
telephone: "+
|
|
131
|
+
id_user: 132,
|
|
132
|
+
name: "Bodega",
|
|
133
|
+
last_name: "Aurrera",
|
|
134
|
+
email: "cadenabodega@allfreemail.net",
|
|
135
|
+
position: "TI",
|
|
136
|
+
telephone: "+529999999999",
|
|
151
137
|
country: "México",
|
|
152
|
-
id_company:
|
|
153
|
-
id_cognito: "
|
|
138
|
+
id_company: 912,
|
|
139
|
+
id_cognito: "fb2304ef-e1a2-4c2b-8874-eb754e4f6332",
|
|
154
140
|
birth_Date: null,
|
|
155
|
-
about_me:
|
|
156
|
-
zip_code:
|
|
157
|
-
address:
|
|
158
|
-
job:
|
|
159
|
-
id_stripe:
|
|
141
|
+
about_me: null,
|
|
142
|
+
zip_code: null,
|
|
143
|
+
address: null,
|
|
144
|
+
job: null,
|
|
145
|
+
id_stripe: null,
|
|
160
146
|
id_role: 0,
|
|
161
147
|
active: 1,
|
|
162
148
|
is_retailer: 1,
|
|
163
|
-
email_notify:
|
|
149
|
+
email_notify: 1,
|
|
164
150
|
is_user_tech: null,
|
|
165
151
|
membership: {
|
|
166
|
-
id:
|
|
167
|
-
start_date: "2022-
|
|
168
|
-
end_date: "2023-
|
|
169
|
-
planID:
|
|
170
|
-
plan: "
|
|
152
|
+
id: 101,
|
|
153
|
+
start_date: "2022-12-22T19:16:53.000Z",
|
|
154
|
+
end_date: "2023-12-22T19:16:53.000Z",
|
|
155
|
+
planID: 8,
|
|
156
|
+
plan: "prod_KtlhECVSFG2iro",
|
|
171
157
|
name: "Plan Pro",
|
|
172
|
-
user_limit: "
|
|
173
|
-
products_limit: "
|
|
174
|
-
type: "
|
|
158
|
+
user_limit: "20",
|
|
159
|
+
products_limit: "5000",
|
|
160
|
+
type: "Enterprise",
|
|
175
161
|
},
|
|
176
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
162
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-132/132.png?1685370125086",
|
|
177
163
|
},
|
|
178
164
|
company: {
|
|
179
|
-
id_company:
|
|
180
|
-
trade_name: "
|
|
181
|
-
company_name: "
|
|
182
|
-
rfc: "
|
|
183
|
-
adress: "
|
|
165
|
+
id_company: 912,
|
|
166
|
+
trade_name: "Financiado Bodega",
|
|
167
|
+
company_name: "Bodega",
|
|
168
|
+
rfc: "9395jwhs",
|
|
169
|
+
adress: "Toluca",
|
|
184
170
|
about_company: null,
|
|
185
171
|
telephone: null,
|
|
186
172
|
web_site: null,
|
|
187
173
|
zip_code: null,
|
|
188
174
|
email: null,
|
|
189
175
|
social_link: null,
|
|
190
|
-
is_retailer:
|
|
176
|
+
is_retailer: 0,
|
|
191
177
|
financedRetailers: [
|
|
192
178
|
{
|
|
193
|
-
id:
|
|
194
|
-
name: "
|
|
179
|
+
id: 70,
|
|
180
|
+
name: "Bodega Aurrera",
|
|
195
181
|
country: "México",
|
|
196
|
-
id_region: 1,
|
|
197
|
-
active: 1,
|
|
198
182
|
},
|
|
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
|
],
|
|
@@ -1239,6 +1239,7 @@ export const ProviderProductEdition = ({
|
|
|
1239
1239
|
},
|
|
1240
1240
|
];
|
|
1241
1241
|
const sendToEvaluation = (result) => {
|
|
1242
|
+
console.log({ result });
|
|
1242
1243
|
if (result === "A") {
|
|
1243
1244
|
if (
|
|
1244
1245
|
origin[activeTab] === "RequestWithoutContentoh" &&
|
|
@@ -1271,7 +1272,7 @@ export const ProviderProductEdition = ({
|
|
|
1271
1272
|
}
|
|
1272
1273
|
} else {
|
|
1273
1274
|
if (
|
|
1274
|
-
|
|
1275
|
+
origin === "RequestWithoutContentoh" &&
|
|
1275
1276
|
!user.is_retailer &&
|
|
1276
1277
|
(!product.id_order || !product.orderId)
|
|
1277
1278
|
) {
|
|
@@ -1340,7 +1341,7 @@ export const ProviderProductEdition = ({
|
|
|
1340
1341
|
showApproveRejectAll={isRevision() && getSectionStatus()}
|
|
1341
1342
|
approveAll={() => {
|
|
1342
1343
|
if (
|
|
1343
|
-
|
|
1344
|
+
origin === "RequestWithoutContentoh" &&
|
|
1344
1345
|
!user.is_retailer &&
|
|
1345
1346
|
(!product.id_order || !product.orderId)
|
|
1346
1347
|
) {
|
|
@@ -1371,7 +1372,7 @@ export const ProviderProductEdition = ({
|
|
|
1371
1372
|
}}
|
|
1372
1373
|
rejectAll={() => {
|
|
1373
1374
|
if (
|
|
1374
|
-
|
|
1375
|
+
origin === "RequestWithoutContentoh" &&
|
|
1375
1376
|
!user.is_retailer &&
|
|
1376
1377
|
(!product.id_order || !product.orderId)
|
|
1377
1378
|
) {
|