Commit 934c661b authored by agping's avatar agping

客户列表修改

parent 3224ff53
......@@ -5,26 +5,20 @@
float: left;
}
.modal-body-width-w{
width: 900px;
width: 1080px;
}
.modal-body-width-h{
height: 686px;
overflow-y: scroll;
}
.modal-body-width-two-w{
width: 886px;
width: 980px;
}
.modal-body-width-two-h{
height: 636px;
height: 686px;
overflow-y: scroll;
}
/*二级弹窗*/
.modal-body-width-two{
width: 800px;
height: 700px;
overflow-y: scroll;
}
#rank_start_day,#rank_end_day,#performance_ranking{
font-size: 16px;
}
......@@ -462,14 +456,14 @@
<tr>
<th class="text-center">分佣方</th>
<th class="text-center">业务员</th>
<th class="text-center">所属部门/门店</th>
<th class="text-center">部门/门店</th>
<th class="text-center">分佣比例</th>
<th class="text-center">应分佣金(元)</th>
<th class="text-center">预分佣金(元)</th>
<th class="text-center">手续费(元)</th>
<th class="text-center">慈善基金(元)</th>
<th class="text-center">现金奖(元)</th>
<th class="text-center">实收佣金(元)</th>
<th class="text-center">应分佣金</th>
<th class="text-center">预分佣金</th>
<th class="text-center">手续费</th>
<th class="text-center">慈善基金</th>
<th class="text-center">现金奖</th>
<th class="text-center">实收佣金</th>
<th class="text-center">确认时间</th>
<th class="text-center">操作</th>
</tr>
......
......@@ -332,7 +332,7 @@ addtax_
#modal_detail>div {
width: 1280px;
width: 1180px;
}
/*成交信息tab*/
......
......@@ -260,6 +260,11 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
checkLogin();
user.modify_add();
});
// 客户编辑 修改记录
$(document).delegate(".cao-zuo-record", "click", function() {
user.user_id = $(this).attr("data-id");
user.Caozuorecord();
});
$(document).delegate(".caozuo-yue", "click", function() {
//约带看初始化
$('#look_shop_date').val('');
......@@ -1345,20 +1350,41 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
}else{
$("#caozuo_table_edit").html('暂无数据(*^_^*)');
};
//转介绍然人 记录
}
} else {
alert('获取失败!');
}
}
});
},
//客户编辑 修改记录
Caozuorecord: function() {//获取客户动态
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
checkLogin();
$.ajax({
url:'/broker/useraction_search',
type: 'POST',
async: true,
data: {
"AuthToken": user_info_obj.AuthToken,
"user_id": user.user_id,
"agent_id": user_info_obj.id
},
dataType: 'json',
success: function(data) {
if(data.code == 200 && data.data != null) {
//转介绍人 记录
var caozuo_table_introduce = "";
$.each(data['data']['user_invite_history'], function(i, item) {
caozuo_table_introduce += '<tr><td>' + item.remark + '</td><td>' + item.name + '</td><td>' + item.create_time + '</td></tr>';
});
if(caozuo_table_introduce){
$("#caozuo_table_edit_introduce").html(caozuo_table);
$("#caozuo_table_edit_introduce").html(caozuo_table_introduce);
}else{
$("#caozuo_table_edit_introduce").html('暂无数据(*^_^*)');
}
}
} else {
alert('获取失败!');
}
}
});
......
......@@ -271,6 +271,11 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home
$(document).delegate("#modify_add", "click", function() {
user.modify_add();
});
// 客户编辑 修改记录
$(document).delegate(".cao-zuo-record", "click", function() {
user.user_id = $(this).attr("data-id");
user.Caozuorecord();
});
$(document).delegate(".caozuo-yue", "click", function() {
//约带看初始化
$('#look_shop_date').val('');
......@@ -1335,20 +1340,41 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home
}else{
$("#caozuo_table_edit").html('暂无数据(*^_^*)');
};
//转介绍然人 记录
}
} else {
alert('获取失败!');
}
}
});
},
//客户编辑 修改记录
Caozuorecord: function() {//获取客户动态
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
checkLogin();
$.ajax({
url:'/broker/useraction_search',
type: 'POST',
async: true,
data: {
"AuthToken": user_info_obj.AuthToken,
"user_id": user.user_id,
"agent_id": user_info_obj.id
},
dataType: 'json',
success: function(data) {
if(data.code == 200 && data.data != null) {
//转介绍人 记录
var caozuo_table_introduce = "";
$.each(data['data']['user_invite_history'], function(i, item) {
caozuo_table_introduce += '<tr><td>' + item.remark + '</td><td>' + item.name + '</td><td>' + item.create_time + '</td></tr>';
});
if(caozuo_table_introduce){
$("#caozuo_table_edit_introduce").html(caozuo_table);
$("#caozuo_table_edit_introduce").html(caozuo_table_introduce);
}else{
$("#caozuo_table_edit_introduce").html('暂无数据(*^_^*)');
}
}
} else {
alert('获取失败!');
}
}
});
......
......@@ -43,6 +43,7 @@ define(['doT', 'jquery', 'text!temp/menu_template_tpl.html', 'layer'], function
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
//登录时间无效 直接跳转登录页面
if(!user_info_obj){
alert('登录失效,请您重新登录');
window.location.href="login.html";
}
......
......@@ -401,6 +401,11 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
$(document).delegate("#modify_add", "click", function() {
user.modify_add();
});
// 客户编辑 修改记录
$(document).delegate(".cao-zuo-record", "click", function() {
user.user_id = $(this).attr("data-id");
user.Caozuorecord();
});
$(document).delegate(".caozuo-yue", "click", function() {
//约带看初始化
$('#look_shop_date').val('');
......@@ -432,8 +437,8 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
$('.detail-modal-body-sec:nth-of-type(1)').show().siblings().hide();
$('.followup-modal-comment-area>textarea').val('');//清空跟进框内容
user.Caozuo();
});
//点击缓存
$(document).delegate(".caozuo-add-color", "click", function() { //点击操作跟进详情
user.user_id = $(this).attr("data-id");
......@@ -514,7 +519,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
user.search_phone_look(this);
}
});
//查看弹出框里的tab点击事件,查看商铺,商铺跟进
//查看弹出框里的tab点击事件,查看客户详情,客户约带看
_doc.on('click', '.detail-modal-header-tab>a', function(e){
e.preventDefault();
e.stopPropagation();
......@@ -552,14 +557,12 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
$(document).delegate(".addphone3", "click", function() { //list3消失
user.addphone3(this);
});
// =============================下拉列表===================
$(document).delegate(".submit_edit", "click", function(e) { //提交
e.preventDefault();
e.stopPropagation();
user.Submit_follow();
});
// =============下拉列表========================
var _ajaxObjTel = null;
_doc.on('input', '.phone_jia', function() {
var _this = $(this),
......@@ -1531,7 +1534,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
}else{
$(".user-details-introduce").html('否'); //转介绍详情
}
var caozuo_table = "";
$.each(data['data']['user_history'], function(i, item) {
caozuo_table += '<tr><td>' + item.remark + '</td><td>' + item.name + '</td><td>' + item.create_time + '</td></tr>';
......@@ -1541,24 +1543,46 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
}else{
$("#caozuo_table_edit").html('暂无数据(*^_^*)');
};
}
} else {
alert('获取失败!');
}
}
});
},
//客户编辑 修改记录
Caozuorecord: function() {//获取客户动态
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
checkLogin();
$.ajax({
url:'/broker/useraction_search',
type: 'POST',
async: true,
data: {
"AuthToken": user_info_obj.AuthToken,
"user_id": user.user_id,
"agent_id": user_info_obj.id
},
dataType: 'json',
success: function(data) {
if(data.code == 200 && data.data != null) {
//转介绍人 记录
var caozuo_table_introduce = "";
$.each(data['data']['user_invite_history'], function(i, item) {
caozuo_table_introduce += '<tr><td>' + item.remark + '</td><td>' + item.name + '</td><td>' + item.create_time + '</td></tr>';
});
if(caozuo_table_introduce){
$("#caozuo_table_edit_introduce").html(caozuo_table);
$("#caozuo_table_edit_introduce").html(caozuo_table_introduce);
}else{
$("#caozuo_table_edit_introduce").html('暂无数据(*^_^*)');
}
}
} else {
alert('获取失败!');
}
}
});
},
//筛选
getList: function(pageNo) {
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
......@@ -1905,7 +1929,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
checkLogin();
$.ajax({
url:'/broker/useraction_search',
// url: 'https://pre2.tonglianjituan.com'+'/broker/useraction_search',
type: 'GET',
async: true,
data: {
......
......@@ -17,7 +17,7 @@
[% 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 cao-zuo-record" href="#modal-record-edit" data-toggle="modal" data-phone='[%= it[item]["user_phone"] %]' data-id='[%= it[item]["user_id"] %]'>客户编辑</a>&nbsp;
[% } %]
[% } %]
......
......@@ -249,7 +249,7 @@
<td class="text-center">[%= it[item]['id'] %]</td>
<td class="text-center">[%= it[item]['create_time'] %]</td>
<td class="text-center">[%= it[item]['trade_type'] %]</td>
<td class="text-center">[%= it[item]['landmark'] %]</td>
<td class="text-left">[%= it[item]['landmark'] %]</td>
<td class="text-center">[%= it[item]['house_id'] %]</td>
<td class="text-center">[%= it[item]['name'] %]</td>
<td class="text-center">[%= it[item]['district_name']+'-'+it[item]['store_name'] %]</a></td>
......@@ -291,7 +291,7 @@
<tr data-id="[%= it[item]['id'] %]" data-orderid="[%= it[item]['order_id'] %]">
<td class="text-center">[%= it[item]['id'] %]</td>
<td class="text-center">[%= it[item]['create_time'] %]</a></td>
<td class="text-center">[%= it[item]['landmark'] %]</td>
<td class="text-left">[%= it[item]['landmark'] %]</td>
<td class="text-center">[%= it[item]['user_name'] %]</td>
<td class="text-center">[%= hideTel(it[item]['user_phone']) %]</td>
<td class="text-center">[%= sw(it[item]['trade_type']) %]</td>
......@@ -335,7 +335,7 @@
<td class="text-center">[%= it[item]['money'] %]</td>
<td class="text-center">[%= swType(it[item]['type']) %]</td>
<td class="text-center">[%= swPayType(it[item]['pay_type']) %]</td>
<td class="text-center">[%= it[item]['landmark'] %]</td>
<td class="text-left">[%= it[item]['landmark'] %]</td>
<td class="text-center">[%= hideStr(it[item]['house_title']) %]</td>
<td class="text-center">
<a class="btn1 btn-success timeline" href="#modal-time" data-toggle="modal" data-id='[%= it[item]["order_id"] %]'>时间轴</a>
......@@ -429,7 +429,7 @@
<th class="text-center">类型</th>
<th class="text-center">租金均价</th>
<th class="text-center">面积</th>
<th class="text-center">业态</th>
<th class="text-left">业态</th>
<th class="text-center">最后跟进时间</th>
<th class="text-center">状态</th>
</tr>
......@@ -489,7 +489,7 @@
<th class="text-center">创建时间</th>
<th class="text-center">最后跟进时间</th>
<th class="text-center">客户状态</th>
<th class="text-center">业态</th>
<th class="text-left">业态</th>
<th class="text-center">面积</th>
<th class="text-center">产生类型</th>
......
......@@ -40,7 +40,7 @@
<a class="btn1 caozuo genj_ure caozuo-add-color [%= getLoaclRemarkId(it[item]['id']) %]" 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')) { %]
<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 cao-zuo-record" href="#modal-record-edit" data-toggle="modal" data-phone='[%= it[item]["user_phone"] %]' data-id='[%= it[item]["user_id"] %]'>客户编辑</a>&nbsp;
[% } %]
......
......@@ -60,7 +60,7 @@
[% } %]
</a>
[% 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]["id"] %]'>客户编辑</a>&nbsp;
<a class="btn1 btn-success caozuo cao-zuo-record" href="#modal-record-edit" data-toggle="modal" data-phone='[%= it[item]["user_phone"] %]' data-id='[%= it[item]["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