<!-- 搜索表单 -->
<template>
  <seekPage
    ref="seekPage"
    v-if="seekList.length"
    :seekList="seekList"
    :formLength="4"
    @search="search"
  ></seekPage>
</template>
<script>
  import { reviewStatusSelect, saleOrderProgressStatusEnum } from '@/enum/dict';
  export default {
    data() {
      return {};
    },
    computed: {
      // 表格列配置
      seekList() {
        return [
          {
            label: '销售订单号：',
            value: 'orderNo',
            type: 'input',
            placeholder: '',
          },
          {
            label: '项目名称：',
            value: 'projectName',
            type: 'input',
            placeholder: ''
          },
          {
            label: '客户名称：',
            value: 'customerName',
            type: 'input',
            placeholder: ''
          },
          {
            label: '创建时间：',
            value: 'createTime',
            type: 'date',
            dateType: 'daterange',
            placeholder: '',
            width: 380,
            valueAr: ['startDate', 'endDate']
          },
          {
            label: '订单状态',
            value: 'progress',
            type: 'select',
            planList: saleOrderProgressStatusEnum,
            width: 380,
            placeholder: ''
          }
        ];
      }
    },
    methods: {
      /* 搜索 */
      search(e) {
        this.$emit('search', {
          ...e
        });
      }
    }
  };
</script>
