<!-- 搜索表单 -->
<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: 'type',
            type: 'DictSelection',
            dictName:"市场活动类型",
          },
          {
            label: '负责人：',
            value: 'commanderName',
            type: 'input',
            placeholder: '请输入'
          },
          // {
          //   label: '来访时间：',
          //   value: 'targetTime',
          //   width: 380,
          //   type: 'input',
          //   placeholder: '请选择来访时间'
          // },
          {
            label: '主题：',
            value: 'name',
            width: 380,
            type: 'input',
            placeholder: '请输入'
          },
          {
            label: '来访单位：',
            value: 'visitingUnitsName',
            width: 380,
            type: 'input',
            placeholder: '请输入'
          },
          {
            label: '审核状态：',
            value: 'orderStatus',
            width: 380,
            type: 'select',
            planList: reviewStatusSelect,
            placeholder: '请选择审核状态'
          },
          {
            label: '创建时间：',
            value: 'createTime',
            type: 'date',
            dateType: 'datetimerange',
            placeholder: '',
            width: 380,
            valueAr: ['createTimeStart', 'createTimeEnd']
          },
        ];
      }
    },
    methods: {
      /* 搜索 */
      search(e) {
        this.$emit('search', {
          ...e
        });
      }
    }
  };
</script>
