<!-- 搜索表单 -->
<template>
  <seekPage :seekList="seekList" :formLength="3" @search="search"></seekPage>
</template>

<script>
export default {
  data() {
    return {
      statusList: [
        { name: '待处理', code: 0 },
        { name: '处理中', code: 1 },
        { name: '已处理', code: 2 }
      ]
    };
  },
  computed: {
    seekList() {
      return [
        {
          label: '编码:',
          value: 'code',
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '样品编码:',
          value: 'sampleCode',
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '物品编码:',
          value: 'categoryCode',
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '物品名称:',
          value: 'categoryName',
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '批次号:',
          value: 'batchNo',
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '产品规格:',
          value: 'specification',
          type: 'input',
          placeholder: '请输入'
        }
      ];
    }
  },
  watch: {},
  created() {},
  methods: {
    search(e) {
      this.$emit('search', { ...e });
    }
  }
};
</script>
<style lang="scss" scoped>
</style>
