Browse Source

upload 显示样式调整

yee 7 years ago
parent
commit
693ebe91f4
34 changed files with 224 additions and 121 deletions
  1. 4 2
      js/component/account/services/achievement.jsx
  2. 4 2
      js/component/account/services/activity.jsx
  3. 6 3
      js/component/account/services/activityCostList.jsx
  4. 8 4
      js/component/account/services/copyright/comPatentChange.jsx
  5. 4 4
      js/component/account/services/finance.jsx
  6. 4 2
      js/component/account/services/honorList.jsx
  7. 4 2
      js/component/account/services/intellectualDesc.jsx
  8. 18 6
      js/component/account/services/orgTechCenter.jsx
  9. 3 2
      js/component/account/services/patentAdd.jsx
  10. 4 4
      js/component/account/services/ratepay.jsx
  11. 16 12
      js/component/account/services/standard.jsx
  12. 4 2
      js/component/account/services/techProduct.jsx
  13. 4 2
      js/component/account/services/technologyChange.jsx
  14. 8 4
      js/component/account/set/hrSituation.jsx
  15. 11 6
      js/component/manageCenter/servicesManage/copyright/comPatentChange.jsx
  16. 4 2
      js/component/manageCenter/servicesManage/highTech/fosterDesc/achievement.jsx
  17. 4 2
      js/component/manageCenter/servicesManage/highTech/fosterDesc/activity.jsx
  18. 4 2
      js/component/manageCenter/servicesManage/highTech/fosterDesc/activityCostList.jsx
  19. 4 4
      js/component/manageCenter/servicesManage/highTech/fosterDesc/finance.jsx
  20. 4 2
      js/component/manageCenter/servicesManage/highTech/fosterDesc/honorList.jsx
  21. 8 4
      js/component/manageCenter/servicesManage/highTech/fosterDesc/hrSituation.jsx
  22. 4 2
      js/component/manageCenter/servicesManage/highTech/fosterDesc/intellectualDesc.jsx
  23. 13 4
      js/component/manageCenter/servicesManage/highTech/fosterDesc/orgTechCenter.jsx
  24. 4 4
      js/component/manageCenter/servicesManage/highTech/fosterDesc/ratepay.jsx
  25. 14 10
      js/component/manageCenter/servicesManage/highTech/fosterDesc/standard.jsx
  26. 4 2
      js/component/manageCenter/servicesManage/highTech/fosterDesc/techProduct.jsx
  27. 1 1
      js/component/manageCenter/servicesManage/highTech/highTechApply.jsx
  28. 4 0
      js/component/manageCenter/servicesManage/highTech/highTechFoster.less
  29. 2 0
      js/component/manageCenter/servicesManage/highTech/highTechInfo.jsx
  30. 13 2
      js/component/manageCenter/servicesManage/patent/comPatentAdd.jsx
  31. 10 4
      js/component/manageCenter/servicesManage/patent/comPatentDesc.jsx
  32. 3 2
      js/component/manageCenter/servicesManage/patent/comprehensive.jsx
  33. 3 1
      js/component/manageCenter/servicesManage/technology/applyChange.jsx
  34. 19 16
      js/component/manageCenter/servicesManage/technology/websiteManage.jsx

+ 4 - 2
js/component/account/services/achievement.jsx

