import React from 'react'; import { connect } from 'dva'; import { Form, Input, Button, Alert, Divider } from 'antd'; import router from 'umi/router'; import { digitUppercase } from '@/utils/utils'; import styles from './style.less'; const formItemLayout = { labelCol: { span: 5, }, wrapperCol: { span: 19, }, }; @Form.create() class Step2 extends React.PureComponent { render() { const { form, data, dispatch, submitting } = this.props; const { getFieldDecorator, validateFields } = form; const onPrev = () => { router.push('/form/step-form/info'); }; const onValidateForm = e => { e.preventDefault(); validateFields((err, values) => { if (!err) { dispatch({ type: 'form/submitStepForm', payload: { ...data, ...values, }, }); } }); }; return (