import React from 'react'; import { Input, Button, Form, Icon, Spin, message, } from 'antd'; import './certify.less'; import { newDownloadFile } from '../tools'; import ajax from 'jquery/src/ajax/xhr.js' import $ from 'jquery/src/ajax'; const Content = Form.create()(React.createClass({ getData() { this.setState({ loading: true }); $.ajax({ method: "get", dataType: "json", url: globalConfig.context + "/api/user/orgProcess", success: function (data) { if (data.data) { this.setState({ unitName: data.data.unitName, licenceNumber: data.data.licenceNumber, licenceScanningUrl: data.data.licenceScanningUrl, orgCode: data.data.orgCode, orgCodeUrl: data.data.orgCodeUrl, lastYearTaxReportUrl: data.data.lastYearTaxReportUrl, ratepayId: data.data.ratepayId, firstContacts: data.data.firstContacts, firstMobile: data.data.firstMobile, bankAccount: data.data.bankAccount, banks: data.data.banks, bankBranch: data.data.bankBranch, bankCardNumber: data.data.bankCardNumber, legalPerson: data.data.legalPerson, legalPersonIdCard: data.data.legalPersonIdCard, }); }; }.bind(this), }).done(function (data) { if (data.error.length) { message.warning(data.error[0].message); } }.bind(this)).always(function () { this.setState({ loading: false }); }.bind(this)); }, getInitialState() { return { loading: false }; }, handleSubmit() { this.setState({ loading: true }); $.ajax({ method: "POST", dataType: "json", crossDomain: false, url: globalConfig.context + "/api/user/orgNextPro", data: { process: 3 } }).done(function (data) { if (!data.error.length) { message.success('保存成功!'); this.props.changeStep(4); } else { message.warning(data.error[0].message); this.setState({ loading: false }); } }.bind(this)); }, componentWillMount() { this.getData(); }, changeStep() { this.props.changeStep(1); }, render() { const FormItem = Form.Item; const { getFieldDecorator } = this.props.form; const formItemLayout = { labelCol: { span: 6 }, wrapperCol: { span: 12 }, }; const _me = this; return (

请确认提交的企业信息

{this.state.unitName} {this.state.licenceNumber}
上年度纳税报表

请确认银行卡信息

{this.state.bankAccount} {this.state.banks} {this.state.bankBranch} {this.state.bankCardNumber} {this.state.firstContacts + ' ' + this.state.firstMobile}

请确认法人信息

{this.state.legalPerson} {this.state.legalPersonIdCard} 提醒:银行卡号、营业执照号码、组织机构代码证号码,认证成功之前, 最多只能申请认证3次;认证成功后,不能再申请认证。 ); }, })); export default Content;