@@ -85,6 +85,7 @@ const AchievementDescFrom = Form.create()(React.createClass({
     componentWillReceiveProps(nextProps) {
         if (!this.props.visible && nextProps.visible) {
             this.props.form.resetFields();
+            this.state.fileList = [];
         };
     },
     render() {
@@ -163,7 +164,7 @@ const AchievementDescFrom = Form.create()(React.createClass({
                         action={globalConfig.context + "/api/user/cognizance/uploadAchievement"}
                         data={{ 'sign': 'achievement' }}
                         beforeUpload={beforeUploadFile}
-                        showUploadList={false}
+                        fileList={this.state.fileList}
                         onChange={(info) => {
                             if (info.file.status !== 'uploading') {
                                 console.log(info.file, info.fileList);
@@ -178,7 +179,8 @@ const AchievementDescFrom = Form.create()(React.createClass({
                                 this.state.enclosureUrl = info.file.response.data;
                             } else if (info.file.status === 'error') {
                                 message.error(`${info.file.name} 文件上传失败。`);
-                            }
+                            };
+                            this.setState({ fileList: info.fileList.slice(-1) });
                         }}
                     >
                         <Button><Icon type="upload" /> 上传科技成果附件 </Button>

+ 4 - 2
js/component/account/services/activity.jsx

@@ -97,6 +97,7 @@ const ActivityForm = Form.create()(React.createClass({
         if (!this.props.visible && nextProps.visible) {
             this.state.mockData = nextProps.data.mockData;
             this.props.form.resetFields();
+            this.state.fileList = [];
             if (nextProps.data.id) {
                 this.loadData(nextProps.data.id);
             } else {
@@ -313,7 +314,7 @@ const ActivityForm = Form.create()(React.createClass({
                                 action={globalConfig.context + "/api/admin/uploadProof"}
                                 data={{ 'sign': 'proof', 'uid': this.props.uid }}
                                 beforeUpload={beforeUploadFile}
-                                showUploadList={false}
+                                fileList={this.state.fileList}
                                 onChange={(info) => {
                                     if (info.file.status !== 'uploading') {
                                         console.log(info.file, info.fileList);
@@ -328,7 +329,8 @@ const ActivityForm = Form.create()(React.createClass({
                                         this.state.proofUrl = info.file.response.data;
                                     } else if (info.file.status === 'error') {
                                         message.error(`${info.file.name} 文件上传失败。`);
-                                    }
+                                    };
+                                    this.setState({ fileList: info.fileList.slice(-1) });
                                 }}
                             >
                                 <Button><Icon type="upload" /> 上传立项证明材料 </Button>

+ 6 - 3
js/component/account/services/activityCostList.jsx

@@ -33,12 +33,14 @@ const ActivityDescFrom = Form.create()(React.createClass({
     componentWillReceiveProps(nextProps) {
         this.allCostCount();
         let _me = this;
-        if (!this.props.visible && nextProps.visible && nextProps.activityNumberList)
+        if (!this.props.visible && nextProps.visible && nextProps.activityNumberList) {
             nextProps.activityNumberList.map(function (item) {
                 _me.state.activityNumberOption.push(
                     <Select.Option value={item.aid} key={item.uid}>{item.activityNumber}</Select.Option>
                 )
             });
+            this.state.fileList = [];
+        };
     },
     handleSubmit(e) {
         e.preventDefault();
@@ -273,7 +275,7 @@ const ActivityDescFrom = Form.create()(React.createClass({
                         action={globalConfig.context + "/api/user/cognizance/uploadActivityCost"}
                         data={{ 'sign': 'activity_cost_account' }}
                         beforeUpload={beforeUploadFile}
-                        showUploadList={false}
+                        fileList={this.state.fileList}
                         onChange={(info) => {
                             if (info.file.status !== 'uploading') {
                                 console.log(info.file, info.fileList);
@@ -288,7 +290,8 @@ const ActivityDescFrom = Form.create()(React.createClass({
                                 this.state.accountUrl = info.file.response.data;
                             } else if (info.file.status === 'error') {
                                 message.error(`${info.file.name} 文件上传失败。`);
-                            }
+                            };
+                            this.setState({ fileList: info.fileList.slice(-1) });
                         }}
                     >
                         <Button><Icon type="upload" /> 上传研发费用台账 </Button>

+ 8 - 4
js/component/account/services/copyright/comPatentChange.jsx

@@ -154,6 +154,8 @@ const CopyrightDescForm = Form.create()(React.createClass({
     componentWillReceiveProps(nextProps) {
         if (!this.props.visible && nextProps.visible) {
             this.loadData(nextProps.data.id);
+            this.state.fileList_copyright_apply = [];
+            this.state.fileList_copyright_auth = [];
         };
     },
     handleSubmit(e) {
@@ -311,7 +313,7 @@ const CopyrightDescForm = Form.create()(React.createClass({
                         action={globalConfig.context + "/api/user/copyright/upload"}
                         data={{ 'sign': 'copyright_apply', id: this.props.data.id }}
                         beforeUpload={beforeUploadFile}
-                        showUploadList={false}
+                        fileList={this.state.fileList_copyright_apply}
                         onChange={(info) => {
                             if (info.file.status !== 'uploading') {
                                 console.log(info.file, info.fileList);
@@ -326,7 +328,8 @@ const CopyrightDescForm = Form.create()(React.createClass({
                                 this.state.copyrightApplyUrl = info.file.response.data;
                             } else if (info.file.status === 'error') {
                                 message.error(`${info.file.name} 文件上传失败。`);
-                            }
+                            };
+                            this.setState({ fileList_copyright_apply: info.fileList.slice(-1) });
                         }}
                     >
                         <Button><Icon type="upload" /> 上传软著申请书 </Button>
@@ -339,7 +342,7 @@ const CopyrightDescForm = Form.create()(React.createClass({
                         action={globalConfig.context + "/api/user/copyright/upload"}
                         data={{ 'sign': 'copyright_auth', id: this.props.data.id }}
                         beforeUpload={beforeUploadFile}
-                        showUploadList={false}
+                        fileList={this.state.fileList_copyright_auth}
                         onChange={(info) => {
                             if (info.file.status !== 'uploading') {
                                 console.log(info.file, info.fileList);
@@ -354,7 +357,8 @@ const CopyrightDescForm = Form.create()(React.createClass({
                                 this.state.copyrightAuthUrl = info.file.response.data;
                             } else if (info.file.status === 'error') {
                                 message.error(`${info.file.name} 文件上传失败。`);
-                            }
+                            };
+                            this.setState({ fileList_copyright_auth: info.fileList.slice(-1) });
                         }}
                     >
                         <Button><Icon type="upload" /> 上传软著证书 </Button>

+ 4 - 4
js/component/account/services/finance.jsx

@@ -108,12 +108,11 @@ const FinanceDescFrom = Form.create()(React.createClass({
                 this.loadData(nextProps.data.year);
             };
             this.props.form.resetFields();
-        };
-        if (this.props.visible && !nextProps.visible) {
             this.state.managementCost = undefined;
             this.state.researchCost = undefined;
             this.state.grossProfit = undefined;
             this.state.operatingProfit = undefined;
+            this.state.fileList = [];
         };
     },
     checkResearchCost(rule, value, callback) {
@@ -291,7 +290,7 @@ const FinanceDescFrom = Form.create()(React.createClass({
                         action={globalConfig.context + "/api/user/cognizance/uploadFinance"}
                         data={{ 'sign': 'finance', year: this.state.year || theData.year }}
                         beforeUpload={beforeUploadFile}
-                        showUploadList={false}
+                        fileList={this.state.fileList}
                         onChange={(info) => {
                             if (info.file.status !== 'uploading') {
                                 console.log(info.file, info.fileList);
@@ -306,7 +305,8 @@ const FinanceDescFrom = Form.create()(React.createClass({
                                 this.state.financeUrl = info.file.response.data;
                             } else if (info.file.status === 'error') {
                                 message.error(`${info.file.name} 文件上传失败。`);
-                            }
+                            };
+                            this.setState({ fileList: info.fileList.slice(-1) });
                         }}
                     >
                         <Button><Icon type="upload" /> 上传企业财务报表 </Button>

+ 4 - 2
js/component/account/services/honorList.jsx

@@ -47,6 +47,7 @@ const HonorListDescFrom = Form.create()(React.createClass({
     componentWillReceiveProps(nextProps) {
         if (!this.props.visible && nextProps.visible) {
             this.props.form.resetFields();
+            this.state.fileList = [];
         };
     },
     componentWillMount() {
@@ -116,7 +117,7 @@ const HonorListDescFrom = Form.create()(React.createClass({
                         action={globalConfig.context + "/api/user/cognizance/uploadHonor"}
                         data={{ 'sign': 'honor' }}
                         beforeUpload={beforeUploadFile}
-                        showUploadList={false}
+                        fileList={this.state.fileList}
                         onChange={(info) => {
                             if (info.file.status !== 'uploading') {
                                 console.log(info.file, info.fileList);
@@ -131,7 +132,8 @@ const HonorListDescFrom = Form.create()(React.createClass({
                                 this.state.enclosureUrl = info.file.response.data;
                             } else if (info.file.status === 'error') {
                                 message.error(`${info.file.name} 文件上传失败。`);
-                            }
+                            };
+                            this.setState({ fileList: info.fileList.slice(-1) });
                         }}
                     >
                         <Button><Icon type="upload" /> 企业相关资质证书 </Button>

+ 4 - 2
js/component/account/services/intellectualDesc.jsx

@@ -118,6 +118,7 @@ const IntellectualDescFrom = Form.create()(React.createClass({
         if (!this.props.visible && nextProps.visible) {
             this.loadData(nextProps.data.id, nextProps.data.type);
             this.props.form.resetFields();
+            this.state.fileList = [];
         };
     },
     render() {
@@ -221,7 +222,7 @@ const IntellectualDescFrom = Form.create()(React.createClass({
                         action={globalConfig.context + "/api/user/cognizance/uploadPropertyRight"}
                         data={{ 'sign': 'property_right' }}
                         beforeUpload={beforeUploadFile}
-                        showUploadList={false}
+                        fileList={this.state.fileList}
                         onChange={(info) => {
                             if (info.file.status !== 'uploading') {
                                 console.log(info.file, info.fileList);
@@ -236,7 +237,8 @@ const IntellectualDescFrom = Form.create()(React.createClass({
                                 this.state.propertyRightUrl = info.file.response.data;
                             } else if (info.file.status === 'error') {
                                 message.error(`${info.file.name} 文件上传失败。`);
-                            }
+                            };
+                            this.setState({ fileList: info.fileList.slice(-1) });
                         }}
                     >
                         <Button><Icon type="upload" /> 上传知识产权证书 </Button>

+ 18 - 6
js/component/account/services/orgTechCenter.jsx

@@ -45,6 +45,12 @@ const CenterListDescFrom = Form.create()(React.createClass({
             }
         });
     },
+    componentWillReceiveProps(nextProps) {
+        if (!this.props.visible && nextProps.visible) {
+            this.props.form.resetFields();
+            this.state.fileList = [];
+        };
+    },
     render() {
         const FormItem = Form.Item;
         const { getFieldDecorator } = this.props.form;
@@ -109,7 +115,7 @@ const CenterListDescFrom = Form.create()(React.createClass({
                         action={globalConfig.context + "/api/user/cognizance/uploadProtocol"}
                         data={{ 'sign': 'protocol' }}
                         beforeUpload={beforeUploadFile}
-                        showUploadList={false}
+                        fileList={this.state.fileList_protocol}
                         onChange={(info) => {
                             if (info.file.status !== 'uploading') {
                                 console.log(info.file, info.fileList);
@@ -124,7 +130,8 @@ const CenterListDescFrom = Form.create()(React.createClass({
                                 this.state.protocolUrl = info.file.response.data;
                             } else if (info.file.status === 'error') {
                                 message.error(`${info.file.name} 文件上传失败。`);
-                            }
+                            };
+                            this.setState({ fileList_protocol: info.fileList.slice(-1) });
                         }}
                     >
                         <Button><Icon type="upload" /> 上传研发费用台账 </Button>
@@ -181,8 +188,12 @@ const CenterListDesc = React.createClass({
                         width='800px'
                         footer=''
                     >
-                        <CenterListDescFrom data={this.props.data}
-                            spinState={this.spinChange} closeModal={this.handleCancel} clickOk={this.handleOk} />
+                        <CenterListDescFrom
+                            visible={this.state.visible}
+                            data={this.props.data}
+                            spinState={this.spinChange}
+                            closeModal={this.handleCancel}
+                            clickOk={this.handleOk} />
                     </Modal>
                 </Spin>
             </div>
@@ -460,7 +471,7 @@ const CenterList = React.createClass({
                             action={globalConfig.context + "/api/user/cognizance/uploadInstitution"}
                             data={{ 'sign': 'institution' }}
                             beforeUpload={beforeUploadFile}
-                            showUploadList={false}
+                            fileList={this.state.fileList_institution}
                             onChange={(info) => {
                                 if (info.file.status !== 'uploading') {
                                     console.log(info.file, info.fileList);
@@ -475,7 +486,8 @@ const CenterList = React.createClass({
                                     this.state.systemUrl = info.file.response.data;
                                 } else if (info.file.status === 'error') {
                                     message.error(`${info.file.name} 文件上传失败。`);
-                                }
+                                };
+                                this.setState({ fileList_institution: info.fileList.slice(-1) });
                             }}
                         >
                             <Button disabled={this.state.ButtonDisabled}><Icon type="upload" /> 上传研发部门制度 </Button>

+ 3 - 2
js/component/account/services/patentAdd.jsx

@@ -154,7 +154,7 @@ const PatentAddFrom = Form.create()(React.createClass({
                         action={globalConfig.context + "/api/user/patent/upload"}
                         data={{ 'sign': 'patent_prory_statement' }}
                         beforeUpload={beforeUploadFile}
-                        showUploadList={false}
+                        fileList={this.state.fileList}
                         onChange={(info) => {
                             if (info.file.status !== 'uploading') {
                                 console.log(info.file, info.fileList);
@@ -169,7 +169,8 @@ const PatentAddFrom = Form.create()(React.createClass({
                                 this.state.patentProryStatementUrl = info.file.response.data;
                             } else if (info.file.status === 'error') {
                                 message.error(`${info.file.name} 文件上传失败。`);
-                            }
+                            };
+                            this.setState({ fileList: info.fileList.slice(-1) });
                         }}
                     >
                         <Button><Icon type="upload" /> 上传专利代理委托书 </Button>

+ 4 - 4
js/component/account/services/ratepay.jsx

@@ -104,8 +104,7 @@ const RatepayDescFrom = Form.create()(React.createClass({
                 this.loadData(nextProps.data.year);
             };
             this.props.form.resetFields();
-        };
-        if (this.props.visible && !nextProps.visible) {
+            this.state.fileList = [];
             this.state.managementCost = undefined;
             this.state.researchCost = undefined;
             this.state.grossProfit = undefined;
@@ -243,7 +242,7 @@ const RatepayDescFrom = Form.create()(React.createClass({
                         action={globalConfig.context + "/api/user/cognizance/uploadRatepay"}
                         data={{ 'sign': 'ratepay', year: this.state.year || theData.year }}
                         beforeUpload={beforeUploadFile}
-                        showUploadList={false}
+                        fileList={this.state.fileList}
                         onChange={(info) => {
                             if (info.file.status !== 'uploading') {
                                 console.log(info.file, info.fileList);
@@ -258,7 +257,8 @@ const RatepayDescFrom = Form.create()(React.createClass({
                                 this.state.taxReturnUrl = info.file.response.data;
                             } else if (info.file.status === 'error') {
                                 message.error(`${info.file.name} 文件上传失败。`);
-                            }
+                            };
+                            this.setState({ fileList: info.fileList.slice(-1) });
                         }}
                     >
                         <Button><Icon type="upload" /> 上传企业所得税纳税申报表 </Button>

+ 16 - 12
js/component/account/services/standard.jsx

@@ -74,15 +74,18 @@ const StandardDesc = React.createClass({
         this.state.yearOption = theOption;
     },
     componentWillReceiveProps(nextProps) {
-        this.state.visible = nextProps.showDesc;
-        if (nextProps.data) {
-            this.state.standardName = nextProps.data.standardName;
-            this.state.standardNumber = nextProps.data.standardNumber;
-            this.state.year = nextProps.data.year;
-            this.state.standardLevel = nextProps.data.standardLevel;
-            this.state.participateWay = nextProps.data.participateWay;
-            this.state.enclosureUrl = nextProps.data.enclosureUrl;
+        if (!this.state.visible && nextProps.showDesc) {
+            if (nextProps.data) {
+                this.state.standardName = nextProps.data.standardName;
+                this.state.standardNumber = nextProps.data.standardNumber;
+                this.state.year = nextProps.data.year;
+                this.state.standardLevel = nextProps.data.standardLevel;
+                this.state.participateWay = nextProps.data.participateWay;
+                this.state.enclosureUrl = nextProps.data.enclosureUrl;
+            };
+            this.state.fileList = [];
         };
+        this.state.visible = nextProps.showDesc;
     },
     render() {
         if (this.props.data) {
@@ -110,7 +113,7 @@ const StandardDesc = React.createClass({
                                 placeholder="请选择年份"
                                 value={this.state.year}
                                 onChange={(e) => { this.setState({ year: e }); }}
-                                style={{ width: 80 }}>
+                                style={{ width: 120 }}>
                                 {this.state.yearOption}
                             </Select>
                         </div>
@@ -134,7 +137,7 @@ const StandardDesc = React.createClass({
                                 action={globalConfig.context + "/api/user/cognizance/uploadStandard"}
                                 data={{ 'sign': 'standard', 'uid': this.props.uid }}
                                 beforeUpload={beforeUploadFile}
-                                showUploadList={false}
+                                fileList={this.state.fileList}
                                 onChange={(info) => {
                                     if (info.file.status !== 'uploading') {
                                         console.log(info.file, info.fileList);
@@ -149,7 +152,8 @@ const StandardDesc = React.createClass({
                                         this.state.enclosureUrl = info.file.response.data;
                                     } else if (info.file.status === 'error') {
                                         message.error(`${info.file.name} 文件上传失败。`);
-                                    }
+                                    };
+                                    this.setState({ fileList: info.fileList.slice(-1) });
                                 }}
                             >
                                 <Button><Icon type="upload" /> 上传标准制定附件 </Button>
@@ -251,7 +255,7 @@ const Standard = React.createClass({
                     title: '标准编号',
                     dataIndex: 'standardNumber',
                     key: 'standardNumber'
-                },{
+                }, {
                     title: '制定时间',
                     dataIndex: 'year',
                     key: 'year'

+ 4 - 2
js/component/account/services/techProduct.jsx

@@ -30,6 +30,7 @@ const TechProductDescFrom = Form.create()(React.createClass({
         if (!this.props.visible && nextProps.visible && nextProps.data) {
             this.state.targetKeys = nextProps.data.intellectualPropertyNumber || [];
             this.props.form.resetFields();
+            this.state.fileList = [];
         };
     },
     handleSubmit(e) {
@@ -233,7 +234,7 @@ const TechProductDescFrom = Form.create()(React.createClass({
                         action={globalConfig.context + "/api/user/cognizance/uploadTecProduct"}
                         data={{ 'sign': 'tech_product' }}
                         beforeUpload={beforeUploadFile}
-                        showUploadList={false}
+                        fileList={this.state.fileList}
                         onChange={(info) => {
                             if (info.file.status !== 'uploading') {
                                 console.log(info.file, info.fileList);
@@ -248,7 +249,8 @@ const TechProductDescFrom = Form.create()(React.createClass({
                                 this.state.accountUrl = info.file.response.data;
                             } else if (info.file.status === 'error') {
                                 message.error(`${info.file.name} 文件上传失败。`);
-                            }
+                            };
+                            this.setState({ fileList: info.fileList.slice(-1) });
                         }}
                     >
                         <Button><Icon type="upload" /> 上传高新技术产品台帐 </Button>

+ 4 - 2
js/component/account/services/technologyChange.jsx

@@ -151,6 +151,7 @@ const ApplyChangeFrom = Form.create()(React.createClass({
         if (!this.props.visible && nextProps.visible) {
             this.loadData(nextProps.data.pid);
             this.getStateData(nextProps.data.pid);
+            this.state.fileList = [];
         };
     },
     subsidyCheck(e) {
@@ -299,7 +300,7 @@ const ApplyChangeFrom = Form.create()(React.createClass({
                             action={globalConfig.context + "/api/user/techproject/upload"}
                             data={{ 'id': this.props.data.pid, 'sign': 'tech_project' }}
                             beforeUpload={beforeUploadFile}
-                            showUploadList={false}
+                            fileList={this.state.fileList}
                             onChange={(info) => {
                                 if (info.file.status !== 'uploading') {
                                     console.log(info.file, info.fileList);
@@ -314,7 +315,8 @@ const ApplyChangeFrom = Form.create()(React.createClass({
                                     this.state.approvalUrl = info.file.response.data;
                                 } else if (info.file.status === 'error') {
                                     message.error(`${info.file.name} 文件上传失败。`);
-                                }
+                                };
+                                this.setState({ fileList: info.fileList.slice(-1) });
                             }}
                         >
                             <Button><Icon type="upload" /> 项目材料上传 </Button>

+ 8 - 4
js/component/account/set/hrSituation.jsx

@@ -109,6 +109,8 @@ const HrSituationDescFrom = Form.create()(React.createClass({
     componentWillReceiveProps(nextProps) {
         if (!this.props.visible && nextProps.visible) {
             this.props.form.resetFields();
+            this.state.fileList_roster = [];
+            this.state.fileList_social_security = [];
         };
     },
     render() {
@@ -453,7 +455,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
                         action={globalConfig.context + "/api/user/cognizance/uploadRoster"}
                         data={{ sign: 'roster', year: this.state.year || theData.year }}
                         beforeUpload={beforeUploadFile}
-                        showUploadList={false}
+                        fileList={this.state.fileList_roster}
                         onChange={(info) => {
                             if (info.file.status !== 'uploading') {
                                 console.log(info.file, info.fileList);
@@ -468,7 +470,8 @@ const HrSituationDescFrom = Form.create()(React.createClass({
                                 this.state.rosterUrl = info.file.response.data;
                             } else if (info.file.status === 'error') {
                                 message.error(`${info.file.name} 文件上传失败。`);
-                            }
+                            };
+                            this.setState({ fileList_roster: info.fileList.slice(-1) });
                         }}
                     >
                         <Button><Icon type="upload" /> 上传花名册 </Button>
@@ -481,7 +484,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
                         action={globalConfig.context + "/api/user/cognizance/uploadSocialSecurity"}
                         data={{ 'sign': 'social_security', year: this.state.year || theData.year }}
                         beforeUpload={beforeUploadFile}
-                        showUploadList={false}
+                        fileList={this.state.fileList_social_security}
                         onChange={(info) => {
                             if (info.file.status !== 'uploading') {
                                 console.log(info.file, info.fileList);
@@ -496,7 +499,8 @@ const HrSituationDescFrom = Form.create()(React.createClass({
                                 this.state.socialSecurityUrl = info.file.response.data;
                             } else if (info.file.status === 'error') {
                                 message.error(`${info.file.name} 文件上传失败。`);
-                            }
+                            };
+                            this.setState({ fileList_social_security: info.fileList.slice(-1) });
                         }}
                     >
                         <Button><Icon type="upload" /> 上传社保情况 </Button>

+ 11 - 6
js/component/manageCenter/servicesManage/copyright/comPatentChange.jsx

@@ -3,6 +3,7 @@ import { Icon, Modal, message, Spin, Input, Select, DatePicker, Button, Row, Col
 import './comprehensive.less';
 import ajax from 'jquery/src/ajax/xhr.js';
 import $ from 'jquery/src/ajax';
+import moment from 'moment';
 import { copyrightStateList } from '../../../dataDic.js';
 import { companySearch, getCopyrightState, getTime, copyrightDownloadFile, beforeUploadFile, getInUrgentTime, getPreview } from '../../../tools.js';
 
@@ -150,13 +151,15 @@ const CopyrightDescForm = Form.create()(React.createClass({
     componentWillReceiveProps(nextProps) {
         if (!this.props.visible && nextProps.visible) {
             this.loadData(nextProps.data.uid, nextProps.data.id);
+            this.state.fileList_copyright_apply = [];
+            this.state.fileList_copyright_auth = [];
         };
     },
     handleSubmit(e) {
         e.preventDefault();
         this.props.form.validateFields((err, values) => {
-            if (values.state || values.principal || values.recordTime || values.comment) {
-                if (!values.state && !values.principal && !values.recordTime) {
+            if (values.status || values.principal || values.recordTime || values.comment) {
+                if (!values.status || !values.principal || !values.recordTime) {
                     message.warning("请填写完整的状态流转信息!");
                     return;
                 };
@@ -353,7 +356,7 @@ const CopyrightDescForm = Form.create()(React.createClass({
                         action={globalConfig.context + "/api/admin/copyright/upload"}
                         data={{ 'sign': 'copyright_apply', id: this.props.data.id }}
                         beforeUpload={beforeUploadFile}
-                        showUploadList={false}
+                        fileList={this.state.fileList_copyright_apply}
                         onChange={(info) => {
                             if (info.file.status !== 'uploading') {
                                 console.log(info.file, info.fileList);
@@ -368,7 +371,8 @@ const CopyrightDescForm = Form.create()(React.createClass({
                                 this.state.copyrightApplyUrl = info.file.response.data;
                             } else if (info.file.status === 'error') {
                                 message.error(`${info.file.name} 文件上传失败。`);
-                            }
+                            };
+                            this.setState({ fileList_copyright_apply: info.fileList.slice(-1) });
                         }}
                     >
                         <Button><Icon type="upload" /> 上传软著申请书 </Button>
@@ -388,7 +392,7 @@ const CopyrightDescForm = Form.create()(React.createClass({
                         action={globalConfig.context + "/api/admin/copyright/upload"}
                         data={{ 'sign': 'copyright_auth', id: this.props.data.id }}
                         beforeUpload={beforeUploadFile}
-                        showUploadList={false}
+                        fileList={this.state.fileList_copyright_auth}
                         onChange={(info) => {
                             if (info.file.status !== 'uploading') {
                                 console.log(info.file, info.fileList);
@@ -403,7 +407,8 @@ const CopyrightDescForm = Form.create()(React.createClass({
                                 this.state.copyrightAuthUrl = info.file.response.data;
                             } else if (info.file.status === 'error') {
                                 message.error(`${info.file.name} 文件上传失败。`);
-                            }
+                            };
+                            this.setState({ fileList_copyright_auth: info.fileList.slice(-1) });
                         }}
                     >
                         <Button><Icon type="upload" /> 上传软著证书 </Button>

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

@@ -86,6 +86,7 @@ const AchievementDescFrom = Form.create()(React.createClass({
     componentWillReceiveProps(nextProps) {
         if (!this.props.visible && nextProps.visible) {
             this.props.form.resetFields();
+            this.state.fileList = [];
         };
     },
     render() {
@@ -164,7 +165,7 @@ const AchievementDescFrom = Form.create()(React.createClass({
                         action={globalConfig.context + "/api/admin/uploadAchievement"}
                         data={{ 'sign': 'achievement', 'uid': this.props.uid }}
                         beforeUpload={beforeUploadFile}
-                        showUploadList={false}
+                        fileList={this.state.fileList}
                         onChange={(info) => {
                             if (info.file.status !== 'uploading') {
                                 console.log(info.file, info.fileList);
@@ -179,7 +180,8 @@ const AchievementDescFrom = Form.create()(React.createClass({
                                 this.state.enclosureUrl = info.file.response.data;
                             } else if (info.file.status === 'error') {
                                 message.error(`${info.file.name} 文件上传失败。`);
-                            }
+                            };
+                            this.setState({ fileList: info.fileList.slice(-1) });
                         }}
                     >
                         <Button><Icon type="upload" /> 上传科技成果附件 </Button>

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

@@ -94,6 +94,7 @@ const ActivityForm = Form.create()(React.createClass({
         if (!this.props.visible && nextProps.visible) {
             this.state.mockData = nextProps.data.mockData;
             this.props.form.resetFields();
+            this.state.fileList = [];
             if (nextProps.data.id) {
                 this.loadData(nextProps.data.id);
             } else {
@@ -310,7 +311,7 @@ const ActivityForm = Form.create()(React.createClass({
                                 action={globalConfig.context + "/api/admin/uploadProof"}
                                 data={{ 'sign': 'proof', 'uid': this.props.uid }}
                                 beforeUpload={beforeUploadFile}
-                                showUploadList={false}
+                                fileList={this.state.fileList}
                                 onChange={(info) => {
                                     if (info.file.status !== 'uploading') {
                                         console.log(info.file, info.fileList);
@@ -325,7 +326,8 @@ const ActivityForm = Form.create()(React.createClass({
                                         this.state.proofUrl = info.file.response.data;
                                     } else if (info.file.status === 'error') {
                                         message.error(`${info.file.name} 文件上传失败。`);
-                                    }
+                                    };
+                                    this.setState({ fileList: info.fileList.slice(-1) });
                                 }}
                             >
                                 <Button><Icon type="upload" /> 上传立项证明材料 </Button>

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

@@ -39,6 +39,7 @@ const ActivityDescFrom = Form.create()(React.createClass({
             this.state.internalAllCost = nextProps.data.internalAllCost;
             this.state.allCost = nextProps.data.allCost;
             nextProps.form.resetFields();
+            this.state.fileList = [];
         } else {
             this.allCostCount();
         };
@@ -278,7 +279,7 @@ const ActivityDescFrom = Form.create()(React.createClass({
                         action={globalConfig.context + "/api/admin/uploadActivityCost"}
                         data={{ 'sign': 'activity_cost_account', 'uid': this.props.uid }}
                         beforeUpload={beforeUploadFile}
-                        showUploadList={false}
+                        fileList={this.state.fileList}
                         onChange={(info) => {
                             if (info.file.status !== 'uploading') {
                                 console.log(info.file, info.fileList);
@@ -293,7 +294,8 @@ const ActivityDescFrom = Form.create()(React.createClass({
                                 this.state.accountUrl = info.file.response.data;
                             } else if (info.file.status === 'error') {
                                 message.error(`${info.file.name} 文件上传失败。`);
-                            }
+                            };
+                            this.setState({ fileList: info.fileList.slice(-1) });
                         }}
                     >
                         <Button><Icon type="upload" /> 上传研发费用台账 </Button>

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

@@ -112,8 +112,7 @@ const FinanceDescFrom = Form.create()(React.createClass({
                 this.loadData(nextProps.data.uid, nextProps.data.year);
             };
             this.props.form.resetFields();
-        };
-        if (this.props.visible && !nextProps.visible) {
+            this.state.fileList = [];
             this.state.managementCost = undefined;
             this.state.researchCost = undefined;
             this.state.grossProfit = undefined;
@@ -292,7 +291,7 @@ const FinanceDescFrom = Form.create()(React.createClass({
                         action={globalConfig.context + "/api/admin/uploadFinance"}
                         data={{ 'sign': 'finance', 'year': (this.state.year || theData.year), 'uid': this.props.uid }}
                         beforeUpload={beforeUploadFile}
-                        showUploadList={false}
+                        fileList={this.state.fileList}
                         onChange={(info) => {
                             if (info.file.status !== 'uploading') {
                                 console.log(info.file, info.fileList);
@@ -307,7 +306,8 @@ const FinanceDescFrom = Form.create()(React.createClass({
                                 this.state.financeUrl = info.file.response.data;
                             } else if (info.file.status === 'error') {
                                 message.error(`${info.file.name} 文件上传失败。`);
-                            }
+                            };
+                            this.setState({ fileList: info.fileList.slice(-1) });
                         }}
                     >
                         <Button><Icon type="upload" /> 上传财务报表 </Button>

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

@@ -48,6 +48,7 @@ const HonorListDescFrom = Form.create()(React.createClass({
     componentWillReceiveProps(nextProps) {
         if (!this.props.visible && nextProps.visible) {
             this.props.form.resetFields();
+            this.state.fileList = [];
         };
     },
     componentWillMount() {
@@ -117,7 +118,7 @@ const HonorListDescFrom = Form.create()(React.createClass({
                         action={globalConfig.context + "/api/admin/uploadHonor"}
                         data={{ 'sign': 'honor', 'uid': this.props.uid }}
                         beforeUpload={beforeUploadFile}
-                        showUploadList={false}
+                        fileList={this.state.fileList}
                         onChange={(info) => {
                             if (info.file.status !== 'uploading') {
                                 console.log(info.file, info.fileList);
@@ -132,7 +133,8 @@ const HonorListDescFrom = Form.create()(React.createClass({
                                 this.state.enclosureUrl = info.file.response.data;
                             } else if (info.file.status === 'error') {
                                 message.error(`${info.file.name} 文件上传失败。`);
-                            }
+                            };
+                            this.setState({ fileList: info.fileList.slice(-1) });
                         }}
                     >
                         <Button><Icon type="upload" /> 上传企业相关资质证书 </Button>

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

@@ -110,6 +110,8 @@ const HrSituationDescFrom = Form.create()(React.createClass({
     componentWillReceiveProps(nextProps) {
         if (!this.props.visible && nextProps.visible) {
             this.props.form.resetFields();
+            this.state.fileList_roster = [];
+            this.state.fileList_social_security = [];
         };
     },
     render() {
@@ -454,7 +456,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
                         action={globalConfig.context + "/api/admin/uploadRoster"}
                         data={{ 'sign': 'roster', 'year': (this.state.year || theData.year), 'uid': this.props.uid }}
                         beforeUpload={beforeUploadFile}
-                        showUploadList={false}
+                        fileList={this.state.fileList_roster}
                         onChange={(info) => {
                             if (info.file.status !== 'uploading') {
                                 console.log(info.file, info.fileList);
@@ -469,7 +471,8 @@ const HrSituationDescFrom = Form.create()(React.createClass({
                                 this.state.rosterUrl = info.file.response.data;
                             } else if (info.file.status === 'error') {
                                 message.error(`${info.file.name} 文件上传失败。`);
-                            }
+                            };
+                            this.setState({ fileList_roster: info.fileList.slice(-1) });
                         }}
                     >
                         <Button><Icon type="upload" /> 上传花名册 </Button>
@@ -490,7 +493,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
                         action={globalConfig.context + "/api/admin/uploadSocialSecurity"}
                         data={{ 'sign': 'social_security', 'year': (this.state.year || theData.year), 'uid': this.props.uid }}
                         beforeUpload={beforeUploadFile}
-                        showUploadList={false}
+                        fileList={this.state.fileList_social_security}
                         onChange={(info) => {
                             if (info.file.status !== 'uploading') {
                                 console.log(info.file, info.fileList);
@@ -505,7 +508,8 @@ const HrSituationDescFrom = Form.create()(React.createClass({
                                 this.state.socialSecurityUrl = info.file.response.data;
                             } else if (info.file.status === 'error') {
                                 message.error(`${info.file.name} 文件上传失败。`);
-                            }
+                            };
+                            this.setState({ fileList_social_security: info.fileList.slice(-1) });
                         }}
                     >
                         <Button><Icon type="upload" /> 上传社保情况 </Button>

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

@@ -95,6 +95,7 @@ const IntellectualDescFrom = Form.create()(React.createClass({
         if (!this.props.visible && nextProps.visible) {
             this.loadData(nextProps.data.id, nextProps.data.type);
             this.props.form.resetFields();
+            this.state.fileList = [];
         };
     },
     render() {
@@ -198,7 +199,7 @@ const IntellectualDescFrom = Form.create()(React.createClass({
                         action={globalConfig.context + "/api/admin/uploadPropertyRight"}
                         data={{ 'sign': 'property_right', 'uid': this.props.uid }}
                         beforeUpload={beforeUploadFile}
-                        showUploadList={false}
+                        fileList={this.state.fileList}
                         onChange={(info) => {
                             if (info.file.status !== 'uploading') {
                                 console.log(info.file, info.fileList);
@@ -213,7 +214,8 @@ const IntellectualDescFrom = Form.create()(React.createClass({
                                 this.state.propertyRightUrl = info.file.response.data;
                             } else if (info.file.status === 'error') {
                                 message.error(`${info.file.name} 文件上传失败。`);
-                            }
+                            };
+                            this.setState({ fileList: info.fileList.slice(-1) });
                         }}
                     >
                         <Button><Icon type="upload" /> 上传知识产权证书 </Button>

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

@@ -46,6 +46,12 @@ const CenterListDescFrom = Form.create()(React.createClass({
             }
         });
     },
+    componentWillReceiveProps(nextProps) {
+        if (!this.props.visible && nextProps.visible) {
+            this.props.form.resetFields();
+            this.state.fileList = [];
+        };
+    },
     render() {
         const FormItem = Form.Item;
         const { getFieldDecorator } = this.props.form;
@@ -110,7 +116,7 @@ const CenterListDescFrom = Form.create()(React.createClass({
                         action={globalConfig.context + "/api/admin/uploadProtocol"}
                         data={{ 'sign': 'protocol', 'uid': this.props.uid }}
                         beforeUpload={beforeUploadFile}
-                        showUploadList={false}
+                        fileList={this.state.fileList}
                         onChange={(info) => {
                             if (info.file.status !== 'uploading') {
                                 console.log(info.file, info.fileList);
@@ -125,7 +131,8 @@ const CenterListDescFrom = Form.create()(React.createClass({
                                 this.state.protocolUrl = info.file.response.data;
                             } else if (info.file.status === 'error') {
                                 message.error(`${info.file.name} 文件上传失败。`);
-                            }
+                            };
+                            this.setState({ fileList: info.fileList.slice(-1) });
                         }}
                     >
                         <Button><Icon type="upload" /> 上传协议附件 </Button>
@@ -190,6 +197,7 @@ const CenterListDesc = React.createClass({
                         footer=''
                     >
                         <CenterListDescFrom
+                            visible={this.state.visible}
                             cid={this.props.cid}
                             uid={this.props.uid}
                             data={this.props.data}
@@ -492,7 +500,7 @@ const CenterList = React.createClass({
                             action={globalConfig.context + "/api/admin/uploadInstitution"}
                             data={{ 'sign': 'institution', 'uid': this.props.data.uid }}
                             beforeUpload={beforeUploadFile}
-                            showUploadList={false}
+                            fileList={this.state.fileList}
                             onChange={(info) => {
                                 if (info.file.status !== 'uploading') {
                                     console.log(info.file, info.fileList);
@@ -507,7 +515,8 @@ const CenterList = React.createClass({
                                     this.state.systemUrl = info.file.response.data;
                                 } else if (info.file.status === 'error') {
                                     message.error(`${info.file.name} 文件上传失败。`);
-                                }
+                                };
+                                this.setState({ fileList: info.fileList.slice(-1) });
                             }}
                         >
                             <Button><Icon type="upload" /> 上传研发部门制度 </Button>

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

@@ -106,8 +106,7 @@ const RatepayDescFrom = Form.create()(React.createClass({
                 this.loadData(nextProps.data.uid, nextProps.data.year);
             };
             this.props.form.resetFields();
-        };
-        if (this.props.visible && !nextProps.visible) {
+            this.state.fileList = [];
             this.state.managementCost = undefined;
             this.state.researchCost = undefined;
             this.state.grossProfit = undefined;
@@ -245,7 +244,7 @@ const RatepayDescFrom = Form.create()(React.createClass({
                         action={globalConfig.context + "/api/admin/uploadRatepay"}
                         data={{ 'sign': 'ratepay', 'year': (this.state.year || theData.year), 'uid': this.props.uid }}
                         beforeUpload={beforeUploadFile}
-                        showUploadList={false}
+                        fileList={this.state.fileList}
                         onChange={(info) => {
                             if (info.file.status !== 'uploading') {
                                 console.log(info.file, info.fileList);
@@ -260,7 +259,8 @@ const RatepayDescFrom = Form.create()(React.createClass({
                                 this.state.taxReturnUrl = info.file.response.data;
                             } else if (info.file.status === 'error') {
                                 message.error(`${info.file.name} 文件上传失败。`);
-                            }
+                            };
+                            this.setState({ fileList: info.fileList.slice(-1) });
                         }}
                     >
                         <Button><Icon type="upload" /> 上传企业所得税纳税申报表 </Button>

+ 14 - 10
js/component/manageCenter/servicesManage/highTech/fosterDesc/standard.jsx

@@ -74,15 +74,18 @@ const StandardDesc = React.createClass({
         this.state.yearOption = theOption;
     },
     componentWillReceiveProps(nextProps) {
-        this.state.visible = nextProps.showDesc;
-        if (nextProps.data) {
-            this.state.standardName = nextProps.data.standardName;
-            this.state.standardNumber = nextProps.data.standardNumber;
-            this.state.year = nextProps.data.year;
-            this.state.standardLevel = nextProps.data.standardLevel;
-            this.state.participateWay = nextProps.data.participateWay;
-            this.state.enclosureUrl = nextProps.data.enclosureUrl;
+        if (!this.state.visible && nextProps.showDesc) {
+            if (nextProps.data) {
+                this.state.standardName = nextProps.data.standardName;
+                this.state.standardNumber = nextProps.data.standardNumber;
+                this.state.year = nextProps.data.year;
+                this.state.standardLevel = nextProps.data.standardLevel;
+                this.state.participateWay = nextProps.data.participateWay;
+                this.state.enclosureUrl = nextProps.data.enclosureUrl;
+            };
+            this.state.fileList = [];
         };
+        this.state.visible = nextProps.showDesc;
     },
     render() {
         if (this.props.data) {
@@ -134,7 +137,7 @@ const StandardDesc = React.createClass({
                                 action={globalConfig.context + "/api/admin/uploadStandard"}
                                 data={{ 'sign': 'standard', 'uid': this.props.uid }}
                                 beforeUpload={beforeUploadFile}
-                                showUploadList={false}
+                                fileList={this.state.fileList}
                                 onChange={(info) => {
                                     if (info.file.status !== 'uploading') {
                                         console.log(info.file, info.fileList);
@@ -149,7 +152,8 @@ const StandardDesc = React.createClass({
                                         this.state.enclosureUrl = info.file.response.data;
                                     } else if (info.file.status === 'error') {
                                         message.error(`${info.file.name} 文件上传失败。`);
-                                    }
+                                    };
+                                    this.setState({ fileList: info.fileList.slice(-1) });
                                 }}
                             >
                                 <Button><Icon type="upload" /> 上传标准制定附件 </Button>

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

@@ -29,6 +29,7 @@ const TechProductDescFrom = Form.create()(React.createClass({
         if (!this.props.visible && nextProps.visible && nextProps.data && this.props.resetForm) {
             this.state.targetKeys = nextProps.data.intellectualPropertyNumber || [];
             this.props.form.resetFields();
+            this.state.fileList = [];
         };
     },
     handleSubmit(e) {
@@ -233,7 +234,7 @@ const TechProductDescFrom = Form.create()(React.createClass({
                         action={globalConfig.context + "/api/admin/uploadTecProduct"}
                         data={{ 'sign': 'tech_product', 'uid': this.props.uid }}
                         beforeUpload={beforeUploadFile}
-                        showUploadList={false}
+                        fileList={this.state.fileList}
                         onChange={(info) => {
                             if (info.file.status !== 'uploading') {
                                 console.log(info.file, info.fileList);
@@ -248,7 +249,8 @@ const TechProductDescFrom = Form.create()(React.createClass({
                                 this.state.accountUrl = info.file.response.data;
                             } else if (info.file.status === 'error') {
                                 message.error(`${info.file.name} 文件上传失败。`);
-                            }
+                            };
+                            this.setState({ fileList: info.fileList.slice(-1) });
                         }}
                     >
                         <Button><Icon type="upload" /> 上传高新技术产品台帐 </Button>

+ 1 - 1
js/component/manageCenter/servicesManage/highTech/highTechApply.jsx

@@ -261,7 +261,7 @@ const CognizanceDescFrom = Form.create()(React.createClass({
         e.preventDefault();
         this.props.form.validateFields((err, values) => {
             if (values.state || values.principal || values.recordTime || values.comment) {
-                if (!values.state && !values.principal && !values.recordTime) {
+                if (!values.state || !values.principal || !values.recordTime) {
                     message.warning("请填写完整的状态流转信息!");
                     return;
                 };

+ 4 - 0
js/component/manageCenter/servicesManage/highTech/highTechFoster.less

@@ -112,6 +112,10 @@
             background: #eee;
             >span {
                 vertical-align: top;
+                &:last-child {
+                    display: inline-block;
+                    width: 840px;
+                }
             }
         }
         .half-item {

+ 2 - 0
js/component/manageCenter/servicesManage/highTech/highTechInfo.jsx

@@ -19,6 +19,8 @@ const highTechInfo = React.createClass({
             field: [],
             registerType: [],
             address: [],
+            netAssetRate:0,
+            salesRevenueRate:0,
             humanColumns: [
                 {
                     title: '公民类型',

+ 13 - 2
js/component/manageCenter/servicesManage/patent/comPatentAdd.jsx

@@ -12,6 +12,11 @@ class Avatar extends React.Component {
             imageUrl: ''
         }
     }
+    componentWillReceiveProps(nextProps) {
+        if ( !this.props.visible && nextProps.visible) {
+            this.state.fileList = [];
+        };
+    }
     handleChange(info) {
         if (!this.props.oid || this.props.oid === "") {
             message.warning('请先选择公司!');
@@ -29,13 +34,14 @@ class Avatar extends React.Component {
         } else if (info.file.status === 'error') {
             message.error(`${info.file.name} 文件上传失败。`);
         };
+        this.setState({ fileList: info.fileList.slice(-1) });
     }
     render() {
         return (
             <Upload
                 className="avatar-uploader"
                 name="avatar"
-                showUploadList={false}
+                fileList={this.state.fileList}
                 action={globalConfig.context + "/api/admin/patent/uploadProry"}
                 data={{ 'sign': this.props.name, 'uid': this.props.oid }}
                 beforeUpload={beforeUpload}
@@ -257,7 +263,11 @@ const PatentAddFrom = Form.create()(React.createClass({
                     wrapperCol={{ span: 12 }}
                 >
                     {getFieldDecorator('avatar')(
-                        <Avatar urlData={this.avatarUrl} name='patent_prory_statement' oid={this.state.companyName} />
+                        <Avatar 
+                        urlData={this.avatarUrl} 
+                        name='patent_prory_statement' 
+                        oid={this.state.companyName}
+                        visible = {this.props.visible} />
                     )}
                     <p>
                         <a onClick={() => { window.open(globalConfig.context + "/api/admin/patent/downloadTemplateFile?sign=patent_prory_statement") }}>模板下载</a>
@@ -312,6 +322,7 @@ const PatentAdd = React.createClass({
                         footer=''
                     >
                         <PatentAddFrom
+                            visible={this.state.visible}
                             spinState={this.spinChange}
                             closeModal={this.handleCancel}
                             okClick={() => { this.props.closeDesc(false, true) }} />

+ 10 - 4
js/component/manageCenter/servicesManage/patent/comPatentDesc.jsx

@@ -29,12 +29,18 @@ class Avatar extends React.Component {
         } else if (info.file.status === 'error') {
             message.error(`${info.file.name} 文件上传失败。`);
         };
+        this.setState({ fileList: info.fileList.slice(-1) });
+    }
+    componentWillReceiveProps(nextProps) {
+        if ( !this.props.visible && nextProps.visible) {
+            this.state.fileList = [];
+        };
     }
     render() {
         return (
             <Upload className="upload-file"
                 name="avatar"
-                showUploadList={false}
+                fileList={this.state.fileList}
                 action={globalConfig.context + "/api/admin/patent/upload"}
                 data={{ 'sign': this.props.name, 'uid': this.props.uid, 'id': this.props.id }}
                 beforeUpload={beforeUpload}
@@ -489,9 +495,9 @@ const PatentDesc = React.createClass({
                                         <p><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />上年度纳税报表未上传</p>
                                     }
                                 </div>
-                                <Avatar urlData={this.getPatentWritingUrl} name='patent_writing' uid={theData.uid} id={theData.id} />
-                                <Avatar urlData={this.getAuthorizationNoticeUrl} name='authorization_notice' uid={theData.uid} id={theData.id} />
-                                <Avatar urlData={this.getPatentCertificateUrl} name='patent_certificate' uid={theData.uid} id={theData.id} />
+                                <Avatar visible={this.state.visible} urlData={this.getPatentWritingUrl} name='patent_writing' uid={theData.uid} id={theData.id} />
+                                <Avatar visible={this.state.visible} urlData={this.getAuthorizationNoticeUrl} name='authorization_notice' uid={theData.uid} id={theData.id} />
+                                <Avatar visible={this.state.visible} urlData={this.getPatentCertificateUrl} name='patent_certificate' uid={theData.uid} id={theData.id} />
                             </div>
                             <div className="avatar-text"><span>专利稿件上传</span><span>授权通知书上传</span><span>专利证书上传</span></div>
                         </Modal>

+ 3 - 2
js/component/manageCenter/servicesManage/patent/comprehensive.jsx

@@ -456,7 +456,7 @@ const Patent = React.createClass({
                     <div className="patent-addNew">
                         <Upload style={{ float: 'right' }}
                             name="ratepay"
-                            showUploadList={false}
+                            fileList={this.state.fileList}
                             action={globalConfig.context + "/api/admin/patent/uploadTemplate"}
                             data={{ 'sign': 'patent_prory_statement' }}
                             beforeUpload={beforeUploadFile}
@@ -474,7 +474,8 @@ const Patent = React.createClass({
                                     };
                                 } else if (info.file.status === 'error') {
                                     message.error(`${info.file.name} 文件上传失败。`);
-                                }
+                                };
+                                this.setState({ fileList: info.fileList.slice(-1) });
                             }}
                         >
                             <Button>上传专利代理委托书模板 <Icon type="upload" /></Button>

+ 3 - 1
js/component/manageCenter/servicesManage/technology/applyChange.jsx

@@ -258,6 +258,7 @@ const ApplyChangeFrom = Form.create()(React.createClass({
     },
     componentWillReceiveProps(nextProps) {
         if (!this.props.visible && nextProps.visible) {
+            this.state.fileList = [];
             this.loadData(nextProps.data.pid);
             this.getStateData(nextProps.data.pid);
             this.getContactsList(nextProps.data.uid);
@@ -459,7 +460,7 @@ const ApplyChangeFrom = Form.create()(React.createClass({
                             action={globalConfig.context + "/api/admin/techproject/upload"}
                             data={{ 'uid': this.props.data.uid, 'id': this.props.data.pid, 'sign': 'tech_project' }}
                             beforeUpload={beforeUploadFile}
-                            showUploadList={false}
+                            fileList={this.state.fileList}
                             onChange={(info) => {
                                 if (info.file.status !== 'uploading') {
                                     console.log(info.file, info.fileList);
@@ -475,6 +476,7 @@ const ApplyChangeFrom = Form.create()(React.createClass({
                                 } else if (info.file.status === 'error') {
                                     message.error(`${info.file.name} 文件上传失败。`);
                                 }
+                                this.setState({ fileList: info.fileList.slice(-1) });
                             }}
                         >
                             <Button><Icon type="upload" /> 项目材料上传 </Button>

+ 19 - 16
js/component/manageCenter/servicesManage/technology/websiteManage.jsx

@@ -27,7 +27,7 @@ const Cognizance = React.createClass({
             },
             success: function (data) {
                 if (!data.data || !data.data.list) {
-                    if ( data.error && data.error.length ){
+                    if (data.error && data.error.length) {
                         message.warning(data.error[0].message);
                     };
                     return;
@@ -39,10 +39,10 @@ const Cognizance = React.createClass({
                         id: thisdata.id,
                         uid: thisdata.uid,
                         unitName: thisdata.unitName,
-						department: thisdata.department,
-						webSite: thisdata.website,
-						userName: thisdata.accountNumber,
-						password: thisdata.password
+                        department: thisdata.department,
+                        webSite: thisdata.website,
+                        userName: thisdata.accountNumber,
+                        password: thisdata.password
                     });
                 };
                 this.state.pagination.current = data.data.pageNo;
@@ -66,9 +66,12 @@ const Cognizance = React.createClass({
             method: "get",
             dataType: "json",
             crossDomain: false,
-            url: globalConfig.context + "/api/admin/getUnitNames",
+            url: globalConfig.context + "/api/admin/techproject/websiteUnit",
             success: function (data) {
-                if (data.error.length || !data.data) {
+                if (!data.data) {
+                    if (data.error && data.error.length) {
+                        message.warning(data.error[0]);
+                    };
                     return;
                 };
                 let _me = this;
@@ -214,13 +217,13 @@ const Cognizance = React.createClass({
                 <div className="content-title">
                     <span>科技单位网址管理</span>
                     <div className="foster-query" style={{ float: "right" }}>
-	                    <div>
-	                        <Button style={{ background: "#ea0862", border: "none", color: "#fff" }}
-	                            onClick={this.addClick}>创建新单位网址<Icon type="plus" /></Button>
-	                    </div>
-	                </div>
+                        <div>
+                            <Button style={{ background: "#ea0862", border: "none", color: "#fff" }}
+                                onClick={this.addClick}>创建新单位网址<Icon type="plus" /></Button>
+                        </div>
+                    </div>
                 </div>
-                
+
                 <div className="foster-query">
                     <Select placeholder="选择公司"
                         style={{ width: 200 }}
@@ -233,10 +236,10 @@ const Cognizance = React.createClass({
                     <Button type="primary" onClick={this.search}>搜索</Button>
                     <Button onClick={this.reset}>重置</Button>
                     <Button style={{ background: "#3fcf9e", border: "none", color: "#fff" }}
-                            disabled={!hasSelected}
-                            onClick={this.delectRow}>删除<Icon type="minus" /></Button>
+                        disabled={!hasSelected}
+                        onClick={this.delectRow}>删除<Icon type="minus" /></Button>
                 </div>
-                
+
                 <div className="patent-table">
                     <Spin spinning={this.state.loading}>
                         <Table columns={this.state.columns}