|
@@ -1,6 +1,6 @@
|
|
|
import React from 'react';
|
|
|
import { Icon, Modal, message, Spin, Timeline, Button } from 'antd';
|
|
|
-import { getPatentType, getPatentState, getTime, getPatentField, downloadFile, getStepList } from '../../tools.js';
|
|
|
+import { getPatentType, getPatentState, getTime, getPatentField, newDownloadFile, getStepList } from '../../tools.js';
|
|
|
import './patent.less';
|
|
|
import ajax from 'jquery/src/ajax/xhr.js';
|
|
|
import $ from 'jquery/src/ajax';
|
|
@@ -26,13 +26,10 @@ const PatentDesc = React.createClass({
|
|
|
},
|
|
|
getPatentInfo(thepid) {
|
|
|
$.ajax({
|
|
|
- method: "post",
|
|
|
+ method: "get",
|
|
|
dataType: "json",
|
|
|
crossDomain: false,
|
|
|
- url: globalConfig.context + "/techservice/patent/clientPatentInfo",
|
|
|
- data: {
|
|
|
- pid: thepid
|
|
|
- },
|
|
|
+ url: globalConfig.context + "/techservice/patent/clientPatentInfo?pid=" + thepid,
|
|
|
success: function (data) {
|
|
|
let thisData = data.data;
|
|
|
if (!thisData) {
|
|
@@ -116,26 +113,26 @@ const PatentDesc = React.createClass({
|
|
|
<span>专利相关材料:</span>
|
|
|
{theData.patentWritingUrl !== null && theData.patentWritingUrl !== undefined && theData.patentWritingUrl !== '' ?
|
|
|
<p className="download-file">
|
|
|
- <a onClick={downloadFile.bind(this, theData.patentWritingUrl, theData.patentWritingDownloadFileName)}>{theData.patentWritingDownloadFileName}</a>
|
|
|
+ <a onClick={newDownloadFile.bind(this, theData.id, 'patent_writing', '/techservice/patent/download')}>{theData.patentWritingDownloadFileName}</a>
|
|
|
{theData.confirmState == 0 ? <Button onClick={this.confirmButton}>确认稿件</Button> : <span></span>}
|
|
|
</p> :
|
|
|
<p><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />专利稿件未上传</p>
|
|
|
}
|
|
|
{theData.authorizationNoticeUrl !== null && theData.authorizationNoticeUrl !== undefined && theData.authorizationNoticeUrl !== '' ?
|
|
|
<p className="download-file">
|
|
|
- <a onClick={downloadFile.bind(this, theData.authorizationNoticeUrl, theData.authorizationNoticeDownloadFileName)}>{theData.authorizationNoticeDownloadFileName}</a>
|
|
|
+ <a onClick={newDownloadFile.bind(this, theData.id, 'authorization_notice', '/techservice/patent/download')}>{theData.authorizationNoticeDownloadFileName}</a>
|
|
|
</p> :
|
|
|
<p><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />授权通知书未上传</p>
|
|
|
}
|
|
|
{theData.patentCertificateUrl !== null && theData.patentCertificateUrl !== undefined && theData.patentCertificateUrl !== '' ?
|
|
|
<p className="download-file">
|
|
|
- <a onClick={downloadFile.bind(this, theData.patentCertificateUrl, theData.patentCertificateDownloadFileName)}>{theData.patentCertificateDownloadFileName}</a>
|
|
|
+ <a onClick={newDownloadFile.bind(this, theData.id, 'patent_certificate', '/techservice/patent/download')}>{theData.patentCertificateDownloadFileName}</a>
|
|
|
</p> :
|
|
|
<p><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />专利证书未上传</p>
|
|
|
}
|
|
|
{theData.patentProryStatementUrl !== null && theData.patentProryStatementUrl !== undefined && theData.patentProryStatementUrl !== '' ?
|
|
|
<p className="download-file">
|
|
|
- <a onClick={downloadFile.bind(this, theData.patentProryStatementUrl, theData.patentProryStatementDownloadFileName)}>{theData.patentProryStatementDownloadFileName}</a>
|
|
|
+ <a onClick={newDownloadFile.bind(this, theData.id, 'patent_prory_statement', '/techservice/patent/download')}>{theData.patentProryStatementDownloadFileName}</a>
|
|
|
</p> :
|
|
|
<p><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />专利代理委托书未上传</p>
|
|
|
}
|