|  | @@ -171,6 +171,8 @@ const AchievementList = Form.create()(React.createClass({
 | 
	
		
			
				|  |  |  			            var lastName= thedata[thedata.length-1].name;			        			          
 | 
	
		
			
				|  |  |  			            var nub=thedata[thedata.length-1].telNum; 
 | 
	
		
			
				|  |  |  			            var kid=thedata[thedata.length-1].id;
 | 
	
		
			
				|  |  | +			           	
 | 
	
		
			
				|  |  | +			          	var lastTelNum=thedata[thedata.length-1].telNum;
 | 
	
		
			
				|  |  |  			            var lastEmail=thedata[thedata.length-1].email; 
 | 
	
		
			
				|  |  |  			            var lastQq=thedata[thedata.length-1].qq; 
 | 
	
		
			
				|  |  |  			            var lastWatch=thedata[thedata.length-1].wechat;  
 | 
	
	
		
			
				|  | @@ -180,10 +182,11 @@ const AchievementList = Form.create()(React.createClass({
 | 
	
		
			
				|  |  |  							idt:thedata[0].id,
 | 
	
		
			
				|  |  |  						    kid:kid,						   						  
 | 
	
		
			
				|  |  |  						    contactIds:contactIds,
 | 
	
		
			
				|  |  | -						    contacts:contacts,
 | 
	
		
			
				|  |  | -		        	    	nub:nub,
 | 
	
		
			
				|  |  | +						    contacts:contacts,		        	    	
 | 
	
		
			
				|  |  |  				        	telNum:telNum,
 | 
	
		
			
				|  |  |  				        	email:email,
 | 
	
		
			
				|  |  | +				        	nub:nub,
 | 
	
		
			
				|  |  | +				        	lastTelNum:lastTelNum,
 | 
	
		
			
				|  |  |  				        	lastEmail:lastEmail,
 | 
	
		
			
				|  |  |  				        	lastQq:lastQq,
 | 
	
		
			
				|  |  |  				        	lastWatch:lastWatch,
 | 
	
	
		
			
				|  | @@ -203,40 +206,39 @@ const AchievementList = Form.create()(React.createClass({
 | 
	
		
			
				|  |  |      //在添加联系记录页面,选择联系方式查看号码
 | 
	
		
			
				|  |  |      contacts(e){    	
 | 
	
		
			
				|  |  |      	let conts='';
 | 
	
		
			
				|  |  | -    	if(this.state.changNub){
 | 
	
		
			
				|  |  | -    	
 | 
	
		
			
				|  |  | +    	if(this.state.changNub){    	
 | 
	
		
			
				|  |  |  		    if(e==0){
 | 
	
		
			
				|  |  | -		    	conts='电话'
 | 
	
		
			
				|  |  | -		    	this.state.nub=this.state.changNub		    	
 | 
	
		
			
				|  |  | +		    	conts='电话';
 | 
	
		
			
				|  |  | +		    	this.state.nub=this.state.changNub;	    	
 | 
	
		
			
				|  |  |  		    }
 | 
	
		
			
				|  |  |  		    if(e==1){
 | 
	
		
			
				|  |  | -		    	conts='邮件'
 | 
	
		
			
				|  |  | -		    	this.state.nub=this.state.changEmail		    	
 | 
	
		
			
				|  |  | +		    	conts='邮件';
 | 
	
		
			
				|  |  | +		    	this.state.nub=this.state.changEmail;		    	
 | 
	
		
			
				|  |  |  		    }
 | 
	
		
			
				|  |  |  		    if(e==2){
 | 
	
		
			
				|  |  | -		    	conts='微信'
 | 
	
		
			
				|  |  | -		    	this.state.nub=this.state.changWatch		    
 | 
	
		
			
				|  |  | +		    	conts='微信';
 | 
	
		
			
				|  |  | +		    	this.state.nub=this.state.changWatch;		    
 | 
	
		
			
				|  |  |  		    }	    	     
 | 
	
		
			
				|  |  |  		    if(e==3){
 | 
	
		
			
				|  |  | -		    	conts='QQ'
 | 
	
		
			
				|  |  | -		    	this.state.nub=this.state.changQq			    	
 | 
	
		
			
				|  |  | +		    	conts='QQ';
 | 
	
		
			
				|  |  | +		    	this.state.nub=this.state.changQq;		    	
 | 
	
		
			
				|  |  |  		    	}
 | 
	
		
			
				|  |  |  		   }else{		    
 | 
	
		
			
				|  |  |  			    if(e==0){
 | 
	
		
			
				|  |  | -			    	conts='电话'
 | 
	
		
			
				|  |  | -			    	this.state.nub=this.state.nub		    	
 | 
	
		
			
				|  |  | +			    	conts='电话';
 | 
	
		
			
				|  |  | +			    	this.state.nub=this.state.lastTelNum;		    	
 | 
	
		
			
				|  |  |  			    }
 | 
	
		
			
				|  |  |  			    if(e==1){
 | 
	
		
			
				|  |  | -			    	conts='邮件'
 | 
	
		
			
				|  |  | -			    	this.state.nub=this.state.lastEmail		    	
 | 
	
		
			
				|  |  | +			    	conts='邮件';
 | 
	
		
			
				|  |  | +			    	this.state.nub=this.state.lastEmail;		    	
 | 
	
		
			
				|  |  |  			    }
 | 
	
		
			
				|  |  |  			    if(e==2){
 | 
	
		
			
				|  |  | -			    	conts='微信'
 | 
	
		
			
				|  |  | -			    	this.state.nub=this.state.lastWatch		    
 | 
	
		
			
				|  |  | +			    	conts='微信';
 | 
	
		
			
				|  |  | +			    	this.state.nub=this.state.lastWatch	;	    
 | 
	
		
			
				|  |  |  			    }	    	     
 | 
	
		
			
				|  |  |  			    if(e==3){
 | 
	
		
			
				|  |  | -			    	conts='QQ'
 | 
	
		
			
				|  |  | -			    	this.state.nub=this.state.lastQq			    	
 | 
	
		
			
				|  |  | +			    	conts='QQ';
 | 
	
		
			
				|  |  | +			    	this.state.nub=this.state.lastQq;			    	
 | 
	
		
			
				|  |  |  			    	}	
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  |  	    this.setState({
 | 
	
	
		
			
				|  | @@ -710,9 +712,9 @@ const AchievementList = Form.create()(React.createClass({
 | 
	
		
			
				|  |  |              	case "公司客户":customerTypechange=1;break;
 | 
	
		
			
				|  |  |              	case "团体客户":customerTypechange=2;break;
 | 
	
		
			
				|  |  |              }              
 | 
	
		
			
				|  |  | -            let customerStatus= getcustomerStatueOn(this.state.customerStatus);
 | 
	
		
			
				|  |  | +            let customerStatus= getcustomerStatueOn(this.state.customerStatus);           
 | 
	
		
			
				|  |  |              let followSituation= getfllowSituationOn(this.state.followSituation);
 | 
	
		
			
				|  |  | -            //图片转换      
 | 
	
		
			
				|  |  | +            //图片转换              
 | 
	
		
			
				|  |  |              let thetechnicalPictureUrl = [];            
 | 
	
		
			
				|  |  |              if (this.state.technicalPictureUrl.length) {            	
 | 
	
		
			
				|  |  |                  let picArr = [];
 | 
	
	
		
			
				|  | @@ -935,13 +937,13 @@ const AchievementList = Form.create()(React.createClass({
 | 
	
		
			
				|  |  |  	      visible: true,
 | 
	
		
			
				|  |  |  	    });
 | 
	
		
			
				|  |  |  	    this.setState({
 | 
	
		
			
				|  |  | -            selectedRowKeys:[],            
 | 
	
		
			
				|  |  | +            selectedRowKeys:this.state.selectedRowKeys,            
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  |  	    let changeIds;
 | 
	
		
			
				|  |  |          let adminName;
 | 
	
		
			
				|  |  |          let customerStatus;       
 | 
	
		
			
				|  |  |          let companyIntention;
 | 
	
		
			
				|  |  | -        let followSituation;       
 | 
	
		
			
				|  |  | +        let followSituation;      
 | 
	
		
			
				|  |  |          for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
 | 
	
		
			
				|  |  |              let rowItem = this.state.selectedRows[idx];                          
 | 
	
		
			
				|  |  |              if (rowItem.id) {
 | 
	
	
		
			
				|  | @@ -964,8 +966,7 @@ const AchievementList = Form.create()(React.createClass({
 | 
	
		
			
				|  |  |  				beforeFollowSituation:followSituation,//最新跟进状态
 | 
	
		
			
				|  |  |  				beforeAdminName:adminName,//跟进人
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | -        }).done(function (data) {
 | 
	
		
			
				|  |  | -        	
 | 
	
		
			
				|  |  | +       }).done(function (data) {       	
 | 
	
		
			
				|  |  |              if (data.error && data.error.length) {
 | 
	
		
			
				|  |  |              	message.warning(data.error[0].message);
 | 
	
		
			
				|  |  |              } else {
 | 
	
	
		
			
				|  | @@ -1007,40 +1008,18 @@ const AchievementList = Form.create()(React.createClass({
 | 
	
		
			
				|  |  |  	    });
 | 
	
		
			
				|  |  |  	    this.setState({
 | 
	
		
			
				|  |  |              selectedRowKeys:[],            
 | 
	
		
			
				|  |  | -        });
 | 
	
		
			
				|  |  | -	    let changeId;
 | 
	
		
			
				|  |  | -	    let changeIds;
 | 
	
		
			
				|  |  | -        let adminName;
 | 
	
		
			
				|  |  | -        let beforeAdminName;
 | 
	
		
			
				|  |  | -        let customerStatus;       
 | 
	
		
			
				|  |  | -        let companyIntention;
 | 
	
		
			
				|  |  | -        let followSituation;       
 | 
	
		
			
				|  |  | -        for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
 | 
	
		
			
				|  |  | -            let rowItem = this.state.selectedRows[idx];                          
 | 
	
		
			
				|  |  | -            if (rowItem.id) {
 | 
	
		
			
				|  |  | -                changeId=rowItem.id;               
 | 
	
		
			
				|  |  | -                beforeAdminName=rowItem.adminName; 
 | 
	
		
			
				|  |  | -                adminName=rowItem.key; 
 | 
	
		
			
				|  |  | -                customerStatus=rowItem.customerStatus;
 | 
	
		
			
				|  |  | -                companyIntention=rowItem.companyIntention;
 | 
	
		
			
				|  |  | -                followSituation=rowItem.followSituation;  
 | 
	
		
			
				|  |  | -                changeIds=rowItem.ids;  
 | 
	
		
			
				|  |  | -            };            
 | 
	
		
			
				|  |  | -        };  
 | 
	
		
			
				|  |  | -        
 | 
	
		
			
				|  |  | +       });	    
 | 
	
		
			
				|  |  | +        let datt=this.state.selectedRow;       
 | 
	
		
			
				|  |  |  	      $.ajax({
 | 
	
		
			
				|  |  |  	        method: "post",
 | 
	
		
			
				|  |  |  	        dataType: "json",
 | 
	
		
			
				|  |  |  	        crossDomain: false,           
 | 
	
		
			
				|  |  |  	        url: globalConfig.context + "/api/admin/customer/transferCustomer",
 | 
	
		
			
				|  |  |  	        data: {
 | 
	
		
			
				|  |  | -	            id: changeIds,//这一行数据的ID
 | 
	
		
			
				|  |  | -	            aid:changeId,//指定转交人的ID 
 | 
	
		
			
				|  |  | -//	            beforeCompanyIntention:companyIntention,//意向服务
 | 
	
		
			
				|  |  | -//				beforeCustomerStatus:customerStatus,//客户状态
 | 
	
		
			
				|  |  | -//				beforeFollowSituation:followSituation,//最新跟进状态
 | 
	
		
			
				|  |  | -				beforeAdminName:beforeAdminName,//之前的跟进人
 | 
	
		
			
				|  |  | -				adminName:adminName,//转交的跟进人
 | 
	
		
			
				|  |  | +	            id: datt[0].ids,//这一行数据的ID
 | 
	
		
			
				|  |  | +	            aid:datt[0].id,//指定转交人的ID 
 | 
	
		
			
				|  |  | +				beforeAdminName:datt[0].adminName,//之前的跟进人
 | 
	
		
			
				|  |  | +				adminName:datt[0].name,//转交的跟进人
 | 
	
		
			
				|  |  |  	        }
 | 
	
		
			
				|  |  |          }).done(function (data) {
 | 
	
		
			
				|  |  |              if (!data.error.length) {
 | 
	
	
		
			
				|  | @@ -1075,6 +1054,7 @@ const AchievementList = Form.create()(React.createClass({
 | 
	
		
			
				|  |  |              validityPeriodDate: [],
 | 
	
		
			
				|  |  |              releaseDate: [],
 | 
	
		
			
				|  |  |              selectedRowKeys: [],
 | 
	
		
			
				|  |  | +            selectedRowKey: [],
 | 
	
		
			
				|  |  |              selectedRows: [],
 | 
	
		
			
				|  |  |              loading: false,
 | 
	
		
			
				|  |  |              pagination: {
 | 
	
	
		
			
				|  | @@ -1712,6 +1692,26 @@ const AchievementList = Form.create()(React.createClass({
 | 
	
		
			
				|  |  |  			    })
 | 
	
		
			
				|  |  |  			},
 | 
	
		
			
				|  |  |          };
 | 
	
		
			
				|  |  | +        const rowSelections = { 
 | 
	
		
			
				|  |  | +        	selectedRowKeys: this.state.selectedRowKey,
 | 
	
		
			
				|  |  | +            onChange: (selectedRowKey, selectedRow) => {
 | 
	
		
			
				|  |  | +                this.setState({
 | 
	
		
			
				|  |  | +                    selectedRow: selectedRow.slice(-1),
 | 
	
		
			
				|  |  | +                    selectedRowKey: selectedRowKey.slice(-1)
 | 
	
		
			
				|  |  | +                });                
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            onSelect: (records, selected, selectedRow) => {			   
 | 
	
		
			
				|  |  | +			    this.setState({
 | 
	
		
			
				|  |  | +			    	selectedRow: selectedRow.slice(-1),
 | 
	
		
			
				|  |  | +			    	records:records.id,			    	
 | 
	
		
			
				|  |  | +			    })
 | 
	
		
			
				|  |  | +			    console.log(selected);
 | 
	
		
			
				|  |  | +			    console.log(selectedRow);
 | 
	
		
			
				|  |  | +			    console.log(records);
 | 
	
		
			
				|  |  | +			},
 | 
	
		
			
				|  |  | +			
 | 
	
		
			
				|  |  | +        };
 | 
	
		
			
				|  |  | +		
 | 
	
		
			
				|  |  |          const hasSelected = this.state.selectedRowKeys.length > 0;
 | 
	
		
			
				|  |  |          const { RangePicker } = DatePicker;
 | 
	
		
			
				|  |  |          const theData = this.props.data || {};    	
 | 
	
	
		
			
				|  | @@ -1804,15 +1804,14 @@ const AchievementList = Form.create()(React.createClass({
 | 
	
		
			
				|  |  |  						          title="选择指定人"
 | 
	
		
			
				|  |  |  						          visible={this.state.visible}
 | 
	
		
			
				|  |  |  						          onOk={this.handleOk}
 | 
	
		
			
				|  |  | -						          onCancel={this.handleCancel}	
 | 
	
		
			
				|  |  | -						          
 | 
	
		
			
				|  |  | +						          onCancel={this.handleCancel}							          
 | 
	
		
			
				|  |  |  						        >
 | 
	
		
			
				|  |  |  					            <Spin spinning={this.state.loading}>
 | 
	
		
			
				|  |  |  					            	 <Table 
 | 
	
		
			
				|  |  |  					            	 scroll={{y:'350px'}}
 | 
	
		
			
				|  |  |  					            	 pagination={this.state.paginations}
 | 
	
		
			
				|  |  |  					            	 columns={this.state.columnsman} 
 | 
	
		
			
				|  |  | -					            	 rowSelection={rowSelection} 
 | 
	
		
			
				|  |  | +					            	 rowSelection={rowSelections} 
 | 
	
		
			
				|  |  |  					            	 dataSource={this.state.dataman}
 | 
	
		
			
				|  |  |  					            	 />
 | 
	
		
			
				|  |  |  					           				            				        
 | 
	
	
		
			
				|  | @@ -1977,8 +1976,7 @@ const AchievementList = Form.create()(React.createClass({
 | 
	
		
			
				|  |  |  			          visible={this.state.modal1Visible}
 | 
	
		
			
				|  |  |  			          onOk={this.setModal1Visiblecancel}
 | 
	
		
			
				|  |  |  			          onCancel={this.setModal1Visiblecancel}							          							          
 | 
	
		
			
				|  |  | -			        >	 
 | 
	
		
			
				|  |  | -			        		
 | 
	
		
			
				|  |  | +			        >	 		
 | 
	
		
			
				|  |  |  			          <Form horizontal onSubmit={this.handleSubmit} id="demand-form">
 | 
	
		
			
				|  |  |  				          <Spin spinning={this.state.loading}>                        	
 | 
	
		
			
				|  |  |                              <div className="user-search">  				                            	                           	
 |