contentoh-components-library 21.2.14 → 21.2.17
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/GeneralInput/index.js +3 -1
- package/dist/components/molecules/TagAndInput/index.js +3 -1
- package/dist/components/organisms/InputGroup/index.js +2 -0
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +195 -53
- package/dist/components/pages/RetailerProductEdition/index.js +4 -4
- package/package.json +1 -1
- package/src/components/atoms/GeneralInput/index.js +2 -0
- package/src/components/molecules/TagAndInput/index.js +2 -0
- package/src/components/organisms/InputGroup/index.js +2 -0
- package/src/components/pages/ProviderProductEdition/index.js +0 -1
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +497 -52
- package/src/components/pages/RetailerProductEdition/index.js +4 -3
- package/dist/components/atoms/ListCommercialRetailers/ListCommercialRetailers.stories.js +0 -36
- package/dist/components/atoms/ListCommercialRetailers/index.js +0 -64
- package/dist/components/atoms/ListCommercialRetailers/styles.js +0 -20
- package/dist/components/atoms/MenuCommercialRetailers/MenuCommercialRetailers.stories.js +0 -37
- package/dist/components/atoms/MenuCommercialRetailers/index.js +0 -25
- package/dist/components/atoms/MenuCommercialRetailers/styles.js +0 -20
- package/dist/components/atoms/MenuProductImage/MenuProductImage.stories.js +0 -28
- package/dist/components/atoms/MenuProductImage/index.js +0 -88
- package/dist/components/atoms/MenuProductImage/styles.js +0 -20
- package/dist/components/molecules/ApproveRejetPanel/ApproveRejetPanel.stories.js +0 -25
- package/dist/components/molecules/ApproveRejetPanel/index.js +0 -49
- package/dist/components/molecules/ApproveRejetPanel/styles.js +0 -18
- package/dist/components/molecules/SignInLoginCreationApp/SignInLogin.stories.js +0 -28
- package/dist/components/molecules/SignInLoginCreationApp/index.js +0 -270
- package/dist/components/molecules/SignInLoginCreationApp/styles.js +0 -20
|
@@ -40,7 +40,8 @@ var GeneralInput = function GeneralInput(_ref) {
|
|
|
40
40
|
_ref$optionList = _ref.optionList,
|
|
41
41
|
optionList = _ref$optionList === void 0 ? [] : _ref$optionList,
|
|
42
42
|
description = _ref.description,
|
|
43
|
-
inputOnChange = _ref.inputOnChange
|
|
43
|
+
inputOnChange = _ref.inputOnChange,
|
|
44
|
+
disabled = _ref.disabled;
|
|
44
45
|
|
|
45
46
|
var _useState = (0, _react.useState)({
|
|
46
47
|
value: inputValue
|
|
@@ -137,6 +138,7 @@ var GeneralInput = function GeneralInput(_ref) {
|
|
|
137
138
|
defaultChecked: textValue.value === "true" ? true : false
|
|
138
139
|
}) : inputType !== "textarea" ? /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
139
140
|
type: inputType,
|
|
141
|
+
disabled: disabled,
|
|
140
142
|
id: inputId,
|
|
141
143
|
size: inputSize,
|
|
142
144
|
className: "general-input",
|
|
@@ -35,7 +35,8 @@ var TagAndInput = function TagAndInput(_ref) {
|
|
|
35
35
|
optionList = _ref.optionList,
|
|
36
36
|
description = _ref.description,
|
|
37
37
|
inputOnChange = _ref.inputOnChange,
|
|
38
|
-
color = _ref.color
|
|
38
|
+
color = _ref.color,
|
|
39
|
+
disabled = _ref.disabled;
|
|
39
40
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
40
41
|
inputType: inputType,
|
|
41
42
|
className: "input-container",
|
|
@@ -54,6 +55,7 @@ var TagAndInput = function TagAndInput(_ref) {
|
|
|
54
55
|
inputType: inputType,
|
|
55
56
|
inputValue: value,
|
|
56
57
|
index: index,
|
|
58
|
+
disabled: disabled,
|
|
57
59
|
isRequired: isRequired,
|
|
58
60
|
inputPlaceholder: inputPlaceHolder,
|
|
59
61
|
updatedDescriptions: updatedDescriptions,
|
|
@@ -53,6 +53,8 @@ var InputGroup = function InputGroup(_ref) {
|
|
|
53
53
|
var _dataInputs$input, _dataInputs$input2, _dataInputs$input3, _dataInputs$input4, _dataInputs$input5, _dataInputs$input6, _dataInputs$input7, _dataInputs$input8, _dataInputs$input9, _dataInputs$input10, _dataInputs$input11, _dataInputs$input12;
|
|
54
54
|
|
|
55
55
|
return activeSection === "Ficha técnica" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
56
|
+
//disabled={input === 40001}
|
|
57
|
+
disabled: false,
|
|
56
58
|
inputId: (_dataInputs$input3 = dataInputs[input]) === null || _dataInputs$input3 === void 0 ? void 0 : _dataInputs$input3.id,
|
|
57
59
|
version: version,
|
|
58
60
|
inputType: inputTypeValue((_dataInputs$input4 = dataInputs[input]) === null || _dataInputs$input4 === void 0 ? void 0 : _dataInputs$input4.type),
|
|
@@ -31,55 +31,197 @@ RetailerProductEditionDefault.args = {
|
|
|
31
31
|
"Ficha técnica": false,
|
|
32
32
|
Imágenes: false
|
|
33
33
|
},
|
|
34
|
-
token: "
|
|
34
|
+
token: "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJjN2U1YTZhNC0yYjNmLTRkNTQtYWY5OC05ZTA5YTRjYmMwMWUiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwiY29nbml0bzp1c2VybmFtZSI6ImM3ZTVhNmE0LTJiM2YtNGQ1NC1hZjk4LTllMDlhNGNiYzAxZSIsImF1ZCI6IjUyZDlza2tkY2c4cWpwODhvb2sxdXNlNm1rIiwiZXZlbnRfaWQiOiIyYjcyOTIzYS04MWMzLTQ0NTYtODE1ZC1kMzI5ZWVkMDRmZmMiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY2MTg5ODYzNSwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY2MTkwMjIzNSwiaWF0IjoxNjYxODk4NjM1LCJlbWFpbCI6Imtpa2lqZTE0NjdAbXRsY3ouY29tIn0.EcQE9cjvjfyl4JlNVh57wlvDAxem7glTCJwZNLHs-oZj1Q0M_Sg1h24ISsES1WD_OjNaYjub46xU3rNH-i3IgA386H4hC3cfXzAkc82dxkhEcaRcUrAC9q8HUmoxT70XQpY40L2h2-DMjVm9Ka8C2JsFsgxVe-ulH2SpAXHk8Lt60qGYwoAdupP5jtJXBVMQKLKkWceAYrckWl-3AMq6uJLciB30zVQxMxjQ0EF8ZpldGDV8ypurZ2HkEtBZudepo2spBYj50L1IJ8oE-bBujcauOEzHw7kHFtBoL0W4xsjcBGiH9ejV7ULoWPO7AJr8MTZh1CVGkAYs1LmCWDAuHw",
|
|
35
35
|
productSelected: {
|
|
36
36
|
services: {
|
|
37
|
-
datasheets:
|
|
38
|
-
descriptions:
|
|
37
|
+
datasheets: 0,
|
|
38
|
+
descriptions: 0,
|
|
39
39
|
images: 1
|
|
40
40
|
},
|
|
41
|
-
orderId:
|
|
42
|
-
status: "
|
|
43
|
-
datasheet_status: "
|
|
41
|
+
orderId: 2612,
|
|
42
|
+
status: "CA",
|
|
43
|
+
datasheet_status: "NS",
|
|
44
44
|
prio: "none",
|
|
45
45
|
version: 2,
|
|
46
|
-
description_status: "
|
|
47
|
-
images_status: "
|
|
46
|
+
description_status: "NS",
|
|
47
|
+
images_status: "IE",
|
|
48
48
|
article: {
|
|
49
|
-
id_article:
|
|
50
|
-
id_category: "
|
|
51
|
-
name: "
|
|
52
|
-
upc: "
|
|
53
|
-
timestamp: "2022-
|
|
54
|
-
id_user:
|
|
49
|
+
id_article: 79732,
|
|
50
|
+
id_category: "42",
|
|
51
|
+
name: "Bolos Naviesferas 6p 96g Bolsa RIC",
|
|
52
|
+
upc: "7500810012130",
|
|
53
|
+
timestamp: "2022-08-22T19:34:16.000Z",
|
|
54
|
+
id_user: 467,
|
|
55
55
|
status: "NULL",
|
|
56
56
|
active: 1,
|
|
57
|
-
company_id:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
57
|
+
company_id: 229,
|
|
58
|
+
SKU: null,
|
|
59
|
+
Descripcion: null,
|
|
60
|
+
Proveedor: null,
|
|
61
|
+
id_proveedor: 0,
|
|
62
|
+
company_name: "BIMBO SA DE CV",
|
|
63
|
+
country: null,
|
|
64
|
+
id_order: 2612,
|
|
65
|
+
id_datasheet_especialist: null,
|
|
66
|
+
id_datasheet_facilitator: null,
|
|
67
|
+
id_description_especialist: null,
|
|
68
|
+
id_description_facilitator: null,
|
|
69
|
+
id_images_especialist: 427,
|
|
70
|
+
id_images_facilitator: 160,
|
|
71
|
+
id_auditor: 9,
|
|
68
72
|
id_recepcionist: null,
|
|
69
|
-
category: "
|
|
70
|
-
missingAttributes:
|
|
71
|
-
missingDescriptions:
|
|
72
|
-
missingImages:
|
|
73
|
+
category: "Abarrotes|Botanas, Golosinas y Chocolates|Confitería",
|
|
74
|
+
missingAttributes: 208,
|
|
75
|
+
missingDescriptions: 9,
|
|
76
|
+
missingImages: 8
|
|
73
77
|
},
|
|
74
78
|
retailers: [{
|
|
75
|
-
id:
|
|
76
|
-
name: "Walmart
|
|
79
|
+
id: 4,
|
|
80
|
+
name: "Walmart Super y Superama",
|
|
81
|
+
country: "México",
|
|
82
|
+
id_region: 1,
|
|
83
|
+
active: 1,
|
|
84
|
+
percentage: 37.5,
|
|
85
|
+
image: "https://content-management-images.s3.amazonaws.com/retailers/4.png",
|
|
86
|
+
services: ["IE", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA"]
|
|
87
|
+
}, {
|
|
88
|
+
id: 5,
|
|
89
|
+
name: "Chedraui",
|
|
90
|
+
country: "México",
|
|
91
|
+
id_region: 1,
|
|
92
|
+
active: 1,
|
|
93
|
+
percentage: 35.29411764705882,
|
|
94
|
+
image: "https://content-management-images.s3.amazonaws.com/retailers/5.png",
|
|
95
|
+
services: ["NA", "CA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA"]
|
|
96
|
+
}, {
|
|
97
|
+
id: 6,
|
|
98
|
+
name: "HEB",
|
|
99
|
+
country: "México",
|
|
100
|
+
id_region: 1,
|
|
101
|
+
active: 1,
|
|
102
|
+
percentage: 38.46153846153846,
|
|
103
|
+
image: "https://content-management-images.s3.amazonaws.com/retailers/6.png",
|
|
104
|
+
services: ["NA", "NA", "CA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA"]
|
|
105
|
+
}, {
|
|
106
|
+
id: 9,
|
|
107
|
+
name: "Amazon",
|
|
108
|
+
country: "México",
|
|
109
|
+
id_region: 1,
|
|
110
|
+
active: 1,
|
|
111
|
+
percentage: 34.72222222222222,
|
|
112
|
+
image: "https://content-management-images.s3.amazonaws.com/retailers/9.png",
|
|
113
|
+
services: ["NA", "NA", "NA", "CA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA"]
|
|
114
|
+
}, {
|
|
115
|
+
id: 13,
|
|
116
|
+
name: "Soriana",
|
|
117
|
+
country: "México",
|
|
118
|
+
id_region: 1,
|
|
119
|
+
active: 1,
|
|
120
|
+
percentage: 40,
|
|
121
|
+
image: "https://content-management-images.s3.amazonaws.com/retailers/13.png",
|
|
122
|
+
services: ["NA", "NA", "NA", "NA", "CA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA"]
|
|
123
|
+
}, {
|
|
124
|
+
id: 16,
|
|
125
|
+
name: "Rappi",
|
|
126
|
+
country: "México",
|
|
127
|
+
id_region: 1,
|
|
128
|
+
active: 1,
|
|
129
|
+
percentage: 36.666666666666664,
|
|
130
|
+
image: "https://content-management-images.s3.amazonaws.com/retailers/16.png",
|
|
131
|
+
services: ["NA", "NA", "NA", "NA", "NA", "CA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA"]
|
|
132
|
+
}, {
|
|
133
|
+
id: 17,
|
|
134
|
+
name: "Genérico",
|
|
135
|
+
country: "México",
|
|
136
|
+
id_region: 1,
|
|
137
|
+
active: 1,
|
|
138
|
+
percentage: 34.78260869565217,
|
|
139
|
+
image: "https://content-management-images.s3.amazonaws.com/retailers/17.png",
|
|
140
|
+
services: ["NA", "NA", "NA", "NA", "NA", "NA", "CA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA"]
|
|
141
|
+
}, {
|
|
142
|
+
id: 24,
|
|
143
|
+
name: "Alsuper",
|
|
77
144
|
country: "México",
|
|
78
145
|
id_region: 1,
|
|
79
|
-
active: 1
|
|
146
|
+
active: 1,
|
|
147
|
+
percentage: 37.5,
|
|
148
|
+
image: "https://content-management-images.s3.amazonaws.com/retailers/24.png",
|
|
149
|
+
services: ["NA", "NA", "NA", "NA", "NA", "NA", "NA", "CA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA"]
|
|
150
|
+
}, {
|
|
151
|
+
id: 25,
|
|
152
|
+
name: "Merqueo(México)",
|
|
153
|
+
country: "México",
|
|
154
|
+
id_region: 1,
|
|
155
|
+
active: 1,
|
|
156
|
+
percentage: 100,
|
|
157
|
+
image: "https://content-management-images.s3.amazonaws.com/retailers/25.png",
|
|
158
|
+
services: ["NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "CA", "NA", "NA", "NA", "NA", "NA", "NA", "NA"]
|
|
159
|
+
}, {
|
|
160
|
+
id: 28,
|
|
161
|
+
name: "Farmacias Benavides",
|
|
162
|
+
country: "México",
|
|
163
|
+
id_region: 1,
|
|
164
|
+
active: 1,
|
|
165
|
+
percentage: 100,
|
|
166
|
+
image: "https://content-management-images.s3.amazonaws.com/retailers/28.png",
|
|
167
|
+
services: ["NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "CA", "NA", "NA", "NA", "NA", "NA", "NA"]
|
|
168
|
+
}, {
|
|
169
|
+
id: 39,
|
|
170
|
+
name: "Justo",
|
|
171
|
+
country: "México",
|
|
172
|
+
id_region: 1,
|
|
173
|
+
active: 1,
|
|
174
|
+
percentage: 35.416666666666664,
|
|
175
|
+
image: "https://content-management-images.s3.amazonaws.com/retailers/39.png",
|
|
176
|
+
services: ["NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "CA", "NA", "NA", "NA", "NA", "NA"]
|
|
177
|
+
}, {
|
|
178
|
+
id: 44,
|
|
179
|
+
name: "Calimax",
|
|
180
|
+
country: "México",
|
|
181
|
+
id_region: 1,
|
|
182
|
+
active: 1,
|
|
183
|
+
percentage: 100,
|
|
184
|
+
image: "https://content-management-images.s3.amazonaws.com/retailers/44.png",
|
|
185
|
+
services: ["NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "CA", "NA", "NA", "NA", "NA"]
|
|
186
|
+
}, {
|
|
187
|
+
id: 45,
|
|
188
|
+
name: "Casa Ley",
|
|
189
|
+
country: "México",
|
|
190
|
+
id_region: 1,
|
|
191
|
+
active: 1,
|
|
192
|
+
percentage: 100,
|
|
193
|
+
image: "https://content-management-images.s3.amazonaws.com/retailers/45.png",
|
|
194
|
+
services: ["NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "CA", "NA", "NA", "NA"]
|
|
195
|
+
}, {
|
|
196
|
+
id: 46,
|
|
197
|
+
name: "S-Mart",
|
|
198
|
+
country: "México",
|
|
199
|
+
id_region: 1,
|
|
200
|
+
active: 1,
|
|
201
|
+
percentage: 100,
|
|
202
|
+
image: "https://content-management-images.s3.amazonaws.com/retailers/46.png",
|
|
203
|
+
services: ["NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "CA", "NA", "NA"]
|
|
204
|
+
}, {
|
|
205
|
+
id: 56,
|
|
206
|
+
name: "JOKR",
|
|
207
|
+
country: "Mexico",
|
|
208
|
+
id_region: 1,
|
|
209
|
+
active: 1,
|
|
210
|
+
percentage: 100,
|
|
211
|
+
image: "https://content-management-images.s3.amazonaws.com/retailers/56.png",
|
|
212
|
+
services: ["NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "CA", "NA"]
|
|
213
|
+
}, {
|
|
214
|
+
id: 65,
|
|
215
|
+
name: "Súper Aki",
|
|
216
|
+
country: "México",
|
|
217
|
+
id_region: 1,
|
|
218
|
+
active: 1,
|
|
219
|
+
percentage: 100,
|
|
220
|
+
image: "https://content-management-images.s3.amazonaws.com/retailers/65.png",
|
|
221
|
+
services: ["NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "CA"]
|
|
80
222
|
}],
|
|
81
|
-
country:
|
|
82
|
-
upc: "
|
|
223
|
+
country: null,
|
|
224
|
+
upc: "7500810012130"
|
|
83
225
|
},
|
|
84
226
|
location: {
|
|
85
227
|
product: {
|
|
@@ -88,36 +230,36 @@ RetailerProductEditionDefault.args = {
|
|
|
88
230
|
}
|
|
89
231
|
},
|
|
90
232
|
user: {
|
|
91
|
-
id_user:
|
|
92
|
-
name: "
|
|
93
|
-
last_name: "
|
|
94
|
-
email: "
|
|
95
|
-
position:
|
|
233
|
+
id_user: 427,
|
|
234
|
+
name: "Especialista Edición",
|
|
235
|
+
last_name: " ",
|
|
236
|
+
email: "kikije1467@mtlcz.com",
|
|
237
|
+
position: "Tester",
|
|
96
238
|
telephone: null,
|
|
97
239
|
country: null,
|
|
98
|
-
id_company:
|
|
99
|
-
id_cognito: "
|
|
240
|
+
id_company: 254,
|
|
241
|
+
id_cognito: "c7e5a6a4-2b3f-4d54-af98-9e09a4cbc01e",
|
|
100
242
|
birth_Date: null,
|
|
101
243
|
about_me: null,
|
|
102
244
|
zip_code: null,
|
|
103
245
|
address: null,
|
|
104
246
|
job: null,
|
|
105
247
|
id_stripe: null,
|
|
106
|
-
id_role:
|
|
248
|
+
id_role: 8,
|
|
107
249
|
active: 1,
|
|
108
250
|
is_retailer: 0,
|
|
109
|
-
email_notify:
|
|
251
|
+
email_notify: null,
|
|
110
252
|
membership: {
|
|
111
|
-
id:
|
|
112
|
-
start_date: "
|
|
113
|
-
end_date: "
|
|
114
|
-
planID:
|
|
115
|
-
plan: "
|
|
116
|
-
name: "Plan
|
|
117
|
-
user_limit: "
|
|
118
|
-
products_limit: "
|
|
119
|
-
type: "
|
|
253
|
+
id: 750,
|
|
254
|
+
start_date: "2022-01-07T21:32:54.000Z",
|
|
255
|
+
end_date: "2023-01-07T21:32:54.000Z",
|
|
256
|
+
planID: 6,
|
|
257
|
+
plan: "prod_KvGd6YSTJyR3AP",
|
|
258
|
+
name: "Plan Small",
|
|
259
|
+
user_limit: "10",
|
|
260
|
+
products_limit: "1000",
|
|
261
|
+
type: "Enterprise"
|
|
120
262
|
},
|
|
121
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
263
|
+
src: "https://content-management-profile-prod.s3.amazonaws.com/id-427/427.png?1661898636177"
|
|
122
264
|
}
|
|
123
265
|
};
|
|
@@ -1184,7 +1184,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1184
1184
|
|
|
1185
1185
|
var sendToFacilitator = /*#__PURE__*/function () {
|
|
1186
1186
|
var _ref10 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9(result) {
|
|
1187
|
-
var concept, productTemp, evalStatus, _articleId, orderId, data, res, _message, specialistDone, _JSON$parse5, newStatus, newOrderStatus;
|
|
1187
|
+
var concept, productTemp, evalStatus, _articleId, orderId, data, res, _message, specialistDone, _JSON$parse5, newStatus, newOrderStatus, newArticleStatus;
|
|
1188
1188
|
|
|
1189
1189
|
return _regenerator.default.wrap(function _callee9$(_context9) {
|
|
1190
1190
|
while (1) {
|
|
@@ -1251,8 +1251,8 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1251
1251
|
break;
|
|
1252
1252
|
}
|
|
1253
1253
|
|
|
1254
|
-
_JSON$parse5 = JSON.parse(res.data.body), newStatus = _JSON$parse5.newStatus, newOrderStatus = _JSON$parse5.newOrderStatus;
|
|
1255
|
-
if (newOrderStatus) productTemp.status =
|
|
1254
|
+
_JSON$parse5 = JSON.parse(res.data.body), newStatus = _JSON$parse5.newStatus, newOrderStatus = _JSON$parse5.newOrderStatus, newArticleStatus = _JSON$parse5.newArticleStatus;
|
|
1255
|
+
if (newOrderStatus) productTemp.status = newArticleStatus[_articleId];
|
|
1256
1256
|
productTemp["".concat(concept, "_status")] = newStatus;
|
|
1257
1257
|
_context9.next = 27;
|
|
1258
1258
|
return loadData();
|
|
@@ -1914,7 +1914,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1914
1914
|
headerType: "input-name-header"
|
|
1915
1915
|
}))]
|
|
1916
1916
|
})
|
|
1917
|
-
}),
|
|
1917
|
+
}), (userAssigned(activeTab) || auditorAssigned()) && product["".concat(getConcept(activeTab), "_status")] !== "NS" && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
1918
1918
|
className: "commentary-box",
|
|
1919
1919
|
children: [!comment ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
1920
1920
|
className: "commentary",
|
package/package.json
CHANGED
|
@@ -24,6 +24,7 @@ export const GeneralInput = ({
|
|
|
24
24
|
optionList = [],
|
|
25
25
|
description,
|
|
26
26
|
inputOnChange,
|
|
27
|
+
disabled,
|
|
27
28
|
}) => {
|
|
28
29
|
const [textValue, setTextValue] = useState({
|
|
29
30
|
value: inputValue,
|
|
@@ -113,6 +114,7 @@ export const GeneralInput = ({
|
|
|
113
114
|
) : inputType !== "textarea" ? (
|
|
114
115
|
<input
|
|
115
116
|
type={inputType}
|
|
117
|
+
disabled={disabled}
|
|
116
118
|
id={inputId}
|
|
117
119
|
size={inputSize}
|
|
118
120
|
className="general-input"
|
|
@@ -25,6 +25,7 @@ export const TagAndInput = ({
|
|
|
25
25
|
description,
|
|
26
26
|
inputOnChange,
|
|
27
27
|
color,
|
|
28
|
+
disabled,
|
|
28
29
|
}) => {
|
|
29
30
|
return (
|
|
30
31
|
<Container
|
|
@@ -45,6 +46,7 @@ export const TagAndInput = ({
|
|
|
45
46
|
inputType={inputType}
|
|
46
47
|
inputValue={value}
|
|
47
48
|
index={index}
|
|
49
|
+
disabled={disabled}
|
|
48
50
|
isRequired={isRequired}
|
|
49
51
|
inputPlaceholder={inputPlaceHolder}
|
|
50
52
|
updatedDescriptions={updatedDescriptions}
|
|
@@ -1062,7 +1062,6 @@ export const ProviderProductEdition = ({
|
|
|
1062
1062
|
"Finalmente elige la forma de pago que más te guste, procede con el pago y listo.",
|
|
1063
1063
|
},
|
|
1064
1064
|
];
|
|
1065
|
-
|
|
1066
1065
|
return (
|
|
1067
1066
|
<Container headerTop={headerTop}>
|
|
1068
1067
|
<HeaderTop setHeaderTop={setHeaderTop} />
|