contentoh-components-library 21.1.94 → 21.1.95
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/index.js +1 -1
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +31 -31
- package/dist/components/pages/RetailerProductEdition/index.js +2 -6
- package/package.json +1 -1
- package/src/components/pages/ProviderProductEdition/index.js +2 -1
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +31 -31
- package/src/components/pages/RetailerProductEdition/index.js +2 -2
|
@@ -744,7 +744,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
744
744
|
|
|
745
745
|
(0, _react.useEffect)(function () {
|
|
746
746
|
loadInputs();
|
|
747
|
-
setImages({
|
|
747
|
+
activeRetailer.id && setImages({
|
|
748
748
|
action: "orderImages",
|
|
749
749
|
retailerId: activeRetailer.id
|
|
750
750
|
});
|
|
@@ -31,59 +31,59 @@ RetailerProductEditionDefault.args = {
|
|
|
31
31
|
"Ficha técnica": false,
|
|
32
32
|
Imágenes: false
|
|
33
33
|
},
|
|
34
|
-
token: "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.
|
|
34
|
+
token: "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIwYjY2YTRhOS03NzkwLTQwMzQtYTMwYS1jMDA4MDg5NjI4NjciLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwiY29nbml0bzp1c2VybmFtZSI6IjBiNjZhNGE5LTc3OTAtNDAzNC1hMzBhLWMwMDgwODk2Mjg2NyIsImF1ZCI6IjUyZDlza2tkY2c4cWpwODhvb2sxdXNlNm1rIiwiZXZlbnRfaWQiOiI4ZjA2YmU0NC04ZWEzLTQ5OWMtOGFjZC0xMDlmMDZiZWI1MjAiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY2MDA3NjQ5MywibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY2MDA4MDA5MywiaWF0IjoxNjYwMDc2NDkzLCJlbWFpbCI6ImJheWFkaTE1MzhAbW5xbG0uY29tIn0.aw_x1A8WR2MCp_Kz-T2Jcg0ZtuKwyzQ23yT_OoKr-aGJmEjSPihmksWgLZr9hJXyfvU0JndaVMM_3DRly1TdtJ264zwH4dZ7Cp9gF4TSXG16HQxIIPUA4NnwdpOnlBdE9E27mCXs4XYnCZ7dRMXnkjpRL4PVbrGji9qbEEJR6TxCJafR-zes1o4HC1KfQ5QF4s5I_LYQYbD-Ot0A1zDiJg34HR9tTILu5f4uc_2Nj8bqqYJsEdKg982WWO9ac2uKRPXQqNL6CsdltnSeQQcnS6Wj5DJTRRoc-lRdE6ekpAvDGPo0Dyj1Q8GYH3uxvM-pVu8J1Z_JOtO5j5mPN9krpA",
|
|
35
35
|
productSelected: {
|
|
36
36
|
services: {
|
|
37
|
-
datasheets:
|
|
38
|
-
descriptions:
|
|
37
|
+
datasheets: 0,
|
|
38
|
+
descriptions: 0,
|
|
39
39
|
images: 1
|
|
40
40
|
},
|
|
41
|
-
orderId:
|
|
41
|
+
orderId: 1789,
|
|
42
42
|
status: "ACA",
|
|
43
|
-
datasheet_status: "
|
|
43
|
+
datasheet_status: "NS",
|
|
44
44
|
prio: "none",
|
|
45
45
|
version: 2,
|
|
46
|
-
description_status: "
|
|
46
|
+
description_status: "NS",
|
|
47
47
|
images_status: "ACA",
|
|
48
48
|
article: {
|
|
49
|
-
id_article:
|
|
50
|
-
id_category: "
|
|
51
|
-
name: "
|
|
52
|
-
upc: "
|
|
53
|
-
timestamp: "2022-
|
|
54
|
-
id_user:
|
|
49
|
+
id_article: 68865,
|
|
50
|
+
id_category: "2999",
|
|
51
|
+
name: "RESIZE",
|
|
52
|
+
upc: "169955",
|
|
53
|
+
timestamp: "2022-06-21T16:03:10.000Z",
|
|
54
|
+
id_user: 1238,
|
|
55
55
|
status: "NULL",
|
|
56
|
-
active:
|
|
57
|
-
company_id:
|
|
56
|
+
active: 0,
|
|
57
|
+
company_id: 819,
|
|
58
58
|
SKU: null,
|
|
59
59
|
Descripcion: null,
|
|
60
60
|
Proveedor: null,
|
|
61
61
|
id_proveedor: 0,
|
|
62
|
-
company_name: "",
|
|
63
|
-
country:
|
|
64
|
-
id_order:
|
|
65
|
-
id_datasheet_especialist:
|
|
66
|
-
id_datasheet_facilitator:
|
|
67
|
-
id_description_especialist:
|
|
68
|
-
id_description_facilitator:
|
|
62
|
+
company_name: "The Home Depot Resize",
|
|
63
|
+
country: "México",
|
|
64
|
+
id_order: 1789,
|
|
65
|
+
id_datasheet_especialist: null,
|
|
66
|
+
id_datasheet_facilitator: null,
|
|
67
|
+
id_description_especialist: null,
|
|
68
|
+
id_description_facilitator: null,
|
|
69
69
|
id_images_especialist: 1250,
|
|
70
|
-
id_images_facilitator:
|
|
71
|
-
id_auditor:
|
|
70
|
+
id_images_facilitator: 424,
|
|
71
|
+
id_auditor: null,
|
|
72
72
|
id_recepcionist: null,
|
|
73
|
-
category: "
|
|
74
|
-
missingAttributes:
|
|
75
|
-
missingDescriptions:
|
|
76
|
-
missingImages:
|
|
73
|
+
category: "Resizing|Resizing|Resizing",
|
|
74
|
+
missingAttributes: null,
|
|
75
|
+
missingDescriptions: null,
|
|
76
|
+
missingImages: null
|
|
77
77
|
},
|
|
78
78
|
retailers: [{
|
|
79
|
-
id:
|
|
80
|
-
name: "The Home Depot
|
|
79
|
+
id: 60,
|
|
80
|
+
name: "The Home Depot Resizing",
|
|
81
81
|
country: "México",
|
|
82
82
|
id_region: 1,
|
|
83
83
|
active: 1
|
|
84
84
|
}],
|
|
85
|
-
country:
|
|
86
|
-
upc: "
|
|
85
|
+
country: "México",
|
|
86
|
+
upc: "169955"
|
|
87
87
|
},
|
|
88
88
|
location: {
|
|
89
89
|
product: {
|
|
@@ -618,12 +618,8 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
618
618
|
|
|
619
619
|
case 20:
|
|
620
620
|
setStatusArray(arr);
|
|
621
|
-
setImages({
|
|
622
|
-
action: "orderImages",
|
|
623
|
-
retailerId: activeRetailer.id
|
|
624
|
-
});
|
|
625
621
|
|
|
626
|
-
case
|
|
622
|
+
case 21:
|
|
627
623
|
case "end":
|
|
628
624
|
return _context4.stop();
|
|
629
625
|
}
|
|
@@ -709,7 +705,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
709
705
|
setDescriptions(_descriptions);
|
|
710
706
|
}
|
|
711
707
|
|
|
712
|
-
setImages({
|
|
708
|
+
(activeRetailer === null || activeRetailer === void 0 ? void 0 : activeRetailer.id) && setImages({
|
|
713
709
|
action: "orderImages",
|
|
714
710
|
retailerId: activeRetailer.id
|
|
715
711
|
});
|
package/package.json
CHANGED
|
@@ -392,7 +392,8 @@ export const ProviderProductEdition = ({
|
|
|
392
392
|
|
|
393
393
|
useEffect(() => {
|
|
394
394
|
loadInputs();
|
|
395
|
-
|
|
395
|
+
activeRetailer.id &&
|
|
396
|
+
setImages({ action: "orderImages", retailerId: activeRetailer.id });
|
|
396
397
|
}, [servicesData, activeRetailer, services]);
|
|
397
398
|
|
|
398
399
|
const thumbs = () => {
|
|
@@ -16,61 +16,61 @@ RetailerProductEditionDefault.args = {
|
|
|
16
16
|
Imágenes: false,
|
|
17
17
|
},
|
|
18
18
|
token:
|
|
19
|
-
"eyJraWQiOiJEV3owZnNieXg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Nj8bqqYJsEdKg982WWO9ac2uKRPXQqNL6CsdltnSeQQcnS6Wj5DJTRRoc-lRdE6ekpAvDGPo0Dyj1Q8GYH3uxvM-pVu8J1Z_JOtO5j5mPN9krpA",
|
|
20
20
|
productSelected: {
|
|
21
21
|
services: {
|
|
22
|
-
datasheets:
|
|
23
|
-
descriptions:
|
|
22
|
+
datasheets: 0,
|
|
23
|
+
descriptions: 0,
|
|
24
24
|
images: 1,
|
|
25
25
|
},
|
|
26
|
-
orderId:
|
|
26
|
+
orderId: 1789,
|
|
27
27
|
status: "ACA",
|
|
28
|
-
datasheet_status: "
|
|
28
|
+
datasheet_status: "NS",
|
|
29
29
|
prio: "none",
|
|
30
30
|
version: 2,
|
|
31
|
-
description_status: "
|
|
31
|
+
description_status: "NS",
|
|
32
32
|
images_status: "ACA",
|
|
33
33
|
article: {
|
|
34
|
-
id_article:
|
|
35
|
-
id_category: "
|
|
36
|
-
name: "
|
|
37
|
-
upc: "
|
|
38
|
-
timestamp: "2022-
|
|
39
|
-
id_user:
|
|
34
|
+
id_article: 68865,
|
|
35
|
+
id_category: "2999",
|
|
36
|
+
name: "RESIZE",
|
|
37
|
+
upc: "169955",
|
|
38
|
+
timestamp: "2022-06-21T16:03:10.000Z",
|
|
39
|
+
id_user: 1238,
|
|
40
40
|
status: "NULL",
|
|
41
|
-
active:
|
|
42
|
-
company_id:
|
|
41
|
+
active: 0,
|
|
42
|
+
company_id: 819,
|
|
43
43
|
SKU: null,
|
|
44
44
|
Descripcion: null,
|
|
45
45
|
Proveedor: null,
|
|
46
46
|
id_proveedor: 0,
|
|
47
|
-
company_name: "",
|
|
48
|
-
country:
|
|
49
|
-
id_order:
|
|
50
|
-
id_datasheet_especialist:
|
|
51
|
-
id_datasheet_facilitator:
|
|
52
|
-
id_description_especialist:
|
|
53
|
-
id_description_facilitator:
|
|
47
|
+
company_name: "The Home Depot Resize",
|
|
48
|
+
country: "México",
|
|
49
|
+
id_order: 1789,
|
|
50
|
+
id_datasheet_especialist: null,
|
|
51
|
+
id_datasheet_facilitator: null,
|
|
52
|
+
id_description_especialist: null,
|
|
53
|
+
id_description_facilitator: null,
|
|
54
54
|
id_images_especialist: 1250,
|
|
55
|
-
id_images_facilitator:
|
|
56
|
-
id_auditor:
|
|
55
|
+
id_images_facilitator: 424,
|
|
56
|
+
id_auditor: null,
|
|
57
57
|
id_recepcionist: null,
|
|
58
|
-
category: "
|
|
59
|
-
missingAttributes:
|
|
60
|
-
missingDescriptions:
|
|
61
|
-
missingImages:
|
|
58
|
+
category: "Resizing|Resizing|Resizing",
|
|
59
|
+
missingAttributes: null,
|
|
60
|
+
missingDescriptions: null,
|
|
61
|
+
missingImages: null,
|
|
62
62
|
},
|
|
63
63
|
retailers: [
|
|
64
64
|
{
|
|
65
|
-
id:
|
|
66
|
-
name: "The Home Depot
|
|
65
|
+
id: 60,
|
|
66
|
+
name: "The Home Depot Resizing",
|
|
67
67
|
country: "México",
|
|
68
68
|
id_region: 1,
|
|
69
69
|
active: 1,
|
|
70
70
|
},
|
|
71
71
|
],
|
|
72
|
-
country:
|
|
73
|
-
upc: "
|
|
72
|
+
country: "México",
|
|
73
|
+
upc: "169955",
|
|
74
74
|
},
|
|
75
75
|
location: {
|
|
76
76
|
product: { articleId: 109485, versionId: 3 },
|
|
@@ -305,7 +305,6 @@ export const RetailerProductEdition = ({
|
|
|
305
305
|
break;
|
|
306
306
|
}
|
|
307
307
|
setStatusArray(arr);
|
|
308
|
-
setImages({ action: "orderImages", retailerId: activeRetailer.id });
|
|
309
308
|
}, [product, version]);
|
|
310
309
|
|
|
311
310
|
const loadAssignations = (currentProduct) => {
|
|
@@ -390,7 +389,8 @@ export const RetailerProductEdition = ({
|
|
|
390
389
|
setDatasheets([datagroups, inputs]);
|
|
391
390
|
setDescriptions(descriptions);
|
|
392
391
|
}
|
|
393
|
-
|
|
392
|
+
activeRetailer?.id &&
|
|
393
|
+
setImages({ action: "orderImages", retailerId: activeRetailer.id });
|
|
394
394
|
}, [activeRetailer, services]);
|
|
395
395
|
|
|
396
396
|
const thumbs = () => {
|