import type { FormSchemaGetter } from '#/adapter/form';
import type { VxeGridProps } from '#/adapter/vxe-table';
import { DictEnum } from '@vben/constants';
import { getDictOptions } from '#/utils/dict';
export const querySchema: FormSchemaGetter = () => [
  {
    component: 'Select',
    componentProps: {
      options: getDictOptions(DictEnum.SYS_NORMAL_DISABLE),
    },
    fieldName: 'gasStationStatus',
    label: '油站',
  },
  {
    component: 'Select',
    componentProps: {
      options: getDictOptions(DictEnum.SYS_NORMAL_DISABLE),
    },
    fieldName: 'timeStatus',
    label: '时间',
  },
];

export const columns: VxeGridProps['columns'] = [
  {
    title: '油站',
    field: 'gasStation',
    minWidth: 130,
  },
  {
    title: '处理时间',
    field: 'processingTime',
    minWidth: 130,
  },
  {
    title: '本站策略',
    field: 'siteStrategy',
    minWidth: 130,
  },
  {
    title: '本站变化',
    field: 'siteChanges',
    minWidth: 130,
  },
  {
    title: '竟对策略',
    field: 'counterStrategy',
    minWidth: 130,
  },
  {
    title: '竟对变化',
    field: 'actuallyRespondsChange',
    minWidth: 130,
  },
  {
    title: '商圈变化',
    field: 'businessBistrictChange',
    minWidth: 130,
  },
];
export const mockData = [
  {
    gasStation: '中山路加油站',
    processingTime: '2024-06-01 08:00',
    siteStrategy: '会员日-1 毛',
    siteChanges: '降 0.15 元',
    counterStrategy: '跟随降 1 毛',
    actuallyRespondsChange: '降 0.10 元',
    businessBistrictChange: '车流+12%',
  },
  {
    gasStation: '北环大道油站',
    processingTime: '2024-06-01 09:15',
    siteStrategy: '维持挂牌',
    siteChanges: '无变化',
    counterStrategy: '降价 2 毛',
    actuallyRespondsChange: '降 0.20 元',
    businessBistrictChange: '车流-5%',
  },
  {
    gasStation: '城南综合能源站',
    processingTime: '2024-06-01 10:30',
    siteStrategy: '夜间-2 毛',
    siteChanges: '降 0.25 元',
    counterStrategy: '未跟进',
    actuallyRespondsChange: '无变化',
    businessBistrictChange: '车流+8%',
  },
  {
    gasStation: '高速服务区东站',
    processingTime: '2024-06-01 11:45',
    siteStrategy: '会员日-1 毛',
    siteChanges: '降 0.10 元',
    counterStrategy: '跟随降 1 毛',
    actuallyRespondsChange: '降 0.10 元',
    businessBistrictChange: '车流+15%',
  },
  {
    gasStation: '城西快充站',
    processingTime: '2024-06-01 13:00',
    siteStrategy: '维持挂牌',
    siteChanges: '无变化',
    counterStrategy: '降价 1 毛',
    actuallyRespondsChange: '降 0.10 元',
    businessBistrictChange: '车流-3%',
  },
  {
    gasStation: '高新区能源港',
    processingTime: '2024-06-01 14:20',
    siteStrategy: '深夜-3 毛',
    siteChanges: '降 0.30 元',
    counterStrategy: '跟随降 2 毛',
    actuallyRespondsChange: '降 0.20 元',
    businessBistrictChange: '车流+18%',
  },
];
