|
@@ -58,15 +58,9 @@ const VisitDetail = React.createClass({
|
|
key: 'followSituation',
|
|
key: 'followSituation',
|
|
render: (text, record, index) => {
|
|
render: (text, record, index) => {
|
|
return <div>
|
|
return <div>
|
|
- {!record.readOnly?<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>:
|
|
|
|
|
|
+
|
|
<span>{getfllowSituation(text)}</span>
|
|
<span>{getfllowSituation(text)}</span>
|
|
- }
|
|
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
}
|
|
}
|
|
}, {
|
|
}, {
|
|
@@ -75,15 +69,9 @@ const VisitDetail = React.createClass({
|
|
dataIndex: 'customerStatus',
|
|
dataIndex: 'customerStatus',
|
|
key: 'customerStatus',
|
|
key: 'customerStatus',
|
|
render: (text, record, index) => {
|
|
render: (text, record, index) => {
|
|
- return <div>{!record.readOnly?<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>:
|
|
|
|
|
|
+ return <div>
|
|
<span>{getcustomerStatue(text)}</span>
|
|
<span>{getcustomerStatue(text)}</span>
|
|
- }</div>
|
|
|
|
|
|
+ </div>
|
|
}
|
|
}
|
|
}, {
|
|
}, {
|
|
title: '跟进说明',
|
|
title: '跟进说明',
|
|
@@ -92,11 +80,9 @@ const VisitDetail = React.createClass({
|
|
key: 'remarks',
|
|
key: 'remarks',
|
|
render: (text, record, index) => {
|
|
render: (text, record, index) => {
|
|
return <div>
|
|
return <div>
|
|
- {!record.readOnly?<Input value={record.remarks} placeholder="跟进说明"
|
|
|
|
- onChange={(e) => { record.remarks = e.target.value; this.setState({ data: this.state.data }); }}
|
|
|
|
- style={{width:'120px'}}/>:
|
|
|
|
|
|
+
|
|
<span title={text}>{text&&text.length>8?text.substr(0,8)+'…':text}</span>
|
|
<span title={text}>{text&&text.length>8?text.substr(0,8)+'…':text}</span>
|
|
- }
|
|
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
}
|
|
}
|
|
}, {
|
|
}, {
|