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

<script lang="ts">
import FilterOption from '@/common/components/filter/index.vue';
import { defineComponent } from 'vue';
import { handleFilter, InputList, SelectList } from '@/common/setup/filter';

export default defineComponent({
    name: 'purchase_pending-filter-table',
    components: { FilterOption },
    setup(props, context) {
        const select: SelectList[] = [];
        const input: InputList[] = [
            { value: '', placeholder: '模糊搜索销售方', key: 'accountname' },
            { value: '', placeholder: '模糊搜索合同编号', key: 'contractno' },
            { value: '', placeholder: '模糊搜索现货品种', key: 'deliverygoodsname' },
            { value: '', placeholder: '模糊搜索商品', key: 'convertfactor' },
            { value: '', placeholder: '模糊搜索点价合约', key: 'goodsname' },
        ];
        return {
            ...handleFilter(select, input, context),
        };
    },
});
</script>

<style lang="less">
</style>;
