import React from 'react'; import { ColumnProps } from 'kts-components-antd-x3/lib/Table/interface'; import { PaginationConfig } from 'kts-components-antd-x3/lib/Table'; import { GetFieldDecoratorOptions } from 'kts-components-antd-x3/lib/form/Form'; export interface IGetBuyerListOption { /** 分页数据 */ pagination: PaginationConfig; } export interface IFormItem { id: string; label: string; node: React.ReactNode; options: GetFieldDecoratorOptions; } export interface IBuyerInfo { /** 购买方名称 */ buyerName?: string; /** 购买方纳税人识别号 */ buyerNo?: string; /** 购买方地址及电话 */ buyerAddress?: string; /** 购买方开户行及账号 */ buyerBank?: string; customerCode?: string; } /** 自动填充 */ export interface IAutoContainer { /** 购买方变化 */ onBuyNameChange: (e?: string) => Promise<{ recent?: IBuyerInfo[]; list?: IBuyerInfo[]; }>; } export default class BuyerState { /** 表头 */ columns: ColumnProps[]; /** 行点击事件 */ onRowClick: (record: any) => Promise; /** 购方列表 */ dataSource: any; /** 分页数据 */ pagination: PaginationConfig; /** 是否显示导入 */ isVisibleDrawer: boolean; /** 顶部扩展 */ topExpand?: React.ReactNode; /** 自动填充 */ autoContainer?: IAutoContainer; }