contentoh-components-library 21.5.76 → 21.5.78
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.
|
@@ -917,7 +917,7 @@ var RetailerProductEditionView = function RetailerProductEditionView(_ref) {
|
|
|
917
917
|
articleId = state.product.id_article;
|
|
918
918
|
orderId = (_state$product$id_ord = state.product.id_order) !== null && _state$product$id_ord !== void 0 ? _state$product$id_ord : state.product.orderId;
|
|
919
919
|
sectionStatusKey = "".concat(concept, "_status");
|
|
920
|
-
evalStatus = state.product[sectionStatusKey];
|
|
920
|
+
evalStatus = getStatusByCurrentServiceAndRetailer() || state.product[sectionStatusKey] || "NA";
|
|
921
921
|
retailerId = (_state$active_retaile3 = state.active_retailer) === null || _state$active_retaile3 === void 0 ? void 0 : _state$active_retaile3.id_retailer;
|
|
922
922
|
data = {
|
|
923
923
|
articleId: articleId,
|
|
@@ -1444,11 +1444,11 @@ var RetailerProductEditionView = function RetailerProductEditionView(_ref) {
|
|
|
1444
1444
|
if (state.loading || !state.services || !state.product) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
1445
1445
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Loading.Loading, {})
|
|
1446
1446
|
});
|
|
1447
|
-
return /*#__PURE__*/(0, _jsxRuntime.
|
|
1447
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_AiProductEdition.AiProductEditionProvider, {
|
|
1448
1448
|
activeRetailer: state.active_retailer,
|
|
1449
1449
|
isCreatorsEdition: false,
|
|
1450
1450
|
productSelected: state.product,
|
|
1451
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
1451
|
+
children: ["\\", " ", /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
1452
1452
|
headerTop: headerTop,
|
|
1453
1453
|
children: [showRejectModal && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Modal.Modal, {
|
|
1454
1454
|
title: rejectAll ? "Agregar mensaje para rechazar todo" : "Agregar mensaje de rechazo",
|
|
@@ -1822,7 +1822,7 @@ var RetailerProductEditionView = function RetailerProductEditionView(_ref) {
|
|
|
1822
1822
|
})]
|
|
1823
1823
|
})]
|
|
1824
1824
|
})]
|
|
1825
|
-
})
|
|
1825
|
+
})]
|
|
1826
1826
|
});
|
|
1827
1827
|
};
|
|
1828
1828
|
|
package/package.json
CHANGED
|
@@ -684,7 +684,10 @@ const RetailerProductEditionView = ({
|
|
|
684
684
|
const articleId = state.product.id_article;
|
|
685
685
|
const orderId = state.product.id_order ?? state.product.orderId;
|
|
686
686
|
const sectionStatusKey = `${concept}_status`;
|
|
687
|
-
const evalStatus =
|
|
687
|
+
const evalStatus =
|
|
688
|
+
getStatusByCurrentServiceAndRetailer() ||
|
|
689
|
+
state.product[sectionStatusKey] ||
|
|
690
|
+
"NA";
|
|
688
691
|
const retailerId = state.active_retailer?.id_retailer;
|
|
689
692
|
|
|
690
693
|
let data = { articleId, orderId, concept, evalStatus, retailerId };
|
|
@@ -1130,6 +1133,7 @@ const RetailerProductEditionView = ({
|
|
|
1130
1133
|
isCreatorsEdition={false}
|
|
1131
1134
|
productSelected={state.product}
|
|
1132
1135
|
>
|
|
1136
|
+
\{" "}
|
|
1133
1137
|
<Container headerTop={headerTop}>
|
|
1134
1138
|
{showRejectModal && (
|
|
1135
1139
|
<Modal
|