<template>
  <!-- 过滤客户资料表格 -->
  <div class="filterTable">
    <FilterOption :inputList="inputList" :buttonList="buttonList" />
    <slot></slot>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
import { Ermcp3SellBuyContract } from '@/views/business/purchase/list/index';
import { useFilter } from '@/common/components/filter/setup';
import FilterOption from '@/common/components/filter/index.vue';

export default defineComponent({
  name: 'sell-filter',
  components: {
    FilterOption
  },
  setup(props, context) {
    const { inputList, buttonList } = useFilter<Ermcp3SellBuyContract>(context);

    inputList.value = [
      { keys: ['contractno'], value: '', placeholder: '模糊搜索合同编号' },
      { keys: ['nickname'], value: '', placeholder: '模糊搜索采购方' },
      { keys: ['wrstandardname'], value: '', placeholder: '模糊搜索商品' },
      { keys: ['goodscode'], value: '', placeholder: '模糊搜索点价合约' },
    ]

    return {
      inputList,
      buttonList,
    }
  },
});
</script>