<!-- 搜索表单 -->
<template>
  <seekPage :seekList="seekList" :formLength="3" @search="search"></seekPage>
</template>
<script>
  import { reviewStatusSelect } from '@/enum/dict';
export default {
  data() {
    return {};
  },
  computed: {
    // 表格列配置
    seekList() {
      return [
        {
          label: '关键字：',
          value: 'searchName',
          type: 'input',
          placeholder: '收货单编码/采购订单编码/送货单号/产品名称'
        },
        {
          label: '收货单编码：',
          value: 'receiveNo',
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '采购订单编码：',
          value: 'orderNo',
          type: 'input',
          placeholder: '请输入',
        },
        {
          label: '采购订单类型：',
          value: 'sourceTypeName',
          labelWidth:130,
          width: 360,
          type: 'input',
          placeholder: '请输入',
        },
        {
          label: '产品名称：',
          value: 'productNames',
          width: 380,
          type: 'input',
          placeholder: '请输入',
        },
        {
          label: '供应商名称：',
          value: 'supplierName',
          labelWidth:130,
          width: 360,
          type: 'input',
          placeholder: '请输入',
        },
        {
          label: '送货单号：',
          value: 'sendNoteNo',
          width: 380,
          type: 'input',
          placeholder: '请输入'
        },
      
        {
          label: '状态：',
          value: 'reviewStatus',
          width: 380,
          type: 'select',
          placeholder: '请选择状态',
          planList: reviewStatusSelect
        },
        {
          label: '创建时间：',
          value: 'createTime',
          type: 'date',
          dateType: 'datetimerange',
          placeholder: '',
          width: 380,
          valueAr: ['createTimeStart', 'createTimeEnd']
        },
      ];
    }
  },
  methods: {
    /* 搜索 */
    search(e) {
      this.$emit('search', {
        ...e
      });
    }
  }
};
</script>
