import React from 'react'; import { connect } from 'dva'; import { Form, Input, Button, Alert, Divider } from 'antd'; import { routerRedux } from 'dva/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 = () => { dispatch(routerRedux.push('/form/step-form')); }; const onValidateForm = e => { e.preventDefault(); validateFields((err, values) => { if (!err) { dispatch({ type: 'form/submitStepForm', payload: { ...data, ...values, }, }); } }); }; return (