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 CorrectionDesc = 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/replyConfirm", data: { pid: this.props.data.pid, uid: this.props.data.uid, patentState: this.props.data.patentState }, success: function (data) { if (data.error && data.error.length) { message.warning(data.error[0].message); } 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}

{(() => { if (this.props.data.patentState == 6) { return 审查意见 } else if (this.props.data.patentState == 8) { return 补正通知 } })()} 确认已经答复?

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