contentoh-components-library 21.1.8 → 21.1.11

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.
@@ -36,22 +36,22 @@ ProviderProductEditionDefault.args = {
36
36
  category: 846,
37
37
  version: 2,
38
38
  productSelected: {
39
- orderId: 27,
39
+ orderId: 77,
40
40
  article_status: "AP",
41
- datasheet_status: "AP",
42
- description_status: "AP",
41
+ datasheet_status: "NS",
42
+ description_status: "NS",
43
43
  images_status: "AP",
44
44
  prio: "none",
45
- version: 2,
45
+ version: 19,
46
46
  brand: null,
47
47
  article: {
48
- category: "BAÑOS|ACCESORIOS PARA BAÑO|ACCESORIOS INDIVIDUALES",
49
- company_name: "THD Proveedor",
50
- country: "México",
51
- id_category: "2004",
52
- id_article: 55108,
53
- name: "Producto de prueba 10 THD",
54
- upc: "SKU12314THD"
48
+ category: "RESIZING|RESIZING|RESIZING",
49
+ company_name: "THD Resize Proveedor",
50
+ country: null,
51
+ id_category: "2999",
52
+ id_article: 55109,
53
+ name: "Resize Ismael",
54
+ upc: "ResizeIsmael"
55
55
  },
56
56
  retailers: [{
57
57
  id: 58,
@@ -67,11 +67,11 @@ ProviderProductEditionDefault.args = {
67
67
  name: "Home Depot TAB"
68
68
  }],
69
69
  services: {
70
- datasheets: 1,
71
- descriptions: 1,
70
+ datasheets: 0,
71
+ descriptions: 0,
72
72
  images: 1
73
73
  },
74
- id_article: 55108,
74
+ id_article: 55109,
75
75
  retailersAvailable: [{
76
76
  id: 58,
77
77
  name: "The Home Depot Golden"
@@ -87,25 +87,25 @@ ProviderProductEditionDefault.args = {
87
87
  }]
88
88
  },
89
89
  productToEdit: {
90
- ArticleId: 55108,
91
- idCategory: "2004",
90
+ ArticleId: 55109,
91
+ idCategory: "2999",
92
92
  product: {
93
- orderId: 27,
93
+ orderId: 77,
94
94
  article_status: "AP",
95
- datasheet_status: "AP",
96
- description_status: "AP",
95
+ datasheet_status: "NS",
96
+ description_status: "NS",
97
97
  images_status: "AP",
98
98
  prio: "none",
99
- version: 2,
99
+ version: 19,
100
100
  brand: null,
101
101
  article: {
102
- category: "BAÑOS|ACCESORIOS PARA BAÑO|ACCESORIOS INDIVIDUALES",
103
- company_name: "THD Proveedor",
104
- country: "México",
105
- id_category: "2004",
106
- id_article: 55108,
107
- name: "Producto de prueba 10 THD",
108
- upc: "SKU12314THD"
102
+ category: "RESIZING|RESIZING|RESIZING",
103
+ company_name: "THD Resize Proveedor",
104
+ country: null,
105
+ id_category: "2999",
106
+ id_article: 55109,
107
+ name: "Resize Ismael",
108
+ upc: "ResizeIsmael"
109
109
  },
110
110
  retailers: [{
111
111
  id: 58,
@@ -121,11 +121,11 @@ ProviderProductEditionDefault.args = {
121
121
  name: "Home Depot TAB"
122
122
  }],
123
123
  services: {
124
- datasheets: 1,
125
- descriptions: 1,
124
+ datasheets: 0,
125
+ descriptions: 0,
126
126
  images: 1
127
127
  },
128
- id_article: 55108,
128
+ id_article: 55109,
129
129
  retailersAvailable: [{
130
130
  id: 58,
131
131
  name: "The Home Depot Golden"
@@ -151,35 +151,35 @@ ProviderProductEditionDefault.args = {
151
151
  }
152
152
  },
153
153
  user: {
154
- id_user: 59,
155
- name: "The Home",
156
- last_name: "Depot",
157
- email: "cadena.ismael@allfreemail.net",
158
- position: "Admin",
154
+ id_user: 28,
155
+ name: "Proveedor",
156
+ last_name: "Colgate",
157
+ email: "ilopez@contentoh.com",
158
+ position: "Prueba Admin",
159
159
  telephone: "+523111366336",
160
160
  country: "México",
161
- id_company: 7,
162
- id_cognito: "5884ae34-59d6-4454-b98e-821518bcc3a7",
161
+ id_company: 1,
162
+ id_cognito: "f5927f8e-cbf7-4922-9e09-e69ec0b2731a",
163
163
  birth_Date: null,
164
164
  about_me: null,
165
165
  zip_code: null,
166
166
  address: null,
167
167
  job: null,
168
- id_stripe: "",
168
+ id_stripe: "cus_KuEt6R6vwmN09f",
169
169
  id_role: 0,
170
170
  active: 1,
171
- is_retailer: 1,
171
+ is_retailer: 0,
172
172
  membership: {
173
- id: 24,
174
- start_date: "2021-11-23T03:35:50.000Z",
175
- end_date: "2022-11-23T03:35:50.000Z",
176
- planID: 9,
177
- plan: "prod_KtlkzZVGq6bRTO",
178
- name: "Plan Enterprise Full",
179
- user_limit: "30",
180
- products_limit: "10000",
173
+ id: 38,
174
+ start_date: "2022-01-18T17:25:35.000Z",
175
+ end_date: "2023-01-18T17:25:35.000Z",
176
+ planID: 8,
177
+ plan: "prod_KtlhECVSFG2iro",
178
+ name: "Plan Pro",
179
+ user_limit: "20",
180
+ products_limit: "5000",
181
181
  type: "Enterprise"
182
182
  },
183
- src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1655616370073"
183
+ src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1655691624761"
184
184
  }
185
185
  };
@@ -510,7 +510,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
510
510
  var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
511
511
  var _product$article3;
512
512
 
513
- var productInOrder, idArticle, _product$id_order, _servicesResponse$dat, servicesResponse, parsedResponse;
513
+ var productInOrder, idArticle, _product$id_order, _servicesResponse$dat, servicesResponse, parsedResponse, _retailers, _active;
514
514
 
515
515
  return _regenerator.default.wrap(function _callee3$(_context3) {
516
516
  while (1) {
@@ -520,7 +520,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
520
520
  idArticle = (product === null || product === void 0 ? void 0 : product.id_article) || (product === null || product === void 0 ? void 0 : (_product$article3 = product.article) === null || _product$article3 === void 0 ? void 0 : _product$article3.id_article);
521
521
 
522
522
  if (!(isRevision() || productInOrder)) {
523
- _context3.next = 8;
523
+ _context3.next = 11;
524
524
  break;
525
525
  }
526
526
 
@@ -530,9 +530,16 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
530
530
  case 5:
531
531
  servicesResponse = _context3.sent;
532
532
  parsedResponse = JSON.parse(servicesResponse === null || servicesResponse === void 0 ? void 0 : (_servicesResponse$dat = servicesResponse.data) === null || _servicesResponse$dat === void 0 ? void 0 : _servicesResponse$dat.body).data;
533
+ _retailers = product.retailers || product.retailersAvailable;
534
+ _active = _retailers === null || _retailers === void 0 ? void 0 : _retailers.filter(function (retailer) {
535
+ return parsedResponse === null || parsedResponse === void 0 ? void 0 : parsedResponse.map(function (srv) {
536
+ return srv.id_retailer;
537
+ }).includes(retailer.id);
538
+ })[0];
539
+ !activeRetailer.id && setActiveRetailer(_active ? _active : _retailers[0]);
533
540
  setServicesData(parsedResponse);
534
541
 
535
- case 8:
542
+ case 11:
536
543
  case "end":
537
544
  return _context3.stop();
538
545
  }
@@ -623,7 +630,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
623
630
  case 0:
624
631
  sessionStorage.setItem("user", JSON.stringify(user));
625
632
  loadData();
626
- setActiveRetailer(product.retailers ? product.retailers[0] : product.retailersAvailable[0]); // getPercentage({ data: [product] }).then((res) =>
633
+ setActiveRetailer(active ? active : retailers[0]); // getPercentage({ data: [product] }).then((res) =>
627
634
  // setPercentages(res)
628
635
  // );
629
636
 
@@ -1763,6 +1770,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1763
1770
  activeRetailer: activeRetailer,
1764
1771
  setActiveRetailer: setActiveRetailer,
1765
1772
  showValidationButtons: isRevision() && getSectionStatus(),
1773
+ servicesData: servicesData ? servicesData : null,
1766
1774
  approve: function approve() {
1767
1775
  if (origin[activeTab] === "RequestWithoutContentoh" && !user.is_retailer && (!product.id_order || !product.orderId)) {
1768
1776
  setDataGenericModal(function (prev) {
@@ -31,64 +31,70 @@ RetailerProductEditionDefault.args = {
31
31
  "Ficha técnica": false,
32
32
  Imágenes: false
33
33
  },
34
- token: "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIyM2EzZjQ5Ni00ZTM4LTRlMT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anluvQH0NXVbofqnixjnt8r-dd9or_y4gy8hpZsg",
35
35
  articleId: 238,
36
36
  category: 846,
37
37
  version: 2,
38
38
  productSelected: {
39
39
  services: {
40
- datasheets: 1,
41
- descriptions: 1,
40
+ datasheets: 0,
41
+ descriptions: 0,
42
42
  images: 1
43
43
  },
44
- orderId: 1768,
45
- status: "AF",
46
- datasheet_status: "AF",
44
+ orderId: 72,
45
+ status: "ASSIGNED",
46
+ datasheet_status: "NS",
47
47
  prio: "none",
48
- version: 2,
49
- description_status: "AF",
50
- images_status: "AA",
48
+ version: 14,
49
+ description_status: "NS",
50
+ images_status: "IN_PROGRESS",
51
51
  article: {
52
- id_article: 68764,
53
- id_category: "4",
54
- name: "test1",
55
- upc: "98979695",
56
- timestamp: "2022-06-19T18:46:01.000Z",
57
- id_user: 419,
52
+ id_article: 55109,
53
+ id_category: "2999",
54
+ name: "Resize Ismael",
55
+ upc: "ResizeIsmael",
56
+ timestamp: "2022-06-18T03:32:56.000Z",
57
+ id_user: 110,
58
58
  status: "NULL",
59
59
  active: 1,
60
- company_id: 253,
61
- company_name: "Prueba Test S.A de C.V.",
62
- country: "México",
63
- id_order: 1768,
64
- id_datasheet_especialist: 426,
65
- id_datasheet_facilitator: 423,
66
- id_description_especialist: 426,
67
- id_description_facilitator: 423,
68
- id_images_especialist: 427,
69
- id_images_facilitator: 424,
70
- id_auditor: 425,
60
+ company_id: 834,
61
+ company_name: "THD Resize Proveedor",
62
+ country: null,
63
+ id_order: 72,
64
+ id_datasheet_especialist: 54,
65
+ id_datasheet_facilitator: 52,
66
+ id_description_especialist: 54,
67
+ id_description_facilitator: 52,
68
+ id_images_especialist: 55,
69
+ id_images_facilitator: 53,
70
+ id_auditor: null,
71
71
  id_recepcionist: null,
72
- category: "ABARROTES|ABARROTES SECOS|ALIMENTOS DESHIDRATADOS",
72
+ category: "RESIZING|RESIZING|RESIZING",
73
73
  missingAttributes: null,
74
74
  missingDescriptions: null,
75
75
  missingImages: null
76
76
  },
77
77
  retailers: [{
78
- id: 3,
79
- name: "Sam´s Club",
78
+ id: 58,
79
+ name: "The Home Depot Golden",
80
+ country: "México",
81
+ id_region: 1,
82
+ active: 1
83
+ }, {
84
+ id: 59,
85
+ name: "The Home Depot Platinum",
80
86
  country: "México",
81
87
  id_region: 1,
82
88
  active: 1
83
89
  }, {
84
- id: 4,
85
- name: "Walmart Super y Superama",
90
+ id: 60,
91
+ name: "The Home Depot Resizing",
86
92
  country: "México",
87
93
  id_region: 1,
88
94
  active: 1
89
95
  }],
90
- country: "México",
91
- upc: "98979695"
96
+ country: null,
97
+ upc: "ResizeIsmael"
92
98
  },
93
99
  location: {
94
100
  product: {
@@ -97,35 +103,35 @@ RetailerProductEditionDefault.args = {
97
103
  }
98
104
  },
99
105
  user: {
100
- id_user: 425,
101
- name: "Auditor QA",
102
- last_name: " ",
103
- email: "ladiboh785@mi166.com",
104
- position: "Tester",
106
+ id_user: 55,
107
+ name: "ESPECIALISTA ED PRUEBA",
108
+ last_name: "",
109
+ email: "hcarrillo@contentoh.com",
110
+ position: null,
105
111
  telephone: null,
106
112
  country: null,
107
- id_company: 254,
108
- id_cognito: "23a3f496-4e38-4e12-9bf5-7f90b77a2f35",
113
+ id_company: 2,
114
+ id_cognito: "713a7457-f943-4bc9-8eb0-86b41f5bd4f8",
109
115
  birth_Date: null,
110
116
  about_me: null,
111
117
  zip_code: null,
112
118
  address: null,
113
119
  job: null,
114
120
  id_stripe: null,
115
- id_role: 6,
121
+ id_role: 8,
116
122
  active: 1,
117
123
  is_retailer: 0,
118
124
  membership: {
119
- id: 750,
120
- start_date: "2022-01-07T21:32:54.000Z",
121
- end_date: "2023-01-07T21:32:54.000Z",
122
- planID: 6,
123
- plan: "prod_KvGd6YSTJyR3AP",
124
- name: "Plan Small",
125
- user_limit: "10",
126
- products_limit: "1000",
127
- type: "Enterprise"
125
+ id: 2,
126
+ start_date: "2021-11-05T02:35:12.000Z",
127
+ end_date: "2022-11-05T02:34:49.000Z",
128
+ planID: 1,
129
+ plan: "prod_KtkvuFFLpOdP6e",
130
+ name: "Plan Free",
131
+ user_limit: "1",
132
+ products_limit: "3",
133
+ type: "PyMES"
128
134
  },
129
- src: "https://content-management-profile-prod.s3.amazonaws.com/id-425/425.png?1655665533759"
135
+ src: "https://content-management-profile.s3.amazonaws.com/id-55/55.png?1655680663244"
130
136
  }
131
137
  };
@@ -801,7 +801,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
801
801
  var updateImages = (0, _react.useCallback)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() {
802
802
  var _images$values2, _product$article10, _data$articleData, _data$articleData2, _data$updateImages;
803
803
 
804
- var imagesList, imagesListTemp, duplicated, attrForImgs, data, valid, _data$updateImages2, _data$articleData3, _data$articleData4, _data$articleData5, promiseArray;
804
+ var imagesList, imagesListTemp, duplicated, attrForImgs, data, valid, _data$updateImages2, _data$articleData3, _data$articleData4, _data$articleData5, promiseArray, productTemp;
805
805
 
806
806
  return _regenerator.default.wrap(function _callee7$(_context7) {
807
807
  while (1) {
@@ -854,7 +854,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
854
854
  }
855
855
 
856
856
  if (!(valid && (duplicated === null || duplicated === void 0 ? void 0 : duplicated.length) === 0)) {
857
- _context7.next = 32;
857
+ _context7.next = 33;
858
858
  break;
859
859
  }
860
860
 
@@ -894,34 +894,36 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
894
894
  setImagesUploaded(true);
895
895
 
896
896
  case 24:
897
+ productTemp = product;
898
+
897
899
  if (productTemp.status === "ASSIGNED") {
898
900
  productTemp.status = "IN_PROGRESS";
899
901
  setProduct(productTemp);
900
902
  sessionStorage.setItem("productSelected", JSON.stringify(productTemp));
901
903
  }
902
904
 
903
- _context7.next = 30;
905
+ _context7.next = 31;
904
906
  break;
905
907
 
906
- case 27:
907
- _context7.prev = 27;
908
+ case 28:
909
+ _context7.prev = 28;
908
910
  _context7.t0 = _context7["catch"](11);
909
911
  console.log(_context7.t0); // setMainLoading(false);
910
912
 
911
- case 30:
912
- _context7.next = 33;
913
+ case 31:
914
+ _context7.next = 34;
913
915
  break;
914
916
 
915
- case 32:
917
+ case 33:
916
918
  // setMainLoading(false);
917
919
  setMessage("Completa los campos que solicita cada una de la imágenes o hay imágenes con el mismo tipo de toma.\nRecuerda hay campos obligatorios y no podras avanzar si no estan completos.");
918
920
 
919
- case 33:
921
+ case 34:
920
922
  case "end":
921
923
  return _context7.stop();
922
924
  }
923
925
  }
924
- }, _callee7, null, [[11, 27]]);
926
+ }, _callee7, null, [[11, 28]]);
925
927
  })), [images, imagesUploaded]);
926
928
  (0, _react.useEffect)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() {
927
929
  return _regenerator.default.wrap(function _callee8$(_context8) {
@@ -1056,8 +1058,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
1056
1058
 
1057
1059
  var sendToFacilitator = /*#__PURE__*/function () {
1058
1060
  var _ref10 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9(result) {
1059
- var concept, _productTemp, evalStatus, data, specialistDone, statusArr, newStatus;
1060
-
1061
+ var concept, productTemp, evalStatus, data, specialistDone, statusArr, newStatus;
1061
1062
  return _regenerator.default.wrap(function _callee9$(_context9) {
1062
1063
  while (1) {
1063
1064
  switch (_context9.prev = _context9.next) {
@@ -1065,7 +1066,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
1065
1066
  setLoading(true);
1066
1067
  _context9.prev = 1;
1067
1068
  concept = getConcept(activeTab);
1068
- _productTemp = (0, _objectSpread2.default)({}, product);
1069
+ productTemp = (0, _objectSpread2.default)({}, product);
1069
1070
  evalStatus = product["".concat(concept, "_status")];
1070
1071
  data = {};
1071
1072
 
@@ -1074,7 +1075,6 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
1074
1075
  break;
1075
1076
  }
1076
1077
 
1077
- //updateCompaniesList(evalStatus, result, activeRetailer.id, concept);
1078
1078
  data = {
1079
1079
  articleId: product.article.id_article,
1080
1080
  orderId: product.orderId,
@@ -1119,9 +1119,9 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
1119
1119
  servicesData.forEach(function (srv) {
1120
1120
  srv.service === concept && statusArr.push(srv.status);
1121
1121
  });
1122
- _productTemp["".concat(concept, "_status")] = (0, _data2.getNewStatus)(statusArr);
1123
- newStatus = (0, _data2.getNewStatus)([_productTemp.datasheet_status, _productTemp.description_status, _productTemp.images_status]);
1124
- _productTemp.status = newStatus;
1122
+ productTemp["".concat(concept, "_status")] = (0, _data2.getNewStatus)(statusArr);
1123
+ newStatus = (0, _data2.getNewStatus)([productTemp.datasheet_status, productTemp.description_status, productTemp.images_status]);
1124
+ productTemp.status = newStatus;
1125
1125
  data = {
1126
1126
  articleId: product.article.id_article,
1127
1127
  orderId: product.orderId,
@@ -1154,8 +1154,8 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
1154
1154
 
1155
1155
  case 31:
1156
1156
  loadData();
1157
- sessionStorage.setItem("productSelected", JSON.stringify(_productTemp));
1158
- setProduct(_productTemp);
1157
+ sessionStorage.setItem("productSelected", JSON.stringify(productTemp));
1158
+ setProduct(productTemp);
1159
1159
  _context9.next = 39;
1160
1160
  break;
1161
1161
 
@@ -1639,35 +1639,27 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
1639
1639
  sendToFacilitator("A");
1640
1640
  },
1641
1641
  reject: function reject() {
1642
- sendToFacilitator("R"); // setMessage("Rechazado");
1643
- // setComponentsArray([
1644
- // <img src={errorModal} />,
1645
- // <ScreenHeader
1646
- // text={"Agrega tu comentarios para enviar el rechazo"}
1647
- // headerType={"input-name-header"}
1648
- // color={"white"}
1649
- // />,
1650
- // <TagAndInput
1651
- // label={"Caja de Comentario"}
1652
- // inputType={"textarea"}
1653
- // inputId={"modal-commentary-box"}
1654
- // index={0}
1655
- // color={"white"}
1656
- // />,
1657
- // <Button
1658
- // buttonType={"general-default-button"}
1659
- // label={"Enviar comentario"}
1660
- // onClick={(e) =>
1661
- // createComment(
1662
- // e,
1663
- // document.querySelector(
1664
- // "#modal-commentary-box .ql-container .ql-editor > p"
1665
- // ).innerHTML,
1666
- // activeTab
1667
- // )
1668
- // }
1669
- // />,
1670
- // ]);
1642
+ sendToFacilitator("R");
1643
+ setMessage("Rechazado");
1644
+ setComponentsArray([/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
1645
+ src: _errorModal.default
1646
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
1647
+ text: "Agrega tu comentarios para enviar el rechazo",
1648
+ headerType: "input-name-header",
1649
+ color: "white"
1650
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.TagAndInput, {
1651
+ label: "Caja de Comentario",
1652
+ inputType: "textarea",
1653
+ inputId: "modal-commentary-box",
1654
+ index: 0,
1655
+ color: "white"
1656
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
1657
+ buttonType: "general-default-button",
1658
+ label: "Enviar comentario",
1659
+ onClick: function onClick(e) {
1660
+ return createComment(e, document.querySelector("#modal-commentary-box .ql-container .ql-editor > p").innerHTML, activeTab);
1661
+ }
1662
+ })]);
1671
1663
  },
1672
1664
  showValidationButtons: approveRejectButtons() && (auditorAssigned() || userAssigned())
1673
1665
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_FullTabsMenu.FullTabsMenu, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.1.8",
3
+ "version": "21.1.11",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -21,22 +21,22 @@ ProviderProductEditionDefault.args = {
21
21
  category: 846,
22
22
  version: 2,
23
23
  productSelected: {
24
- orderId: 27,
24
+ orderId: 77,
25
25
  article_status: "AP",
26
- datasheet_status: "AP",
27
- description_status: "AP",
26
+ datasheet_status: "NS",
27
+ description_status: "NS",
28
28
  images_status: "AP",
29
29
  prio: "none",
30
- version: 2,
30
+ version: 19,
31
31
  brand: null,
32
32
  article: {
33
- category: "BAÑOS|ACCESORIOS PARA BAÑO|ACCESORIOS INDIVIDUALES",
34
- company_name: "THD Proveedor",
35
- country: "México",
36
- id_category: "2004",
37
- id_article: 55108,
38
- name: "Producto de prueba 10 THD",
39
- upc: "SKU12314THD",
33
+ category: "RESIZING|RESIZING|RESIZING",
34
+ company_name: "THD Resize Proveedor",
35
+ country: null,
36
+ id_category: "2999",
37
+ id_article: 55109,
38
+ name: "Resize Ismael",
39
+ upc: "ResizeIsmael",
40
40
  },
41
41
  retailers: [
42
42
  {
@@ -57,11 +57,11 @@ ProviderProductEditionDefault.args = {
57
57
  },
58
58
  ],
59
59
  services: {
60
- datasheets: 1,
61
- descriptions: 1,
60
+ datasheets: 0,
61
+ descriptions: 0,
62
62
  images: 1,
63
63
  },
64
- id_article: 55108,
64
+ id_article: 55109,
65
65
  retailersAvailable: [
66
66
  {
67
67
  id: 58,
@@ -82,25 +82,25 @@ ProviderProductEditionDefault.args = {
82
82
  ],
83
83
  },
84
84
  productToEdit: {
85
- ArticleId: 55108,
86
- idCategory: "2004",
85
+ ArticleId: 55109,
86
+ idCategory: "2999",
87
87
  product: {
88
- orderId: 27,
88
+ orderId: 77,
89
89
  article_status: "AP",
90
- datasheet_status: "AP",
91
- description_status: "AP",
90
+ datasheet_status: "NS",
91
+ description_status: "NS",
92
92
  images_status: "AP",
93
93
  prio: "none",
94
- version: 2,
94
+ version: 19,
95
95
  brand: null,
96
96
  article: {
97
- category: "BAÑOS|ACCESORIOS PARA BAÑO|ACCESORIOS INDIVIDUALES",
98
- company_name: "THD Proveedor",
99
- country: "México",
100
- id_category: "2004",
101
- id_article: 55108,
102
- name: "Producto de prueba 10 THD",
103
- upc: "SKU12314THD",
97
+ category: "RESIZING|RESIZING|RESIZING",
98
+ company_name: "THD Resize Proveedor",
99
+ country: null,
100
+ id_category: "2999",
101
+ id_article: 55109,
102
+ name: "Resize Ismael",
103
+ upc: "ResizeIsmael",
104
104
  },
105
105
  retailers: [
106
106
  {
@@ -121,11 +121,11 @@ ProviderProductEditionDefault.args = {
121
121
  },
122
122
  ],
123
123
  services: {
124
- datasheets: 1,
125
- descriptions: 1,
124
+ datasheets: 0,
125
+ descriptions: 0,
126
126
  images: 1,
127
127
  },
128
- id_article: 55108,
128
+ id_article: 55109,
129
129
  retailersAvailable: [
130
130
  {
131
131
  id: 58,
@@ -151,35 +151,35 @@ ProviderProductEditionDefault.args = {
151
151
  state: { origin: "RequestWithContentoh" },
152
152
  },
153
153
  user: {
154
- id_user: 59,
155
- name: "The Home",
156
- last_name: "Depot",
157
- email: "cadena.ismael@allfreemail.net",
158
- position: "Admin",
154
+ id_user: 28,
155
+ name: "Proveedor",
156
+ last_name: "Colgate",
157
+ email: "ilopez@contentoh.com",
158
+ position: "Prueba Admin",
159
159
  telephone: "+523111366336",
160
160
  country: "México",
161
- id_company: 7,
162
- id_cognito: "5884ae34-59d6-4454-b98e-821518bcc3a7",
161
+ id_company: 1,
162
+ id_cognito: "f5927f8e-cbf7-4922-9e09-e69ec0b2731a",
163
163
  birth_Date: null,
164
164
  about_me: null,
165
165
  zip_code: null,
166
166
  address: null,
167
167
  job: null,
168
- id_stripe: "",
168
+ id_stripe: "cus_KuEt6R6vwmN09f",
169
169
  id_role: 0,
170
170
  active: 1,
171
- is_retailer: 1,
171
+ is_retailer: 0,
172
172
  membership: {
173
- id: 24,
174
- start_date: "2021-11-23T03:35:50.000Z",
175
- end_date: "2022-11-23T03:35:50.000Z",
176
- planID: 9,
177
- plan: "prod_KtlkzZVGq6bRTO",
178
- name: "Plan Enterprise Full",
179
- user_limit: "30",
180
- products_limit: "10000",
173
+ id: 38,
174
+ start_date: "2022-01-18T17:25:35.000Z",
175
+ end_date: "2023-01-18T17:25:35.000Z",
176
+ planID: 8,
177
+ plan: "prod_KtlhECVSFG2iro",
178
+ name: "Plan Pro",
179
+ user_limit: "20",
180
+ products_limit: "5000",
181
181
  type: "Enterprise",
182
182
  },
183
- src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1655616370073",
183
+ src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1655691624761",
184
184
  },
185
185
  };
@@ -240,6 +240,11 @@ export const ProviderProductEdition = ({
240
240
  }&end=true`
241
241
  );
242
242
  const parsedResponse = JSON.parse(servicesResponse?.data?.body).data;
243
+ let retailers = product.retailers || product.retailersAvailable;
244
+ let active = retailers?.filter((retailer) =>
245
+ parsedResponse?.map((srv) => srv.id_retailer).includes(retailer.id)
246
+ )[0];
247
+ !activeRetailer.id && setActiveRetailer(active ? active : retailers[0]);
243
248
  setServicesData(parsedResponse);
244
249
  }
245
250
  };
@@ -299,9 +304,8 @@ export const ProviderProductEdition = ({
299
304
  useEffect(async () => {
300
305
  sessionStorage.setItem("user", JSON.stringify(user));
301
306
  loadData();
302
- setActiveRetailer(
303
- product.retailers ? product.retailers[0] : product.retailersAvailable[0]
304
- );
307
+
308
+ setActiveRetailer(active ? active : retailers[0]);
305
309
  // getPercentage({ data: [product] }).then((res) =>
306
310
  // setPercentages(res)
307
311
  // );
@@ -1227,6 +1231,7 @@ export const ProviderProductEdition = ({
1227
1231
  activeRetailer={activeRetailer}
1228
1232
  setActiveRetailer={setActiveRetailer}
1229
1233
  showValidationButtons={isRevision() && getSectionStatus()}
1234
+ servicesData={servicesData ? servicesData : null}
1230
1235
  approve={() => {
1231
1236
  if (
1232
1237
  origin[activeTab] === "RequestWithoutContentoh" &&
@@ -16,101 +16,108 @@ RetailerProductEditionDefault.args = {
16
16
  Imágenes: false,
17
17
  },
18
18
  token:
19
- "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIyM2EzZ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yM-0w1rqG9R93s1SmeanluvQH0NXVbofqnixjnt8r-dd9or_y4gy8hpZsg",
20
20
  articleId: 238,
21
21
  category: 846,
22
22
  version: 2,
23
23
  productSelected: {
24
24
  services: {
25
- datasheets: 1,
26
- descriptions: 1,
25
+ datasheets: 0,
26
+ descriptions: 0,
27
27
  images: 1,
28
28
  },
29
- orderId: 1768,
30
- status: "AF",
31
- datasheet_status: "AF",
29
+ orderId: 72,
30
+ status: "ASSIGNED",
31
+ datasheet_status: "NS",
32
32
  prio: "none",
33
- version: 2,
34
- description_status: "AF",
35
- images_status: "AA",
33
+ version: 14,
34
+ description_status: "NS",
35
+ images_status: "IN_PROGRESS",
36
36
  article: {
37
- id_article: 68764,
38
- id_category: "4",
39
- name: "test1",
40
- upc: "98979695",
41
- timestamp: "2022-06-19T18:46:01.000Z",
42
- id_user: 419,
37
+ id_article: 55109,
38
+ id_category: "2999",
39
+ name: "Resize Ismael",
40
+ upc: "ResizeIsmael",
41
+ timestamp: "2022-06-18T03:32:56.000Z",
42
+ id_user: 110,
43
43
  status: "NULL",
44
44
  active: 1,
45
- company_id: 253,
46
- company_name: "Prueba Test S.A de C.V.",
47
- country: "México",
48
- id_order: 1768,
49
- id_datasheet_especialist: 426,
50
- id_datasheet_facilitator: 423,
51
- id_description_especialist: 426,
52
- id_description_facilitator: 423,
53
- id_images_especialist: 427,
54
- id_images_facilitator: 424,
55
- id_auditor: 425,
45
+ company_id: 834,
46
+ company_name: "THD Resize Proveedor",
47
+ country: null,
48
+ id_order: 72,
49
+ id_datasheet_especialist: 54,
50
+ id_datasheet_facilitator: 52,
51
+ id_description_especialist: 54,
52
+ id_description_facilitator: 52,
53
+ id_images_especialist: 55,
54
+ id_images_facilitator: 53,
55
+ id_auditor: null,
56
56
  id_recepcionist: null,
57
- category: "ABARROTES|ABARROTES SECOS|ALIMENTOS DESHIDRATADOS",
57
+ category: "RESIZING|RESIZING|RESIZING",
58
58
  missingAttributes: null,
59
59
  missingDescriptions: null,
60
60
  missingImages: null,
61
61
  },
62
62
  retailers: [
63
63
  {
64
- id: 3,
65
- name: "Sam´s Club",
64
+ id: 58,
65
+ name: "The Home Depot Golden",
66
66
  country: "México",
67
67
  id_region: 1,
68
68
  active: 1,
69
69
  },
70
70
  {
71
- id: 4,
72
- name: "Walmart Super y Superama",
71
+ id: 59,
72
+ name: "The Home Depot Platinum",
73
+ country: "México",
74
+ id_region: 1,
75
+ active: 1,
76
+ },
77
+ {
78
+ id: 60,
79
+ name: "The Home Depot Resizing",
73
80
  country: "México",
74
81
  id_region: 1,
75
82
  active: 1,
76
83
  },
77
84
  ],
78
- country: "México",
79
- upc: "98979695",
85
+ country: null,
86
+ upc: "ResizeIsmael",
80
87
  },
81
88
  location: {
82
89
  product: { articleId: 109485, versionId: 3 },
83
90
  },
84
91
  user: {
85
- id_user: 425,
86
- name: "Auditor QA",
87
- last_name: " ",
88
- email: "ladiboh785@mi166.com",
89
- position: "Tester",
92
+ id_user: 55,
93
+ name: "ESPECIALISTA ED PRUEBA",
94
+ last_name: "",
95
+ email: "hcarrillo@contentoh.com",
96
+ position: null,
90
97
  telephone: null,
91
98
  country: null,
92
- id_company: 254,
93
- id_cognito: "23a3f496-4e38-4e12-9bf5-7f90b77a2f35",
99
+ id_company: 2,
100
+ id_cognito: "713a7457-f943-4bc9-8eb0-86b41f5bd4f8",
94
101
  birth_Date: null,
95
102
  about_me: null,
96
103
  zip_code: null,
97
104
  address: null,
98
105
  job: null,
99
106
  id_stripe: null,
100
- id_role: 6,
107
+ id_role: 8,
101
108
  active: 1,
102
109
  is_retailer: 0,
103
110
  membership: {
104
- id: 750,
105
- start_date: "2022-01-07T21:32:54.000Z",
106
- end_date: "2023-01-07T21:32:54.000Z",
107
- planID: 6,
108
- plan: "prod_KvGd6YSTJyR3AP",
109
- name: "Plan Small",
110
- user_limit: "10",
111
- products_limit: "1000",
112
- type: "Enterprise",
111
+ id: 2,
112
+ start_date: "2021-11-05T02:35:12.000Z",
113
+ end_date: "2022-11-05T02:34:49.000Z",
114
+ planID: 1,
115
+ plan: "prod_KtkvuFFLpOdP6e",
116
+ name: "Plan Free",
117
+ user_limit: "1",
118
+ products_limit: "3",
119
+ type: "PyMES",
113
120
  },
114
- src: "https://content-management-profile-prod.s3.amazonaws.com/id-425/425.png?1655665533759",
121
+ src: "https://content-management-profile.s3.amazonaws.com/id-55/55.png?1655680663244",
115
122
  },
116
123
  };
@@ -521,6 +521,7 @@ export const RetailerProductEdition = ({
521
521
  } else {
522
522
  setImagesUploaded(true);
523
523
  }
524
+ let productTemp = product;
524
525
  if (productTemp.status === "ASSIGNED") {
525
526
  productTemp.status = "IN_PROGRESS";
526
527
  setProduct(productTemp);
@@ -669,7 +670,6 @@ export const RetailerProductEdition = ({
669
670
 
670
671
  let data = {};
671
672
  if (result) {
672
- //updateCompaniesList(evalStatus, result, activeRetailer.id, concept);
673
673
  data = {
674
674
  articleId: product.article.id_article,
675
675
  orderId: product.orderId,
@@ -1187,35 +1187,35 @@ export const RetailerProductEdition = ({
1187
1187
  }}
1188
1188
  reject={() => {
1189
1189
  sendToFacilitator("R");
1190
- // setMessage("Rechazado");
1191
- // setComponentsArray([
1192
- // <img src={errorModal} />,
1193
- // <ScreenHeader
1194
- // text={"Agrega tu comentarios para enviar el rechazo"}
1195
- // headerType={"input-name-header"}
1196
- // color={"white"}
1197
- // />,
1198
- // <TagAndInput
1199
- // label={"Caja de Comentario"}
1200
- // inputType={"textarea"}
1201
- // inputId={"modal-commentary-box"}
1202
- // index={0}
1203
- // color={"white"}
1204
- // />,
1205
- // <Button
1206
- // buttonType={"general-default-button"}
1207
- // label={"Enviar comentario"}
1208
- // onClick={(e) =>
1209
- // createComment(
1210
- // e,
1211
- // document.querySelector(
1212
- // "#modal-commentary-box .ql-container .ql-editor > p"
1213
- // ).innerHTML,
1214
- // activeTab
1215
- // )
1216
- // }
1217
- // />,
1218
- // ]);
1190
+ setMessage("Rechazado");
1191
+ setComponentsArray([
1192
+ <img src={errorModal} />,
1193
+ <ScreenHeader
1194
+ text={"Agrega tu comentarios para enviar el rechazo"}
1195
+ headerType={"input-name-header"}
1196
+ color={"white"}
1197
+ />,
1198
+ <TagAndInput
1199
+ label={"Caja de Comentario"}
1200
+ inputType={"textarea"}
1201
+ inputId={"modal-commentary-box"}
1202
+ index={0}
1203
+ color={"white"}
1204
+ />,
1205
+ <Button
1206
+ buttonType={"general-default-button"}
1207
+ label={"Enviar comentario"}
1208
+ onClick={(e) =>
1209
+ createComment(
1210
+ e,
1211
+ document.querySelector(
1212
+ "#modal-commentary-box .ql-container .ql-editor > p"
1213
+ ).innerHTML,
1214
+ activeTab
1215
+ )
1216
+ }
1217
+ />,
1218
+ ]);
1219
1219
  }}
1220
1220
  showValidationButtons={
1221
1221
  approveRejectButtons() && (auditorAssigned() || userAssigned())