yee 8 vuotta sitten
vanhempi
commit
89c221510d

+ 4 - 4
js/component/manageCenter/servicesManage/highTech/fosterDesc/achievement.jsx

@@ -1,7 +1,7 @@
 import React from 'react';
 import { Icon, Form, Button, Input, Spin, Table, message, Select, Modal, InputNumber, Upload } from 'antd';
 import './techProduct.less';
-import { getConversionForm, beforeUploadFile, downloadFile } from '../../../../tools.js';
+import { getConversionForm, beforeUploadFile, newDownloadFile } from '../../../../tools.js';
 import { conversionFormList, technicalSourceList } from '../../../../dataDic.js';
 import ajax from 'jquery/src/ajax/xhr.js';
 import $ from 'jquery/src/ajax';
@@ -184,7 +184,7 @@ const AchievementDescFrom = Form.create()(React.createClass({
                     >
                         <Button><Icon type="upload" /> 上传科技成果附件 </Button>
                     </Upload>
-                    <p style={{ marginTop: '10px' }}>{theData.enclosureUrl ? <a onClick={downloadFile.bind(null, theData.enclosureUrl, theData.enclosureDownloadFileName)}>{theData.enclosureDownloadFileName}</a> : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
+                    <p style={{ marginTop: '10px' }}>{theData.enclosureUrl ? <a onClick={newDownloadFile.bind(null, this.props.data.id, 'achievement', '/api/admin/downloadAchievement')}>{theData.enclosureDownloadFileName}</a> : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
                 </div>
                 <FormItem style={{ marginTop: '20px' }}>
                     <Button className="set-submit" type="primary" htmlType="submit">保存</Button>
@@ -297,7 +297,7 @@ const Achievement = React.createClass({
                     year: thisdata.year,
                     enclosureUrl: thisdata.enclosureUrl,
                     enclosureDownloadFileName: thisdata.enclosureDownloadFileName,
-                    enclosure: [thisdata.enclosureUrl, thisdata.enclosureDownloadFileName]
+                    enclosure: [thisdata.id, thisdata.enclosureDownloadFileName]
                 });
             };
             this.state.activityNumberList = activityNumber.data;
@@ -357,7 +357,7 @@ const Achievement = React.createClass({
                     dataIndex: 'enclosure',
                     key: 'enclosure',
                     render: (text) => {
-                        return <a onClick={downloadFile.bind(null, text[0], text[1])}>{text[1]}</a>
+                        return <a onClick={newDownloadFile.bind(null, text[0], 'achievement', '/api/admin/downloadAchievement')}>{text[1]}</a>
                     }
                 }
             ],

+ 1 - 1
js/component/manageCenter/servicesManage/highTech/fosterDesc/activity.jsx

@@ -300,7 +300,7 @@ const ActivityDesc = React.createClass({
                             >
                                 <Button><Icon type="upload" /> 上传立项证明材料 </Button>
                             </Upload>
-                            <p>{this.state.proofUrl ? <a onClick={downloadFile.bind(null, this.state.proofUrl, this.state.proofDownloadFileName)}>{this.state.proofDownloadFileName}</a> : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
+                            <p>{this.state.proofUrl ? <a onClick={newDownloadFile.bind(null, this.props.data.id, 'proof', '/api/admin/downloadProof')}>{this.state.proofDownloadFileName}</a> : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
                         </div>
                     </Modal>
                 </div>

+ 2 - 2
js/component/manageCenter/servicesManage/highTech/fosterDesc/activityCostList.jsx

@@ -1,7 +1,7 @@
 import React from 'react';
 import { Icon, Form, Upload, Button, Input, Spin, Table, message, Select, Modal, DatePicker, InputNumber } from 'antd';
 import './activityCostList.less';
-import { beforeUploadFile, downloadFile } from '../../../../tools.js';
+import { beforeUploadFile, newDownloadFile } from '../../../../tools.js';
 import moment from 'moment';
 import ajax from 'jquery/src/ajax/xhr.js';
 import $ from 'jquery/src/ajax';
@@ -294,7 +294,7 @@ const ActivityDescFrom = Form.create()(React.createClass({
                     >
                         <Button><Icon type="upload" /> 上传研发费用台账 </Button>
                     </Upload>
-                    <p style={{ marginTop: '20px' }}>{theData.accountUrl ? <a onClick={downloadFile.bind(null, theData.accountUrl, theData.accountDownloadFileName)}>{theData.accountDownloadFileName}</a> : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
+                    <p style={{ marginTop: '20px' }}>{theData.accountUrl ? <a onClick={newDownloadFile.bind(null, this.props.data.id, 'activity_cost_account', '/api/admin/downloadActivityCost')}>{theData.accountDownloadFileName}</a> : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
                 </div>
                 <FormItem style={{ marginTop: '20px' }}>
                     <Button className="set-submit" type="primary" htmlType="submit">保存</Button>

+ 4 - 4
js/component/manageCenter/servicesManage/highTech/fosterDesc/finance.jsx

@@ -1,7 +1,7 @@
 import React from 'react';
 import { Icon, Form, Button, Input, Spin, Table, message, Select, Modal, InputNumber, Upload } from 'antd';
 import './techProduct.less';
-import { beforeUploadFile, downloadFile } from '../../../../tools.js';
+import { beforeUploadFile, newDownloadFile } from '../../../../tools.js';
 import moment from 'moment';
 import ajax from 'jquery/src/ajax/xhr.js';
 import $ from 'jquery/src/ajax';
@@ -241,7 +241,7 @@ const FinanceDescFrom = Form.create()(React.createClass({
                     >
                         <Button><Icon type="upload" /> 上传财务报表 </Button>
                     </Upload>
-                    <p style={{ marginTop: '10px' }}>{theData.financeUrl ? <a onClick={downloadFile.bind(null, theData.financeUrl, theData.financeDownloadFileName)}>{theData.financeDownloadFileName}</a> : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
+                    <p style={{ marginTop: '10px' }}>{theData.financeUrl ? <a onClick={newDownloadFile.bind(null, this.props.data.id, 'finance', '/api/admin/downloadFinance')}>{theData.financeDownloadFileName}</a> : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
                 </div>
                 <FormItem style={{ marginTop: '20px' }}>
                     <Button className="set-submit" type="primary" htmlType="submit">保存</Button>
@@ -346,7 +346,7 @@ const Finance = React.createClass({
                     year: thisdata.year,
                     financeUrl: thisdata.financeUrl,
                     financeDownloadFileName: thisdata.financeDownloadFileName,
-                    finance: [thisdata.financeUrl, thisdata.financeDownloadFileName]
+                    finance: [thisdata.id, thisdata.financeDownloadFileName]
                 });
             };
             this.state.pagination.current = data.data.pageNo;
@@ -412,7 +412,7 @@ const Finance = React.createClass({
                     dataIndex: 'finance',
                     key: 'finance',
                     render: (text) => {
-                        return <a onClick={downloadFile.bind(null, text[0], text[1])}>{text[1]}</a>
+                        return <a onClick={newDownloadFile.bind(null, text[0], 'finance', '/api/admin/downloadFinance')}>{text[1]}</a>
                     }
                 }
             ],

+ 4 - 4
js/component/manageCenter/servicesManage/highTech/fosterDesc/honorList.jsx

@@ -1,7 +1,7 @@
 import React from 'react';
 import { Icon, Form, Button, Input, Spin, Table, message, Modal, Upload, DatePicker } from 'antd';
 import './techProduct.less';
-import { beforeUploadFile, downloadFile } from '../../../../tools.js';
+import { beforeUploadFile, newDownloadFile } from '../../../../tools.js';
 import moment from 'moment';
 import ajax from 'jquery/src/ajax/xhr.js';
 import $ from 'jquery/src/ajax';
@@ -121,7 +121,7 @@ const HonorListDescFrom = Form.create()(React.createClass({
                     >
                         <Button><Icon type="upload" /> 上传企业荣誉附件 </Button>
                     </Upload>
-                    <p style={{ marginTop: '10px' }}>{theData.enclosureUrl ? <a onClick={downloadFile.bind(null, theData.enclosureUrl, theData.enclosureDownloadFileName)}>{theData.enclosureDownloadFileName}</a> : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
+                    <p style={{ marginTop: '10px' }}>{theData.enclosureUrl ? <a onClick={newDownloadFile.bind(null, this.props.data.id, 'honor', '/api/admin/downloadHonor')}>{theData.enclosureDownloadFileName}</a> : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
                 </div>
                 <FormItem style={{ marginTop: '20px' }}>
                     <Button className="set-submit" type="primary" htmlType="submit">保存</Button>
@@ -218,7 +218,7 @@ const HonorList = React.createClass({
                     issuingTime: thisdata.issuingTime,
                     enclosureUrl: thisdata.enclosureUrl,
                     enclosureDownloadFileName: thisdata.enclosureDownloadFileName,
-                    enclosure: [thisdata.enclosureUrl, thisdata.enclosureDownloadFileName],
+                    enclosure: [thisdata.id, thisdata.enclosureDownloadFileName],
                     issuingTimeFormattedDate: thisdata.issuingTimeFormattedDate,
                     issuingMechanism: thisdata.issuingMechanism
                 });
@@ -270,7 +270,7 @@ const HonorList = React.createClass({
                     dataIndex: 'enclosure',
                     key: 'enclosure',
                     render: (text) => {
-                        return <a onClick={downloadFile.bind(null, text[0], text[1])}>{text[1]}</a>
+                        return <a onClick={newDownloadFile.bind(null, text[0], 'honor', '/api/admin/downloadHonor')}>{text[1]}</a>
                     }
                 }
             ],

+ 8 - 8
js/component/manageCenter/servicesManage/highTech/fosterDesc/hrSituation.jsx

@@ -1,6 +1,6 @@
 import React from 'react';
 import { Input, InputNumber, Button, Form, Icon, Spin, message, Table, Modal, Upload, Select } from 'antd';
-import { beforeUploadFile, downloadFile } from '../../../../tools.js';
+import { beforeUploadFile, newDownloadFile } from '../../../../tools.js';
 import './hrSituation.less'
 import ajax from 'jquery/src/ajax/xhr.js'
 import $ from 'jquery/src/ajax';
@@ -47,7 +47,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
                 message.warning("全体人员结构中年龄一栏人数总和小于等于职工人数!");
                 return;
             };
-            if (!this.state.year && !this.props.year) {
+            if (!this.state.year && !this.props.data.year) {
                 message.warning("请输入年份!");
                 return;
             };
@@ -61,7 +61,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
                     data: {
                         id: this.props.data.id,
                         uid: this.props.uid,
-                        year: this.state.year || this.props.year,
+                        year: this.state.year || this.props.data.year,
                         aboveFifty: values.aboveFifty,
                         belowThirty: values.belowThirty,
                         college: values.college,
@@ -474,7 +474,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
                     >
                         <Button><Icon type="upload" /> 上传花名册 </Button>
                     </Upload>
-                    <p style={{ marginTop: '10px' }}>{theData.rosterUrl ? <a onClick={downloadFile.bind(null, theData.rosterUrl, theData.rosterDownloadFileName)}>{theData.rosterDownloadFileName}</a> : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
+                    <p style={{ marginTop: '10px' }}>{theData.rosterUrl ? <a onClick={newDownloadFile.bind(null, this.props.data.id, 'roster', '/api/admin/downloadHumanResource')}>{theData.rosterDownloadFileName}</a> : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
                 </div>
                 <div className="hrSituation-roster">
                     <Upload
@@ -502,7 +502,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
                     >
                         <Button><Icon type="upload" /> 上传社保情况 </Button>
                     </Upload>
-                    <p style={{ marginTop: '10px' }}>{theData.socialSecurityUrl ? <a onClick={downloadFile.bind(null, theData.socialSecurityUrl, theData.socialSecurityDownloadFileName)}>{theData.socialSecurityDownloadFileName}</a> : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
+                    <p style={{ marginTop: '10px' }}>{theData.socialSecurityUrl ? <a onClick={newDownloadFile.bind(null, this.props.data.id, 'social_security', '/api/admin/downloadHumanResource')}>{theData.socialSecurityDownloadFileName}</a> : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
                 </div>
                 <div>
                     <span style={{ color: "red" }}>提示</span>
@@ -633,7 +633,7 @@ const HrSituation = React.createClass({
                     socialSecurityUrl: thisdata.socialSecurityUrl,
                     socialSecurityDownloadFileName: thisdata.socialSecurityDownloadFileName,
 
-                    attachment: [thisdata.rosterUrl, thisdata.rosterDownloadFileName, thisdata.socialSecurityUrl, thisdata.socialSecurityDownloadFileName],
+                    attachment: [thisdata.id, thisdata.rosterDownloadFileName, thisdata.socialSecurityDownloadFileName],
 
                     newEmployment: thisdata.newEmployment,
                     graduateNumber: thisdata.graduateNumber
@@ -699,8 +699,8 @@ const HrSituation = React.createClass({
                     key: 'attachment',
                     render: (text) => {
                         return <div>
-                            <a style={{ marginRight: '10px' }} onClick={downloadFile.bind(null, text[0], text[1])}>{text[1]}</a>
-                            <a onClick={downloadFile.bind(null, text[2], text[3])}>{text[3]}</a>
+                            <a style={{ marginRight: '10px' }} onClick={newDownloadFile.bind(null, text[0], 'roster', '/api/admin/downloadHumanResource')}>{text[1]}</a>
+                            <a onClick={newDownloadFile.bind(null, text[0], 'social_security', '/api/admin/downloadHumanResource')}>{text[2]}</a>
                         </div>
                     }
                 }

+ 2 - 2
js/component/manageCenter/servicesManage/highTech/fosterDesc/intellectualDesc.jsx

@@ -1,7 +1,7 @@
 import React from 'react';
 import { Icon, Modal, Button, Form, message, Input, Spin, Select, DatePicker, Upload } from 'antd';
 import { intellectualGetList, catagoryList } from '../../../../dataDic.js';
-import { beforeUploadFile, downloadFile } from '../../../../tools.js';
+import { beforeUploadFile, newDownloadFile } from '../../../../tools.js';
 import ajax from 'jquery/src/ajax/xhr.js'
 import $ from 'jquery/src/ajax';
 import moment from 'moment';
@@ -196,7 +196,7 @@ const IntellectualDescFrom = Form.create()(React.createClass({
                     >
                         <Button><Icon type="upload" /> 上传知识产权证书 </Button>
                     </Upload>
-                    <p style={{ margin: '10px 0' }}>{theData.propertyRightUrl ? <a onClick={downloadFile.bind(null, theData.propertyRightUrl, theData.propertyRightDownloadFileName)}>{theData.propertyRightDownloadFileName}</a> : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
+                    <p style={{ margin: '10px 0' }}>{theData.propertyRightUrl ? <a onClick={newDownloadFile.bind(null, this.props.data.id, 'property_right', '/api/admin/downloadPropertyRight')}>{theData.propertyRightDownloadFileName}</a> : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
                 </div>
                 <FormItem>
                     <Button className="set-submit" type="primary" htmlType="submit">保存</Button>

+ 5 - 5
js/component/manageCenter/servicesManage/highTech/fosterDesc/orgTechCenter.jsx

@@ -1,7 +1,7 @@
 import React from 'react';
 import { Icon, Form, Button, Input, Spin, Table, message, Modal, Upload, DatePicker } from 'antd';
 import './techProduct.less';
-import { beforeUploadFile, downloadFile } from '../../../../tools.js';
+import { beforeUploadFile, newDownloadFile } from '../../../../tools.js';
 import moment from 'moment';
 import ajax from 'jquery/src/ajax/xhr.js';
 import $ from 'jquery/src/ajax';
@@ -128,7 +128,7 @@ const CenterListDescFrom = Form.create()(React.createClass({
                     >
                         <Button><Icon type="upload" /> 上传协议附件 </Button>
                     </Upload>
-                    <p style={{ marginTop: '10px' }}>{theData.protocolUrl ? <a onClick={downloadFile.bind(null, theData.protocolUrl, theData.protocolDownloadFileName)}>{theData.protocolDownloadFileName}</a> : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
+                    <p style={{ marginTop: '10px' }}>{theData.protocolUrl ? <a onClick={newDownloadFile.bind(null, this.props.data.id, 'protocol', '/api/admin/downloadProtocol')}>{theData.protocolDownloadFileName}</a> : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
                 </div>
                 <FormItem style={{ marginTop: '20px' }}>
                     <Button className="set-submit" type="primary" htmlType="submit">保存</Button>
@@ -259,7 +259,7 @@ const CenterList = React.createClass({
                     projectName: thisdata.projectName,
                     protocolDownloadFileName: thisdata.protocolDownloadFileName,
                     protocolUrl: thisdata.protocolUrl,
-                    protocol: [thisdata.protocolUrl, thisdata.protocolDownloadFileName],
+                    protocol: [thisdata.id, thisdata.protocolDownloadFileName],
                     institution: thisdata.institution,
                     termTimeFormattedDate: thisdata.termTimeFormattedDate
                 });
@@ -315,7 +315,7 @@ const CenterList = React.createClass({
                     dataIndex: 'protocol',
                     key: 'protocol',
                     render: (text) => {
-                        return <a onClick={downloadFile.bind(null, text[0], text[1])}>{text[1]}</a>
+                        return <a onClick={newDownloadFile.bind(null, text[0], 'protocol', '/api/admin/downloadProtocol')}>{text[1]}</a>
                     }
                 }
             ],
@@ -483,7 +483,7 @@ const CenterList = React.createClass({
                         >
                             <Button><Icon type="upload" /> 上传研发部门制度 </Button>
                         </Upload>
-                        <p style={{ marginTop: '10px' }}>{this.state.systemUrl ? <a onClick={downloadFile.bind(null, this.state.systemUrl, this.state.systemDownloadFileName)}>{this.state.systemDownloadFileName}</a> : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
+                        <p style={{ marginTop: '10px' }}>{this.state.systemUrl ? <a onClick={newDownloadFile.bind(null, this.state.cid, 'institution', '/api/admin/downloadInstitution')}>{this.state.systemDownloadFileName}</a> : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
                     </div>
                 </div>
                 <Button type='primary' onClick={this.saveCenterDetail} style={{ marginBottom: '10px' }}>保存</Button>

+ 4 - 4
js/component/manageCenter/servicesManage/highTech/fosterDesc/ratepay.jsx

@@ -1,7 +1,7 @@
 import React from 'react';
 import { Icon, Form, Button, Input, Spin, Table, message, Select, Modal, InputNumber, Upload } from 'antd';
 import './techProduct.less';
-import { beforeUploadFile, downloadFile } from '../../../../tools.js';
+import { beforeUploadFile, newDownloadFile } from '../../../../tools.js';
 import ajax from 'jquery/src/ajax/xhr.js';
 import $ from 'jquery/src/ajax';
 
@@ -217,7 +217,7 @@ const RatepayDescFrom = Form.create()(React.createClass({
                     >
                         <Button><Icon type="upload" /> 上传企业纳税申报表 </Button>
                     </Upload>
-                    <p style={{ marginTop: '10px' }}>{theData.taxReturnUrl ? <a onClick={downloadFile.bind(null, theData.taxReturnUrl, theData.taxReturnDownloadFileName)}>{theData.taxReturnDownloadFileName}</a> : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
+                    <p style={{ marginTop: '10px' }}>{theData.taxReturnUrl ? <a onClick={newDownloadFile.bind(null, this.props.data.id, 'ratepay', '/api/admin/downloadRatepay')}>{theData.taxReturnDownloadFileName}</a> : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
                 </div>
                 <FormItem style={{ marginTop: '20px' }}>
                     <Button className="set-submit" type="primary" htmlType="submit">保存</Button>
@@ -320,7 +320,7 @@ const Ratepay = React.createClass({
                     year: thisdata.year,
                     taxReturnUrl: thisdata.taxReturnUrl,
                     taxReturnDownloadFileName: thisdata.taxReturnDownloadFileName,
-                    taxReturn: [thisdata.taxReturnUrl, thisdata.taxReturnDownloadFileName]
+                    taxReturn: [thisdata.id, thisdata.taxReturnDownloadFileName]
                 });
             };
             this.state.pagination.current = data.data.pageNo;
@@ -378,7 +378,7 @@ const Ratepay = React.createClass({
                     dataIndex: 'taxReturn',
                     key: 'taxReturn',
                     render: (text) => {
-                        return <a onClick={downloadFile.bind(null, text[0], text[1])}>{text[1]}</a>
+                        return <a onClick={newDownloadFile.bind(null, text[0], 'ratepay', '/api/admin/downloadRatepay')}>{text[1]}</a>
                     }
                 }
             ],

+ 1 - 1
js/component/manageCenter/servicesManage/highTech/fosterDesc/techProduct.jsx

@@ -253,7 +253,7 @@ const TechProductDescFrom = Form.create()(React.createClass({
                     >
                         <Button><Icon type="upload" /> 上传高新技术产品台帐 </Button>
                     </Upload>
-                    <p style={{ marginTop: '10px' }}>{theData.accountUrl ? <a onClick={downloadFile.bind(null, theData.accountUrl, theData.accountDownloadFileName)}>{theData.accountDownloadFileName}</a> : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
+                    <p style={{ marginTop: '10px' }}>{theData.accountUrl ? <a onClick={newDownloadFile.bind(null, this.props.data.id, 'tech_product', '/api/admin/downloadTecProduct')}>{theData.accountDownloadFileName}</a> : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
                 </div>
                 <FormItem style={{ marginTop: '20px' }}>
                     <Button className="set-submit" type="primary" htmlType="submit">保存</Button>

+ 2 - 2
js/component/manageCenter/servicesManage/patent/comPatentDesc.jsx

@@ -346,9 +346,9 @@ const PatentDesc = React.createClass({
                                     }
                                     {theData.lastYearTaxReportUrl !== null && theData.lastYearTaxReportUrl !== undefined && theData.lastYearTaxReportUrl !== '' ?
                                         <p className="download-file">
-                                            <a onClick={newDownloadFile.bind(null, theData.lastYearTaxReportUrl, theData.lastYearTaxReportDownloadFileName)}>{theData.lastYearTaxReportDownloadFileName}</a>
+                                            <a onClick={newDownloadFile.bind(null, this.state.xid, "last_year_ratepay", "/api/admin/patent/downloadHonor")}>{theData.lastYearTaxReportDownloadFileName}</a>
                                         </p> :
-                                        <p><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />上年度纳税报表未上传</p>
+                                        <p><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />上年度纳税报表</p>
                                     }
                                 </div>
                                 <Avatar urlData={this.getPatentWritingUrl} name='patent_writing' uid={theData.uid}/>