import {FilterGroupMap, MapValue} from '@components';
import {contextState} from '../context';

export const fixedMap: MapValue<typeof contextState>[] = [
  {label: '入库编号', type: 'field', value: 'storageCode'},
  {label: '生产订单号', type: 'field', value: 'productionCode'},
  {label: '物料编号', type: 'field', value: 'wllbCode'},
  {label: '物料名称', type: 'field', value: 'materialName'},
];

export const sourceMap: FilterGroupMap<typeof contextState> = new Map([
  ['1', {label: 'WBS编号', type: 'field', value: 'wbs'}],
  ['2', {label: '工号', type: 'field', value: 'userName'}],
  ['3', {label: '姓名', type: 'field', value: 'realName'}],
  ['4', {label: '入库时间', type: 'date', value: 'startTime'}],
  [
    '5',
    {
      label: '所属公司',
      type: 'keySelect',
      value: 'companyNumber',
      selectKey: '公司',
    },
  ],
]);
