import {
  createPageContext,
  createSearchContext,
  createTableSearchContext,
} from '@hooks';
import {GetProductionRequisitionListParams, OriginalListParams} from '@models';

export const pageContext = createPageContext();
export const searchContext = createSearchContext();
export const contextState: OriginalListParams<GetProductionRequisitionListParams> & {
  type: '1' | '2';
} = {
  askGoodsCode: '',
  materialName: '',
  startTime: '',
  endTime: '',
  materialCode: '',
  companyCode: '',
  departmentCode: '',
  moveType: '',
  sourceType: '',
  entryNumber: '',
  productionCode: '',
  type: '1',
  wbs: '',
};
export const context = createTableSearchContext(contextState);
