|
@@ -65,12 +65,26 @@ const FollowDetail = React.createClass({
|
|
|
onChange={(e) => { record.remarks = e.target.value; this.setState({ data: this.state.data }); }}
|
|
|
/>
|
|
|
}
|
|
|
+ }, {
|
|
|
+ title: '操作',
|
|
|
+ width:120,
|
|
|
+ dataIndex: 'rrr',
|
|
|
+ key: 'rrr',
|
|
|
+ render: (text, record, index) => {
|
|
|
+ console.log(record);
|
|
|
+ return <div>
|
|
|
+ <Popconfirm title="再次签单?" onConfirm={(e)=>{this.intentionDelet(record,index)}} okText="再次签单" cancelText="取消">
|
|
|
+ <Button style={{marginRight:'10px',color:'#ffffff',background:'#58a3ff',border:'none'}}>签单</Button>
|
|
|
+ </Popconfirm>
|
|
|
+ </div>
|
|
|
+ }
|
|
|
}
|
|
|
],
|
|
|
}
|
|
|
},
|
|
|
//拜访意向服务列表单个删除
|
|
|
intentionDelet(e, index) {
|
|
|
+ console.log(e);
|
|
|
if(e.id) {
|
|
|
this.setState({
|
|
|
loading:true,
|
|
@@ -80,20 +94,21 @@ const FollowDetail = React.createClass({
|
|
|
method: "get",
|
|
|
dataType: "json",
|
|
|
crossDomain: false,
|
|
|
- url: globalConfig.context + "/api/admin/customer/deleteFollowOneBusiness",
|
|
|
+ url: globalConfig.context + "/api/admin/customer/againProjectTask",
|
|
|
data: {
|
|
|
- ufbId: e.id
|
|
|
+ uid: e.uid,
|
|
|
+ projectId:e.businessName,
|
|
|
}
|
|
|
}).done(function(data) {
|
|
|
if(!data.error.length) {
|
|
|
- message.success('删除成功');
|
|
|
+ message.success('签单成功');
|
|
|
this.setState({
|
|
|
loading: false,
|
|
|
});
|
|
|
} else {
|
|
|
message.warning(data.error[0].message);
|
|
|
};
|
|
|
- this.deletelist(this.props.followData.id)
|
|
|
+ //this.deletelist(this.props.followData.id)
|
|
|
}.bind(this));
|
|
|
}
|
|
|
},
|
|
@@ -189,7 +204,9 @@ const FollowDetail = React.createClass({
|
|
|
businessProjectName:thisdata.businessProjectName,
|
|
|
followSituation: thisdata.followSituation==null?undefined : String(thisdata.followSituation),
|
|
|
customerStatus: thisdata.customerStatus==null?undefined : String(thisdata.customerStatus),
|
|
|
- remarks: thisdata.remarks
|
|
|
+ remarks: thisdata.remarks,
|
|
|
+ uid:thisdata.uid
|
|
|
+
|
|
|
});
|
|
|
}
|
|
|
};
|