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: 'Shiftstatus',
    label: '班次',
  },
  {
    component: 'DatePicker',
    componentProps: {
      type: 'daterange',
      format: 'YYYY-MM-DD',
      valueFormat: 'YYYY-MM-DD',
      startPlaceholder: '开始日期',
      endPlaceholder: '结束日期',
    },
    fieldName: 'workTime',
    label: '上班时间',
  },
];

export const columns: VxeGridProps['columns'] = [
  {
    field: 'action',
    fixed: 'left',
    slots: { default: 'action' },
    resizable: false,
    title: '操作',
    width: 180,
  },
  {
    title: '上班日期',
    field: 'Startdate',
    minWidth: 130,
  },
  {
    title: '班次',
    field: 'Position',
    minWidth: 130,
  },
 {
    title: '油站',
    field: 'Gasstation',
    minWidth: 130,
  },
  {
    title: '开班人员',
    field: 'InauguralStaff',
    minWidth: 130,
  },
    {
    title: '上班人数',
    field: 'StartNumber',
    minWidth: 130,
  },
  {
    title: '最后操作人员',
    field: 'Lastoperator',
    minWidth: 130,
  },
   {
    title: '最后操作时间',
    field: 'Lastoperationtime',
    minWidth: 130,
  },
];

