Commit d814508d authored by agping's avatar agping

客户跟进修改

parent 9e6ebfa6
...@@ -36,6 +36,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -36,6 +36,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
agent_id_infor: 0, agent_id_infor: 0,
baohu:'', baohu:'',
agentbaohu:'', agentbaohu:'',
remark_id:'',
isAjaxSaving: false, isAjaxSaving: false,
customerInfo: {}, customerInfo: {},
init: function() { init: function() {
...@@ -277,6 +278,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -277,6 +278,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
user.user_phone = $(this).attr("data-phone"); user.user_phone = $(this).attr("data-phone");
user.baohu = $(this).attr("data-baohu"); user.baohu = $(this).attr("data-baohu");
user.agent_id_infor = $(this).attr("data-agentId"); user.agent_id_infor = $(this).attr("data-agentId");
user.remark_id = $(this).attr("data-remark");
$('.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"));
...@@ -1520,12 +1522,11 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -1520,12 +1522,11 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
getUserFavorites: function(params) {//客户 收藏夹 getUserFavorites: function(params) {//客户 收藏夹
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存 var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
$.ajax({ $.ajax({
url: '/broker/getLastOrNextUserID',//上一页 下一页 调用接口 url: '/broker/getLastOrNextUserIDPhoneFollowPu',//上一页 下一页 调用接口
// url: 'https://pre2.tonglianjituan.com'+'/broker/getLastOrNextUserID',
type: 'GET', type: 'GET',
async: true, async: true,
data: { data: {
"user_id": user.user_id, "id": user.remark_id,
"agent_id": user_info_obj.id, "agent_id": user_info_obj.id,
"type":user_type, "type":user_type,
"AuthToken":user_info_obj.AuthToken "AuthToken":user_info_obj.AuthToken
...@@ -1557,16 +1558,16 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -1557,16 +1558,16 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
} }
params.start_date = $('#start_date').val(); params.start_date = $('#start_date').val();
params.end_date = $('#end_date').val(); params.end_date = $('#end_date').val();
// params.user_id = $.trim($("#customer_name_id").val());//客户编号 params.user_id = $.trim($("#customer_name_id").val());//客户编号
params.disc = $.trim($("#user_area_choose").val());//区域 params.disc = $.trim($("#user_area_choose").val());//区域
params.user_id = user.user_id; // params.user_id = user.user_id;
params.id = user.remark_id;
params.agent_id = user_info_obj.id; params.agent_id = user_info_obj.id;
params.type = user_type; params.type = user_type;
params.AuthToken =user_info_obj.AuthToken; params.AuthToken =user_info_obj.AuthToken;
$.ajax({ $.ajax({
url: '/broker/getLastOrNextUserID',//上一页 下一页 调用接口 url: '/broker/getLastOrNextUserIDPhoneFollowPu',//上一页 下一页 调用接口
// url: 'https://pre2.tonglianjituan.com'+'/broker/getLastOrNextUserID',
type: 'GET', type: 'GET',
async: true, async: true,
data:params, data:params,
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<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)) { %] [% 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"] %]' data-baohu='[%= it[item]["is_outstrip_twenty_four_hours"] %]'>详情/跟进</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"] %]' data-remark='[%= it[item]["id"] %]'>详情/跟进</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;
......
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