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

export const fixedMap: MapValue<typeof contextState>[] = [
  {label: '发货单号', value: 'deliveryOrder', type: 'field'},
  {label: '发货日期', value: 'startTime', type: 'date'},
  {label: '订单类型', value: 'deliveryType', type: 'field'},
  {label: '销售单编号', value: 'deliveryCode', type: 'field'},
];

export const sourceMap: FilterGroupMap<typeof contextState> = new Map([
  ['1', {label: '负责子公司', type: 'field', value: 'subsidiaryName'}],
  ['2', {label: '公司编号', type: 'field', value: 'deliveryCompany'}],
  ['3', {label: '部门名称', type: 'field', value: 'deliveryDepartment'}],
  ['4', {label: '客户名称', type: 'field', value: 'customerName'}],
  ['5', {label: '商机编号', type: 'field', value: 'commercialOpportunityCode'}],
  ['6', {label: '商机名称', type: 'field', value: 'commercialOpportunityName'}],
  ['7', {label: '电站名称', type: 'field', value: 'powerStationName'}],
  ['8', {label: '物料编号', type: 'field', value: 'materialCode'}],
  ['9', {label: '物料名称', type: 'field', value: 'materialName'}],
  ['10', {label: 'WBS编号', type: 'field', value: 'wbs'}],
  ['11', {label: '省', type: 'field', value: 'province'}],
  ['12', {label: '市', type: 'field', value: 'city'}],
  ['13', {label: '地址', type: 'field', value: 'address'}],
]);
