dengzhiguo před 7 roky
rodič
revize
9a581f1b5e
1 změnil soubory, kde provedl 24 přidání a 5 odebrání
  1. 24 5
      js/component/manageCenter/demand/myTechDemand.jsx

+ 24 - 5
js/component/manageCenter/demand/myTechDemand.jsx

@@ -148,6 +148,7 @@ const DemandList = React.createClass({
                             employerContactsMobile: thisdata.employerContactsMobile,//需求联系方式
                             employerContactsMailbox: thisdata.employerContactsMailbox,//需求联系邮箱
                             createTime: thisdata.createTime,//录入时间
+                            createTimeFormattedDate: thisdata.createTimeFormattedDate,//跟进时间转格式
                             adminName: thisdata.adminName,//录入人
                             remark:thisdata.remark,//备注
                         });
@@ -200,6 +201,7 @@ const DemandList = React.createClass({
                             remarks: thisdata.remarks,//跟进情况
                             result: thisdata.result,//跟进结果
                             createTime: thisdata.createTime,//跟进时间
+                            createTimeFormattedDate: thisdata.createTimeFormattedDate,//录入时间转格式
                         });
                     };
                     this.state.pagination.current = data.data.pageNo;
@@ -398,8 +400,8 @@ const DemandList = React.createClass({
                     }
                 },{
                     title: '最新跟进时间',
-                    dataIndex: 'lastFollowTime',
-                    key: 'lastFollowTime',
+                    dataIndex: 'createTimeFormattedDate',
+                    key: 'createTimeFormattedDate',
                 }
             ],
             mateDataSource: [],
@@ -407,8 +409,8 @@ const DemandList = React.createClass({
             lookColumns: [
                  {
                     title: '跟进时间',
-                    dataIndex: 'createTime',
-                    key: 'createTime',
+                    dataIndex: 'createTimeFormattedDate',
+                    key: 'createTimeFormattedDate',
                 },{
                     title: '跟进结果',
                     dataIndex: 'result',
@@ -660,9 +662,11 @@ const DemandList = React.createClass({
     },
     //点击新增
     addmate(e){
+    	
     	this.setState({ 
     		addmatevisible: true 
     	});
+    	this.matereset();
     	this.mateTop();
     },
     //新增一条匹配记录
@@ -787,9 +791,11 @@ const DemandList = React.createClass({
     	})
     },
     addmate1(){
+    	
     	this.setState({ 
     		addmatevisible1: true 
     	});
+    	this.lookreset();
     	this.mateLoadData();
     },
     addmateNo1(){
@@ -843,6 +849,19 @@ const DemandList = React.createClass({
         this.state.releaseDateS = [];
         this.loadData();
     },
+    matereset(){
+    	this.state.mateContactMobile = undefined;//成果方联系方式
+    	this.state.mateContacts = undefined;//成果联系人
+    	this.state.mateOrganization = undefined;//匹配机构
+    	this.state.mateSources = undefined;//来源
+    	this.state.mateRemark = undefined;//备注
+    },
+    //点击新增跟进记录是清空里面的内容
+    lookreset(){
+    	this.state.RowData.addcreateTime = undefined;
+    	this.state.addresult = '';
+    	this.state.addremarks = undefined;
+    },
     searchSwitch() {
         this.setState({
             searchMore: !this.state.searchMore
@@ -1315,7 +1334,7 @@ const DemandList = React.createClass({
                     <Modal maskClosable={false} visible={this.state.lookvisible}
                         onOk={this.checkPatentProcess} onCancel={this.lookmateNo}
                         width='600px'
-                        title='跟进情况详情'                       
+                        title='跟进情况列表'                       
                         footer=''
                         className="admin-desc-content">
                          <Form horizontal onSubmit={this.addhandleSubmit} id="add-form">