<!-- 搜索表单 -->
<template>
  <seekPage :seekList="seekList" :formLength="3" @search="search"></seekPage>
</template>
<script>
import { reviewStatusSelect, vehicleState, reviewStatusEnum } from '@/enum/dict';
export default {
  data() {
    return {};
  },
  computed: {
    // 表格列配置
    seekList() {
      return [
        {
          label: '关键字：',
          value: 'searchName',
          type: 'input',
          placeholder: '计划编号/计划名称/负责部门/负责人'
        },
        {
          label: '计划编号：',
          value: 'code',
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '计划名称：',
          value: 'planName',
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '负责部门：',
          value: 'responsibleDeptName',
          width: 380,
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '负责人：',
          value: 'responsiblePersonName',
          width: 380,
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '计划状态：',
          value: 'status',
          width: 380,
          type: 'select',
          placeholder: '请选择',
          planList: [
            { value: 0, label: '未开始' },
            { value: 1, label: '已派发' },
            { value: 2, label: '执行中' },
            { value: 2, label: '已完成' }
          ]
        },
        {
          label: '状态：',
          value: 'processStatus',
          width: 380,
          type: 'select',
          placeholder: '请选择',
          planList: reviewStatusEnum
        },
        {
          label: '创建时间：',
          value: 'createTime',
          width: 380,
          type: 'input',
          placeholder: '请输入'
        },
      ];
    }
  },
  methods: {
    /* 搜索 */
    search(e) {
      this.$emit('search', {
        ...e
      });
    }
  }
};
</script>
