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

export const fixedMap: MapValue<typeof contextState>[] = [
  {label: '物料编号', type: 'field', value: 'wllbCode'},
  {label: '物料名称', type: 'field', value: 'materialName'},
  {label: '库位名称', type: 'field', value: 'storageLocationName'},
];

export const sourceMap: FilterGroupMap<typeof contextState> = new Map([
  [
    '1',
    {
      label: '所属公司',
      type: 'keySelect',
      selectKey: '公司',
      value: 'companyCode',
    },
  ],
  [
    '2',
    {
      label: '供应商',
      type: 'keySelect',
      selectKey: '供应商/客户',
      value: 'ustomerCode',
    },
  ],
  ['3', {label: 'WBS编号', type: 'field', value: 'wbs'}],
]);
