|
@@ -92,6 +92,22 @@ class FollowUpSummary extends Component{
|
|
title: "跟进说明",
|
|
title: "跟进说明",
|
|
dataIndex: "result",
|
|
dataIndex: "result",
|
|
key: "result",
|
|
key: "result",
|
|
|
|
+ width: 150,
|
|
|
|
+ render: (text, record) => {
|
|
|
|
+ return (
|
|
|
|
+ <Tooltip placement="topLeft" title={<div style={{wordBreak:"break-all"}}>{text}</div>}>
|
|
|
|
+ <div style={{
|
|
|
|
+ cursor:"pointer",
|
|
|
|
+ width: '150px',
|
|
|
|
+ whiteSpace: 'nowrap',
|
|
|
|
+ overflow: 'hidden',
|
|
|
|
+ textOverflow: 'ellipsis',
|
|
|
|
+ }}>
|
|
|
|
+ {text}
|
|
|
|
+ </div>
|
|
|
|
+ </Tooltip>
|
|
|
|
+ );
|
|
|
|
+ },
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: "跟进时间",
|
|
title: "跟进时间",
|
|
@@ -110,32 +126,18 @@ class FollowUpSummary extends Component{
|
|
width:150,
|
|
width:150,
|
|
render: (text, record) => {
|
|
render: (text, record) => {
|
|
return (
|
|
return (
|
|
- <div style={{
|
|
|
|
- cursor:"pointer",
|
|
|
|
- width: '150px',
|
|
|
|
- whiteSpace: 'nowrap',
|
|
|
|
- overflow: 'hidden',
|
|
|
|
- textOverflow: 'ellipsis',
|
|
|
|
- }}
|
|
|
|
- onClick={(e)=>{
|
|
|
|
- e.stopPropagation();
|
|
|
|
- Modal.info({
|
|
|
|
- title: '指导意见',
|
|
|
|
- content: (
|
|
|
|
- <div style={{
|
|
|
|
- wordWrap:"break-word"
|
|
|
|
- }}>
|
|
|
|
- {record.guidance}
|
|
|
|
- </div>
|
|
|
|
- ),
|
|
|
|
- onOk() {},
|
|
|
|
- });
|
|
|
|
- }}>
|
|
|
|
- <span>
|
|
|
|
- {record.guidanceName ? '('+record.guidanceName+')' : null}
|
|
|
|
- {record.guidance}
|
|
|
|
- </span>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <Tooltip placement="topLeft" title={<div style={{wordBreak:"break-all"}}>{(record.guidanceName ? '('+record.guidanceName+')' : '') + text}</div>}>
|
|
|
|
+ <div style={{
|
|
|
|
+ cursor:"pointer",
|
|
|
|
+ width: '150px',
|
|
|
|
+ whiteSpace: 'nowrap',
|
|
|
|
+ overflow: 'hidden',
|
|
|
|
+ textOverflow: 'ellipsis',
|
|
|
|
+ }}>
|
|
|
|
+ {record.guidanceName ? '('+record.guidanceName+')' : null}
|
|
|
|
+ {text}
|
|
|
|
+ </div>
|
|
|
|
+ </Tooltip>
|
|
);
|
|
);
|
|
},
|
|
},
|
|
},
|
|
},
|
|
@@ -170,6 +172,7 @@ class FollowUpSummary extends Component{
|
|
releaseDate2:[],
|
|
releaseDate2:[],
|
|
|
|
|
|
userName:undefined,
|
|
userName:undefined,
|
|
|
|
+ followName:undefined,
|
|
userType:undefined,
|
|
userType:undefined,
|
|
contactType:undefined,
|
|
contactType:undefined,
|
|
depId: undefined,
|
|
depId: undefined,
|
|
@@ -202,6 +205,7 @@ class FollowUpSummary extends Component{
|
|
pageNo: pageNo || 1,
|
|
pageNo: pageNo || 1,
|
|
pageSize: this.state.pagination.pageSize,
|
|
pageSize: this.state.pagination.pageSize,
|
|
userName:this.state.userName || undefined,
|
|
userName:this.state.userName || undefined,
|
|
|
|
+ followName: this.state.followName || undefined,
|
|
userType:isNaN(parseInt(this.state.userType)) ? undefined : this.state.userType,
|
|
userType:isNaN(parseInt(this.state.userType)) ? undefined : this.state.userType,
|
|
contactType: isNaN(parseInt(this.state.contactType)) ? undefined : this.state.contactType,
|
|
contactType: isNaN(parseInt(this.state.contactType)) ? undefined : this.state.contactType,
|
|
depId: this.state.depId || undefined,
|
|
depId: this.state.depId || undefined,
|
|
@@ -211,6 +215,8 @@ class FollowUpSummary extends Component{
|
|
createEndTime:this.state.releaseDate1[1] ? this.state.releaseDate1[1] : undefined,
|
|
createEndTime:this.state.releaseDate1[1] ? this.state.releaseDate1[1] : undefined,
|
|
guidanceStartTime:this.state.releaseDate2[0] ? this.state.releaseDate2[0] : undefined,
|
|
guidanceStartTime:this.state.releaseDate2[0] ? this.state.releaseDate2[0] : undefined,
|
|
guidanceEndTime:this.state.releaseDate2[1] ? this.state.releaseDate2[1] : undefined,
|
|
guidanceEndTime:this.state.releaseDate2[1] ? this.state.releaseDate2[1] : undefined,
|
|
|
|
+
|
|
|
|
+ shiroType:this.props.shiroType
|
|
},
|
|
},
|
|
success: function (data) {
|
|
success: function (data) {
|
|
ShowModal(this);
|
|
ShowModal(this);
|
|
@@ -264,7 +270,7 @@ class FollowUpSummary extends Component{
|
|
for(let i=0;i<data.data.length;i++){
|
|
for(let i=0;i<data.data.length;i++){
|
|
let theData = data.data[i];
|
|
let theData = data.data[i];
|
|
theArr.push(
|
|
theArr.push(
|
|
- <Select.Option value={theData.id} key={theData.id}>{theData.name}</Select.Option>
|
|
|
|
|
|
+ <Select.Option value={theData.name} key={theData.name}>{theData.name}</Select.Option>
|
|
);
|
|
);
|
|
}
|
|
}
|
|
this.setState({
|
|
this.setState({
|
|
@@ -274,11 +280,7 @@ class FollowUpSummary extends Component{
|
|
message.warning(data.error[0].message);
|
|
message.warning(data.error[0].message);
|
|
}
|
|
}
|
|
}.bind(this),
|
|
}.bind(this),
|
|
- }).always(function () {
|
|
|
|
- this.setState({
|
|
|
|
- loading: false
|
|
|
|
- });
|
|
|
|
- }.bind(this));
|
|
|
|
|
|
+ }).always(function () {}.bind(this));
|
|
}
|
|
}
|
|
|
|
|
|
//品类数据获取
|
|
//品类数据获取
|
|
@@ -339,6 +341,7 @@ class FollowUpSummary extends Component{
|
|
let loading = message.loading('加载中...');
|
|
let loading = message.loading('加载中...');
|
|
let data = {
|
|
let data = {
|
|
userName:this.state.userName || undefined,
|
|
userName:this.state.userName || undefined,
|
|
|
|
+ followName:this.state.followName || undefined,
|
|
userType:isNaN(parseInt(this.state.userType)) ? undefined : this.state.userType,
|
|
userType:isNaN(parseInt(this.state.userType)) ? undefined : this.state.userType,
|
|
contactType: isNaN(parseInt(this.state.contactType)) ? undefined : this.state.contactType,
|
|
contactType: isNaN(parseInt(this.state.contactType)) ? undefined : this.state.contactType,
|
|
depId:this.state.depId || undefined,
|
|
depId:this.state.depId || undefined,
|
|
@@ -348,6 +351,8 @@ class FollowUpSummary extends Component{
|
|
createEndTime:this.state.releaseDate1[1] ? this.state.releaseDate1[1] : undefined,
|
|
createEndTime:this.state.releaseDate1[1] ? this.state.releaseDate1[1] : undefined,
|
|
guidanceStartTime:this.state.releaseDate2[0] ? this.state.releaseDate2[0] : undefined,
|
|
guidanceStartTime:this.state.releaseDate2[0] ? this.state.releaseDate2[0] : undefined,
|
|
guidanceEndTime:this.state.releaseDate2[1] ? this.state.releaseDate2[1] : undefined,
|
|
guidanceEndTime:this.state.releaseDate2[1] ? this.state.releaseDate2[1] : undefined,
|
|
|
|
+
|
|
|
|
+ shiroType:this.props.shiroType
|
|
};
|
|
};
|
|
for (let i in data){
|
|
for (let i in data){
|
|
if(typeof data[i] === "undefined"){
|
|
if(typeof data[i] === "undefined"){
|
|
@@ -382,6 +387,7 @@ class FollowUpSummary extends Component{
|
|
reset(){
|
|
reset(){
|
|
this.setState({
|
|
this.setState({
|
|
userName:undefined,
|
|
userName:undefined,
|
|
|
|
+ followName:undefined,
|
|
userType:undefined,
|
|
userType:undefined,
|
|
contactType:undefined,
|
|
contactType:undefined,
|
|
depId:undefined,
|
|
depId:undefined,
|
|
@@ -415,6 +421,16 @@ class FollowUpSummary extends Component{
|
|
}}
|
|
}}
|
|
/>
|
|
/>
|
|
</Form.Item>
|
|
</Form.Item>
|
|
|
|
+ <Form.Item style={{marginTop: '10px'}}>
|
|
|
|
+ <Input
|
|
|
|
+ placeholder="跟进人名称"
|
|
|
|
+ value={this.state.followName}
|
|
|
|
+ style={{ width: 150, marginRight: 10 }}
|
|
|
|
+ onChange={(e) => {
|
|
|
|
+ this.setState({ followName: e.target.value });
|
|
|
|
+ }}
|
|
|
|
+ />
|
|
|
|
+ </Form.Item>
|
|
<Form.Item>
|
|
<Form.Item>
|
|
<Select
|
|
<Select
|
|
placeholder="选择客户类型"
|
|
placeholder="选择客户类型"
|
|
@@ -425,10 +441,12 @@ class FollowUpSummary extends Component{
|
|
this.setState({ userType: e })
|
|
this.setState({ userType: e })
|
|
}}
|
|
}}
|
|
>
|
|
>
|
|
|
|
+ {/*0所有 1私有客户2 公共客户 3签单客户4渠道客户*/}
|
|
<Select.Option value={0}>所有</Select.Option>
|
|
<Select.Option value={0}>所有</Select.Option>
|
|
<Select.Option value={1}>私有客户</Select.Option>
|
|
<Select.Option value={1}>私有客户</Select.Option>
|
|
- <Select.Option value={2}>签单客户</Select.Option>
|
|
|
|
- <Select.Option value={3}>渠道客户</Select.Option>
|
|
|
|
|
|
+ <Select.Option value={2}>公共客户</Select.Option>
|
|
|
|
+ <Select.Option value={3}>签单客户</Select.Option>
|
|
|
|
+ <Select.Option value={4}>渠道客户</Select.Option>
|
|
</Select>
|
|
</Select>
|
|
</Form.Item>
|
|
</Form.Item>
|
|
<Form.Item>
|
|
<Form.Item>
|