import React from 'react'; import { Icon, Modal, message, Spin, Button } from 'antd'; import './comprehensive.less'; import ajax from 'jquery/src/ajax/xhr.js'; import $ from 'jquery/src/ajax'; const PatentDesc = React.createClass({ getInitialState() { return { visible: false, loading: false, }; }, showModal() { this.setState({ visible: true, }); }, handleOk() { this.setState({ loading: true }); $.ajax({ method: "post", dataType: "json", crossDomain: false, url: globalConfig.context + "/api/admin/patent/confirmPayment", data: { cid: this.props.data.cid, uid: this.props.data.uid }, success: function (data) { if (data.error && data.error.length) { message.warning(data.error[0].message); return; } else { message.success('保存成功!'); this.props.closeDesc(false, true); }; }.bind(this), }).always(function () { this.setState({ loading: false, visible: false, }); }.bind(this)); }, handleCancel(e) { this.setState({ visible: false, }); this.props.closeDesc(false); }, componentWillReceiveProps(nextProps) { this.state.visible = nextProps.showDesc }, render() { if (this.props.data) { return (
确认缴费, , ]} className="patent-desc-content">

确认已经缴纳 {this.props.data.unitName} 公司专利 {this.props.data.patentName} 的年登印费用?

); } else { return
} }, }); export default PatentDesc;