import type { FormItem } from '@/components/search-form/types'

export const searchFormConfig: FormItem[] = [
  {
    field: 'keyword',
    label: '关键词',
    type: 'input',
    placeholder: '请输入机柜名称或编码',
    span: 6,
  },
  {
    field: 'datacenter_id',
    label: '数据中心',
    type: 'select',
    placeholder: '请选择数据中心',
    options: [], // 需要动态加载
    span: 6,
  },
  {
    field: 'floor_id',
    label: '楼层',
    type: 'select',
    placeholder: '请选择楼层',
    options: [], // 需要动态加载
    span: 6,
  },
  {
    field: 'room_id',
    label: '机房',
    type: 'select',
    placeholder: '请选择机房',
    options: [], // 需要动态加载
    span: 6,
  },
  {
    field: 'rack_type',
    label: '机柜类型',
    type: 'select',
    placeholder: '请选择机柜类型',
    options: [
      { label: '标准机柜', value: 'standard' },
      { label: '刀片机柜', value: 'blade' },
      { label: '网络机柜', value: 'network' },
      { label: '存储机柜', value: 'storage' },
      { label: '定制机柜', value: 'custom' },
    ],
    span: 6,
  },
  {
    field: 'status',
    label: '状态',
    type: 'select',
    placeholder: '请选择状态',
    options: [
      { label: '空闲', value: 'idle' },
      { label: '使用中', value: 'in_use' },
      { label: '已预留', value: 'reserved' },
      { label: '维护中', value: 'maintenance' },
      { label: '已下线', value: 'offline' },
    ],
    span: 6,
  },
]
