<script setup lang="tsx">
//客户信息补录
import { ContentWrap } from '@/components/ContentWrap';
import { customerInfoTable } from "@/pageComponent/customerInfoTable"
import { FormSchema } from '@/components/Form';
import { ElButton } from 'element-plus'
import { reactive } from 'vue';

defineOptions({
    name: 'AddRivalInfo'
})

const searchSchema = reactive<FormSchema[]>([
    {
        field: 'custCode',
        label: '交易对手姓名',
        componentProps: {},
        component: 'Input'
    },
    {
        field: 'custName',
        label: '交易对手国籍',
        componentProps: {},
        component: 'Select'
    },
    {
        field: 'custPptype',
        label: '交易对手公私类型',
        componentProps: {},
        component: 'Select'
    },
    {
        field: 'custPptype',
        label: '交易对手账号',
        componentProps: {},
        component: 'Input'
    },
    {
        field: 'custName',
        label: '交易对手账户类型',
        componentProps: {},
        component: 'Select'
    },
    {
        field: 'custName',
        label: '交易对手证件类型',
        componentProps: {},
        component: 'Select'
    },
    {
        field: 'custName',
        label: '交易对手证件号码',
        componentProps: {},
        component: 'Input'
    },
    {
        field: 'custName',
        label: '交易对手所在地',
        componentProps: {},
        component: 'Input'
    },
    {
        field: 'custName',
        label: '对方金融机构网点名称',
        componentProps: {},
        component: 'Select'
    },
    {
        field: 'custName',
        label: '对方金融机构网点代码',
        componentProps: {},
        component: 'Select'
    },
    {
        field: 'custName',
        label: '对方金融机构网点行政区划代码',
        componentProps: {},
        component: 'Input'
    },
    {
        field: 'custName',
        label: '对方金融机构网点代码类型',
        componentProps: {},
        component: 'Select'
    },
])

//保存信息
const confirmInfo = ()=>{
    console.log("保存信息")
}

</script>
<template>
  <ContentWrap>
    <customerInfoTable title="添加对手信息" branchName="对手信息" :formSchema="searchSchema" />
    <p class="buttonList">
      <ElButton type="primary" @click="confirmInfo">添加</ElButton>
    </p>
  </ContentWrap>

</template>
<style scoped>
    .buttonList{
        text-align: center;
    }
</style>