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

export const searchFormConfig: FormItem[] = [
  {
    field: 'keyword',
    label: '关键词',
    type: 'input',
    placeholder: '请输入工单编号或标题',
  },
  {
    field: 'type',
    label: '工单类型',
    type: 'select',
    placeholder: '请选择工单类型',
    options: [
      { label: '故障', value: 'incident' },
      { label: '请求', value: 'request' },
      { label: '问题', value: 'question' },
      { label: '其他', value: 'other' },
    ],
  },
  {
    field: 'status',
    label: '工单状态',
    type: 'select',
    placeholder: '请选择工单状态',
    options: [
      { label: '待接单', value: 'pending' },
      { label: '已接单', value: 'accepted' },
      { label: '处理中', value: 'processing' },
      { label: '已挂起', value: 'suspended' },
      { label: '已解决', value: 'resolved' },
      { label: '已关闭', value: 'closed' },
      { label: '已撤回', value: 'cancelled' },
    ],
  },
  {
    field: 'priority',
    label: '优先级',
    type: 'select',
    placeholder: '请选择优先级',
    options: [
      { label: '低', value: 'low' },
      { label: '中', value: 'medium' },
      { label: '高', value: 'high' },
      { label: '紧急', value: 'urgent' },
    ],
  },
  {
    field: 'dateRange',
    label: '创建时间',
    type: 'dateRange',
  },
]
