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

export const sourceMap: FilterGroupMap<typeof contextState> = new Map([
  ['1', {label: '出库人', type: 'field', value: 'userName'}],
  ['2', {label: '姓名', type: 'field', value: 'realName'}],
  [
    '3',
    {
      label: '领用部门',
      type: 'keySelect',
      selectKey: '部门字典',
      value: 'departmentCode',
    },
  ],
  ['4', {label: 'WBS编号', type: 'field', value: 'wbs'}],
  ['5', {label: '出库时间', type: 'date', value: 'startTime'}],
  [
    '6',
    {
      label: '所属公司',
      type: 'keySelect',
      value: 'accountSleeve',
      selectKey: '公司',
    },
  ],
]);

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