| 1234567891011121314151617181920212223242526 |
- import {
- TableSearchContext,
- createPageContext,
- createSearchContext,
- createTableSearchContext,
- } from '@hooks';
- import {GetWarehousingFlowingListParams, OriginalListParams} from '@models';
- export const pageContext = createPageContext();
- export const searchContext = createSearchContext();
- export const contextState = {
- code: '',
- startTime: '',
- endTime: '',
- };
- export const context = createTableSearchContext(contextState);
- export function contextSelector(
- [{code, startTime, endTime}]: TableSearchContext<typeof contextState>,
- ): OriginalListParams<GetWarehousingFlowingListParams> {
- return {
- wllbCode: code,
- startTime,
- endTime,
- };
- }
|