import { BasicColumn, FormSchema } from '@/components/Table';
export const columns = [
  {
    title: '操作时间',
    dataIndex: 'operate_time',
  },
  {
    title: '定损类型',
    dataIndex: 'problem_type',
  },
  {
    title: '操作人',
    dataIndex: 'user',
  },
  {
    title: '设备型号',
    dataIndex: 'model',
  },
  {
    title: '设备SN',
    dataIndex: 'sn',
  },
  {
    title: '设备名称',
    dataIndex: 'name',
  },
  {
    title: '状态',
    dataIndex: 'status',
  },
];
export const dataSource = [
  { operate_time: 111, problem_type:222, user: 333, model: 444, sn:'1.0.0', name:'test', status: 555},
  { operate_time: 111, problem_type:222, user: 333, model: 444, sn:'1.0.0', name:'test', status: 555},
  { operate_time: 111, problem_type:222, user: 333, model: 444, sn:'1.0.0', name:'test', status: 555},
  { operate_time: 111, problem_type:222, user: 333, model: 444, sn:'1.0.0', name:'test', status: 555},
  { operate_time: 111, problem_type:222, user: 333, model: 444, sn:'1.0.0', name:'test', status: 555},
  { operate_time: 111, problem_type:222, user: 333, model: 444, sn:'1.0.0', name:'test', status: 555},
  { operate_time: 111, problem_type:222, user: 333, model: 444, sn:'1.0.0', name:'test', status: 555},
  { operate_time: 111, problem_type:222, user: 333, model: 444, sn:'1.0.0', name:'test', status: 555},
]
export const searchFormSchema: FormSchema[] = [
  {
    field: 'time',
    component: 'RangePicker',
    colProps: { span: 4 },
  },
  {
    field: 'type',
    label: '定损类型',
    component: 'Select',
    componentProps: {
      options: [
        { label: '整机定损', value: '整机定损' },
        { label: '空调制冷模块定损', value: '空调制冷模块定损' },
        { label: '空调制热模块定损', value: '空调制热模块定损' },
        { label: '快速定损', value: '快速定损' },
      ],
    },
    colProps: { span: 4 },
  },
  {
    field: 'user',
    label: '操作员',
    component: 'Select',
    componentProps: {
      options: [
      ],
    },
    colProps: { span: 4 },
  },
  {
    field: 'status',
    label: '状态',
    component: 'Select',
    componentProps: {
      options: [
        { label: '待上传', value: '待上传' },
        { label: '数据处理', value: '数据处理' },
        { label: '上传中', value: '上传中' },
        { label: '上传完成', value: '上传完成' },
        { label: '上传失败', value: '上传失败' },
        { label: '已暂停', value: '已暂停' },
        { label: '已取消', value: '已取消' },
      ],
    },
    colProps: { span: 4 },
  },
  {
    field: 'sn',
    label: '设备SN',
    component: 'Input',
    colProps: { span: 6 },
  },
];