Commit d6492671 authored by agping's avatar agping

客户详情优化

parent aa5a9925
......@@ -2025,7 +2025,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
}else{
var follow_status = '电话跟进:'
};
caozuo_table += '<tr><td class="text-left follow-up-home" width="70%">' + follow_status + dealPunctuation(item.content+'!!!!!') + user_status +'</td><td>' + item.name + '</td><td>' + item.create_time +'</td></tr>';
caozuo_table += '<tr><td class="text-left follow-up-home" width="70%">' + follow_status + dealPunctuation(item.content) + user_status +'</td><td>' + item.name + '</td><td>' + item.create_time +'</td></tr>';
});
if(caozuo_table){
......@@ -2069,11 +2069,11 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
var caozuo_table = "";
$.each(data['data'], function(i, item) {
if(item.step_name=='report'){
caozuo_table += '<tr><td class="text-left follow-up-home" width="70%">' + dealPunctuation(item.step+'!!!!!')+'到场时间:'+ item.predict_see_time +'备注:'+item.intro+ '</td><td>' + item.name + '</td><td>' + item.create_time + '</td></tr>';
caozuo_table += '<tr><td class="text-left follow-up-home" width="70%">' + dealPunctuation(item.step)+'到场时间:'+ item.predict_see_time +'备注:'+item.intro+ '</td><td>' + item.name + '</td><td>' + item.create_time + '</td></tr>';
}else if(item.step_name=='follow_up_log'){
caozuo_table += '<tr><td class="text-left follow-up-home" width="70%">报备' + item.step+';属于哪类客户:'+ item.user_type + '</td><td>' + item.name + '</td><td>' + item.create_time + '</td></tr>';
}else{
caozuo_table += '<tr><td class="text-left follow-up-home" width="70%">' + dealPunctuation(item.step+'!!!!!') + '</td><td>' + item.name + '</td><td>' + item.create_time + '</td></tr>';
caozuo_table += '<tr><td class="text-left follow-up-home" width="70%">' + dealPunctuation(item.step) + '</td><td>' + item.name + '</td><td>' + item.create_time + '</td></tr>';
}
});
$("#caozuo_table_log").html(caozuo_table);
......
......@@ -324,7 +324,7 @@ function urlDeal(urlStr, httpStr) {
}
function dealPunctuation(str) {//处理跟进内容 多个标点符号 截取
return str.replace(/!!!!!/g, '').replace(/!!!!!/g, '').replace(/\?\?\?\?\?/g, '').replace(/?????/g, '').replace(/。。。。。/g, '');
return (str+'!!!!!').replace(/!!!!!/g, '').replace(/!!!!!/g, '').replace(/\?\?\?\?\?/g, '').replace(/?????/g, '').replace(/。。。。。/g, '');
}
/**
......
......@@ -2304,7 +2304,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
}else{
var follow_status = '电话跟进:'
};
caozuo_table += '<tr><td class="text-left follow-up-home" width="70%">' + follow_status + dealPunctuation(item.content+'!!!!!') + user_status +'</td><td>' + item.name + '</td><td>' + item.create_time +'</td></tr>';
caozuo_table += '<tr><td class="text-left follow-up-home" width="70%">' + follow_status + dealPunctuation(item.content) + user_status +'</td><td>' + item.name + '</td><td>' + item.create_time +'</td></tr>';
});
if(caozuo_table){
......@@ -2348,11 +2348,11 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
var caozuo_table = "";
$.each(data['data'], function(i, item) {
if(item.step_name=='report'){
caozuo_table += '<tr><td class="text-left follow-up-home" width="70%">' + dealPunctuation(item.step+'!!!!!')+'到场时间:'+ item.predict_see_time +'备注:'+item.intro+ '</td><td>' + item.name + '</td><td>' + item.create_time + '</td></tr>';
caozuo_table += '<tr><td class="text-left follow-up-home" width="70%">' + dealPunctuation(item.step)+'到场时间:'+ item.predict_see_time +'备注:'+item.intro+ '</td><td>' + item.name + '</td><td>' + item.create_time + '</td></tr>';
}else if(item.step_name=='follow_up_log'){
caozuo_table += '<tr><td class="text-left follow-up-home" width="70%">报备' + item.step+';属于哪类客户:'+ item.user_type + '</td><td>' + item.name + '</td><td>' + item.create_time + '</td></tr>';
}else{
caozuo_table += '<tr><td class="text-left follow-up-home" width="70%">' + dealPunctuation(item.step+'!!!!!')+ '</td><td>' + item.name + '</td><td>' + item.create_time + '</td></tr>';
caozuo_table += '<tr><td class="text-left follow-up-home" width="70%">' + dealPunctuation(item.step)+ '</td><td>' + item.name + '</td><td>' + item.create_time + '</td></tr>';
}
});
$("#caozuo_table_log").html(caozuo_table);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment