<!-- 搜索表单 -->
<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: 'trakNumber',
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '状态：',
          value: 'status',
          type: 'select',
          placeholder: '请选择',
          planList: vehicleState
        },
        {
          label: '车型：',
          value: 'type',
          width: 380,
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '最大体积：',
          value: 'maxVolume',
          width: 380,
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '载重：',
          value: 'loadWeight',
          width: 380,
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '空车重量：',
          value: 'freeWeight',
          width: 380,
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '默认司机：',
          value: 'defaultDriver',
          width: 380,
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '联系电话：',
          value: 'phone',
          width: 380,
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '运输证有效期：',
          value: 'YSZYXQ',
          type: 'date',
          dateType: 'datetimerange',
          placeholder: '',
          width: 360,
          labelWidth:130,
          valueAr: ['createTimeStart', 'createTimeEnd']
        },
        {
          label: '保养标准：',
          value: 'maintenanceStandards',
          width: 380,
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '区域：',
          value: 'addressName',
          width: 380,
          type: 'input',
          placeholder: '请输入'
        },
      ];
    }
  },
  methods: {
    /* 搜索 */
    search(e) {
      this.$emit('search', {
        ...e
      });
    }
  }
};
</script>
