|
@@ -61,29 +61,15 @@ const IntentionCustomer = Form.create()(
|
|
|
(thisdata.province == null ? "" : thisdata.province) +
|
|
|
(thisdata.city == null ? "" : "-" + thisdata.city) +
|
|
|
(thisdata.area == null ? "" : "-" + thisdata.area);
|
|
|
- theArr.push({
|
|
|
- key: i,
|
|
|
- id: thisdata.uid,
|
|
|
- aid: thisdata.aid,
|
|
|
- name: thisdata.name,
|
|
|
- contacts: thisdata.contacts,
|
|
|
- contactMobile: thisdata.contactMobile,
|
|
|
- industry: thisdata.industry,
|
|
|
- societyTag: thisdata.societyTag,
|
|
|
- lastFollowTime:
|
|
|
- thisdata.lastFollowTime &&
|
|
|
- thisdata.lastFollowTime.split(" ")[0],
|
|
|
- transferTime:
|
|
|
- thisdata.transferTime && thisdata.transferTime.split(" ")[0],
|
|
|
- surplusFollowTime:
|
|
|
- thisdata.surplusFollowTime &&
|
|
|
- thisdata.surplusFollowTime.split(" ")[0],
|
|
|
- surplusSignTime:
|
|
|
- thisdata.surplusSignTime &&
|
|
|
- thisdata.surplusSignTime.split(" ")[0],
|
|
|
- locationProvince: diqu,
|
|
|
- level: thisdata.level,
|
|
|
- });
|
|
|
+ thisdata.key = i;
|
|
|
+ thisdata.id = thisdata.uid;
|
|
|
+ thisdata.lastFollowTime = thisdata.lastFollowTime &&
|
|
|
+ thisdata.lastFollowTime.split(" ")[0];
|
|
|
+ thisdata.transferTime= thisdata.transferTime && thisdata.transferTime.split(" ")[0];
|
|
|
+ thisdata.surplusFollowTime = thisdata.surplusFollowTime && thisdata.surplusFollowTime.split(" ")[0];
|
|
|
+ thisdata.surplusSignTime = thisdata.surplusSignTime && thisdata.surplusSignTime.split(" ")[0];
|
|
|
+ thisdata.locationProvince = diqu;
|
|
|
+ theArr.push(thisdata);
|
|
|
}
|
|
|
this.state.pagination.current = data.data.pageNo;
|
|
|
this.state.pagination.total = data.data.totalCount;
|
|
@@ -254,13 +240,16 @@ const IntentionCustomer = Form.create()(
|
|
|
>
|
|
|
客户跟进
|
|
|
</Button>
|
|
|
- <div
|
|
|
+ {/*指导 0无 1未读*/}
|
|
|
+ {record.guidance === 1 ? <div
|
|
|
onClick={(e)=>{
|
|
|
e.stopPropagation();
|
|
|
- this.setState({
|
|
|
- tabsKey:"4",
|
|
|
- },()=>{
|
|
|
- this.tableRowClick(record)
|
|
|
+ this.guidanceRead(record.uid).then(()=>{
|
|
|
+ this.setState({
|
|
|
+ tabsKey:"4",
|
|
|
+ },()=>{
|
|
|
+ this.tableRowClick(record)
|
|
|
+ })
|
|
|
})
|
|
|
}}
|
|
|
style={{
|
|
@@ -283,7 +272,7 @@ const IntentionCustomer = Form.create()(
|
|
|
}}>
|
|
|
<div>指导</div>
|
|
|
<div>意见</div>
|
|
|
- </div>
|
|
|
+ </div> : <div/>}
|
|
|
</div>
|
|
|
);
|
|
|
},
|
|
@@ -298,6 +287,28 @@ const IntentionCustomer = Form.create()(
|
|
|
};
|
|
|
},
|
|
|
|
|
|
+ //已读指导记录
|
|
|
+ guidanceRead(id) {
|
|
|
+ return new Promise((resolve,reject)=>{
|
|
|
+ $.ajax({
|
|
|
+ method: "post",
|
|
|
+ dataType: "json",
|
|
|
+ crossDomain: false,
|
|
|
+ url: globalConfig.context + "/api/admin/customer/pushGuidance",
|
|
|
+ data: {
|
|
|
+ uid: id,
|
|
|
+ }
|
|
|
+ }).done(function(data) {
|
|
|
+ if(!data.error.length) {
|
|
|
+ resolve();
|
|
|
+ } else {
|
|
|
+ message.warning(data.error[0].message);
|
|
|
+ reject();
|
|
|
+ };
|
|
|
+ }.bind(this));
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
rankO(rank) {
|
|
|
let deletedIds;
|
|
|
for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
|