<!-- 搜索表单 -->
<template>
  <seekPage :seekList="seekList" :formLength="3" @search="search"></seekPage>
</template>
<script>
  export default {
    data() {
      return {};
    },
    props: {
      levelList: {
        type: Array,
        default: () => []
      }
    },
    computed: {
      // 表格列配置
      seekList() {
        return [
          {
            label: '工作中心名称：',
            value: 'workCenterName',
            type: 'input',
            placeholder: ''
          },
          {
            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>
