contentoh-components-library 21.4.72 → 21.4.73
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/atoms/Avatar/index.js +2 -3
- package/dist/components/atoms/CheckBox/styles.js +1 -1
- package/dist/components/atoms/GeneralButton/styles.js +2 -6
- package/dist/components/atoms/InputFormatter/styles.js +3 -3
- package/dist/components/atoms/SliderToolTip/styles.js +1 -1
- package/dist/components/molecules/BoxAttribute/index.js +3 -3
- package/dist/components/molecules/BoxAttribute/styles.js +1 -1
- package/dist/components/molecules/BoxButtons/index.js +1 -0
- package/dist/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/dist/components/molecules/HeaderTop/index.js +11 -68
- package/dist/components/molecules/SignInLogin/index.js +28 -36
- package/dist/components/molecules/StripeCardSelector/CardSelector.stories.js +2 -1
- package/dist/components/organisms/Chat/Chat.stories.js +8 -27
- package/dist/components/organisms/Chat/ContainerItems/index.js +3 -19
- package/dist/components/organisms/Chat/ContainerItems/styles.js +1 -1
- package/dist/components/organisms/Chat/ContentChat/index.js +197 -350
- package/dist/components/organisms/Chat/Footer/index.js +39 -48
- package/dist/components/organisms/Chat/index.js +4 -49
- package/dist/components/organisms/Chat/styles.js +1 -1
- package/dist/components/organisms/DashboardMetric/index.js +6 -12
- package/dist/components/organisms/FullProductNameHeader/index.js +2 -2
- package/dist/components/organisms/InputGroup/index.js +10 -1
- package/dist/components/organisms/Modal/styles.js +1 -1
- package/dist/components/organisms/VersionSelector/index.js +4 -2
- package/dist/components/pages/Dashboard/Dashboard.stories.js +36 -33
- package/dist/components/pages/Dashboard/index.js +9 -37
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +38 -34
- package/dist/components/pages/ProviderProductEdition/index.js +196 -190
- package/dist/components/pages/ProviderProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +53 -52
- package/dist/components/pages/RetailerProductEdition/index.js +300 -318
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/utils.js +2 -61
- package/dist/global-files/data.js +29 -22
- package/dist/global-files/variables.js +1 -7
- package/dist/index.js +58 -201
- package/package.json +1 -2
- package/src/components/atoms/Avatar/index.js +2 -8
- package/src/components/atoms/CheckBox/styles.js +0 -2
- package/src/components/atoms/GeneralButton/styles.js +0 -46
- package/src/components/atoms/InputFormatter/styles.js +4 -9
- package/src/components/atoms/SliderToolTip/styles.js +1 -1
- package/src/components/atoms/TabSection/index.js +1 -1
- package/src/components/atoms/TabSection/styles.js +1 -1
- package/src/components/molecules/BoxAttribute/index.js +25 -32
- package/src/components/molecules/BoxAttribute/styles.js +1 -1
- package/src/components/molecules/BoxButtons/index.js +22 -23
- package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/src/components/molecules/HeaderTop/index.js +6 -52
- package/src/components/molecules/SignInLogin/index.js +11 -11
- package/src/components/molecules/StripeCardSelector/CardSelector.stories.js +2 -1
- package/src/components/molecules/TagAndInput/index.js +5 -6
- package/src/components/organisms/Chat/Chat.stories.js +7 -27
- package/src/components/organisms/Chat/ContainerItems/index.js +2 -18
- package/src/components/organisms/Chat/ContainerItems/styles.js +2 -14
- package/src/components/organisms/Chat/ContentChat/index.js +12 -88
- package/src/components/organisms/Chat/Footer/index.js +0 -11
- package/src/components/organisms/Chat/index.js +4 -46
- package/src/components/organisms/Chat/styles.js +0 -4
- package/src/components/organisms/DashboardMetric/index.js +3 -6
- package/src/components/organisms/FullProductNameHeader/index.js +1 -1
- package/src/components/organisms/InputGroup/index.js +119 -131
- package/src/components/organisms/Modal/styles.js +1 -4
- package/src/components/organisms/OrderDetail/utils/Table/utils.js +16 -6
- package/src/components/organisms/VersionSelector/index.js +2 -1
- package/src/components/pages/Dashboard/Dashboard.stories.js +38 -33
- package/src/components/pages/Dashboard/index.js +7 -36
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +83 -110
- package/src/components/pages/ProviderProductEdition/index.js +152 -134
- package/src/components/pages/ProviderProductEdition/styles.js +1 -5
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +52 -52
- package/src/components/pages/RetailerProductEdition/index.js +137 -120
- package/src/components/pages/RetailerProductEdition/styles.js +0 -4
- package/src/components/pages/RetailerProductEdition/utils.js +0 -37
- package/src/global-files/data.js +46 -14
- package/src/global-files/variables.js +0 -6
- package/src/index.js +0 -11
- package/src/assets/images/Icons/infoNR.svg +0 -8
- package/src/assets/images/flagsv2/highPriority.svg +0 -3
- package/src/assets/images/flagsv2/lowPriority.svg +0 -3
- package/src/assets/images/flagsv2/mediumPriority.svg +0 -3
- package/src/assets/images/flagsv2/noPriority.svg +0 -3
- package/src/assets/images/generalButton/closeIconWhite.svg +0 -4
- package/src/assets/images/generalButton/closeIconv2.svg +0 -4
- package/src/components/atoms/CharsMissing/Wysiwyg.stories.js +0 -12
- package/src/components/atoms/CharsMissing/index.js +0 -60
- package/src/components/atoms/CharsMissing/styles.js +0 -44
- package/src/components/atoms/FeatureTagv2/FeatureTagv2.stories.js +0 -16
- package/src/components/atoms/FeatureTagv2/index.js +0 -10
- package/src/components/atoms/FeatureTagv2/styles.js +0 -56
- package/src/components/atoms/GeneralInputv2/GeneralInputv2.stories.js +0 -33
- package/src/components/atoms/GeneralInputv2/index.js +0 -155
- package/src/components/atoms/GeneralInputv2/styles.js +0 -67
- package/src/components/atoms/ImageCarousel/ImgeSlider.stories.js +0 -76
- package/src/components/atoms/ImageCarousel/index.js +0 -103
- package/src/components/atoms/ImageCarousel/styles.js +0 -79
- package/src/components/atoms/InputFormatterv2/Wysiwyg.stories.js +0 -12
- package/src/components/atoms/InputFormatterv2/index.js +0 -148
- package/src/components/atoms/InputFormatterv2/styles.js +0 -39
- package/src/components/atoms/InputImages/InputImages.stories.js +0 -19
- package/src/components/atoms/InputImages/index.js +0 -25
- package/src/components/atoms/InputImages/styles.js +0 -17
- package/src/components/atoms/NumberMandatory/NumberMandatory.stories.js +0 -19
- package/src/components/atoms/NumberMandatory/index.js +0 -16
- package/src/components/atoms/NumberMandatory/styles.js +0 -11
- package/src/components/atoms/PercentTag/PercentTag.stories.js +0 -7
- package/src/components/atoms/PercentTag/index.js +0 -9
- package/src/components/atoms/PercentTag/styles.js +0 -69
- package/src/components/atoms/PriorityFlagv2/PriorityFlagv2.stories.js +0 -20
- package/src/components/atoms/PriorityFlagv2/index.js +0 -20
- package/src/components/atoms/PriorityFlagv2/styles.js +0 -6
- package/src/components/atoms/ProductImagev2/ProductImagev2.stories.js +0 -28
- package/src/components/atoms/ProductImagev2/index.js +0 -16
- package/src/components/atoms/ProductImagev2/styles.js +0 -62
- package/src/components/atoms/Progress/Progress.stories.js +0 -25
- package/src/components/atoms/Progress/index.js +0 -74
- package/src/components/atoms/Progress/styles.js +0 -98
- package/src/components/atoms/RatingStars/RatingStars.stories.js +0 -10
- package/src/components/atoms/RatingStars/index.js +0 -31
- package/src/components/atoms/RatingStars/styles.js +0 -28
- package/src/components/atoms/RetailerCatalog/RetailerCatalog.stories.js +0 -36
- package/src/components/atoms/RetailerCatalog/index.js +0 -49
- package/src/components/atoms/RetailerCatalog/styles.js +0 -30
- package/src/components/atoms/RetailerOption/RetailerOption.stories.js +0 -15
- package/src/components/atoms/RetailerOption/index.js +0 -53
- package/src/components/atoms/RetailerOption/styles.js +0 -41
- package/src/components/atoms/RetailersList/RetailersList.stories.js +0 -33
- package/src/components/atoms/RetailersList/index.js +0 -20
- package/src/components/atoms/RetailersList/styles.js +0 -19
- package/src/components/atoms/ScreenHeaderv2/ScreenHeaderv2.stories.js +0 -53
- package/src/components/atoms/ScreenHeaderv2/index.js +0 -134
- package/src/components/atoms/ScreenHeaderv2/styles.js +0 -103
- package/src/components/atoms/Selectv2/VersionSelect.js +0 -27
- package/src/components/atoms/Selectv2/index.js +0 -35
- package/src/components/atoms/Selectv2/style.js +0 -93
- package/src/components/atoms/TabSectionv2/TabSection.stories.js +0 -25
- package/src/components/atoms/TabSectionv2/index.js +0 -9
- package/src/components/atoms/TabSectionv2/styles.js +0 -20
- package/src/components/atoms/TooltipLight/Tooltip.stories.js +0 -20
- package/src/components/atoms/TooltipLight/index.js +0 -46
- package/src/components/atoms/TooltipLight/styles.js +0 -65
- package/src/components/atoms/UserCatalog/UserCatalog.stories.js +0 -67
- package/src/components/atoms/UserCatalog/index.js +0 -100
- package/src/components/atoms/UserCatalog/styles.js +0 -24
- package/src/components/atoms/UserOption/UserOption.stories.js +0 -25
- package/src/components/atoms/UserOption/index.js +0 -95
- package/src/components/atoms/UserOption/styles.js +0 -61
- package/src/components/atoms/UserSelector/UserSelector.stories.js +0 -25
- package/src/components/atoms/UserSelector/index.js +0 -86
- package/src/components/atoms/UserSelector/styles.js +0 -55
- package/src/components/atoms/WordsMissing/Wysiwyg.stories.js +0 -12
- package/src/components/atoms/WordsMissing/index.js +0 -60
- package/src/components/atoms/WordsMissing/styles.js +0 -10
- package/src/components/molecules/AsignationInfo/AsignationInfo.stories.js +0 -17
- package/src/components/molecules/AsignationInfo/index.js +0 -108
- package/src/components/molecules/AsignationInfo/styles.js +0 -86
- package/src/components/molecules/EditionActiveImagev2/EditionActiveImagev2.stories.js +0 -12
- package/src/components/molecules/EditionActiveImagev2/index.js +0 -15
- package/src/components/molecules/EditionActiveImagev2/styles.js +0 -7
- package/src/components/molecules/FeaturesBarv2/FeaturesBarv2.stories.js +0 -20
- package/src/components/molecules/FeaturesBarv2/index.js +0 -32
- package/src/components/molecules/FeaturesBarv2/styles.js +0 -17
- package/src/components/molecules/GalleryElementv2/GalleryElementv2.stories.js +0 -30
- package/src/components/molecules/GalleryElementv2/index.js +0 -142
- package/src/components/molecules/GalleryElementv2/styles.js +0 -119
- package/src/components/molecules/GalleryHeaderv2/GalleryHeaderv2.stories.js +0 -10
- package/src/components/molecules/GalleryHeaderv2/index.js +0 -25
- package/src/components/molecules/GalleryHeaderv2/styles.js +0 -47
- package/src/components/molecules/GridItem/GridItem.stories.js +0 -126
- package/src/components/molecules/GridItem/index.js +0 -105
- package/src/components/molecules/GridItem/styles.js +0 -104
- package/src/components/molecules/HeaderItem/ColumnItem.js +0 -9
- package/src/components/molecules/HeaderItem/HeaderItem.stories.js +0 -24
- package/src/components/molecules/HeaderItem/index.js +0 -26
- package/src/components/molecules/HeaderItem/styles.js +0 -27
- package/src/components/molecules/HeaderTopv2/HeaderTopv2.stories.js +0 -10
- package/src/components/molecules/HeaderTopv2/index.js +0 -100
- package/src/components/molecules/HeaderTopv2/styles.js +0 -33
- package/src/components/molecules/ImageSelectorv2/ImageSelectorv2.stories.js +0 -46
- package/src/components/molecules/ImageSelectorv2/index.js +0 -22
- package/src/components/molecules/ImageSelectorv2/styles.js +0 -15
- package/src/components/molecules/Phase/Phase.stories.js +0 -37
- package/src/components/molecules/Phase/index.js +0 -56
- package/src/components/molecules/Phase/styles.js +0 -82
- package/src/components/molecules/ProductNameHeaderv2/ProductNameHeaderv2.stories.js +0 -37
- package/src/components/molecules/ProductNameHeaderv2/index.js +0 -12
- package/src/components/molecules/ProductNameHeaderv2/styles.js +0 -10
- package/src/components/molecules/ProductSkuStatus/ProductSkuStatus.stories.js +0 -37
- package/src/components/molecules/ProductSkuStatus/index.js +0 -26
- package/src/components/molecules/ProductSkuStatus/styles.js +0 -7
- package/src/components/molecules/RetailerSelectorv2/RetailerSelectorv2.stories.js +0 -35
- package/src/components/molecules/RetailerSelectorv2/index.js +0 -80
- package/src/components/molecules/RetailerSelectorv2/styles.js +0 -21
- package/src/components/molecules/RowItem/ColumnItem.js +0 -9
- package/src/components/molecules/RowItem/RowItem.stories.js +0 -5660
- package/src/components/molecules/RowItem/index.js +0 -45
- package/src/components/molecules/RowItem/styles.js +0 -40
- package/src/components/molecules/ServiceDataValidator/ServiceDataValidator.stories.js +0 -90
- package/src/components/molecules/ServiceDataValidator/index.js +0 -49
- package/src/components/molecules/ServiceDataValidator/styles.js +0 -36
- package/src/components/molecules/StatusRetailer/StatusAsignationInfo.stories.js +0 -17
- package/src/components/molecules/StatusRetailer/index.js +0 -55
- package/src/components/molecules/StatusRetailer/styles.js +0 -85
- package/src/components/molecules/TabsMenuv2/TabsMenuv2.stories.js +0 -19
- package/src/components/molecules/TabsMenuv2/index.js +0 -112
- package/src/components/molecules/TabsMenuv2/styles.js +0 -19
- package/src/components/molecules/TagAndInputv2/TagAndInputv2.stories.js +0 -24
- package/src/components/molecules/TagAndInputv2/index.js +0 -86
- package/src/components/molecules/TagAndInputv2/styles.js +0 -35
- package/src/components/molecules/Validation/Validation.stories.js +0 -12
- package/src/components/molecules/Validation/index.js +0 -77
- package/src/components/molecules/Validation/styles.js +0 -19
- package/src/components/molecules/VersionItemv2/VersionItemv2.stories.js +0 -14
- package/src/components/molecules/VersionItemv2/index.js +0 -59
- package/src/components/molecules/VersionItemv2/styles.js +0 -47
- package/src/components/organisms/BarButtons/BarButtons.stories.js +0 -13
- package/src/components/organisms/BarButtons/index.js +0 -150
- package/src/components/organisms/BarButtons/styles.js +0 -54
- package/src/components/organisms/Chatv2/ChatLists/ChatLists.stories.js +0 -65
- package/src/components/organisms/Chatv2/ChatLists/Rotoplas.jpeg +0 -0
- package/src/components/organisms/Chatv2/ChatLists/THD.png +0 -0
- package/src/components/organisms/Chatv2/ChatLists/index.js +0 -141
- package/src/components/organisms/Chatv2/ChatLists/styles.js +0 -162
- package/src/components/organisms/Chatv2/Chatv2.stories.js +0 -184
- package/src/components/organisms/Chatv2/ContainerItems/ContainerItems.stories.js +0 -142
- package/src/components/organisms/Chatv2/ContainerItems/index.js +0 -538
- package/src/components/organisms/Chatv2/ContainerItems/styles.js +0 -360
- package/src/components/organisms/Chatv2/ContentChat/ContentChat.stories.js +0 -102
- package/src/components/organisms/Chatv2/ContentChat/Rotoplas.jpeg +0 -0
- package/src/components/organisms/Chatv2/ContentChat/THD.png +0 -0
- package/src/components/organisms/Chatv2/ContentChat/index.js +0 -1016
- package/src/components/organisms/Chatv2/ContentChat/styles.js +0 -44
- package/src/components/organisms/Chatv2/Footer/Footer.stories.js +0 -22
- package/src/components/organisms/Chatv2/Footer/index.js +0 -668
- package/src/components/organisms/Chatv2/Footer/styles.js +0 -290
- package/src/components/organisms/Chatv2/Header/Header.stories.js +0 -66
- package/src/components/organisms/Chatv2/Header/index.js +0 -93
- package/src/components/organisms/Chatv2/Header/styles.js +0 -49
- package/src/components/organisms/Chatv2/index.js +0 -281
- package/src/components/organisms/Chatv2/styles.js +0 -85
- package/src/components/organisms/CompleteServices/CompleteServices.stories.js +0 -91
- package/src/components/organisms/CompleteServices/index.js +0 -82
- package/src/components/organisms/CompleteServices/styles.js +0 -35
- package/src/components/organisms/DragAndDropPhases/DragAndDropPhases.stories.js +0 -12
- package/src/components/organisms/DragAndDropPhases/index.js +0 -67
- package/src/components/organisms/DragAndDropPhases/styles.js +0 -20
- package/src/components/organisms/DragPrueba/DragPrueba.stories.js +0 -12
- package/src/components/organisms/DragPrueba/index.js +0 -57
- package/src/components/organisms/DragPrueba/styles.js +0 -8
- package/src/components/organisms/FullProductNamev2/FullProductNamev2.stories.js +0 -28
- package/src/components/organisms/FullProductNamev2/index.js +0 -101
- package/src/components/organisms/FullProductNamev2/styles.js +0 -49
- package/src/components/organisms/FullTabsMenuv2/FullTabsMenuv2.stories.js +0 -22
- package/src/components/organisms/FullTabsMenuv2/index.js +0 -142
- package/src/components/organisms/FullTabsMenuv2/styles.js +0 -47
- package/src/components/organisms/GridProducts/GridProducts.stories.js +0 -5485
- package/src/components/organisms/GridProducts/index.js +0 -50
- package/src/components/organisms/GridProducts/styles.js +0 -14
- package/src/components/organisms/GridProducts/utils.js +0 -111
- package/src/components/organisms/ImageDataTablev2/ImageDataTablev2.stories.js +0 -24
- package/src/components/organisms/ImageDataTablev2/index.js +0 -124
- package/src/components/organisms/ImageDataTablev2/styles.js +0 -18
- package/src/components/organisms/ImagePreviewerv2/ImagePreviewerv2.stories.js +0 -38
- package/src/components/organisms/ImagePreviewerv2/index.js +0 -22
- package/src/components/organisms/ImagePreviewerv2/styles.js +0 -7
- package/src/components/organisms/InputGroupv2/InputGroupv2.stories.js +0 -31
- package/src/components/organisms/InputGroupv2/index.js +0 -296
- package/src/components/organisms/InputGroupv2/styles.js +0 -90
- package/src/components/organisms/MandatoryBar/MandatoryBar.stories.js +0 -18
- package/src/components/organisms/MandatoryBar/index.js +0 -31
- package/src/components/organisms/MandatoryBar/styles.js +0 -12
- package/src/components/organisms/ProductImageModalv2/ProductImageModalv2.stories.js +0 -90
- package/src/components/organisms/ProductImageModalv2/index.js +0 -105
- package/src/components/organisms/ProductImageModalv2/styles.js +0 -71
- package/src/components/organisms/RenameImagesBar/RenameImagesBar.stories.js +0 -18
- package/src/components/organisms/RenameImagesBar/index.js +0 -30
- package/src/components/organisms/RenameImagesBar/styles.js +0 -12
- package/src/components/organisms/VersionSelectorv2/VersionSelectorv2.stories.js +0 -15
- package/src/components/organisms/VersionSelectorv2/index.js +0 -105
- package/src/components/organisms/VersionSelectorv2/styles.js +0 -45
- package/src/components/pages/ProductEditionv2/ProductEditionv2.stories.js +0 -213
- package/src/components/pages/ProductEditionv2/index.js +0 -1758
- package/src/components/pages/ProductEditionv2/styles.js +0 -154
|
@@ -39,10 +39,6 @@ import Slide1_4 from "../../../assets/images/sliderToolTip/slide4.svg";
|
|
|
39
39
|
import Slide1_5 from "../../../assets/images/sliderToolTip/slide5.svg";
|
|
40
40
|
import { VersionSelector } from "../../organisms/VersionSelector";
|
|
41
41
|
import { useCloseModal } from "../../../global-files/customHooks";
|
|
42
|
-
import { createMessage, sendMessage } from "../RetailerProductEdition/utils";
|
|
43
|
-
import { Modal } from "../../organisms/Modal";
|
|
44
|
-
import { ButtonV2 } from "../../atoms/ButtonV2";
|
|
45
|
-
import { Box } from "../../organisms/Box";
|
|
46
42
|
|
|
47
43
|
const reducerImages = (state, action) => {
|
|
48
44
|
let { values, attrForImgs, inputsByRetailer } = state;
|
|
@@ -82,26 +78,19 @@ const reducerImages = (state, action) => {
|
|
|
82
78
|
);
|
|
83
79
|
return { ...state, values };
|
|
84
80
|
case "orderImages": {
|
|
85
|
-
let {
|
|
86
|
-
inputsByRetailer = {},
|
|
87
|
-
valuesInitial,
|
|
88
|
-
inputsInitial,
|
|
89
|
-
inputs,
|
|
90
|
-
} = state;
|
|
81
|
+
let { inputsByRetailer, valuesInitial, inputsInitial, inputs } = state;
|
|
91
82
|
try {
|
|
92
83
|
const orderedImages = [];
|
|
93
84
|
const imageIdArray = [];
|
|
94
|
-
if (action?.retailerId && !inputsByRetailer[action.retailerId])
|
|
85
|
+
if (action?.retailerId && !inputsByRetailer[action.retailerId])
|
|
95
86
|
inputsByRetailer[action.retailerId] = [];
|
|
96
|
-
|
|
97
|
-
if (action.retailerId) {
|
|
87
|
+
action.retailerId &&
|
|
98
88
|
inputsByRetailer[action.retailerId]?.filter((input) => {
|
|
99
89
|
imageIdArray.push(input.id_image);
|
|
100
90
|
valuesInitial.forEach((value) => {
|
|
101
91
|
if (value.image_id === input.id_image) orderedImages.push(value);
|
|
102
92
|
});
|
|
103
93
|
});
|
|
104
|
-
}
|
|
105
94
|
|
|
106
95
|
inputs = inputsInitial?.filter((input) =>
|
|
107
96
|
imageIdArray.includes(input.id)
|
|
@@ -109,7 +98,7 @@ const reducerImages = (state, action) => {
|
|
|
109
98
|
|
|
110
99
|
values = orderedImages.length > 0 ? orderedImages : [];
|
|
111
100
|
} catch (error) {
|
|
112
|
-
console.log(
|
|
101
|
+
console.log(error);
|
|
113
102
|
}
|
|
114
103
|
return { ...state, values, inputs };
|
|
115
104
|
}
|
|
@@ -226,7 +215,6 @@ export const ProviderProductEdition = ({
|
|
|
226
215
|
const isRetailer = user?.is_retailer;
|
|
227
216
|
const [loading, setLoading] = useState(true);
|
|
228
217
|
const [validatedAll, setValidatedAll] = useState(false);
|
|
229
|
-
const [showRejectModal, setShowRejectModal] = useState(false);
|
|
230
218
|
|
|
231
219
|
const [origin, setOrigin] = useState({
|
|
232
220
|
"Ficha técnica": null,
|
|
@@ -356,6 +344,28 @@ export const ProviderProductEdition = ({
|
|
|
356
344
|
(type) => {
|
|
357
345
|
const formatter = new Intl.ListFormat("es", { type: "conjunction" });
|
|
358
346
|
switch (type) {
|
|
347
|
+
case "error":
|
|
348
|
+
setGlobalModal({
|
|
349
|
+
message: `${activeTab} rechazada`,
|
|
350
|
+
detail: "Agrega tu comentarios para enviar el rechazo",
|
|
351
|
+
img: errorModal,
|
|
352
|
+
textArea: true,
|
|
353
|
+
button1: {
|
|
354
|
+
name: "Enviar",
|
|
355
|
+
action: (e) => {
|
|
356
|
+
const textArea = document.querySelector("#area");
|
|
357
|
+
if (textArea.value) {
|
|
358
|
+
textArea.style.border = "none";
|
|
359
|
+
createComment(e, textArea.value);
|
|
360
|
+
showGlobalModal("commentsSent");
|
|
361
|
+
validatedAll ? validateAll("R") : sendEvaluation("R");
|
|
362
|
+
} else {
|
|
363
|
+
textArea.style.border = "2px solid red";
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
},
|
|
367
|
+
});
|
|
368
|
+
break;
|
|
359
369
|
case "generic":
|
|
360
370
|
setGlobalModal(dataGenericModal);
|
|
361
371
|
break;
|
|
@@ -492,20 +502,7 @@ export const ProviderProductEdition = ({
|
|
|
492
502
|
|
|
493
503
|
setImages({ action: "init", init: services[2] });
|
|
494
504
|
if (services[2]?.values?.length > 0) setActiveImage(0);
|
|
495
|
-
|
|
496
|
-
{
|
|
497
|
-
id_article: product.id_article,
|
|
498
|
-
id_category: product.id_category,
|
|
499
|
-
version: product.version,
|
|
500
|
-
id_retailer_array: (
|
|
501
|
-
product.retailersAvailable ?? product.retailers
|
|
502
|
-
).map(({ id }) => id),
|
|
503
|
-
},
|
|
504
|
-
];
|
|
505
|
-
const headers = { Authorization: token };
|
|
506
|
-
getPercentage({ data, headers }).then((res) => {
|
|
507
|
-
setPercentages(res[0]);
|
|
508
|
-
});
|
|
505
|
+
getPercentage({ data: [product] }).then((res) => setPercentages(res[0]));
|
|
509
506
|
setLoading(false);
|
|
510
507
|
};
|
|
511
508
|
|
|
@@ -529,9 +526,7 @@ export const ProviderProductEdition = ({
|
|
|
529
526
|
);
|
|
530
527
|
setServicesData(parsedResponse);
|
|
531
528
|
}
|
|
532
|
-
|
|
533
|
-
!activeRetailer.id &&
|
|
534
|
-
setActiveRetailer(active ? active : retailers[0]);
|
|
529
|
+
!activeRetailer.id && setActiveRetailer(active ? active : retailers[0]);
|
|
535
530
|
};
|
|
536
531
|
|
|
537
532
|
const isRevision = () => {
|
|
@@ -565,14 +560,12 @@ export const ProviderProductEdition = ({
|
|
|
565
560
|
};
|
|
566
561
|
|
|
567
562
|
const getCart = async () => {
|
|
568
|
-
const res = await axios.get(
|
|
563
|
+
const res = await axios.get(process.env.REACT_APP_CART, {
|
|
569
564
|
headers: {
|
|
570
565
|
Authorization: token,
|
|
571
566
|
},
|
|
572
567
|
});
|
|
573
|
-
const arr =
|
|
574
|
-
?.map((e) => e.article_id)
|
|
575
|
-
.filter(Boolean);
|
|
568
|
+
const arr = JSON.parse(res.data.body).data.map((e) => e.article_id);
|
|
576
569
|
setInCart(arr.some((e) => e.articleId === product.id_article));
|
|
577
570
|
};
|
|
578
571
|
|
|
@@ -609,7 +602,7 @@ export const ProviderProductEdition = ({
|
|
|
609
602
|
});
|
|
610
603
|
}
|
|
611
604
|
setProduct(productTemp);
|
|
612
|
-
|
|
605
|
+
setActivePercentage(retailers[0]?.percentage);
|
|
613
606
|
}, [percentages]);
|
|
614
607
|
|
|
615
608
|
const loadInputs = () => {
|
|
@@ -670,7 +663,7 @@ export const ProviderProductEdition = ({
|
|
|
670
663
|
value: e?.id,
|
|
671
664
|
name: e?.name,
|
|
672
665
|
required: e?.required,
|
|
673
|
-
active: images?.values
|
|
666
|
+
active: images?.values.some((value) => value?.image_id === e?.id),
|
|
674
667
|
}));
|
|
675
668
|
setSocketType(imageInputs);
|
|
676
669
|
}, [images]);
|
|
@@ -714,7 +707,7 @@ export const ProviderProductEdition = ({
|
|
|
714
707
|
attributeId,
|
|
715
708
|
value: valueOfAtribute,
|
|
716
709
|
boxId,
|
|
717
|
-
})
|
|
710
|
+
})
|
|
718
711
|
});
|
|
719
712
|
});
|
|
720
713
|
|
|
@@ -722,8 +715,8 @@ export const ProviderProductEdition = ({
|
|
|
722
715
|
articleId: product?.id_article,
|
|
723
716
|
articleData: updatedDatasheets,
|
|
724
717
|
...(parseBoxData.length > 0 && { boxData: parseBoxData }),
|
|
725
|
-
};
|
|
726
|
-
|
|
718
|
+
};
|
|
719
|
+
|
|
727
720
|
if (product?.orderId) dataObject["orderId"] = product?.orderId;
|
|
728
721
|
try {
|
|
729
722
|
const res = await axios.put(
|
|
@@ -742,7 +735,8 @@ export const ProviderProductEdition = ({
|
|
|
742
735
|
}
|
|
743
736
|
} catch (error) {
|
|
744
737
|
console.log(error);
|
|
745
|
-
}
|
|
738
|
+
}
|
|
739
|
+
console.log(dataObject)
|
|
746
740
|
};
|
|
747
741
|
|
|
748
742
|
const updateImages = useCallback(async () => {
|
|
@@ -868,21 +862,33 @@ export const ProviderProductEdition = ({
|
|
|
868
862
|
return "images";
|
|
869
863
|
}
|
|
870
864
|
};
|
|
871
|
-
|
|
872
865
|
|
|
873
|
-
const createComment = async (
|
|
866
|
+
const createComment = async (e, body, tab) => {
|
|
867
|
+
let concept = "";
|
|
868
|
+
switch (activeTab) {
|
|
869
|
+
case "Ficha técnica":
|
|
870
|
+
concept = "datasheet";
|
|
871
|
+
break;
|
|
872
|
+
case "Imágenes":
|
|
873
|
+
concept = "images";
|
|
874
|
+
break;
|
|
875
|
+
|
|
876
|
+
default:
|
|
877
|
+
concept = "description";
|
|
878
|
+
break;
|
|
879
|
+
}
|
|
874
880
|
const data = {
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
status: product.status || productEdit.product.status,
|
|
881
|
-
},
|
|
882
|
-
paramsHeader: { Authorization: token },
|
|
881
|
+
articleId: product?.id_article,
|
|
882
|
+
orderId: product?.orderId,
|
|
883
|
+
message: body,
|
|
884
|
+
concept: concept,
|
|
885
|
+
version: version,
|
|
883
886
|
};
|
|
884
|
-
|
|
885
|
-
|
|
887
|
+
await axios.post(`${process.env.REACT_APP_COMMENTS_ENDPOINT}`, data, {
|
|
888
|
+
headers: {
|
|
889
|
+
Authorization: token,
|
|
890
|
+
},
|
|
891
|
+
});
|
|
886
892
|
};
|
|
887
893
|
|
|
888
894
|
useEffect(() => {
|
|
@@ -1175,6 +1181,13 @@ export const ProviderProductEdition = ({
|
|
|
1175
1181
|
}
|
|
1176
1182
|
};
|
|
1177
1183
|
|
|
1184
|
+
|
|
1185
|
+
|
|
1186
|
+
|
|
1187
|
+
|
|
1188
|
+
|
|
1189
|
+
|
|
1190
|
+
|
|
1178
1191
|
const evaluationToRetailer = async (result) => {
|
|
1179
1192
|
const data = {
|
|
1180
1193
|
articleId: product.id_article,
|
|
@@ -1211,6 +1224,8 @@ export const ProviderProductEdition = ({
|
|
|
1211
1224
|
|
|
1212
1225
|
const enableActions = (versionStatus) => {
|
|
1213
1226
|
try {
|
|
1227
|
+
if (user.is_retailer) return false;
|
|
1228
|
+
|
|
1214
1229
|
if (versionStatus) {
|
|
1215
1230
|
return ["AP", "ACA", "RCA", null].includes(versionStatus);
|
|
1216
1231
|
}
|
|
@@ -1254,6 +1269,7 @@ export const ProviderProductEdition = ({
|
|
|
1254
1269
|
},
|
|
1255
1270
|
];
|
|
1256
1271
|
const sendToEvaluation = (result) => {
|
|
1272
|
+
console.log({ result });
|
|
1257
1273
|
if (result === "A") {
|
|
1258
1274
|
if (
|
|
1259
1275
|
origin[activeTab] === "RequestWithoutContentoh" &&
|
|
@@ -1293,7 +1309,8 @@ export const ProviderProductEdition = ({
|
|
|
1293
1309
|
return;
|
|
1294
1310
|
} else if (user.is_retailer) {
|
|
1295
1311
|
if (product.id_order || product.orderId) {
|
|
1296
|
-
|
|
1312
|
+
setValidatedAll(true);
|
|
1313
|
+
showGlobalModal("error");
|
|
1297
1314
|
} else {
|
|
1298
1315
|
setDataGenericModal((prev) => ({
|
|
1299
1316
|
...prev,
|
|
@@ -1305,7 +1322,8 @@ export const ProviderProductEdition = ({
|
|
|
1305
1322
|
showGlobalModal("generic");
|
|
1306
1323
|
}
|
|
1307
1324
|
} else {
|
|
1308
|
-
|
|
1325
|
+
setValidatedAll(true);
|
|
1326
|
+
showGlobalModal("error");
|
|
1309
1327
|
}
|
|
1310
1328
|
}
|
|
1311
1329
|
};
|
|
@@ -1315,7 +1333,6 @@ export const ProviderProductEdition = ({
|
|
|
1315
1333
|
<HeaderTop
|
|
1316
1334
|
setHeaderTop={setHeaderTop}
|
|
1317
1335
|
withChat={location?.state?.withChat}
|
|
1318
|
-
chatType={location?.state?.chatType}
|
|
1319
1336
|
productSelected={productSelected}
|
|
1320
1337
|
token={token}
|
|
1321
1338
|
activeRetailer={activeRetailer}
|
|
@@ -1394,7 +1411,7 @@ export const ProviderProductEdition = ({
|
|
|
1394
1411
|
} else if (user.is_retailer) {
|
|
1395
1412
|
if (product.id_order || product.orderId) {
|
|
1396
1413
|
setValidatedAll(true);
|
|
1397
|
-
|
|
1414
|
+
showGlobalModal("error");
|
|
1398
1415
|
} else {
|
|
1399
1416
|
setDataGenericModal((prev) => ({
|
|
1400
1417
|
...prev,
|
|
@@ -1406,14 +1423,12 @@ export const ProviderProductEdition = ({
|
|
|
1406
1423
|
showGlobalModal("generic");
|
|
1407
1424
|
}
|
|
1408
1425
|
} else {
|
|
1409
|
-
setShowRejectModal(true);
|
|
1410
1426
|
setValidatedAll(true);
|
|
1427
|
+
showGlobalModal("error");
|
|
1411
1428
|
}
|
|
1412
1429
|
}}
|
|
1413
1430
|
approve={() => sendToEvaluation("A")}
|
|
1414
|
-
reject={() =>
|
|
1415
|
-
setShowRejectModal(true);
|
|
1416
|
-
}}
|
|
1431
|
+
reject={() => sendToEvaluation("R")}
|
|
1417
1432
|
/>
|
|
1418
1433
|
<FullTabsMenu
|
|
1419
1434
|
tabsSections={tabsSections}
|
|
@@ -1516,7 +1531,6 @@ export const ProviderProductEdition = ({
|
|
|
1516
1531
|
setUpdatedDescriptions={setUpdatedDescriptions}
|
|
1517
1532
|
articleId={product?.id_article}
|
|
1518
1533
|
version={version}
|
|
1519
|
-
isShowbox={false}
|
|
1520
1534
|
dinamicHeight={true}
|
|
1521
1535
|
/>
|
|
1522
1536
|
) : (
|
|
@@ -1543,41 +1557,87 @@ export const ProviderProductEdition = ({
|
|
|
1543
1557
|
</>
|
|
1544
1558
|
)}
|
|
1545
1559
|
</div>
|
|
1546
|
-
{
|
|
1547
|
-
<div className="
|
|
1548
|
-
|
|
1549
|
-
<
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
<
|
|
1560
|
-
|
|
1561
|
-
|
|
1560
|
+
{isRevision() && getSectionStatus() ? (
|
|
1561
|
+
<div className="commentary-box">
|
|
1562
|
+
{!comment ? (
|
|
1563
|
+
<div className="commentary">
|
|
1564
|
+
<TagAndInput
|
|
1565
|
+
label={"Caja de Comentario"}
|
|
1566
|
+
inputType={"textarea"}
|
|
1567
|
+
inputCols={80}
|
|
1568
|
+
inputRows={4}
|
|
1569
|
+
inputId={"commentary-box"}
|
|
1570
|
+
index={0}
|
|
1571
|
+
/>
|
|
1572
|
+
<div className="buttons-box">
|
|
1573
|
+
<Button
|
|
1574
|
+
buttonType={"general-transparent-button"}
|
|
1575
|
+
label={"Enviar comentario"}
|
|
1576
|
+
onClick={(e) =>
|
|
1577
|
+
createComment(
|
|
1578
|
+
e,
|
|
1579
|
+
document.querySelector(
|
|
1580
|
+
"#description-commentary-box-0 .ql-container .ql-editor > p"
|
|
1581
|
+
).innerHTML,
|
|
1582
|
+
activeTab
|
|
1583
|
+
)
|
|
1584
|
+
}
|
|
1585
|
+
/>
|
|
1586
|
+
</div>
|
|
1587
|
+
</div>
|
|
1562
1588
|
) : (
|
|
1563
|
-
|
|
1564
|
-
<
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
iconSize={"big-image"}
|
|
1568
|
-
slidePosition={"top-slide"}
|
|
1589
|
+
<div className="feedback-box">
|
|
1590
|
+
<Commentary
|
|
1591
|
+
comment={comment.message}
|
|
1592
|
+
reviewed={crossComment}
|
|
1569
1593
|
/>
|
|
1570
1594
|
<Button
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1595
|
+
buttonType={"circular-button accept-button"}
|
|
1596
|
+
onClick={async () => {
|
|
1597
|
+
setCrossComment(true);
|
|
1598
|
+
commentRevised();
|
|
1574
1599
|
}}
|
|
1575
|
-
buttonType="general-default-button"
|
|
1576
|
-
label="Enviar a Content-oh!"
|
|
1577
1600
|
/>
|
|
1578
|
-
|
|
1601
|
+
</div>
|
|
1579
1602
|
)}
|
|
1580
1603
|
</div>
|
|
1604
|
+
) : (
|
|
1605
|
+
!revision && (
|
|
1606
|
+
<div className="required-inputs-message">
|
|
1607
|
+
<div>
|
|
1608
|
+
<p>
|
|
1609
|
+
Los atributos son requeridos por las plataformas de las
|
|
1610
|
+
cadenas, es muy importante completar los campos requeridos
|
|
1611
|
+
ya que pueden rechazar el producto por falta de información.
|
|
1612
|
+
</p>
|
|
1613
|
+
</div>
|
|
1614
|
+
{inCart ? (
|
|
1615
|
+
<button type="button">
|
|
1616
|
+
<Link to="/checkout">
|
|
1617
|
+
<p>Articulo en carrito</p>
|
|
1618
|
+
<p>Ir a checkout</p>
|
|
1619
|
+
</Link>
|
|
1620
|
+
</button>
|
|
1621
|
+
) : (
|
|
1622
|
+
<>
|
|
1623
|
+
<SliderToolTip
|
|
1624
|
+
infoIcon={InfoIcon}
|
|
1625
|
+
slidefront={slidefront}
|
|
1626
|
+
iconSize={"big-image"}
|
|
1627
|
+
slidePosition={"top-slide"}
|
|
1628
|
+
/>
|
|
1629
|
+
<Button
|
|
1630
|
+
onClick={() => {
|
|
1631
|
+
setShowContentohRequestModal &&
|
|
1632
|
+
setShowContentohRequestModal(true);
|
|
1633
|
+
}}
|
|
1634
|
+
buttonType="general-default-button"
|
|
1635
|
+
label="Enviar a Content-oh!"
|
|
1636
|
+
/>
|
|
1637
|
+
</>
|
|
1638
|
+
)}
|
|
1639
|
+
</div>
|
|
1640
|
+
)
|
|
1581
1641
|
)}
|
|
1582
1642
|
</div>
|
|
1583
1643
|
</div>
|
|
@@ -1620,48 +1680,6 @@ export const ProviderProductEdition = ({
|
|
|
1620
1680
|
jwt={token}
|
|
1621
1681
|
/>
|
|
1622
1682
|
)}
|
|
1623
|
-
{showRejectModal && (
|
|
1624
|
-
<Modal
|
|
1625
|
-
title={"Agregar mensaje de rechazo"}
|
|
1626
|
-
show={showRejectModal}
|
|
1627
|
-
customComponent={
|
|
1628
|
-
<TagAndInput
|
|
1629
|
-
inputType={"textarea"}
|
|
1630
|
-
inputId={"modal-message-box"}
|
|
1631
|
-
index={0}
|
|
1632
|
-
color={"white"}
|
|
1633
|
-
/>
|
|
1634
|
-
}
|
|
1635
|
-
buttons={[
|
|
1636
|
-
<ButtonV2
|
|
1637
|
-
key={"btn-Cancelar"}
|
|
1638
|
-
type={"white"}
|
|
1639
|
-
label={"Cancelar"}
|
|
1640
|
-
size={12}
|
|
1641
|
-
onClick={() => {
|
|
1642
|
-
setShowRejectModal(false);
|
|
1643
|
-
}}
|
|
1644
|
-
/>,
|
|
1645
|
-
<ButtonV2
|
|
1646
|
-
key={"btn-Aceptar"}
|
|
1647
|
-
type={"pink"}
|
|
1648
|
-
label={"Aceptar"}
|
|
1649
|
-
size={12}
|
|
1650
|
-
onClick={async () => {
|
|
1651
|
-
const body = document.querySelector(
|
|
1652
|
-
"#modal-message-box .ql-container .ql-editor > p"
|
|
1653
|
-
).innerHTML;
|
|
1654
|
-
const messages = [
|
|
1655
|
-
{ type: "message", value: body?.replace(/<.*?\/?>/gm, "") },
|
|
1656
|
-
];
|
|
1657
|
-
await createComment(messages, activeRetailer.id);
|
|
1658
|
-
validatedAll ? validateAll("R") : sendToEvaluation("R");
|
|
1659
|
-
setShowRejectModal(false);
|
|
1660
|
-
}}
|
|
1661
|
-
/>,
|
|
1662
|
-
]}
|
|
1663
|
-
/>
|
|
1664
|
-
)}
|
|
1665
1683
|
</Container>
|
|
1666
1684
|
);
|
|
1667
1685
|
};
|
|
@@ -107,10 +107,6 @@ export const Container = styled.div`
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
#modal-message-box {
|
|
111
|
-
width: 400px;
|
|
112
|
-
height: 100px;
|
|
113
|
-
}
|
|
114
110
|
.container {
|
|
115
111
|
width: 100%;
|
|
116
112
|
height: 100%;
|
|
@@ -119,4 +115,4 @@ export const Container = styled.div`
|
|
|
119
115
|
width: 100%;
|
|
120
116
|
}
|
|
121
117
|
}
|
|
122
|
-
`;
|
|
118
|
+
`;
|
|
@@ -16,64 +16,64 @@ RetailerProductEditionDefault.args = {
|
|
|
16
16
|
Imágenes: false,
|
|
17
17
|
},
|
|
18
18
|
token:
|
|
19
|
-
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
19
|
+
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI5YTIxMzEyOC02NDgyLTRjMTYtYTRiNi02ZTY0ZjIyNWIxYmQiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6IjlhMjEzMTI4LTY0ODItNGMxNi1hNGI2LTZlNjRmMjI1YjFiZCIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiI0OTMyY2JhZC1lYzcyLTRjYWItODgyNS0wMzY2M2RkNmE2ODIiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY5Mjc1MDY0NywibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY5Mjc1NDI0NywiaWF0IjoxNjkyNzUwNjQ3LCJlbWFpbCI6ImlzbWFlbDk3bG9wZXpAZ21haWwuY29tIn0.eqOY-gcS-W99WcEC632Ewckcg3WJzKoV9fIGcn1AkEE44_odGTcEk8fhVs-6_evIJkfShQOP0RFX0d2Dn31F-xFh5Lez6LvbT9F41_rAmMb3ELyRvdcz42V4eMw2IBH-FGrpGhSsJOHKV2T3WuUyZxPJu-C04ZAadfFSoNBBWnxX6SFk_eefcp9KghNmnELSSnWDh6DD1XDrWqEaLOVlQ5H7q4ARJqBo07KcXHIQo056anVud-inUMiX9KDTaorXdBCD0doWgv8NkYWSEpUS_Ctj-NG6vAled9g-6oLnC6DLR_ay6PRnAKGVNCv8bRZJL0GqF8ZnWk02svDHfUPJ0Q",
|
|
20
20
|
productSelected: {
|
|
21
|
-
orderId: 15190,
|
|
22
|
-
status: "RA",
|
|
23
|
-
datasheet_status: "NS",
|
|
24
|
-
prio: "none",
|
|
25
|
-
version: 3,
|
|
26
|
-
description_status: "NS",
|
|
27
|
-
images_status: "RA",
|
|
28
|
-
brand: null,
|
|
29
|
-
retailerOrder: 0,
|
|
30
|
-
missing: {
|
|
31
|
-
datasheet: null,
|
|
32
|
-
descriptions: null,
|
|
33
|
-
images: null,
|
|
34
|
-
},
|
|
35
21
|
services: {
|
|
36
|
-
datasheets:
|
|
37
|
-
descriptions:
|
|
22
|
+
datasheets: 1,
|
|
23
|
+
descriptions: 1,
|
|
38
24
|
images: 1,
|
|
39
25
|
},
|
|
26
|
+
orderId: 15275,
|
|
27
|
+
status: "AC",
|
|
28
|
+
datasheet_status: "AC",
|
|
29
|
+
prio: "none",
|
|
30
|
+
version: 3,
|
|
31
|
+
description_status: "AC",
|
|
32
|
+
images_status: "AC",
|
|
33
|
+
statusByRetailer: {
|
|
34
|
+
34: {
|
|
35
|
+
datasheet: "AC",
|
|
36
|
+
description: "AC",
|
|
37
|
+
images: "AC",
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
40
|
article: {
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
id_article: 39485,
|
|
42
|
+
id_category: "11",
|
|
43
|
+
name: "Mix de nueces",
|
|
44
|
+
upc: "7543453453",
|
|
45
|
+
timestamp: "2023-07-14T21:02:54.000Z",
|
|
46
|
+
id_user: 28,
|
|
47
|
+
status: "NULL",
|
|
48
|
+
active: 1,
|
|
49
|
+
company_id: 1,
|
|
43
50
|
company_name: "GRUPO BRAHMA",
|
|
44
51
|
country: "México",
|
|
45
|
-
|
|
46
|
-
id_datasheet_especialist:
|
|
47
|
-
id_datasheet_facilitator:
|
|
48
|
-
id_description_especialist:
|
|
49
|
-
id_description_facilitator:
|
|
52
|
+
id_order: 15275,
|
|
53
|
+
id_datasheet_especialist: 54,
|
|
54
|
+
id_datasheet_facilitator: 52,
|
|
55
|
+
id_description_especialist: 54,
|
|
56
|
+
id_description_facilitator: 52,
|
|
50
57
|
id_images_especialist: 55,
|
|
51
58
|
id_images_facilitator: 53,
|
|
52
|
-
id_order: 15190,
|
|
53
|
-
id_article: 39364,
|
|
54
59
|
id_auditor: 37,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
60
|
+
id_recepcionist: null,
|
|
61
|
+
category: "Abarrotes|Abarrotes Secos|Frutos Secos",
|
|
62
|
+
missingAttributes: 0,
|
|
63
|
+
missingDescriptions: 0,
|
|
64
|
+
missingImages: 0,
|
|
58
65
|
},
|
|
59
66
|
retailers: [
|
|
60
67
|
{
|
|
61
|
-
id:
|
|
62
|
-
name: "
|
|
68
|
+
id: 34,
|
|
69
|
+
name: "San Pablo",
|
|
63
70
|
},
|
|
64
71
|
],
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
images: "RA/AC",
|
|
68
|
-
},
|
|
69
|
-
},
|
|
72
|
+
country: "México",
|
|
73
|
+
upc: "7543453453",
|
|
70
74
|
},
|
|
71
75
|
location: {
|
|
72
|
-
product: { articleId:
|
|
73
|
-
state: {
|
|
74
|
-
withChat: true,
|
|
75
|
-
chatType: "product_status",
|
|
76
|
-
},
|
|
76
|
+
product: { articleId: 39290, versionId: 7 },
|
|
77
77
|
},
|
|
78
78
|
user: {
|
|
79
79
|
id_user: 37,
|
|
@@ -83,7 +83,7 @@ RetailerProductEditionDefault.args = {
|
|
|
83
83
|
position: "Auditor",
|
|
84
84
|
telephone: "",
|
|
85
85
|
country: "México",
|
|
86
|
-
id_company:
|
|
86
|
+
id_company: 2,
|
|
87
87
|
id_cognito: "9a213128-6482-4c16-a4b6-6e64f225b1bd",
|
|
88
88
|
birth_Date: null,
|
|
89
89
|
about_me: "",
|
|
@@ -97,16 +97,16 @@ RetailerProductEditionDefault.args = {
|
|
|
97
97
|
email_notify: 1,
|
|
98
98
|
is_user_tech: null,
|
|
99
99
|
membership: {
|
|
100
|
-
id:
|
|
101
|
-
start_date: "
|
|
102
|
-
end_date: "
|
|
103
|
-
planID:
|
|
104
|
-
plan: "
|
|
105
|
-
name: "Plan
|
|
106
|
-
user_limit: "
|
|
107
|
-
products_limit: "
|
|
108
|
-
type: "
|
|
100
|
+
id: 2,
|
|
101
|
+
start_date: "2021-11-05T02:35:12.000Z",
|
|
102
|
+
end_date: "2022-11-05T02:34:49.000Z",
|
|
103
|
+
planID: 1,
|
|
104
|
+
plan: "prod_KtkvuFFLpOdP6e",
|
|
105
|
+
name: "Plan Free",
|
|
106
|
+
user_limit: "1",
|
|
107
|
+
products_limit: "3",
|
|
108
|
+
type: "PyMES",
|
|
109
109
|
},
|
|
110
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-37/37.png?
|
|
110
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-37/37.png?1692750648813",
|
|
111
111
|
},
|
|
112
112
|
};
|