|  | @@ -271,12 +271,14 @@ const NewService = Form.create()(React.createClass({
 | 
	
		
			
				|  |  |  					dataIndex: 'dels',
 | 
	
		
			
				|  |  |  					key: 'dels',
 | 
	
		
			
				|  |  |  					render: (text, record, index) => {
 | 
	
		
			
				|  |  | +						console.log(index);
 | 
	
		
			
				|  |  | +						console.log(this.state.contactList.length);
 | 
	
		
			
				|  |  |  						return <div>
 | 
	
		
			
				|  |  | -		                        {this.state.processStatus==0?<Popconfirm title="是否删除?" onConfirm={(e)=>{this.confirmDelet(record.key)}} okText="删除" cancelText="不删除">
 | 
	
		
			
				|  |  | +		                        {this.state.processStatus==0?<Popconfirm title="是否删除?" onConfirm={(e)=>{this.confirmDelet(record)}} okText="删除" cancelText="不删除">
 | 
	
		
			
				|  |  |  									    <Button style={{marginRight:'10px',color:'#ffffff',background:'#f00',border:'none'}}>删除</Button>
 | 
	
		
			
				|  |  |  									</Popconfirm>
 | 
	
		
			
				|  |  |  									:''}
 | 
	
		
			
				|  |  | -								{record.id?'': <Button  type="primary"  onClick={this.contactSave}>保存</Button>}
 | 
	
		
			
				|  |  | +								{!record.id&&(index==(this.state.contactList.length-1))?<Button  type="primary"  onClick={this.contactSave}>保存</Button>:''}
 | 
	
		
			
				|  |  |  								
 | 
	
		
			
				|  |  |                              </div>
 | 
	
		
			
				|  |  |  					}
 | 
	
	
		
			
				|  | @@ -509,10 +511,8 @@ const NewService = Form.create()(React.createClass({
 | 
	
		
			
				|  |  |      //催款节点保存
 | 
	
		
			
				|  |  |  	contactSave(e) {
 | 
	
		
			
				|  |  |  		if(this.state.contactList){
 | 
	
		
			
				|  |  | -			console.log(1);
 | 
	
		
			
				|  |  |  			let cuiData=this.state.contactList;
 | 
	
		
			
				|  |  |  				for(var a=0;a<cuiData.length;a++){
 | 
	
		
			
				|  |  | -					console.log(cuiData[a]);
 | 
	
		
			
				|  |  |  					if(cuiData[a].money==''){
 | 
	
		
			
				|  |  |  						message.warning('催款金额不能为空');
 | 
	
		
			
				|  |  |  			        	this.refs.signFirstPayment.focus()
 | 
	
	
		
			
				|  | @@ -563,11 +563,19 @@ const NewService = Form.create()(React.createClass({
 | 
	
		
			
				|  |  |  	
 | 
	
		
			
				|  |  |  	//删除收款节点
 | 
	
		
			
				|  |  |  	confirmDelet(index) {
 | 
	
		
			
				|  |  | -		this.state.contactList.splice(index,1);
 | 
	
		
			
				|  |  | -		this.setState({
 | 
	
		
			
				|  |  | -			contactList: this.state.contactList
 | 
	
		
			
				|  |  | -		})
 | 
	
		
			
				|  |  | -		this.contactSave();
 | 
	
		
			
				|  |  | +		if(index.id){
 | 
	
		
			
				|  |  | +			this.state.contactList.splice(index.key,1);
 | 
	
		
			
				|  |  | +			this.setState({
 | 
	
		
			
				|  |  | +				contactList: this.state.contactList
 | 
	
		
			
				|  |  | +			})
 | 
	
		
			
				|  |  | +			this.contactSave();
 | 
	
		
			
				|  |  | +		}else{
 | 
	
		
			
				|  |  | +			this.state.contactList.splice(index.key,1);
 | 
	
		
			
				|  |  | +			this.setState({
 | 
	
		
			
				|  |  | +				contactList: this.state.contactList
 | 
	
		
			
				|  |  | +			})
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  | +		
 | 
	
		
			
				|  |  |  	},
 | 
	
		
			
				|  |  |  	handleOk(e) {
 | 
	
		
			
				|  |  |  		this.setState({
 | 
	
	
		
			
				|  | @@ -788,7 +796,6 @@ const NewService = Form.create()(React.createClass({
 | 
	
		
			
				|  |  |  	},
 | 
	
		
			
				|  |  |  	//点击打卡项目详情
 | 
	
		
			
				|  |  |  	tableRowClick(record, index) {
 | 
	
		
			
				|  |  | -		console.log(record);
 | 
	
		
			
				|  |  |          this.setState({
 | 
	
		
			
				|  |  |          	jid:record.id,//项目ID
 | 
	
		
			
				|  |  |          	kid:record.commodityId,//商品ID
 |