<!-- 搜索表单 -->
<template>
  <seekPage :seekList="seekList" :formLength="3" @search="search"></seekPage>
</template>
<script>
  import { reviewStatusSelect,saleOrderProgressStatusEnum,activity_type } from '@/enum/dict';
  export default {
    data() {
      return {};
    },
    computed: {
      // 表格列配置
      seekList() {
        return [
        {
            label: '关键字：',
            value: 'searchName',
            type: 'input',
            placeholder: '退货单编码/订单编码/发货单编码/产品名称'
          },
          {
            label: '退货单编码：',
            value: 'returnNo',
            type: 'input',
            placeholder: '请输入'
          },
          {
            label: '销售订单编码：',
            value: 'orderNo',
            type: 'input',
            placeholder: '请输入'
          },
          {
            label: '发货单编码：',
            value: 'sendNo',
            width: 370,
            labelWidth:130,
            type: 'input',
            placeholder: '请输入'
          },
          {
            label: '审核状态：',
            value: 'reviewStatus',
            width: 380,
            type: 'select',
            planList: reviewStatusSelect,
            placeholder: '请选择审核状态'
          },
          {
            label: '产品名称：',
            value: 'productName',
            width: 380,
            type: 'input',
            placeholder: '请输入'
          },
          {
            label: '客户名称：',
            value: 'contactName',
            width: 380,
            type: 'input',
            placeholder: '请输入'
          },
          {
            label: '总金额：',
            value: 'totalAmount',
            width: 380,
            type: 'input',
            placeholder: '请输入'
          },
          {
            label: '退货类型：',
            value: 'returnSourceType',
            width: 380,
            type: 'select',
            planList:[
              {label:'售后退货',value:1},
              {label:'销售发货退货',value:3},
              {label:'受托收货退货',value:2},
              {label:'销售订单退货',value:4},
            ],
            placeholder: '请选择'
          },
          {
            label: '批次号：',
            value: 'batchNo',
            width: 380,
            type: 'input',
            placeholder: '请输入'
          },
          {
            label: '创建人：',
            value: 'createUserName',
            width: 380,
            type: 'input',
            placeholder: '请输入'
          },
          {
            label: '创建时间：',
            value: 'createTime',
            type: 'date',
            dateType: 'datetimerange',
            placeholder: '',
            width: 380,
            valueAr: ['createTimeStart', 'createTimeEnd']
          },
        ];
      }
    },
    methods: {
      /* 搜索 */
      search(e) {
        this.$emit('search', {
          ...e
        });
      }
    }
  };
</script>
