@bjsdistribution/dms-client-return 0.0.13 → 0.0.14
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/order-view/store.d.ts +1 -1
- package/dist/dms-client-return.cjs.development.js +6 -0
- 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 +6 -0
- package/dist/dms-client-return.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/order-view/store.ts +19 -16
package/package.json
CHANGED
|
@@ -251,7 +251,7 @@ function useUpdateOrderProducts() {
|
|
|
251
251
|
const CallAPi = atom(false);
|
|
252
252
|
|
|
253
253
|
export function useCallAPi() {
|
|
254
|
-
return useAtom(CallAPi);
|
|
254
|
+
return useAtom(CallAPi);
|
|
255
255
|
}
|
|
256
256
|
// export const selectedProductIdAtom = atom<number | null>(null);
|
|
257
257
|
|
|
@@ -328,12 +328,11 @@ const returnAfterOrderAtom = atom<any[]>([]);
|
|
|
328
328
|
|
|
329
329
|
export function useReturnAfterOrderData() {
|
|
330
330
|
return useAtom(returnAfterOrderAtom);
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
331
|
+
}
|
|
332
|
+
const clientDataAtom = atom<ClientData[]>([]);
|
|
333
|
+
function useClientData() {
|
|
334
|
+
return useAtom(clientDataAtom);
|
|
335
|
+
}
|
|
337
336
|
|
|
338
337
|
export {
|
|
339
338
|
useAtom,
|
|
@@ -355,7 +354,7 @@ export {
|
|
|
355
354
|
useEventNotesData,
|
|
356
355
|
useSelectedProductId,
|
|
357
356
|
useSelectedProductActionTabKey,
|
|
358
|
-
useClientData
|
|
357
|
+
useClientData,
|
|
359
358
|
};
|
|
360
359
|
|
|
361
360
|
const NotesLoading = atom<boolean>(true);
|
|
@@ -428,13 +427,13 @@ export function useOrderProductId() {
|
|
|
428
427
|
const returnDataAtom = atom<any[]>([]);
|
|
429
428
|
export function useReturnData() {
|
|
430
429
|
return useAtom(returnDataAtom);
|
|
431
|
-
|
|
432
|
-
|
|
430
|
+
}
|
|
431
|
+
const apiCalling = atom<boolean>(false);
|
|
433
432
|
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
433
|
+
export function useApiCalling() {
|
|
434
|
+
return useAtom(apiCalling);
|
|
435
|
+
}
|
|
436
|
+
const liveRecalling = atom<boolean>(false);
|
|
438
437
|
|
|
439
438
|
//re api call of live status
|
|
440
439
|
export function useLiveRecalling() {
|
|
@@ -449,14 +448,18 @@ export const letselectedProductIdAtom = atom<number | null>(null);
|
|
|
449
448
|
// };
|
|
450
449
|
|
|
451
450
|
const auditLogToggle = atom<boolean>(true);
|
|
452
|
-
export const SeteauditLogToggle= () => {
|
|
451
|
+
export const SeteauditLogToggle = () => {
|
|
453
452
|
return useAtom(auditLogToggle);
|
|
454
453
|
};
|
|
455
454
|
|
|
456
|
-
|
|
457
455
|
// Popup state Manage
|
|
458
456
|
const initialState = null;
|
|
457
|
+
|
|
459
458
|
const popupReducer = (state: any, action: any) => {
|
|
459
|
+
if (action.type === 'create-return') {
|
|
460
|
+
state = 'create-return';
|
|
461
|
+
return { state };
|
|
462
|
+
}
|
|
460
463
|
if (action.type === 'bulkUpdate') {
|
|
461
464
|
state = 'bulkUpdate';
|
|
462
465
|
return { state };
|