<!-- 搜索表单 -->
<template>
  <seekPage :seekList="seekList" :formLength="3" @search="search"></seekPage>
</template>
<script>
import { reviewStatusSelect, vehicleState } from '@/enum/dict';
export default {
  data() {
    return {};
  },
  computed: {
    // 表格列配置
    seekList() {
      return [
        {
          label: '关键字：',
          value: 'searchName',
          type: 'input',
          placeholder: '姓名/年龄/手机号/身份证证号'
        },
        {
          label: '姓名：',
          value: 'driverName',
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '性别：',
          value: 'sex',
          type: 'select',
          placeholder: '请选择',
          planList: [
            { label: '男', value: 1 },
            { label: '女', value: 2 }
          ]
        },
        {
          label: '年龄：',
          value: 'age',
          width: 380,
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '手机号：',
          value: 'phone',
          width: 380,
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '身份证号：',
          value: 'personId',
          width: 380,
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '驾龄：',
          value: 'driverAge',
          width: 380,
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '驾驶证类型：',
          value: 'drivingLicenseType',
          width: 370,
          labelWidth:130,
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '状态：',
          value: 'status',
          width: 380,
          type: 'select',
          placeholder: '请选择',
          planList: [
            {
              label: '空闲',
              value: 0,
            },
            {
              label: '派单中',
              value: 1,
            }
          ]
        },
      ];
    }
  },
  methods: {
    /* 搜索 */
    search(e) {
      this.$emit('search', {
        ...e
      });
    }
  }
};
</script>
