<!-- 搜索表单 -->
<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: 'contractName',
            type: 'input',
            placeholder: '请输入',
          },
          // {
          //   label: '合同分类：',
          //   value: 'categoryName',
          //   width: 300,
          //   type: 'select',
          //   placeholder: '请选择状态',
          //   show:contactData.id?false:true,
          //   planList: []
          // },
          {
            label: '产品名称：',
            value: 'productNames',
            type: 'input',
            placeholder: '请输入'
          },
          {
            label: '版本号：',
            value: 'dversion',
            width: 380,
            type: 'input',
            placeholder: '请输入'
          },
        
          {
            label: '甲方名称：',
            value: 'partaName',
            width: 380,
            type: 'input',
            placeholder: '请输入'
          },
          {
            label: '乙方名称：',
            value: 'partbName',
            width: 380,
            type: 'input',
            placeholder: '请输入'
          },
          {
            label: '编码：',
            value: 'contractNo',
            width: 380,
            type: 'input',
            placeholder: '请输入'
          },
          {
            label: '合同编号：',
            value: 'contractNumber',
            width: 380,
            type: 'input',
            placeholder: '请输入'
          },
          {
            label: '是否可用：',
            value: 'enabled',
            width: 380,
            type: 'select',
            placeholder: '请选择状态',
            planList: []
          },
          {
            label: '签订日期：',
            value: 'contractStartDate',
            type: 'date',
            dateType: 'datetimerange',
            placeholder: '',
            width: 380,
            valueAr: ['createTimeStart', 'createTimeEnd']
          },
          {
            label: '结束日期：',
            value: 'contractEndDate',
            type: 'date',
            dateType: 'datetimerange',
            placeholder: '',
            width: 380,
            valueAr: ['createTimeStart', 'createTimeEnd']
          },
          {
            label: '收付款类型：',
            value: 'receiptPaymentType',
            width: 370,
            labelWidth: 130,
            type: 'input',
            placeholder: '请输入'
          },
          {
            label: '合同总金额：',
            value: 'totalPrice',
            width: 370,
            labelWidth: 130,
            type: 'input',
            placeholder: '请输入'
          },
          {
            label: '审核状态：',
            value: 'status',
            width: 380,
            type: 'select',
            placeholder: '请选择状态',
            planList: reviewStatusSelect
          },
          {
            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>
