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

export const pageContext = createPageContext();
export const searchContext = createSearchContext();

export const contextState: OriginalListParams<GetSemiManufacturesDrawList> = {
  partType: '半成品',
  productionCode: '',
  type: '',
  askGoodsCode: '',
  materialCode: '',
  materialName: '',
  departmentCode: '',
  companyCode: '',
  entryNumber: '',
  moveType: '',
  sourceType: '',
  startTime: '',
  endTime: '',
};
export const context = createTableSearchContext(contextState);
