import type { SearchConfig } from '@/types/basic-search';
import { EMERGENCY_PLAN_STATUS_OPTIONS, APPROVAL_STATUS_OPTIONS } from '../constant';

export const EMERGENCY_PLAN_MANAGEMENT_SEARCH_CONFIG: SearchConfig[] = [
  {
    label: '预案名称：',
    prop: 'planName',
    component: 'ElInput',
    componentProps: {
      placeholder: '请输入预案名称',
    },
  },
  {
    label: '预案类型：',
    prop: 'planType',
    slot: 'planType',
  },
  {
    label: '事件类型：',
    prop: 'eventType',
    slot: 'eventType',
  },
  {
    label: '作业场所：',
    prop: 'professionalTestSite',
    component: 'ElInput',
    componentProps: {
      placeholder: '请输入作业场所',
    },
  },
  {
    label: '状态：',
    prop: 'status',
    component: 'ElSelect',
    selectOptions: EMERGENCY_PLAN_STATUS_OPTIONS,
    componentProps: {
      placeholder: '请选择状态',
      filterable: true,
    },
  },
];

export const EMERGENCY_PLAN_APPROVAL_SEARCH_CONFIG: SearchConfig[] = [
  {
    label: '状态：',
    prop: 'approvalStatus',
    component: 'ElSelect',
    selectOptions: APPROVAL_STATUS_OPTIONS,
    componentProps: {
      placeholder: '请选择审批状态',
    },
  },
];
