|
@@ -33,7 +33,13 @@ const FollowDetail = React.createClass({
|
|
|
dataIndex: 'followSituation',
|
|
|
key: 'followSituation',
|
|
|
render: (text, record, index) => {
|
|
|
- return <span>{getfllowSituation(text)}</span>
|
|
|
+ return <Select placeholder="选择最新进度" value={record.followSituation} onChange={(e) => { record.followSituation = e; this.setState({ data: this.state.data }); }}>
|
|
|
+ {
|
|
|
+ newFollow.map(function (item) {
|
|
|
+ return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
|
+ })
|
|
|
+ }
|
|
|
+ </Select>
|
|
|
}
|
|
|
}, {
|
|
|
title: '最新状态',
|
|
@@ -41,7 +47,13 @@ const FollowDetail = React.createClass({
|
|
|
dataIndex: 'customerStatus',
|
|
|
key: 'customerStatus',
|
|
|
render: (text, record, index) => {
|
|
|
- return <span>{getcustomerStatue(text)}</span>
|
|
|
+ return <Select value={record.customerStatus} placeholder="选择最新状态" onChange={(e) => { record.customerStatus = e; this.setState({ data: this.state.data }); }}>
|
|
|
+ {
|
|
|
+ customerStatus.map(function (item) {
|
|
|
+ return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
|
+ })
|
|
|
+ }
|
|
|
+ </Select>
|
|
|
}
|
|
|
}, {
|
|
|
title: '跟进说明',
|
|
@@ -49,23 +61,9 @@ const FollowDetail = React.createClass({
|
|
|
dataIndex: 'remarks',
|
|
|
key: 'remarks',
|
|
|
render: (text, record, index) => {
|
|
|
- return(
|
|
|
- <div>
|
|
|
- <span title={text}>{text&&text.length>14?(text.substr(0,14)+'…'):text}</span>
|
|
|
- </div>
|
|
|
- )
|
|
|
- }
|
|
|
- }, {
|
|
|
- title: '操作',
|
|
|
- width:120,
|
|
|
- dataIndex: 'rrr',
|
|
|
- key: 'rrr',
|
|
|
- render: (text, record, index) => {
|
|
|
- return <div>
|
|
|
- <Popconfirm title="是否删除?" onConfirm={(e)=>{this.intentionDelet(record,index)}} okText="删除" cancelText="不删除">
|
|
|
- <Button style={{marginRight:'10px',color:'#ffffff',background:'#f00',border:'none'}}>删除</Button>
|
|
|
- </Popconfirm>
|
|
|
- </div>
|
|
|
+ return <Input value={record.remarks} placeholder="跟进说明"
|
|
|
+ onChange={(e) => { record.remarks = e.target.value; this.setState({ data: this.state.data }); }}
|
|
|
+ />
|
|
|
}
|
|
|
}
|
|
|
],
|
|
@@ -183,9 +181,9 @@ const FollowDetail = React.createClass({
|
|
|
businessName:thisdata.businessProjectId,
|
|
|
businessVarietiesName:thisdata.businessVarietiesName,
|
|
|
businessProjectName:thisdata.businessProjectName,
|
|
|
- followSituation: String(thisdata.followSituation),
|
|
|
- customerStatus: String(thisdata.customerStatus),
|
|
|
- remarks: thisdata.remarks,
|
|
|
+ followSituation: thisdata.followSituation==null?undefined : String(thisdata.followSituation),
|
|
|
+ customerStatus: thisdata.customerStatus==null?undefined : String(thisdata.customerStatus),
|
|
|
+ remarks: thisdata.remarks
|
|
|
});
|
|
|
};
|
|
|
this.setState({
|