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

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

export const fixedMap: MapValue<typeof contextState>[] = [
  {label: '采购单编号', type: 'field', value: 'orderCode'},
  {label: '物料编号', type: 'field', value: 'materialCode'},
  {label: '物料名称', type: 'field', value: 'materialName'},
];
