<!-- 搜索表单 -->
<template>
  <seekPage :seekList="seekList" :formLength="3" @search="search"></seekPage>
</template>
<script>
export default {
  data() {
    return {};
  },

  computed: {
    // 表格列配置
    seekList() {
      return [
        {
          label: '关键字：',
          value: 'code',
          type: 'input',
          placeholder: '商品编码/商品名称/产品名称'
        },
        {
          label: '价格类型:',
          value: 'categoryLevelId',
          type: 'DictSelection',
          placeholder: '',
          dictName: "商品价格类型"
        },
        {
          label: '商品编码:',
          value: 'code',
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '商品名称:',
          value: 'workCode',
          width: 380,
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '商品分类:',
          value: 'workCode',
          width: 380,
          type: 'input',
          placeholder: ''
        },
        {
          label: '产品名称:',
          value: 'workCode',
          width: 380,
          type: 'input',
          placeholder: ''
        },
        {
          label: '状态:',
          value: 'workCode',
          width: 380,
          type: 'input',
          placeholder: ''
        },
        {
          label: '创建时间:',
          value: 'workCode',
          width: 380,
          type: 'input',
          placeholder: ''
        },
      ];
    }
  },
  methods: {
    /* 搜索 */
    search(e) {
      this.$emit('search', {
        ...e
      });
    }
  }
};
</script>