@bjsdistribution/dms-client-return 0.0.11 → 0.0.13

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.
Files changed (61) hide show
  1. package/dist/components/order-daily-overview/common/css/TableStyle.d.ts +13 -30
  2. package/dist/components/order-daily-overview/common/fakedata.d.ts +4 -0
  3. package/dist/components/order-daily-overview/return-order-table/return-orders-filters/ReturnOrderTable.d.ts +1 -1
  4. package/dist/components/order-view/details-filters/left-side-filters/dropdowns/{PrintDropDown.d.ts → PrintDropDownReturn.d.ts} +2 -2
  5. package/dist/components/order-view/store.d.ts +77 -28
  6. package/dist/components/order-view/types.d.ts +61 -11
  7. package/dist/components/order-view/utils.d.ts +4 -0
  8. package/dist/components/store.d.ts +6 -1
  9. package/dist/dms-client-return.cjs.development.js +1777 -1078
  10. package/dist/dms-client-return.cjs.development.js.map +1 -1
  11. package/dist/dms-client-return.cjs.production.min.js +1 -1
  12. package/dist/dms-client-return.cjs.production.min.js.map +1 -1
  13. package/dist/dms-client-return.esm.js +1780 -1081
  14. package/dist/dms-client-return.esm.js.map +1 -1
  15. package/package.json +1 -1
  16. package/src/common/expand-collapse/index.tsx +4 -4
  17. package/src/components/order-daily-overview/common/css/TableStyle.tsx +42 -342
  18. package/src/components/order-daily-overview/common/fakedata.tsx +4 -0
  19. package/src/components/order-daily-overview/header-filters/HeaderFilter.tsx +10 -1
  20. package/src/components/order-daily-overview/header-filters/SelectionFilter.tsx +15 -7
  21. package/src/components/order-daily-overview/index.tsx +3 -3
  22. package/src/components/order-daily-overview/return-after-table/ReturnAfterTable.tsx +2 -2
  23. package/src/components/order-daily-overview/return-after-table/table/OrderTable.tsx +4 -8
  24. package/src/components/order-daily-overview/return-after-table/table-filters/ReturnFilterStore.ts +12 -14
  25. package/src/components/order-daily-overview/return-after-table/table-filters/ReturnOrderFilter.tsx +32 -33
  26. package/src/components/order-daily-overview/return-order-table/ReturnTable.tsx +2 -2
  27. package/src/components/order-daily-overview/return-order-table/return-orders-filters/ReturnOrderTable.tsx +74 -30
  28. package/src/components/order-daily-overview/return-order-table/return-orders-filters/returnstyles.ts +5 -2
  29. package/src/components/order-daily-overview/table/table-data/styles.ts +1 -1
  30. package/src/components/order-daily-overview/table-view/Pagination.tsx +15 -14
  31. package/src/components/order-view/DynamicTable.tsx +12 -3
  32. package/src/components/order-view/details-filters/left-side-filters/dropdowns/{PrintDropDown.tsx → PrintDropDownReturn.tsx} +4 -4
  33. package/src/components/order-view/flags-action-modal/Actions.tsx +1 -2
  34. package/src/components/order-view/general-information/Status.tsx +13 -17
  35. package/src/components/order-view/generic-table/AuditLogs.tsx +81 -19
  36. package/src/components/order-view/index.tsx +192 -192
  37. package/src/components/order-view/modalsPopup/CreateReturnModal.tsx +74 -36
  38. package/src/components/order-view/modalsPopup/ModalManager.tsx +49 -14
  39. package/src/components/order-view/modalsPopup/ProductAction.tsx +1 -1
  40. package/src/components/order-view/notes/AddNote.tsx +2 -3
  41. package/src/components/order-view/notes/index.tsx +9 -22
  42. package/src/components/order-view/order-details/expanded-content/footer/index.tsx +90 -73
  43. package/src/components/order-view/order-details/expanded-content/instruction-section/DeliveryInstructions.tsx +2 -9
  44. package/src/components/order-view/order-details/expanded-content/orders-section/Droptime.tsx +2 -10
  45. package/src/components/order-view/order-details/expanded-content/orders-section/VehicleType.tsx +16 -15
  46. package/src/components/order-view/order-details/expanded-content/services-section/AssemblyType.tsx +88 -15
  47. package/src/components/order-view/order-details/expanded-content/services-section/DeliveryPoint.tsx +1 -13
  48. package/src/components/order-view/order-details/expanded-content/services-section/OrderServices.tsx +141 -16
  49. package/src/components/order-view/order-details/expanded-content/services-section/ServiceType.tsx +1 -13
  50. package/src/components/order-view/order-details/expanded-content/services-section/TimedService.tsx +19 -18
  51. package/src/components/order-view/products-info/expanded-content/products/index.tsx +2 -2
  52. package/src/components/order-view/return-client-products/ProductTable.tsx +1 -1
  53. package/src/components/order-view/return-client-products/product-table/ReturnProductTable.tsx +79 -70
  54. package/src/components/order-view/return-client-products/product-table-footer/ProductDetailsFooter.tsx +5 -5
  55. package/src/components/order-view/store.ts +215 -53
  56. package/src/components/order-view/system-event-logs/expanded-content/index.tsx +6 -10
  57. package/src/components/order-view/toolbox-resources/expanded-content/index.tsx +68 -6
  58. package/src/components/order-view/types.ts +89 -33
  59. package/src/components/order-view/utils.ts +20 -17
  60. package/src/components/store.ts +35 -0
  61. package/src/index.tsx +13 -9
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.11",
2
+ "version": "0.0.13",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -39,7 +39,7 @@ function CollapsableForm(props: IProps) {
39
39
  const CustomizedFormSection = styled.div`
40
40
  display: flex;
41
41
  background: #ffffff;
42
- padding: 15px;
42
+ padding: 12px;
43
43
  flex-direction: column;
44
44
  gap: 14px;
45
45
  border: 1px solid #f0f2f2;
@@ -84,9 +84,9 @@ const IconContainer = styled.div<{ isExpanded: boolean }>`
84
84
  align-items: center;
85
85
  justify-content: center;
86
86
  cursor: pointer;
87
- width: 20px;
88
- height: 20px;
89
- padding: 0px;
87
+ width: 25px;
88
+ height: 25px;
89
+ padding: 2px;
90
90
  border-radius: 3px;
91
91
  background: #ffffff;
92
92
  box-shadow: 0px 1px 2px 0px #1018280d;
@@ -1,40 +1,19 @@
1
1
  import styled from 'styled-components';
2
2
 
3
3
  // Styled components
4
- export const StyledTableWrapper = styled.div`
4
+ export const TableWrapper = styled.div`
5
5
  overflow-x: auto;
6
- margin-top: 20px;
7
- max-height: calc(100vh - 420px);
8
- min-height: calc(100vh - 420px);
9
- &::-webkit-scrollbar {
10
- width: 5px;
11
- border-radius: 100px;
12
- height: 5px;
13
- }
14
-
15
- &::-webkit-scrollbar-track {
16
- background: #777;
17
- border-radius: 100px;
18
- }
19
6
 
20
- &::-webkit-scrollbar-thumb {
21
- background: #7b61ff;
22
- border-radius: 100px;
23
- }
24
-
25
- &::-webkit-scrollbar-thumb:hover {
26
- background: #7b61ff;
27
- }
7
+ margin-top: 10px;
28
8
  `;
29
9
 
30
- export const StyledTable = styled.table`
10
+ export const Table = styled.table`
31
11
  width: 100%;
32
12
  border-collapse: separate;
33
- border-spacing: 0;
13
+ border-spacing: 0 12px;
34
14
 
35
15
  thead tr {
36
16
  border-radius: 40px;
37
- border-spacing: 0;
38
17
 
39
18
  th:first-child {
40
19
  border-radius: 100px 0 0 100px;
@@ -48,49 +27,38 @@ export const StyledTable = styled.table`
48
27
 
49
28
  tbody tr {
50
29
  border-radius: 40px;
51
-
30
+ &.completed td {
31
+ background: rgba(87, 219, 122, 0.2) !important;
32
+ }
52
33
  td:first-child {
53
34
  border-radius: 100px 0 0 100px;
54
35
  border-left: 1px solid rgba(0, 0, 0, 0.08);
55
-
56
36
  }
57
37
  td:last-child {
58
38
  border-radius: 0px 100px 100px 0;
59
39
  border-right: 1px solid rgba(0, 0, 0, 0.08);
60
40
  }
61
- td.notFound:last-child {
62
- border-radius: 100px;
63
- }
64
41
  &:nth-child(even) td {
65
42
  background: #f6fbff;
66
43
  }
67
44
  td {
68
- .red {
69
- background: red;
70
- }
71
- .redColor {
72
- color: #e95252;
45
+ .red path {
46
+ fill: #e95252;
73
47
  }
74
- &.fixWidth {
75
- width: 200px;
48
+ .green path {
49
+ fill: #29cc6a;
76
50
  }
77
51
  }
78
52
  }
79
- &.mainTable {
80
- border-spacing: 0 6px;
81
- svg.tomTomIcon {
82
- transform: scale(0.8);
83
- }
84
- }
85
53
  `;
86
54
 
87
- export const StyledThBase = styled.th`
55
+ export const Th = styled.th`
88
56
  color: #3a3630;
89
- font-size: 12px;
57
+ font-size: 14px;
90
58
  font-style: normal;
91
59
  font-weight: 600;
92
60
  line-height: normal;
93
- padding: 5px 15px;
61
+ padding: 6px 15px;
94
62
  background: #f0f2f2;
95
63
  border: 1px solid rgba(0, 0, 0, 0.08);
96
64
  border-right: none;
@@ -98,20 +66,20 @@ export const StyledThBase = styled.th`
98
66
  text-align: left;
99
67
  `;
100
68
 
101
- export const StyledTdBasic = styled.td`
69
+ export const Td = styled.td`
102
70
  color: #3a3630;
103
- font-size: 12px;
71
+ font-size: 14px;
104
72
  font-style: normal;
105
73
  font-weight: 400;
106
74
  line-height: normal;
107
- padding: 5px 15px;
75
+ padding: 6px 15px;
108
76
  background: #fff;
109
77
  border: 1px solid rgba(0, 0, 0, 0.08);
110
78
  border-right: none;
111
79
  border-left: none;
112
80
  `;
113
81
 
114
- export const StyledFlex = styled.div`
82
+ export const Flex = styled.div`
115
83
  display: flex;
116
84
  gap: 8px;
117
85
  align-items: center;
@@ -128,7 +96,7 @@ export const StyledFlex = styled.div`
128
96
  }
129
97
  }
130
98
  `;
131
- export const StyledRoundedBorder = styled.div`
99
+ export const RoundedBorder = styled.div`
132
100
  border-radius: 30px;
133
101
  border: 1px solid #edefef;
134
102
  background: #f6fbff;
@@ -145,19 +113,19 @@ export const RouteName = styled.div`
145
113
  margin-bottom: 6px;
146
114
  `;
147
115
 
148
- export const StyledFlexGap4 = styled.div`
116
+ export const FlexGap4 = styled.div`
149
117
  display: flex;
150
118
  gap: 4px;
151
119
  align-items: center;
152
120
  `;
153
121
 
154
122
  export const TomtomName = styled.div`
155
- color: #6E7079;
123
+ color: #29cc6a;
156
124
  font-size: 14px;
157
125
  font-weight: 600;
158
126
  line-height: 24px;
159
127
  `;
160
- export const StyledLineBreak = styled.div``;
128
+ export const LineBreak = styled.div``;
161
129
  export const Weight = styled.div`
162
130
  font-size: 10px;
163
131
  font-style: normal;
@@ -165,18 +133,12 @@ export const Weight = styled.div`
165
133
  line-height: 16px;
166
134
  `;
167
135
 
168
- export const StyledIconCover = styled.div`
136
+ export const IconCover = styled.div`
169
137
  display: flex;
170
138
  align-items: center;
171
139
  gap: 8px;
172
140
  span {
173
141
  margin-top: 4px;
174
- &.ascending svg path:first-child {
175
- fill: #000;
176
- }
177
- &.descending svg path:last-child {
178
- fill: #000;
179
- }
180
142
  }
181
143
  `;
182
144
 
@@ -211,292 +173,30 @@ export const IconCoverData = styled.div`
211
173
  }
212
174
  `;
213
175
 
214
- // For route details
215
- export const StyledCollapseWrapper = styled.div`
216
- border-radius: 15px;
217
- border: 1px solid #e3e3e3;
218
- background: #fff;
219
- box-shadow: 0px 4px 30px 0px rgba(46, 45, 116, 0.05);
220
- padding-bottom: 10px;
221
- `;
222
-
223
- export const StyledCollapseHeadWrapper = styled.div`
224
- border-bottom: 1px solid #e3e3e3;
225
- background: #f8fafc;
226
- display: flex;
227
- padding: 10px 15px;
228
- display: flex;
229
- justify-content: space-between;
230
- align-items: center;
231
- border-radius: 15px 15px 0 0;
232
- `;
233
-
234
- export const StyledCollapseBody = styled.div`
235
- /* padding-left: 45px; */
236
- position: relative;
237
- padding-right: 15px;
238
- `;
239
-
240
- // Inside table
241
- export const StyledTableNexted = styled(StyledTable)`
242
- border-spacing: 0;
243
- td {
244
- position: relative;
245
- }
246
- .outerBorder {
247
- border-radius: 100px;
248
- border: 1px solid #edefef;
249
- background: #fff;
250
- padding: 8px 0;
251
- margin-top: 12px;
252
- position: relative;
253
- margin-left: 42px;
254
- padding-left: 15px;
255
- width: 98%;
256
- overflow: auto;
257
-
258
- td {
259
- em {
260
- color: #8e8a85;
261
- span {
262
- white-space: nowrap;
263
- }
264
- }
265
- .recepientName {
266
- color: #09f;
267
- font-weight: 600;
268
- }
269
- td td {
270
- padding: 0 10px;
271
- }
272
- }
273
-
274
- .HiddenArea {
275
- display: block;
276
- min-width: 30px;
277
- visibility: hidden;
278
- }
279
- .HiddenAreaLink {
280
- display: block;
281
- min-width: 40px;
282
- visibility: hidden;
283
- }
284
- &.activeList {
285
- border-radius: 15px;
286
- }
287
- }
288
- tbody {
289
- tr {
290
- td {
291
- &:last-child {
292
- border: none;
293
- }
294
- }
295
- &:nth-child(even) td {
296
- background: none;
297
- }
298
- }
299
- }
300
-
301
- .secondLable {
302
- margin-left: 15px;
303
- border-radius: 12px;
304
-
305
- border: 1px solid #edefef;
306
- background: #fff;
307
- border-spacing: 0;
308
- overflow: hidden;
309
- margin-top: 20px;
310
- tr {
311
- td {
312
- padding: 15px 10px;
313
- &:first-child {
314
- width: 128px;
315
- }
316
- border-bottom: 1px solid #edefef;
317
- }
318
- }
319
- tbody tr td {
320
- border-bottom: 1px solid #edefef !important;
321
- border-radius: 0;
322
- }
323
- }
324
-
325
- .topHead {
326
- border-radius: 40px;
327
- border: 1px solid rgba(0, 0, 0, 0.08);
328
- background: #f0f2f2;
329
- padding: 2px 15px;
330
- margin-left: 45px;
331
-
332
- svg.tomTomIcon {
333
- transform: scale(0.7);
334
- position: relative;
335
- left: 4px;
336
- }
337
- }
338
-
339
- .headCoverFLex {
340
- display: flex;
341
-
342
- > div {
343
- display: flex;
344
- align-items: center;
345
- font-weight: 600;
346
- font-size: 13px;
347
- /* margin: 0 7px; // head space */
348
- padding: 0 4px 0 15px;
349
- }
350
- }
351
- .row {
352
- &:last-child .timeTrackOuter {
353
- display: none;
354
- }
355
- }
356
- `;
357
- export const StyledTh = styled(StyledThBase)`
358
- background: none;
359
- padding: 0px;
360
- border-radius: 0 !important;
361
- border: none;
362
- padding: 14px 20px;
363
- border-radius: 15px 0px 0px 0px;
364
- border-bottom: 1px solid rgba(0, 0, 0, 0.08);
365
-
366
- background: #f8fafc;
367
- `;
368
-
369
- export const StyledTd = styled(StyledTdBasic)`
370
- background: none;
371
- border: none;
372
- padding: 0;
373
- td td {
374
- padding: 0 10px;
375
- }
376
- `;
377
-
378
- export const StyledDateWrapper = styled.div`
379
- border-radius: 100px;
380
- border: 1px solid rgba(0, 0, 0, 0.08);
381
- background: #faf9f9;
382
- padding: 6px 8px;
383
- color: #888075;
384
- font-size: 12px;
385
- font-weight: 400;
386
- line-height: 16px;
387
- display: inline-block;
388
- `;
389
-
390
- export const StyledLocationName = styled.div`
391
- color: #fc7743;
392
- `;
393
-
394
- export const StyledCompleteState = styled.div`
395
- border-radius: 22px;
396
- background: rgba(41, 204, 106, 0.15);
397
- display: flex;
398
- padding: 6px 10px;
399
- justify-content: center;
400
- align-items: center;
401
- color: #1f9254;
402
- font-size: 12px;
403
- font-weight: 600;
404
- text-transform: capitalize;
176
+ //Route Details Style
177
+ export const AuditTableWrapper = styled.div`
178
+ overflow-x: auto;
405
179
  `;
406
180
 
407
- export const StyledToggleStatus = styled.div`
408
- border-radius: 20px;
409
- border: 1px solid rgba(233, 82, 82, 0.5);
410
- background: rgba(233, 82, 82, 0.15);
411
- padding: 2px 8px;
412
- display: flex;
413
- cursor: pointer;
414
-
415
- &.active .coverArrow {
416
- transform: rotate(0deg);
417
- position: relative;
418
- top: 2px;
419
- }
420
- .coverArrow {
421
- transform: rotate(180deg);
422
- position: relative;
423
- top: -2px;
424
- }
425
-
426
- .circle {
427
- width: 24px;
428
- height: 24px;
429
- border-radius: 100px;
430
- border: 1px solid #e95252;
431
- position: relative;
432
- display: flex;
433
- align-items: center;
434
- justify-content: center;
435
- &:after {
436
- content: '';
437
- width: 10px;
438
- height: 10px;
439
- border-radius: 100px;
440
- background: #e95252;
441
- }
442
- }
181
+ export const RowHeading = styled.div`
182
+ font-family: 'lato', sans-serif;
183
+ font-size: 15px;
184
+ font-style: normal;
185
+ font-weight: 500;
443
186
  `;
444
187
 
445
- export const StyledTimeTrack = styled.div`
446
- border-radius: 12px;
447
- background: #fff;
448
-
449
- position: absolute;
450
- top: 86px;
451
- left: 3px;
452
- min-width: 36px;
453
- span {
454
- padding: 2px 6px;
455
- color: #687d9b;
456
- font-weight: 600;
457
- font-size: 11px;
458
- position: relative;
459
- z-index: 2;
460
- background: #fff;
461
- border-radius: 100px;
462
- border: 1px solid #edefef;
463
- }
464
-
465
- i {
466
- width: 2px;
467
- height: 36px;
468
- background: #7b91b0;
469
- display: block;
470
- position: absolute;
471
- top: 58%;
472
- transform: translateY(-50%);
473
- left: 0;
474
- right: 0;
475
- margin: 0 auto;
476
- z-index: 1;
477
- &:after,
478
- &::before {
479
- width: 5px;
480
- height: 5px;
481
- display: block;
482
- background: #7b91b0;
483
- position: absolute;
484
- top: -5px;
485
- content: '';
486
- border-radius: 100px;
487
- left: -1px;
488
- }
489
- &:after {
490
- top: auto;
491
- bottom: -4px;
492
- }
493
- }
188
+ export const Heading = styled.div`
189
+ color: var(--Neutral-Gray-Gray-500, #667085);
190
+ font-family: 'lato', sans-serif;
191
+ font-size: 13px;
192
+ font-style: normal;
193
+ font-weight: 700;
494
194
  `;
495
195
 
496
- export const StyledWeight = styled.div`
196
+ export const SubHeading = styled.span`
197
+ color: var(--Neutral-Gray-Gray-500, #667085);
198
+ font-family: 'lato', sans-serif;
497
199
  font-size: 13px;
498
- color: #e95252;
499
- `;
500
- export const StyledCube = styled(StyledWeight)`
501
- font-size: 10px;
200
+ font-style: normal;
201
+ font-weight: 400;
502
202
  `;
@@ -101,6 +101,10 @@ export const optionsPrint = [
101
101
  { icon: 'collectionLables', label: 'Print Collection Labels' },
102
102
  ];
103
103
 
104
+ export const optionsForReturnPrint = [
105
+ { icon: 'deliveryLables', label: 'Print Return Labels' },
106
+ ];
107
+
104
108
  export const Depots = [
105
109
  { value: 'bjsCouriers', label: 'BJS COURIERS' },
106
110
  { value: 'bjsSales', label: 'BJS SALES' },
@@ -3,12 +3,18 @@ import { CoverPage } from './Styledfilters';
3
3
  import SelectionFilter from './SelectionFilter';
4
4
  import { ApiResponse } from '../../types';
5
5
  import { useApiHook } from '@bjsdistribution/dms-component-library';
6
- import { useActionType, useCustomerData, useLocationData } from '../../store';
6
+ import {
7
+ useActionType,
8
+ useCustomerData,
9
+ useLocationData,
10
+ useStatusOrderData,
11
+ } from '../../store';
7
12
 
8
13
  function HeaderFilter() {
9
14
  const [, setCustomers] = useCustomerData();
10
15
  const [, setActionType] = useActionType();
11
16
  const [, setLocationData] = useLocationData();
17
+ const [, setStatusOfOrders] = useStatusOrderData();
12
18
 
13
19
  //API for client data
14
20
  const { data: fetchedCustomerData, loading: loading } = useApiHook<
@@ -50,6 +56,9 @@ function HeaderFilter() {
50
56
  (i: any) => i?.order_product_return_action
51
57
  )
52
58
  );
59
+ setStatusOfOrders(
60
+ fetchedStaticData?.data?.flatMap((i: any) => i?.order_stock_alias)
61
+ );
53
62
  }
54
63
  }, [actionLoading, fetchedStaticData]);
55
64
 
@@ -12,9 +12,12 @@ import { atom, useAtom } from 'jotai';
12
12
  import {
13
13
  useActionType,
14
14
  useCustomerData,
15
+ useGroupedPayload,
15
16
  useLocationData,
16
17
  useNewReturnPayload,
17
18
  useReturnPayload,
19
+ useSelectAll,
20
+ useSelectedOrders,
18
21
  } from '../../store';
19
22
  import { filtersReducerAtom } from './filterStore';
20
23
  import {
@@ -49,6 +52,9 @@ function SelectionFilter() {
49
52
  const [storedAccNumber, setStoredAccNumber] = useState<any>();
50
53
  const [storedCustomerId, setStoredCustomerId] = useState<any>();
51
54
  const [, setNewPayload] = useNewReturnPayload();
55
+ const [, setGrouped] = useGroupedPayload();
56
+ const [, setSelectedReturnOrder] = useSelectedOrders();
57
+ const [, setSelectAll] = useSelectAll();
52
58
 
53
59
  //client options
54
60
  const clientOptions = customers?.map((option: any) => ({
@@ -69,7 +75,7 @@ function SelectionFilter() {
69
75
 
70
76
  const LocationOptions = locationData?.map((option: any) => ({
71
77
  label: option?.location_name,
72
- value: option?.customer_id,
78
+ value: option?.token,
73
79
  }));
74
80
 
75
81
  //client change
@@ -94,7 +100,6 @@ function SelectionFilter() {
94
100
  account_number: storedAccNo,
95
101
  customer_id: storedCustomerId,
96
102
  }));
97
- console.log(selectedUuids, 'selectedUuids');
98
103
  const filteredSubLocations = locationData
99
104
  ?.filter((subCat: any) => subCat?.customer_id === selectedUuids)
100
105
  .map((subCat: any) => ({
@@ -104,6 +109,10 @@ function SelectionFilter() {
104
109
 
105
110
  setFilteredLocationOptions(filteredSubLocations);
106
111
  setUuid('');
112
+ setSelectedReturnOrder([]);
113
+ setNewPayload([]);
114
+ setGrouped([]);
115
+ setSelectAll(false);
107
116
  };
108
117
 
109
118
  useEffect(() => {
@@ -127,10 +136,9 @@ function SelectionFilter() {
127
136
  useEffect(() => {}, [getUuid, filteredLocationOptions]);
128
137
 
129
138
  //location change
130
- const handleLocationChange = (value: unknown, option: DefaultOptionType) => {
139
+ const handleLocationChange = (value: any, option: DefaultOptionType) => {
131
140
  const selectedLabel = option?.label as string;
132
- console.log(value, 'value');
133
- setSelectedLocationValue(selectedLabel);
141
+ setSelectedLocationValue(value);
134
142
 
135
143
  if (selectedLocationValue === selectedLabel) {
136
144
  dispatch({
@@ -196,9 +204,9 @@ function SelectionFilter() {
196
204
  }
197
205
  }, [storedName, selectedFilterValue, selectedLocationValue]);
198
206
 
199
- console.log(filteredLocationOptions, 'filteredLocationOptions');
207
+ // console.log(filteredLocationOptions, 'filteredLocationOptions');
200
208
 
201
- console.log('check', storedName, selectedFilterValue, selectedLocationValue);
209
+ // console.log('check', storedName, selectedFilterValue, selectedLocationValue);
202
210
  return (
203
211
  <Wrapper>
204
212
  <FilterRow>
@@ -12,7 +12,7 @@ import Filters from './filters/Filters';
12
12
  // import TableComponent from '../../components/order-daily-overview/Cards/CardsTable'
13
13
  // import Pagination from './table-view/Pagination';
14
14
  import styled from 'styled-components';
15
- import RouterHeader from './header/route-header/RouterHeader';
15
+ // import RouterHeader from './header/route-header/RouterHeader';
16
16
  // import Loader from './header/loader/Loader';
17
17
  import { useStickyStatus } from '../store';
18
18
  import HeaderFilter from './header-filters/HeaderFilter';
@@ -62,7 +62,7 @@ function ReturnMainTable() {
62
62
  endpoint: `/return_orders/get/client-returns/`,
63
63
  method: 'GET',
64
64
  });
65
- console.log('fetchedClientData', fetchedClientData?.data);
65
+ // console.log('fetchedClientData', fetchedClientData?.data);
66
66
 
67
67
  useEffect(() => {
68
68
  setLoading(staticDataLoading);
@@ -75,7 +75,7 @@ function ReturnMainTable() {
75
75
  return (
76
76
  <>
77
77
  <DashBoardWrapper className={` ${isScrolled ? 'stickyTableHead' : ''}`}>
78
- <RouterHeader />
78
+ {/* <RouterHeader /> */}
79
79
  <div className="Tableconatiner">
80
80
  <HeaderFilter />
81
81
  <Container>
@@ -1,6 +1,6 @@
1
1
  import React, { useEffect } from 'react';
2
2
  import styled from 'styled-components';
3
- import RouterHeader from '../header/route-header/RouterHeader';
3
+ // import RouterHeader from '../header/route-header/RouterHeader';
4
4
  import HeaderFilter from '../header-filters/HeaderFilter';
5
5
  import OrderTable from './table/OrderTable';
6
6
  import ReturnOrderFilter from './table-filters/ReturnOrderFilter';
@@ -33,7 +33,7 @@ const ReturnAfterTable = () => {
33
33
  return (
34
34
  <div>
35
35
  <DashBoardWrapper>
36
- <RouterHeader />
36
+ {/* <RouterHeader /> */}
37
37
  <div className="Tableconatiner">
38
38
  <HeaderFilter />
39
39
  <Container>