import * as React from 'react'; import { Button, Drawer, Input, Form ,message} from 'kts-xui'; import agent from '../Server'; import { FormInstance } from 'kts-components-antd-x4/lib/form'; /** Props接口 */ interface IProps { onClose: () => void; onSuccess: () => void; list: string[]; } export default class UIComponents extends React.Component { formRef:any = React.createRef(); constructor(props) { super(props); this.state = { list: props.list } console.log(props.list); } onClose = () => { this.props.onClose(); } onSubmit = () => { this.formRef.current!.submit(); } onFinish =async values => { const params={ ...values, idList:this.props.list } const res: any = await agent.post('/web/verifier/valid/invoiceDetail/refuseDetail', params, this); if (res.err) { return; } else { message.success('操作成功'); this.props.onSuccess(); } } render() { return (
} >
); } }