contentoh-components-library 21.5.22 → 21.5.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/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +152 -61
- package/dist/components/pages/ProviderProductEdition/index.js +89 -31
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +20 -20
- package/dist/components/pages/RetailerProductEdition/index.js +54 -29
- package/package.json +1 -1
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +159 -64
- package/src/components/pages/ProviderProductEdition/index.js +100 -39
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +23 -23
- package/src/components/pages/RetailerProductEdition/index.js +36 -20
|
@@ -31,44 +31,125 @@ ProviderProductEditionDefault.args = {
|
|
|
31
31
|
"Ficha técnica": true,
|
|
32
32
|
Imágenes: true
|
|
33
33
|
},
|
|
34
|
-
token: "
|
|
35
|
-
articleId:
|
|
36
|
-
category:
|
|
37
|
-
version:
|
|
34
|
+
token: "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI2MjM3OWU5OS01Mjk2LTRhZGQtODkyNy01YzU2ZmFjZDlkYmMiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6IjYyMzc5ZTk5LTUyOTYtNGFkZC04OTI3LTVjNTZmYWNkOWRiYyIsImF1ZCI6IjUyZDlza2tkY2c4cWpwODhvb2sxdXNlNm1rIiwiZXZlbnRfaWQiOiI4ZmRkOWJlYS1jYTE0LTQ4MmQtYmUwNi1iMjA4YjdjMTM1MWYiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTcxODgyMDI2MCwibmFtZSI6IlByb3ZlZWRvciBQcnVlYmEiLCJwaG9uZV9udW1iZXIiOiIrNTI1NTM5MDA2NTcwIiwiZXhwIjoxNzE4ODIzODYwLCJpYXQiOjE3MTg4MjAyNjAsImVtYWlsIjoibGltYW43NDAyNkBtbnFsbS5jb20ifQ.j4PhSKzZ0yb_5QyXYh_vviA-zbMhJc_wE3yqFErlrPsCZsqY43hx-fvEwwOJnzqwNlPFms6kZbddaGPVu0jnGw8TmiaKtoDVOmui_db8DuWGDHLPQhPZNeoM_g5qKY8H7ZIClGSOohj_61XDrJBYQf9utcimiPGkCHET4_3mq1cSfKm9Sk_jd9q5_zblODT2gzC3SnLcD9JBxh1cj6sIL5oBCVxcwbgdAVM82xo2OL9qMCoUomRlvMTOQ7b3LjATS88ZAx4lrLuLHQjMEnYmRFYbsE4kii9JkvBYo9PE6U9F944C1W8toyELGvXjI4Lp5LjpQCr141Z-KohqXeoYww",
|
|
35
|
+
articleId: 127595,
|
|
36
|
+
category: "2902",
|
|
37
|
+
version: 3,
|
|
38
38
|
productSelected: {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
39
|
+
orderId: 8086,
|
|
40
|
+
status: "AA",
|
|
41
|
+
datasheet_status: "AA",
|
|
42
|
+
prio: "none",
|
|
43
|
+
version: 3,
|
|
44
|
+
description_status: "AA",
|
|
45
|
+
images_status: "AA",
|
|
46
|
+
brand: null,
|
|
47
|
+
retailerOrder: 0,
|
|
48
|
+
missing: {
|
|
49
|
+
datasheet: null,
|
|
50
|
+
descriptions: null,
|
|
51
|
+
images: null
|
|
52
|
+
},
|
|
53
|
+
services: {
|
|
54
|
+
datasheets: 1,
|
|
55
|
+
descriptions: 1,
|
|
56
|
+
images: 1
|
|
57
|
+
},
|
|
58
|
+
article: {
|
|
59
|
+
category: "Navidad|Decoración Interior|Mallas y Listones",
|
|
60
|
+
company_name: "THD IMPORTACIONES",
|
|
61
|
+
country: null,
|
|
62
|
+
id_category: "2902",
|
|
63
|
+
id_datasheet_especialist: 2757,
|
|
64
|
+
id_datasheet_facilitator: null,
|
|
65
|
+
id_description_especialist: 2757,
|
|
66
|
+
id_description_facilitator: null,
|
|
67
|
+
id_images_especialist: 1259,
|
|
68
|
+
id_images_facilitator: null,
|
|
69
|
+
id_order: 8086,
|
|
70
|
+
id_article: 127595,
|
|
71
|
+
id_auditor: 514,
|
|
72
|
+
name: "LISTON DECORATIVO DISNEY 5M 2 ESTILOS",
|
|
73
|
+
timestamp: "2024-06-05T14:30:33.000Z",
|
|
74
|
+
upc: "214715"
|
|
75
|
+
},
|
|
76
|
+
retailers: [{
|
|
77
|
+
id: 58
|
|
78
|
+
}],
|
|
79
|
+
statusByRetailer: {
|
|
80
|
+
"58": {
|
|
81
|
+
datasheet: "AA",
|
|
82
|
+
description: "AA",
|
|
83
|
+
images: "AA"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
47
86
|
retailersAvailable: [{
|
|
48
|
-
|
|
49
|
-
id: 74
|
|
87
|
+
id: 58
|
|
50
88
|
}],
|
|
51
|
-
|
|
89
|
+
categoryName: "Navidad|Decoración Interior|Mallas y Listones",
|
|
90
|
+
upc: "214715",
|
|
91
|
+
id_article: 127595,
|
|
92
|
+
id_order: 8086
|
|
52
93
|
},
|
|
53
94
|
productToEdit: {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
product:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
95
|
+
ArticleId: 127595,
|
|
96
|
+
idCategory: "2902",
|
|
97
|
+
product: {
|
|
98
|
+
orderId: 8086,
|
|
99
|
+
status: "AA",
|
|
100
|
+
datasheet_status: "AA",
|
|
101
|
+
prio: "none",
|
|
102
|
+
version: 3,
|
|
103
|
+
description_status: "AA",
|
|
104
|
+
images_status: "AA",
|
|
105
|
+
brand: null,
|
|
106
|
+
retailerOrder: 0,
|
|
107
|
+
missing: {
|
|
108
|
+
datasheet: null,
|
|
109
|
+
descriptions: null,
|
|
110
|
+
images: null
|
|
111
|
+
},
|
|
112
|
+
services: {
|
|
113
|
+
datasheets: 1,
|
|
114
|
+
descriptions: 1,
|
|
115
|
+
images: 1
|
|
116
|
+
},
|
|
117
|
+
article: {
|
|
118
|
+
category: "Navidad|Decoración Interior|Mallas y Listones",
|
|
119
|
+
company_name: "THD IMPORTACIONES",
|
|
120
|
+
country: null,
|
|
121
|
+
id_category: "2902",
|
|
122
|
+
id_datasheet_especialist: 2757,
|
|
123
|
+
id_datasheet_facilitator: null,
|
|
124
|
+
id_description_especialist: 2757,
|
|
125
|
+
id_description_facilitator: null,
|
|
126
|
+
id_images_especialist: 1259,
|
|
127
|
+
id_images_facilitator: null,
|
|
128
|
+
id_order: 8086,
|
|
129
|
+
id_article: 127595,
|
|
130
|
+
id_auditor: 514,
|
|
131
|
+
name: "LISTON DECORATIVO DISNEY 5M 2 ESTILOS",
|
|
132
|
+
timestamp: "2024-06-05T14:30:33.000Z",
|
|
133
|
+
upc: "214715"
|
|
134
|
+
},
|
|
135
|
+
retailers: [{
|
|
136
|
+
id: 58
|
|
137
|
+
}],
|
|
138
|
+
statusByRetailer: {
|
|
139
|
+
"58": {
|
|
140
|
+
datasheet: "AA",
|
|
141
|
+
description: "AA",
|
|
142
|
+
images: "AA"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
65
145
|
retailersAvailable: [{
|
|
66
|
-
|
|
67
|
-
id: 74,
|
|
68
|
-
percentage: 100
|
|
146
|
+
id: 58
|
|
69
147
|
}],
|
|
70
|
-
|
|
71
|
-
|
|
148
|
+
categoryName: "Navidad|Decoración Interior|Mallas y Listones",
|
|
149
|
+
upc: "214715",
|
|
150
|
+
id_article: 127595,
|
|
151
|
+
id_order: 8086
|
|
152
|
+
}
|
|
72
153
|
},
|
|
73
154
|
location: {
|
|
74
155
|
pathname: "/EditProducts",
|
|
@@ -82,21 +163,21 @@ ProviderProductEditionDefault.args = {
|
|
|
82
163
|
key: "24vwut"
|
|
83
164
|
},
|
|
84
165
|
user: {
|
|
85
|
-
id_user:
|
|
86
|
-
name: "Proveedor
|
|
87
|
-
last_name: "
|
|
88
|
-
email: "
|
|
89
|
-
position: "
|
|
90
|
-
telephone: "
|
|
166
|
+
id_user: 419,
|
|
167
|
+
name: "Proveedor",
|
|
168
|
+
last_name: "Prueba",
|
|
169
|
+
email: "liman74026@mnqlm.com",
|
|
170
|
+
position: "Cliente",
|
|
171
|
+
telephone: "5539006570",
|
|
91
172
|
country: "México",
|
|
92
|
-
id_company:
|
|
93
|
-
id_cognito: "
|
|
94
|
-
birth_Date:
|
|
173
|
+
id_company: 535,
|
|
174
|
+
id_cognito: "62379e99-5296-4add-8927-5c56facd9dbc",
|
|
175
|
+
birth_Date: "2021-08-30T00:00:00.000Z",
|
|
95
176
|
about_me: null,
|
|
96
|
-
zip_code:
|
|
97
|
-
address:
|
|
177
|
+
zip_code: "53000",
|
|
178
|
+
address: "Av 16 de Septiembre #27",
|
|
98
179
|
job: null,
|
|
99
|
-
id_stripe:
|
|
180
|
+
id_stripe: "cus_KBCZoGEdXpxqVS",
|
|
100
181
|
id_role: 0,
|
|
101
182
|
active: 1,
|
|
102
183
|
is_retailer: 0,
|
|
@@ -104,24 +185,24 @@ ProviderProductEditionDefault.args = {
|
|
|
104
185
|
is_user_tech: null,
|
|
105
186
|
is_onboarding: 0,
|
|
106
187
|
membership: {
|
|
107
|
-
id:
|
|
108
|
-
start_date: "
|
|
109
|
-
end_date: "
|
|
188
|
+
id: 1119,
|
|
189
|
+
start_date: "2022-06-20T13:35:19.000Z",
|
|
190
|
+
end_date: "2022-06-20T08:35:10.000Z",
|
|
110
191
|
planID: 8,
|
|
111
|
-
plan: "
|
|
192
|
+
plan: "prod_KvGeJs0E9cSO4y",
|
|
112
193
|
name: "Plan Pro",
|
|
113
194
|
user_limit: "50",
|
|
114
195
|
products_limit: "5000",
|
|
115
196
|
type: "Enterprise"
|
|
116
197
|
},
|
|
117
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
198
|
+
src: "https://content-management-profile-prod.s3.amazonaws.com/id-419/419.png?1718820261153"
|
|
118
199
|
},
|
|
119
200
|
company: {
|
|
120
|
-
id_company:
|
|
121
|
-
trade_name: "
|
|
122
|
-
company_name: "
|
|
123
|
-
rfc:
|
|
124
|
-
adress:
|
|
201
|
+
id_company: 535,
|
|
202
|
+
trade_name: "THD IMPORTACIONES",
|
|
203
|
+
company_name: "THD IMPORTACIONES",
|
|
204
|
+
rfc: null,
|
|
205
|
+
adress: null,
|
|
125
206
|
about_company: null,
|
|
126
207
|
telephone: null,
|
|
127
208
|
web_site: null,
|
|
@@ -130,20 +211,30 @@ ProviderProductEditionDefault.args = {
|
|
|
130
211
|
social_link: null,
|
|
131
212
|
is_retailer: 0,
|
|
132
213
|
financedRetailers: [{
|
|
133
|
-
id:
|
|
134
|
-
name: "
|
|
214
|
+
id: 58,
|
|
215
|
+
name: "The Home Depot Golden",
|
|
216
|
+
country: "México",
|
|
217
|
+
id_region: 1,
|
|
218
|
+
active: 1
|
|
219
|
+
}, {
|
|
220
|
+
id: 59,
|
|
221
|
+
name: "The Home Depot Platinum",
|
|
135
222
|
country: "México",
|
|
136
223
|
id_region: 1,
|
|
137
|
-
active: 1
|
|
138
|
-
flow: 1
|
|
224
|
+
active: 1
|
|
139
225
|
}],
|
|
140
226
|
retailers: [{
|
|
141
|
-
id:
|
|
142
|
-
name: "
|
|
227
|
+
id: 58,
|
|
228
|
+
name: "The Home Depot Golden",
|
|
229
|
+
country: "México",
|
|
230
|
+
id_region: 1,
|
|
231
|
+
active: 1
|
|
232
|
+
}, {
|
|
233
|
+
id: 59,
|
|
234
|
+
name: "The Home Depot Platinum",
|
|
143
235
|
country: "México",
|
|
144
236
|
id_region: 1,
|
|
145
|
-
active: 1
|
|
146
|
-
flow: 1
|
|
237
|
+
active: 1
|
|
147
238
|
}]
|
|
148
239
|
},
|
|
149
240
|
showSurvey: function showSurvey(v) {
|
|
@@ -1562,33 +1562,46 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1562
1562
|
};
|
|
1563
1563
|
|
|
1564
1564
|
var createComment = /*#__PURE__*/function () {
|
|
1565
|
-
var _ref16 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee15() {
|
|
1566
|
-
var
|
|
1567
|
-
retailerId,
|
|
1568
|
-
data,
|
|
1569
|
-
_args15 = arguments;
|
|
1565
|
+
var _ref16 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee15(e, body, tab) {
|
|
1566
|
+
var concept, data;
|
|
1570
1567
|
return _regenerator.default.wrap(function _callee15$(_context15) {
|
|
1571
1568
|
while (1) {
|
|
1572
1569
|
switch (_context15.prev = _context15.next) {
|
|
1573
1570
|
case 0:
|
|
1574
|
-
|
|
1575
|
-
|
|
1571
|
+
concept = "";
|
|
1572
|
+
_context15.t0 = activeTab;
|
|
1573
|
+
_context15.next = _context15.t0 === "Ficha técnica" ? 4 : _context15.t0 === "Imágenes" ? 6 : 8;
|
|
1574
|
+
break;
|
|
1575
|
+
|
|
1576
|
+
case 4:
|
|
1577
|
+
concept = "datasheet";
|
|
1578
|
+
return _context15.abrupt("break", 10);
|
|
1579
|
+
|
|
1580
|
+
case 6:
|
|
1581
|
+
concept = "images";
|
|
1582
|
+
return _context15.abrupt("break", 10);
|
|
1583
|
+
|
|
1584
|
+
case 8:
|
|
1585
|
+
concept = "description";
|
|
1586
|
+
return _context15.abrupt("break", 10);
|
|
1587
|
+
|
|
1588
|
+
case 10:
|
|
1576
1589
|
data = {
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1590
|
+
articleId: product === null || product === void 0 ? void 0 : product.id_article,
|
|
1591
|
+
orderId: product === null || product === void 0 ? void 0 : product.orderId,
|
|
1592
|
+
message: body,
|
|
1593
|
+
concept: concept,
|
|
1594
|
+
version: version
|
|
1595
|
+
};
|
|
1596
|
+
console.log('comentario:', data.message);
|
|
1597
|
+
_context15.next = 14;
|
|
1598
|
+
return _axios.default.post("".concat(process.env.REACT_APP_COMMENTS_ENDPOINT), data, {
|
|
1599
|
+
headers: {
|
|
1585
1600
|
Authorization: token
|
|
1586
1601
|
}
|
|
1587
|
-
};
|
|
1588
|
-
setMessage("");
|
|
1589
|
-
return _context15.abrupt("return", (0, _utils.sendMessage)(data));
|
|
1602
|
+
});
|
|
1590
1603
|
|
|
1591
|
-
case
|
|
1604
|
+
case 14:
|
|
1592
1605
|
case "end":
|
|
1593
1606
|
return _context15.stop();
|
|
1594
1607
|
}
|
|
@@ -1596,7 +1609,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1596
1609
|
}, _callee15);
|
|
1597
1610
|
}));
|
|
1598
1611
|
|
|
1599
|
-
return function createComment() {
|
|
1612
|
+
return function createComment(_x4, _x5, _x6) {
|
|
1600
1613
|
return _ref16.apply(this, arguments);
|
|
1601
1614
|
};
|
|
1602
1615
|
}();
|
|
@@ -1695,7 +1708,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1695
1708
|
}, _callee17);
|
|
1696
1709
|
}));
|
|
1697
1710
|
|
|
1698
|
-
return function setAssignation(
|
|
1711
|
+
return function setAssignation(_x7, _x8) {
|
|
1699
1712
|
return _ref18.apply(this, arguments);
|
|
1700
1713
|
};
|
|
1701
1714
|
}();
|
|
@@ -1884,7 +1897,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1884
1897
|
}, _callee18, null, [[9, 33]]);
|
|
1885
1898
|
}));
|
|
1886
1899
|
|
|
1887
|
-
return function sendEvaluation(
|
|
1900
|
+
return function sendEvaluation(_x9) {
|
|
1888
1901
|
return _ref19.apply(this, arguments);
|
|
1889
1902
|
};
|
|
1890
1903
|
}();
|
|
@@ -1975,7 +1988,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1975
1988
|
}, _callee19, null, [[0, 27]]);
|
|
1976
1989
|
}));
|
|
1977
1990
|
|
|
1978
|
-
return function validateAll(
|
|
1991
|
+
return function validateAll(_x10) {
|
|
1979
1992
|
return _ref20.apply(this, arguments);
|
|
1980
1993
|
};
|
|
1981
1994
|
}();
|
|
@@ -2022,7 +2035,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
2022
2035
|
}, _callee20);
|
|
2023
2036
|
}));
|
|
2024
2037
|
|
|
2025
|
-
return function evaluationToRetailer(
|
|
2038
|
+
return function evaluationToRetailer(_x11) {
|
|
2026
2039
|
return _ref21.apply(this, arguments);
|
|
2027
2040
|
};
|
|
2028
2041
|
}();
|
|
@@ -2332,7 +2345,52 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
2332
2345
|
headerType: "input-name-header"
|
|
2333
2346
|
}))]
|
|
2334
2347
|
})
|
|
2335
|
-
}),
|
|
2348
|
+
}), isRevision() && getSectionStatus() ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
2349
|
+
className: "commentary-box",
|
|
2350
|
+
children: !comment ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
2351
|
+
className: "commentary",
|
|
2352
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.TagAndInput, {
|
|
2353
|
+
label: "Caja de Comentario",
|
|
2354
|
+
inputType: "textarea",
|
|
2355
|
+
inputCols: 80,
|
|
2356
|
+
inputRows: 4,
|
|
2357
|
+
inputId: "commentary-box",
|
|
2358
|
+
index: 0
|
|
2359
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
2360
|
+
className: "buttons-box",
|
|
2361
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
2362
|
+
buttonType: "general-transparent-button",
|
|
2363
|
+
label: "Enviar comentario",
|
|
2364
|
+
onClick: function onClick(e) {
|
|
2365
|
+
createComment(e, document.querySelector("#commentary-box .ql-container .ql-editor > p").innerHTML, activeTab);
|
|
2366
|
+
}
|
|
2367
|
+
})
|
|
2368
|
+
})]
|
|
2369
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
2370
|
+
className: "feedback-box",
|
|
2371
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Commentary.Commentary, {
|
|
2372
|
+
comment: comment.message,
|
|
2373
|
+
reviewed: crossComment
|
|
2374
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
2375
|
+
buttonType: "circular-button accept-button",
|
|
2376
|
+
onClick: /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee21() {
|
|
2377
|
+
return _regenerator.default.wrap(function _callee21$(_context21) {
|
|
2378
|
+
while (1) {
|
|
2379
|
+
switch (_context21.prev = _context21.next) {
|
|
2380
|
+
case 0:
|
|
2381
|
+
setCrossComment(true);
|
|
2382
|
+
commentRevised();
|
|
2383
|
+
|
|
2384
|
+
case 2:
|
|
2385
|
+
case "end":
|
|
2386
|
+
return _context21.stop();
|
|
2387
|
+
}
|
|
2388
|
+
}
|
|
2389
|
+
}, _callee21);
|
|
2390
|
+
}))
|
|
2391
|
+
})]
|
|
2392
|
+
})
|
|
2393
|
+
}) : !revision && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
2336
2394
|
className: "required-inputs-message",
|
|
2337
2395
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
2338
2396
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
@@ -2412,18 +2470,18 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
2412
2470
|
type: "pink",
|
|
2413
2471
|
label: "Aceptar",
|
|
2414
2472
|
size: 12,
|
|
2415
|
-
onClick: /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
2473
|
+
onClick: /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee22() {
|
|
2416
2474
|
var body, messages;
|
|
2417
|
-
return _regenerator.default.wrap(function
|
|
2475
|
+
return _regenerator.default.wrap(function _callee22$(_context22) {
|
|
2418
2476
|
while (1) {
|
|
2419
|
-
switch (
|
|
2477
|
+
switch (_context22.prev = _context22.next) {
|
|
2420
2478
|
case 0:
|
|
2421
2479
|
body = document.querySelector("#modal-message-box .ql-container .ql-editor > p").innerHTML;
|
|
2422
2480
|
messages = [{
|
|
2423
2481
|
type: "message",
|
|
2424
2482
|
value: body === null || body === void 0 ? void 0 : body.replace(/<.*?\/?>/gm, "")
|
|
2425
2483
|
}];
|
|
2426
|
-
|
|
2484
|
+
_context22.next = 4;
|
|
2427
2485
|
return createComment(messages, activeRetailer.id);
|
|
2428
2486
|
|
|
2429
2487
|
case 4:
|
|
@@ -2432,10 +2490,10 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
2432
2490
|
|
|
2433
2491
|
case 6:
|
|
2434
2492
|
case "end":
|
|
2435
|
-
return
|
|
2493
|
+
return _context22.stop();
|
|
2436
2494
|
}
|
|
2437
2495
|
}
|
|
2438
|
-
},
|
|
2496
|
+
}, _callee22);
|
|
2439
2497
|
}))
|
|
2440
2498
|
}, "btn-Aceptar")]
|
|
2441
2499
|
})]
|
|
@@ -31,49 +31,49 @@ RetailerProductEditionDefault.args = {
|
|
|
31
31
|
"Ficha técnica": false,
|
|
32
32
|
Imágenes: false
|
|
33
33
|
},
|
|
34
|
-
token: "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.
|
|
34
|
+
token: "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNGRiODI2My1jYjA1LTQzMTItOWU0NS1lM2RlY2E2NjllNzIiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwiY29nbml0bzp1c2VybmFtZSI6ImY0ZGI4MjYzLWNiMDUtNDMxMi05ZTQ1LWUzZGVjYTY2OWU3MiIsImF1ZCI6IjUyZDlza2tkY2c4cWpwODhvb2sxdXNlNm1rIiwiZXZlbnRfaWQiOiIwZGZkNTRmZC1lMjU1LTRkNmEtYmE1ZS1hYzdjYWM2NjY0NzciLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTcxODgxMjc1MSwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTcxODgxNjM1MCwiaWF0IjoxNzE4ODEyNzUxLCJlbWFpbCI6ImVtb250YW5vQGNvbnRlbnRvaC5jb20ifQ.eruTcERQql3d7XO5LWbmTAOgrU7avQQ-GN3iiRGuVYUmI1tqMsHxWVsxC8T3QMBkZFL9djpMaOvw53Fc_Gl84WKPr9pmECDsqUkgXKJZxHE5jsRJjsyAd9pdJ00jYdeWePoitxYazBR9TW0TofiB7L5F9b_gjZrGdoAzz1gQvWABL_eGYxrGfJCoNBzxbU8zAIfPJV6u6PR98rumtMVWHW_FyzpZnNKSiP4rEkG7H9cW-Mdzl39seeHQRo9SNht55tnlPkXi7jN6R-AOGhgK0yBHgAwVBbv3aT_TDArXEiXFUFG9viCIq7H6lRvCaXEmJoKnOZOCbpX1y3QI8ayMVQ",
|
|
35
35
|
productSelected: {
|
|
36
36
|
services: {
|
|
37
37
|
datasheets: 1,
|
|
38
38
|
descriptions: 1,
|
|
39
39
|
images: 1
|
|
40
40
|
},
|
|
41
|
-
orderId:
|
|
41
|
+
orderId: 8086,
|
|
42
42
|
status: "RP",
|
|
43
43
|
datasheet_status: "AA",
|
|
44
44
|
prio: "none",
|
|
45
45
|
version: 3,
|
|
46
|
-
description_status: "
|
|
47
|
-
images_status: "
|
|
46
|
+
description_status: "AA",
|
|
47
|
+
images_status: "RA",
|
|
48
48
|
statusByRetailer: {
|
|
49
49
|
"58": {
|
|
50
50
|
datasheet: "AA",
|
|
51
|
-
description: "
|
|
52
|
-
images: "
|
|
51
|
+
description: "AA",
|
|
52
|
+
images: "RA/CA"
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
article: {
|
|
56
|
-
id_article:
|
|
57
|
-
id_category: "
|
|
58
|
-
name: "
|
|
59
|
-
upc: "
|
|
60
|
-
timestamp: "2024-
|
|
61
|
-
id_user:
|
|
56
|
+
id_article: 127595,
|
|
57
|
+
id_category: "2902",
|
|
58
|
+
name: "LISTON DECORATIVO DISNEY 5M 2 ESTILOS",
|
|
59
|
+
upc: "214715",
|
|
60
|
+
timestamp: "2024-06-05T14:29:41.000Z",
|
|
61
|
+
id_user: 673,
|
|
62
62
|
status: null,
|
|
63
63
|
active: 1,
|
|
64
|
-
company_id:
|
|
65
|
-
company_name: "
|
|
66
|
-
country:
|
|
67
|
-
id_order:
|
|
64
|
+
company_id: 535,
|
|
65
|
+
company_name: "THD IMPORTACIONES",
|
|
66
|
+
country: null,
|
|
67
|
+
id_order: 8086,
|
|
68
68
|
id_datasheet_especialist: 2757,
|
|
69
69
|
id_datasheet_facilitator: null,
|
|
70
70
|
id_description_especialist: 2757,
|
|
71
71
|
id_description_facilitator: null,
|
|
72
|
-
id_images_especialist:
|
|
72
|
+
id_images_especialist: 1259,
|
|
73
73
|
id_images_facilitator: null,
|
|
74
74
|
id_auditor: 514,
|
|
75
75
|
id_recepcionist: null,
|
|
76
|
-
category: "
|
|
76
|
+
category: "Navidad|Decoración Interior|Mallas y Listones",
|
|
77
77
|
missingAttributes: 0,
|
|
78
78
|
missingDescriptions: 0,
|
|
79
79
|
missingImages: 0
|
|
@@ -82,8 +82,8 @@ RetailerProductEditionDefault.args = {
|
|
|
82
82
|
id: 58,
|
|
83
83
|
name: "The Home Depot Golden"
|
|
84
84
|
}],
|
|
85
|
-
country: "
|
|
86
|
-
upc: "
|
|
85
|
+
country: "",
|
|
86
|
+
upc: "214715"
|
|
87
87
|
},
|
|
88
88
|
// location: {
|
|
89
89
|
// product: { articleId: 126855, versionId: 3 },
|