<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: 'finace-review-filter-table',
    components: { FilterOption },
    setup(props, context) {
        const select: SelectList[] = [
            {
                value: undefined,
                key: 'contracttype',
                placeholder: '全部合同类型',
                list: [
                    { value: 1, lable: '采购' },
                    { value: -1, lable: '销售' },
                ],
            },
        ];
        const input: InputList[] = [
            { value: '', placeholder: '模糊搜索对手方', key: 'buyusernameOrsellusername' },
            { value: '', placeholder: '模糊搜索合同编号', key: 'contractno' },
            { value: '', placeholder: '模糊搜索现货品种', key: 'deliverygoodsname' },
        ];
        return {
            ...handleFilter(select, input, context),
        };
    },
});
</script>

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