Commit 3eeb9a27 authored by agping's avatar agping

客户列表 客户跟进列表 保护期的客户隐藏电话拨打按钮

parent f811c221
...@@ -34,6 +34,8 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -34,6 +34,8 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
agent_id_two: '', agent_id_two: '',
agent_id2: 0, agent_id2: 0,
agent_id_infor: 0, agent_id_infor: 0,
baohu:'',
agentbaohu:'',
isAjaxSaving: false, isAjaxSaving: false,
customerInfo: {}, customerInfo: {},
init: function() { init: function() {
...@@ -273,6 +275,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -273,6 +275,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
$(document).delegate(".caozuo", "click", function() { //点击操作跟进详情 $(document).delegate(".caozuo", "click", function() { //点击操作跟进详情
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.baohu = $(this).attr("data-baohu");
user.agent_id_infor = $(this).attr("data-agentId"); user.agent_id_infor = $(this).attr("data-agentId");
$('.call-user-five').html(''); $('.call-user-five').html('');
$('.detail-modal-body-sec-2').show(); $('.detail-modal-body-sec-2').show();
...@@ -1194,6 +1197,15 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -1194,6 +1197,15 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
}, },
// 新增客户页面 // 新增客户页面
Caozuo: function() { //获取跟进详情的数据 Caozuo: function() { //获取跟进详情的数据
//隐藏拨打电话 如果客户在保护期 并且客户不是我的
if((user_info_obj.id*1 == user.agent_id_infor*1) || user.baohu*1){
$('.user_call').show();
console.log(1)
}else{
$('.user_call').hide();
console.log(2);
console.log(user.baohu);
};
$.ajax({ $.ajax({
'type': 'GET', 'type': 'GET',
'url': '/index/useraction_search', 'url': '/index/useraction_search',
......
...@@ -36,6 +36,8 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -36,6 +36,8 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
agent_id2: 0, agent_id2: 0,
agent_id_infor: 0, agent_id_infor: 0,
isAjaxSaving: false, isAjaxSaving: false,
baohu:'',
agentbaohu:'',
customerInfo: {}, customerInfo: {},
init: function() { init: function() {
//初始化dot //初始化dot
...@@ -380,6 +382,8 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -380,6 +382,8 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
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");
user.baohu = $(this).attr("data-baohu");
user.agentbaohu = $(this).attr("data-agent");
$('.call-user-five').html(''); $('.call-user-five').html('');
$('.detail-modal-body-sec-2').show(); $('.detail-modal-body-sec-2').show();
$('#take_look_name').html($(this).attr("data-name")); $('#take_look_name').html($(this).attr("data-name"));
...@@ -1326,6 +1330,13 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -1326,6 +1330,13 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
}, },
// 新增客户页面 // 新增客户页面
Caozuo: function() { //获取跟进详情的数据 Caozuo: function() { //获取跟进详情的数据
//隐藏拨打电话 如果客户在保护期 并且客户不是我的
if((user_info_obj.id*1 == user.agentbaohu*1) || user.baohu*1){
$('.user_call').show();
}else{
$('.user_call').hide();
}
$.ajax({ $.ajax({
'type': 'GET', 'type': 'GET',
'url': '/index/useraction_search', 'url': '/index/useraction_search',
......
...@@ -32,8 +32,8 @@ ...@@ -32,8 +32,8 @@
<td>[%= hideTel(it[item]['user_phone']) %]</td> <td>[%= hideTel(it[item]['user_phone']) %]</td>
<td width="16%"> <td width="16%">
[% if((check_auth('auth_vip') && it[item]['vip']*1) || (it[item]['agent_id']*1 == 0) || (it[item]['agent_id']*1 == user_info_obj.id*1) || (check_auth('index/useraction_search') && it[item]['vip']*1 == 0 && it[item]["is_outstrip_twenty_four_hours"]*1)) { %] [% if((check_auth('auth_vip') && it[item]['vip']*1) || (it[item]['agent_id']*1 == 0) || (it[item]['agent_id']*1 == user_info_obj.id*1) || (check_auth('index/useraction_search') && it[item]['vip']*1 == 0)) { %]
<a class="btn1 caozuo genj_ure btn-success" href="#modal-record" data-toggle="modal" data-phone='[%= it[item]["user_phone"] %]' data-id='[%= it[item]["user_id"] %]' data-agentId='[%= it[item]["agent_id"] %]' data-name='[%= it[item]["user_name"] %]'>详情/跟进</a>&nbsp; <a class="btn1 caozuo genj_ure btn-success" href="#modal-record" data-toggle="modal" data-phone='[%= it[item]["user_phone"] %]' data-id='[%= it[item]["user_id"] %]' data-agentId='[%= it[item]["agent_id"] %]' data-name='[%= it[item]["user_name"] %]' data-baohu='[%= it[item]["is_outstrip_twenty_four_hours"] %]'>详情/跟进</a>&nbsp;
[% if(it[item]['agent_id'] == it[item]['current_agent_id'] || check_auth('index/pcEditClient')) { %] [% if(it[item]['agent_id'] == it[item]['current_agent_id'] || check_auth('index/pcEditClient')) { %]
<a class="btn1 btn-success caozuo" href="#modal-record-edit" data-toggle="modal" data-phone='[%= it[item]["user_phone"] %]' data-id='[%= it[item]["user_id"] %]'>客户编辑</a>&nbsp; <a class="btn1 btn-success caozuo" href="#modal-record-edit" data-toggle="modal" data-phone='[%= it[item]["user_phone"] %]' data-id='[%= it[item]["user_id"] %]'>客户编辑</a>&nbsp;
......
...@@ -47,8 +47,8 @@ ...@@ -47,8 +47,8 @@
<!--[% if (it[item]['source'] != null){ %] [%= it[item]["source"] %] [% } %]--> <!--[% if (it[item]['source'] != null){ %] [%= it[item]["source"] %] [% } %]-->
</td> </td>
<td width="16%"> <td width="16%">
[% if((check_auth('auth_vip') && it[item]['vip']*1) || (it[item]['agent_id']*1 == 0) || (it[item]['agent_id']*1 == it[item]['current_agent_id']*1) || (check_auth('index/useraction_search') && it[item]['vip']*1 == 0 && it[item]["is_outstrip_twenty_four_hours"]*1)) { %] [% if((check_auth('auth_vip') && it[item]['vip']*1) || (it[item]['agent_id']*1 == 0) || (it[item]['agent_id']*1 == it[item]['current_agent_id']*1) || (check_auth('index/useraction_search') && it[item]['vip']*1 == 0)) { %]
<a class="btn1 caozuo genj_ure caozuo-add-color [%= getLoaclId(it[item]['id']) %]" href="#modal-record" data-toggle="modal" data-phone='[%= it[item]["user_phone"] %]' data-id='[%= it[item]["id"] %]'>详情/跟进</a>&nbsp; <a class="btn1 caozuo genj_ure caozuo-add-color [%= getLoaclId(it[item]['id']) %]" href="#modal-record" data-toggle="modal" data-phone='[%= it[item]["user_phone"] %]' data-id='[%= it[item]["id"] %]' data-baohu='[%= it[item]["is_outstrip_twenty_four_hours"] %]' data-agent='[%= it[item]["agent_id"] %]'>详情/跟进</a>&nbsp;
<a class="btn1 is_show [%= sw(it[item]['is_collect']) %]" data-id='[%= it[item]["id"] %]' data-cid='[%= it[item]["is_collect"] %]'> <a class="btn1 is_show [%= sw(it[item]['is_collect']) %]" data-id='[%= it[item]["id"] %]' data-cid='[%= it[item]["is_collect"] %]'>
[% if(it[item]["is_collect"] == 2) { %] [% if(it[item]["is_collect"] == 2) { %]
收藏 收藏
......
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