@bjsdistribution/dms-client-return 0.0.49 → 0.0.51
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/dms-client-return.cjs.development.js +10 -6
- package/dist/dms-client-return.cjs.development.js.map +1 -1
- package/dist/dms-client-return.cjs.production.min.js +1 -1
- package/dist/dms-client-return.cjs.production.min.js.map +1 -1
- package/dist/dms-client-return.esm.js +10 -6
- package/dist/dms-client-return.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/order-daily-overview/return-after-table/table/OrderTable.tsx +2 -1
- package/src/components/order-daily-overview/return-after-table/table-filters/ReturnOrderFilter.tsx +1 -1
- package/src/components/order-daily-overview/return-order-table/return-orders-filters/returnstyles.ts +0 -2
- package/src/components/order-daily-overview/table/table-data/styles.ts +0 -1
- package/src/components/order-view/order-details/expanded-content/services-section/OrderServices.tsx +13 -1
- package/src/index.tsx +4 -1
package/package.json
CHANGED
|
@@ -328,8 +328,9 @@ const OrderTable = ({ loadingskeleton }: any) => {
|
|
|
328
328
|
<td>{displayValueOrNA(item?.box_count)}</td>
|
|
329
329
|
<td>
|
|
330
330
|
{displayValueOrNA(item?.weight)}{' '}
|
|
331
|
-
{item?.weight && item?.weight
|
|
331
|
+
{item?.weight && item?.weight > 0 ? 'KG' : ''}
|
|
332
332
|
</td>
|
|
333
|
+
|
|
333
334
|
<td>{displayValueOrNA(item?.cube)}</td>
|
|
334
335
|
<td key={item.id}>
|
|
335
336
|
<StyledAntSelect
|
package/src/components/order-daily-overview/return-order-table/return-orders-filters/returnstyles.ts
CHANGED
|
@@ -521,13 +521,11 @@ export const StyledTable = styled.table`
|
|
|
521
521
|
export const StyledTableWrapper = styled.div`
|
|
522
522
|
max-height: 60vh;
|
|
523
523
|
overflow-x: auto;
|
|
524
|
-
scrollbar-width: none;
|
|
525
524
|
min-height: 50vh;
|
|
526
525
|
|
|
527
526
|
.fortables {
|
|
528
527
|
max-height: 60vh;
|
|
529
528
|
overflow-x: auto;
|
|
530
|
-
scrollbar-width: none;
|
|
531
529
|
min-height: 50vh;
|
|
532
530
|
}
|
|
533
531
|
/* height: 600px; */
|
|
@@ -19,7 +19,6 @@ export const GreyBox = styled.div`
|
|
|
19
19
|
export const StyledTableWrapper = styled.div`
|
|
20
20
|
overflow-x: auto;
|
|
21
21
|
max-height: calc(100vh - 396px);
|
|
22
|
-
scrollbar-width: none;
|
|
23
22
|
/* box-shadow: 0px 0px 30px 6px rgba(46, 45, 116, 0.05); */
|
|
24
23
|
&::-webkit-scrollbar {
|
|
25
24
|
width: 5px;
|
package/src/components/order-view/order-details/expanded-content/services-section/OrderServices.tsx
CHANGED
|
@@ -17,6 +17,18 @@ function OrderServices() {
|
|
|
17
17
|
|
|
18
18
|
const orderServicesOptions = orderStaticData?.order_service_list;
|
|
19
19
|
|
|
20
|
+
const desiredOrder = [
|
|
21
|
+
'unpack_items',
|
|
22
|
+
'take_packaging_away',
|
|
23
|
+
'assemble',
|
|
24
|
+
'disassemble',
|
|
25
|
+
'collect_disposal',
|
|
26
|
+
];
|
|
27
|
+
|
|
28
|
+
const sortedServices = orderServicesOptions?.sort((a: any, b: any) => {
|
|
29
|
+
return desiredOrder.indexOf(a.type) - desiredOrder.indexOf(b.type);
|
|
30
|
+
});
|
|
31
|
+
|
|
20
32
|
const toggleServices = (id: number) => {
|
|
21
33
|
const clone = [...orderServices];
|
|
22
34
|
const selectedService = clone?.find(
|
|
@@ -197,7 +209,7 @@ function OrderServices() {
|
|
|
197
209
|
|
|
198
210
|
return (
|
|
199
211
|
<Container disabled={isDisabled}>
|
|
200
|
-
{
|
|
212
|
+
{sortedServices?.map((service: any) => {
|
|
201
213
|
const selected = !!orderServices?.find(
|
|
202
214
|
(s: OrderServiceType) =>
|
|
203
215
|
s?.order_service_list_id === service?.id && s.is_deleted === false
|
package/src/index.tsx
CHANGED
|
@@ -44,7 +44,10 @@ function ReturnClient() {
|
|
|
44
44
|
};
|
|
45
45
|
const paths = splitPath(location.pathname);
|
|
46
46
|
useEffect(() => {
|
|
47
|
-
if (
|
|
47
|
+
if (
|
|
48
|
+
paths[paths.length - 2] === 'order' ||
|
|
49
|
+
paths[paths.length - 2] === 'return'
|
|
50
|
+
) {
|
|
48
51
|
setActionTypeOptions([]);
|
|
49
52
|
setLocationOptions([]);
|
|
50
53
|
setSelectedClient(null);
|