Commit cc9c7c85 authored by agping's avatar agping

1

parent c80caaaf
...@@ -688,8 +688,7 @@ ...@@ -688,8 +688,7 @@
</table> </table>
<div class="kefang-detail"> <div class="kefang-detail">
<span>888888</span>
<span>888888</span>
</div> </div>
<!--关联客户--> <!--关联客户-->
<div> <div>
......
...@@ -730,7 +730,7 @@ ...@@ -730,7 +730,7 @@
</div> </div>
</div> </div>
<div class="form-group form-group-bottom"> <div class="form-group form-group-bottom">
<label class="col-sm-3 control-label">客方:</label> <label class="col-sm-3 control-label"><span class="kefang-city"></span>客方:</label>
<div class="col-sm-9"> <div class="col-sm-9">
<input type="text" class="form-control btn6" name="agent_id" autocomplete="off" id="set_father_id3" placeholder="请输入"> <input type="text" class="form-control btn6" name="agent_id" autocomplete="off" id="set_father_id3" placeholder="请输入">
<ul class="user-ul"> <ul class="user-ul">
...@@ -1028,7 +1028,7 @@ ...@@ -1028,7 +1028,7 @@
<tr> <tr>
<td> <td>
<div class="form-group"> <div class="form-group">
<span class="fore-span ld-Marheight">客方:</span> <span class="fore-span ld-Marheight"><span class="kefang-city"></span>客方:</span>
<div class="col-sm-9"> <div class="col-sm-9">
<input type="text" class="form-control btn6-1 ld-Marheight cus_fang" name="pwd" autocomplete="off"> <input type="text" class="form-control btn6-1 ld-Marheight cus_fang" name="pwd" autocomplete="off">
<ul class="user-ul2"></ul> <ul class="user-ul2"></ul>
......
...@@ -867,15 +867,7 @@ ...@@ -867,15 +867,7 @@
</tr> </tr>
<tr> <tr>
<td>
<div class="form-group">
<span class="fore-span">客方:</span>
<div class="col-sm-9">
<input type="text" class="form-control btn6-1 cus_fang_edit input-border-0" name="pwd" autocomplete="off" disabled="disabled">
<!--<ul class="user-ul2"></ul>-->
</div>
</div>
</td>
<td> <td>
<span class="fore-span">是否转介绍:</span> <span class="fore-span">是否转介绍:</span>
<span class="user-details-introduce fore-span"></span> <span class="user-details-introduce fore-span"></span>
...@@ -884,6 +876,8 @@ ...@@ -884,6 +876,8 @@
<span class="fore-span">邀请人(介绍人):</span> <span class="fore-span">邀请人(介绍人):</span>
<span class="user-details-introduce-id fore-span"></span> <span class="user-details-introduce-id fore-span"></span>
</td> </td>
<td>
</td>
</tr> </tr>
<tr> <tr>
...@@ -897,6 +891,7 @@ ...@@ -897,6 +891,7 @@
</thead> </thead>
</table> </table>
<div class="kefang-detail"></div>
<h4 class="modal-title-genjing clear text-info"> <h4 class="modal-title-genjing clear text-info">
客户跟进 客户跟进
</h4> </h4>
......
...@@ -867,15 +867,7 @@ ...@@ -867,15 +867,7 @@
</tr> </tr>
<tr> <tr>
<td>
<div class="form-group">
<span class="fore-span">客方:</span>
<div class="col-sm-9">
<input type="text" class="form-control btn6-1 cus_fang_edit input-border-0" name="pwd" autocomplete="off" disabled="disabled">
<!--<ul class="user-ul2"></ul>-->
</div>
</div>
</td>
<td> <td>
<span class="fore-span">是否转介绍:</span> <span class="fore-span">是否转介绍:</span>
<span class="user-details-introduce fore-span"></span> <span class="user-details-introduce fore-span"></span>
...@@ -884,7 +876,8 @@ ...@@ -884,7 +876,8 @@
<span class="fore-span">邀请人(介绍人):</span> <span class="fore-span">邀请人(介绍人):</span>
<span class="user-details-introduce-id fore-span"></span> <span class="user-details-introduce-id fore-span"></span>
</td> </td>
<td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td>
...@@ -897,6 +890,7 @@ ...@@ -897,6 +890,7 @@
</thead> </thead>
</table> </table>
<div class="kefang-detail"></div>
<h4 class="modal-title-genjing clear text-info"> <h4 class="modal-title-genjing clear text-info">
客户跟进 客户跟进
</h4> </h4>
......
...@@ -321,15 +321,7 @@ ...@@ -321,15 +321,7 @@
</tr> </tr>
<tr> <tr>
<td>
<div class="form-group">
<span class="fore-span">客方:</span>
<div class="col-sm-9">
<input type="text" class="form-control btn6-1 cus_fang_edit input-border-0" name="pwd" autocomplete="off" disabled="disabled">
<!--<ul class="user-ul2"></ul>-->
</div>
</div>
</td>
<td> <td>
<span class="fore-span">是否转介绍:</span> <span class="fore-span">是否转介绍:</span>
<span class="user-details-introduce fore-span"></span> <span class="user-details-introduce fore-span"></span>
...@@ -338,7 +330,9 @@ ...@@ -338,7 +330,9 @@
<span class="fore-span">邀请人(介绍人):</span> <span class="fore-span">邀请人(介绍人):</span>
<span class="user-details-introduce-id fore-span"></span> <span class="user-details-introduce-id fore-span"></span>
</td> </td>
<td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td>
...@@ -351,6 +345,7 @@ ...@@ -351,6 +345,7 @@
</thead> </thead>
</table> </table>
<div class="kefang-detail"></div>
<h4 class="modal-title-genjing clear text-info"> <h4 class="modal-title-genjing clear text-info">
客户跟进 客户跟进
</h4> </h4>
......
...@@ -168,6 +168,7 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r ...@@ -168,6 +168,7 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
success: function(data) { success: function(data) {
if(data.code == 200) { if(data.code == 200) {
if(data.data) { if(data.data) {
bargain.kefangDetail();
$(".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); //昵称
...@@ -222,6 +223,41 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r ...@@ -222,6 +223,41 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
} }
}); });
}, },
// 获取客户详情(客方)
kefangDetail: function() { //获取跟进详情的数据
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
$.ajax({
'type': 'GET',
'url': '/index/userDetail',
data: {
"AuthToken": user_info_obj.AuthToken,
"user_id": bargain.detail_user_id,
"agent_id": user_info_obj.id
},
dataType: "json",
success: function(data) {
if(data.code == 200) {
if(data.data) {
// 显示多个客方
var kefang_table = "";
if(data['data']['customer_relegation_list']){
$.each(data['data']['customer_relegation_list'], function(i, item) {
kefang_table += '<span>' + item.site_name +'客方:' + item.agent_name+ '-' + item.agent_phone + '</span>&nbsp;&nbsp;&nbsp;';
});
$('.kefang-detail').html(kefang_table);
}else{
$('.kefang-detail').html('客方:');
}
}
} else {
alert('获取失败!');
}
}
});
},
//获取 客户跟进信息 //获取 客户跟进信息
getGenjincon: function() {//获取客户动态 getGenjincon: function() {//获取客户动态
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存 var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
......
...@@ -2349,6 +2349,7 @@ define(['doT', 'text!temp/reportList_office_template_tpl.html', 'css!style/home. ...@@ -2349,6 +2349,7 @@ define(['doT', 'text!temp/reportList_office_template_tpl.html', 'css!style/home.
success: function(data) { success: function(data) {
if(data.code == 200) { if(data.code == 200) {
if(data.data) { if(data.data) {
bargain.kefangDetail();
$(".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); //昵称
...@@ -2403,6 +2404,41 @@ define(['doT', 'text!temp/reportList_office_template_tpl.html', 'css!style/home. ...@@ -2403,6 +2404,41 @@ define(['doT', 'text!temp/reportList_office_template_tpl.html', 'css!style/home.
} }
}); });
}, },
// 获取客户详情(客方)
kefangDetail: function() { //获取跟进详情的数据
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
$.ajax({
'type': 'GET',
'url': '/index/userDetail',
data: {
"AuthToken": user_info_obj.AuthToken,
"user_id": bargain.detail_user_id,
"agent_id": user_info_obj.id
},
dataType: "json",
success: function(data) {
if(data.code == 200) {
if(data.data) {
// 显示多个客方
var kefang_table = "";
if(data['data']['customer_relegation_list']){
$.each(data['data']['customer_relegation_list'], function(i, item) {
kefang_table += '<span>' + item.site_name +'客方:' + item.agent_name+ '-' + item.agent_phone + '</span>&nbsp;&nbsp;&nbsp;';
});
$('.kefang-detail').html(kefang_table);
}else{
$('.kefang-detail').html('客方:');
}
}
} else {
alert('获取失败!');
}
}
});
},
//获取 客户跟进信息 //获取 客户跟进信息
getGenjincon: function() {//获取客户动态 getGenjincon: function() {//获取客户动态
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存 var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
......
...@@ -2299,6 +2299,7 @@ define(['doT', 'text!temp/reportList_shop_template_tpl.html', 'css!style/home.cs ...@@ -2299,6 +2299,7 @@ define(['doT', 'text!temp/reportList_shop_template_tpl.html', 'css!style/home.cs
success: function(data) { success: function(data) {
if(data.code == 200) { if(data.code == 200) {
if(data.data) { if(data.data) {
bargain.kefangDetail();
$(".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); //昵称
...@@ -2353,6 +2354,41 @@ define(['doT', 'text!temp/reportList_shop_template_tpl.html', 'css!style/home.cs ...@@ -2353,6 +2354,41 @@ define(['doT', 'text!temp/reportList_shop_template_tpl.html', 'css!style/home.cs
} }
}); });
}, },
// 获取客户详情(客方)
kefangDetail: function() { //获取跟进详情的数据
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
$.ajax({
'type': 'GET',
'url': '/index/userDetail',
data: {
"AuthToken": user_info_obj.AuthToken,
"user_id": bargain.detail_user_id,
"agent_id": user_info_obj.id
},
dataType: "json",
success: function(data) {
if(data.code == 200) {
if(data.data) {
// 显示多个客方
var kefang_table = "";
if(data['data']['customer_relegation_list']){
$.each(data['data']['customer_relegation_list'], function(i, item) {
kefang_table += '<span>' + item.site_name +'客方:' + item.agent_name+ '-' + item.agent_phone + '</span>&nbsp;&nbsp;&nbsp;';
});
$('.kefang-detail').html(kefang_table);
}else{
$('.kefang-detail').html('客方:');
}
}
} else {
alert('获取失败!');
}
}
});
},
//获取 客户跟进信息 //获取 客户跟进信息
getGenjincon: function() {//获取客户动态 getGenjincon: function() {//获取客户动态
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存 var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
......
...@@ -539,6 +539,8 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -539,6 +539,8 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
$(document).delegate(".add-user-new", "click", function() { //新增客户 $(document).delegate(".add-user-new", "click", function() { //新增客户
user.agent_id=''; user.agent_id='';
$('#shangpu_tags_area').html(''); $('#shangpu_tags_area').html('');
var str_ = user_info_obj.city;
$('.kefang-city').html(str_.substr(0, str_.length-1));
user.getSiteTags();//获取站点 城市 user.getSiteTags();//获取站点 城市
}); });
// 跟进的提交按钮 点击 // 跟进的提交按钮 点击
...@@ -568,6 +570,8 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -568,6 +570,8 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
}); });
//客户列表操作 //客户列表操作
$(document).delegate(".cao-zuo-record", "click", function() { //点击操作跟进详情 $(document).delegate(".cao-zuo-record", "click", function() { //点击操作跟进详情
var str_ = user_info_obj.city;
$('.kefang-city').html(str_.substr(0, str_.length-1));
user.user_id = $(this).attr("data-id"); user.user_id = $(this).attr("data-id");
user.user_phone = $(this).attr("data-phone"); user.user_phone = $(this).attr("data-phone");
user.agent_id_infor = $(this).attr("data-agentId"); user.agent_id_infor = $(this).attr("data-agentId");
...@@ -599,7 +603,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -599,7 +603,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
user.getSiteTagsEdit(); user.getSiteTagsEdit();
user.getUserLogNew();//客户详情获取最近一条带看动态 user.getUserLogNew();//客户详情获取最近一条带看动态
$('.user-log-more').show();//显示加载更多 $('.user-log-more').show();//显示加载更多
}); });
//点击缓存 //点击缓存
......
...@@ -174,7 +174,7 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c ...@@ -174,7 +174,7 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
'1': _data.data.internet_img_name '1': _data.data.internet_img_name
})); }));
} else { } else {
alert(_data.msg); // alert(_data.msg);
}; };
}, },
error: function() { error: function() {
......
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