Commit 8521e5c7 authored by agping's avatar agping

客户列表修改

parent 3bb4b663
...@@ -767,6 +767,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'ckfinder', 'ckfinde ...@@ -767,6 +767,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'ckfinder', 'ckfinde
} else { } else {
}; };
user.agent_id2=data.data.user_info.agent_id;
user.agent_id_two = data.data.user_info.agent_id; user.agent_id_two = data.data.user_info.agent_id;
if(data.data.user_info.source == 10) { if(data.data.user_info.source == 10) {
$(".source_type").html('APP注册'); //客方 $(".source_type").html('APP注册'); //客方
......
...@@ -774,6 +774,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart', ...@@ -774,6 +774,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
success: function(data) { success: function(data) {
if(data.code == 200) { if(data.code == 200) {
if(data.data) { if(data.data) {
$(".cus_id").html(data.data.user_info.user_id); //客户编号 $(".cus_id").html(data.data.user_info.user_id); //客户编号
$(".cus_name").val(data.data.user_info.user_name); //姓名 $(".cus_name").val(data.data.user_info.user_name); //姓名
$(".cus_nick").html(data.data.user_info.user_nick); //昵称 $(".cus_nick").html(data.data.user_info.user_nick); //昵称
...@@ -817,7 +818,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart', ...@@ -817,7 +818,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
} else { } else {
}; };
user.agent_id2=data.data.user_info.agent_id;
user.agent_id_two = data.data.user_info.agent_id; user.agent_id_two = data.data.user_info.agent_id;
if(data.data.user_info.source == 10) { if(data.data.user_info.source == 10) {
$(".source_type").html('APP注册'); //客方 $(".source_type").html('APP注册'); //客方
...@@ -1168,7 +1169,12 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart', ...@@ -1168,7 +1169,12 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
//客户动态 即跟进 //客户动态 即跟进
var caozuo_table = ""; var caozuo_table = "";
$.each(data['data']['user_date'], function(i, item) { $.each(data['data']['user_date'], function(i, item) {
caozuo_table += '<tr><td class="text-left" width="70%">' + item.step + '</td><td>' + item.name + '</td><td>' + item.create_time + '</td></tr>'; if(item.step_name=='report'){
caozuo_table += '<tr><td class="text-left" width="70%">' + item.step+'到场时间:'+ item.predict_see_time +'备注:'+item.intro+ '</td><td>' + item.name + '</td><td>' + item.create_time + '</td></tr>';
}else{
caozuo_table += '<tr><td class="text-left" width="70%">' + item.step+ '</td><td>' + item.name + '</td><td>' + item.create_time + '</td></tr>';
}
}); });
if(caozuo_table){ if(caozuo_table){
$("#caozuo_table2").html(caozuo_table); $("#caozuo_table2").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