<!-- 搜索表单 -->
<template>
  <seekPage :seekList="seekList" :maxLength="3" @search="search"></seekPage>
</template>
<script>
  export default {
    data() {
      return {};
    },
    props: {
      levelList: {
        type: Array,
        default: () => []
      }
    },
    computed: {
      // 表格列配置
      seekList() {
        return [
          {
            label: '任务状态：',
            value: 'disposalStatus',
            type: 'select',
            placeholder: '请选择',
            planList: [
              { label: '待接收', value: 0 },
              { label: '执行中', value: 1 },
              { label: '已完成', value: 3 }
            ]
          },
          {
            label: '班组名称：',
            value: 'teamName',
            type: 'input',
            placeholder: ''
          },
          {
            label: '产品名称：',
            value: 'productName',
            type: 'input',
            placeholder: ''
          },
          {
            label: '工序名称：',
            value: 'workTaskName',
            type: 'input',
            placeholder: ''
          },
          {
            label: '订单编码：',
            value: 'workOrderCode',
            type: 'input',
            placeholder: ''
          }
        ];
      }
    },
    methods: {
      /* 搜索 */
      search(e) {
        this.$emit('search', {
          ...e
        });
      }
    }
  };
</script>
