import React from 'react'; import type { GoodsSourceFormatType, GoodsSourceType } from '../model/type'; import { FormInstance } from 'antd/es/form'; import '../model/Columns/columns.less'; interface BsGoodsProps { templateDetail?: any; form: FormInstance; value: any[]; type: string; options: any[]; disabled: boolean; showHeader: { title: string; dataIndex: string; show?: boolean; }[] | string[]; width: number; shopList: any[]; shopId: string | number; maxLength: number; showChangeBtn: boolean; hasSelectedSystemOrder: boolean; showErpGoodsBtn: boolean; showModeBtn: boolean; alwaysShowChooseErpGoodsBtn?: boolean; isStrict: boolean; tableSelect?: boolean; selectType?: string; otherOperations: any; canUpdateNumber: boolean; shopCode: string; companyKey: string; onChange: (val: any[]) => void; onSelect: (val: any[]) => void; onDelete: (val: any[]) => void; onModeChange: (val: boolean) => void; goodsSource?: GoodsSourceType; useGoodsSourceFormat: (goodsSource?: GoodsSourceType) => GoodsSourceFormatType; tradeGoods?: { uniqueKey?: string; originDataSource: Array; getDataSourceAsync?: () => Promise; selectedGoodsChange: (p: React.Key[]) => void; }; systemOrders?: any[]; selectedSystemOrders?: any[]; isReloadSelectTable?: boolean; notAllowedOperation?: boolean; validSystemOrderFn?: () => boolean | undefined; } type MakeRequired = { [P in K]-?: T[P]; } & { [P in Exclude]: T[P]; }; type SelectTradeGoodsProps = { columns: Array; dataSource: Array; getDataSourceAsync?: () => Promise; uniqueKey?: string; selectedRowKeys: Array; onChangeSelectedKeys: (p: React.Key[]) => void; isShowSelect?: boolean; systemOrders?: any[]; selectedSystemOrders?: any[]; type?: string; width?: number; validSystemOrder?: boolean; isReissueType?: boolean; isReloadSelectTable?: boolean; validSystemOrderFn?: () => boolean | undefined; }; export declare const SelectTradeGoods: { ({ columns, dataSource, getDataSourceAsync, selectedRowKeys, onChangeSelectedKeys, uniqueKey, isShowSelect, systemOrders, selectedSystemOrders, validSystemOrder, type, width, isReissueType, isReloadSelectTable, validSystemOrderFn, }: SelectTradeGoodsProps): React.JSX.Element; displayName: string; }; declare const GoodItem: { (props: MakeRequired, 'useGoodsSourceFormat'>): React.JSX.Element; displayName: string; }; export default GoodItem;