<!-- 搜索表单 -->
<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: 'status',
          type: 'select',
          placeholder: '请选择',
          planList: [
          { value: 0, label: '待接收' },
          { value: 1, label: '执行中' },
          { value: 2, label: '待验收' },
          // { value: 3, label: '待验收' },
          { value: 4, label: '已验收' }
          ]
        },
        {
          label: '计划编号：',
          value: 'planCode',
          width: 380,
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '计划名称：',
          value: 'planName',
          width: 380,
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '预计开始时间：',
          value: 'planTimeStart',
          width: 360,
          labelWidth:130,
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '预计结束时间：',
          value: 'planTimeEnd',
          width: 360,
          labelWidth:130,
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '开始时间：',
          value: 'realStartTime',
          width: 380,
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '完成时间：',
          value: 'realEndTime',
          width: 380,
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '负责部门：',
          value: 'responsibleDeptName',
          width: 380,
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '负责人：',
          value: 'responsiblePersonName',
          width: 380,
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '车牌号：',
          value: 'trakNumber',
          width: 380,
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '司机：',
          value: 'driverName',
          width: 380,
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '司机联系电话：',
          value: 'phone',
          width: 360,
          labelWidth:130,
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '创建时间：',
          value: 'createTime',
          width: 380,
          type: 'input',
          placeholder: '请输入'
        },
      ];
    }
  },
  methods: {
    /* 搜索 */
    search(e) {
      this.$emit('search', {
        ...e
      });
    }
  }
};
</script>
