import * as React from 'react'; import IOption from './IOption'; import { ExcelImport, ScanImport, OcrScanerImport, ImageImport, AdvanceManualImport, RuleImport,CommonExcel } from './InvoiceTab'; /** 组建的props接口 */ interface IProps { urlData: IOption; refreshInvoice: () => void; onClose: () => void; currentActive: string; } export default class UIComponents extends React.Component { /** 构造函数 */ constructor(props: IProps) { super(props); } handleCancel = () => { this.props.onClose && this.props.onClose(); } renderCurrentTab = () => { const { refreshInvoice, urlData, currentActive } = this.props; switch (currentActive) { case 'scangun': // 扫码枪 return ; case 'excel': // Excel上传 return case 'image': // 影像/版式文件 return ; case 'manual': // 手工录入 return ; case 'scanner': // 扫描仪 return case 'rule': return case 'commonexcel': return } } render() { return (
{this.renderCurrentTab()}
); } }