Commit 9b3b81f7 authored by agping's avatar agping

后台新增功能

parent b4d045dd
...@@ -61,6 +61,23 @@ ...@@ -61,6 +61,23 @@
overflow: hidden; overflow: hidden;
display: none; display: none;
} }
/*跟进人 下拉式搜索*/
.user-ul-liu{
height: auto;
float: left;
position: relative;
left: -40px;
}
.user-ul-liu li{
list-style: none;
line-height: 30px;
}
.left-phone-liu{
float: left;
margin-top: 7px;
margin-left: 10px;
}
</style> </style>
<div id="page-content-wrapper"> <div id="page-content-wrapper">
<div class="container"> <div class="container">
...@@ -96,7 +113,11 @@ ...@@ -96,7 +113,11 @@
<select class="form-control btn4 ld-Marheight input" name="" id="guest_stores" value=""> <select class="form-control btn4 ld-Marheight input" name="" id="guest_stores" value="">
</select> </select>
<!--<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="user_name" placeholder="跟进人姓名" type="text" value="">--> <!--<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="user_name" placeholder="跟进人姓名" type="text" value="">-->
<input class="form-control btn4 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="user_phone" placeholder="跟进人姓名/电话" type="text" value=""> <!--<input class="form-control btn4 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="user_phone" placeholder="跟进人姓名/电话" type="text" value="">-->
<div class="left-phone-liu">
<input class="form-control" data-rule-phoneus="false" data-rule-required="false" id="partical_name" placeholder="跟进人姓名" type="text" value="">
<ul class="user-ul-liu"></ul>
</div>
<!--<div class="clear"></div>--> <!--<div class="clear"></div>-->
<!--<select class="form-control btn2 ld-Marheight" id="shop_city_id"> <!--<select class="form-control btn2 ld-Marheight" id="shop_city_id">
...@@ -105,7 +126,9 @@ ...@@ -105,7 +126,9 @@
<option value="330100">杭州市</option> <option value="330100">杭州市</option>
</select>--> </select>-->
<div class="clear">
</div>
<span class="btn btn-info btn3 ld-Marheight" id="search">搜索</span> <span class="btn btn-info btn3 ld-Marheight" id="search">搜索</span>
<span class="btn btn-info btn3 ld-Marheight" id="reset">重置</span> <span class="btn btn-info btn3 ld-Marheight" id="reset">重置</span>
</form> </form>
......
...@@ -343,8 +343,10 @@ ...@@ -343,8 +343,10 @@
<select class="form-control" name="zujinType" id="zujinType"> <select class="form-control" name="zujinType" id="zujinType">
<option value="1" selected="selected">月租金</option> <option value="1" selected="selected">月租金</option>
<option value="2">营业额扣点</option> <option value="2">营业额扣点</option>
<option value="3">每平方米租金</option> <option value="3">每平方米租金</option>
<option value="4">年租金</option> <option value="4">年租金</option>
<option value="5">每平方米月租金</option>
</select> </select>
</div> </div>
<div class="form-group"> <div class="form-group">
......
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
<option value="0">商场</option> <option value="0">商场</option>
<option value="1">街铺</option> <option value="1">街铺</option>
</select> </select>
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="bargain_id" placeholder="带看订单ID" type="text" value="">
<span class="btn btn-info btn3 ld-Marheight" id="search">搜索</span> <span class="btn btn-info btn3 ld-Marheight" id="search">搜索</span>
<span class="btn btn-info btn3 ld-Marheight" id="reset">重置</span> <span class="btn btn-info btn3 ld-Marheight" id="reset">重置</span>
</form> </form>
......
...@@ -338,6 +338,22 @@ ...@@ -338,6 +338,22 @@
font-weight: 600; font-weight: 600;
cursor: pointer; cursor: pointer;
} }
/*下拉式*/
.user-ul-liu{
height: auto;
float: left;
position: relative;
left: -40px;
}
.user-ul-liu li{
list-style: none;
line-height: 30px;
}
.left-phone-liu{
float: left;
margin-top: 15px;
margin-left: 10px;
}
</style> </style>
<div id="page-content-wrapper"> <div id="page-content-wrapper">
<div class="container"> <div class="container">
...@@ -365,10 +381,15 @@ ...@@ -365,10 +381,15 @@
<input class="form-control btn4 ld-Marheight" value="" data-rule-phoneus="false" data-rule-required="false" id="end_date" name="end_date" type="date"> <input class="form-control btn4 ld-Marheight" value="" data-rule-phoneus="false" data-rule-required="false" id="end_date" name="end_date" type="date">
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="customer_name_id" placeholder="客户编号" type="text" value=""> <input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="customer_name_id" placeholder="客户编号" type="text" value="">
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="follow_content" placeholder="跟进内容" type="text" value=""> <input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="follow_content" placeholder="跟进内容" type="text" value="">
<div class="left-phone-liu">
<input class="form-control" data-rule-phoneus="false" data-rule-required="false" id="partical_name" placeholder="跟进人姓名" type="text" value="">
<ul class="user-ul-liu"></ul>
</div>
<!--<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="remark_name" placeholder="跟进人姓名" type="text" value="">
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="remark_phone" placeholder="跟进人手机号" type="text" value="">-->
<div class="clear">
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="remark_name" placeholder="跟进人姓名" type="text" value=""> </div>
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="remark_phone" placeholder="跟进人手机号" type="text" value="">
<select class="form-control btn4 ld-Marheight input" name="" id="district_id"> <select class="form-control btn4 ld-Marheight input" name="" id="district_id">
<option value="">跟进人所在部门</option> <option value="">跟进人所在部门</option>
</select> </select>
......
...@@ -477,8 +477,11 @@ require(['vue', 'css!style/shop_detail_pc.css', 'jquery0325', 'common'], functio ...@@ -477,8 +477,11 @@ require(['vue', 'css!style/shop_detail_pc.css', 'jquery0325', 'common'], functio
return '营业额扣点 :' + _this.d.rent_price + '%'; return '营业额扣点 :' + _this.d.rent_price + '%';
}else if(_this.d.rent_type == '3') { }else if(_this.d.rent_type == '3') {
return '租金均价 :' + _this.d.rent_price + '元/天/m²'; return '租金均价 :' + _this.d.rent_price + '元/天/m²';
} else { } else if(_this.d.rent_type == '4') {
return '租金均价 :' + _this.d.rent_price + '元/年'; return '租金均价 :' + _this.d.rent_price + '元/年';
}else{
return '租金均价 :' + _this.d.rent_price + '元/月/m²';
} }
}, },
dealArea: function() { dealArea: function() {
......
...@@ -44,6 +44,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -44,6 +44,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
customerInfo: {}, customerInfo: {},
agent_id_call:"",//拨打电话 相关 agent_id_call:"",//拨打电话 相关
agent_id_call_vip:"", agent_id_call_vip:"",
agent_id_phone:'',
init: function() { init: function() {
//初始化dot //初始化dot
$("body").append(template); $("body").append(template);
...@@ -239,6 +240,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -239,6 +240,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
$("#reset").click(function() { $("#reset").click(function() {
document.getElementById("form_search").reset(); document.getElementById("form_search").reset();
user.agent_id_phone='';//重置搜索
$('#guest_stores').html(''); $('#guest_stores').html('');
$('#guest_stores2').html(''); $('#guest_stores2').html('');
}); });
...@@ -259,7 +261,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -259,7 +261,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
user.getGenjinLabel(); user.getGenjinLabel();
}); });
$(document).delegate(".add_alert", "click", function() { //重置搜索 $(document).delegate(".add_alert", "click", function() {
document.getElementById("add_user_form").reset(); document.getElementById("add_user_form").reset();
}); });
...@@ -418,6 +420,20 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -418,6 +420,20 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
user.getGenjincon(); user.getGenjincon();
} }
}); });
//跟进姓名 下拉式搜索
$(document).on("input", "#partical_name", function() { //手机号新增搜索客方
if($("#partical_name").val() == '') {
user.agent_id_phone='';
$(".user-ul-liu").html('');
} else {
user.search_phone_liu();
}
});
//点击li 列表消失
$(document).delegate(".addphoneliu", "click", function() { //list消失新增客户 点击li事件 获取id ul消失
user.addphoneliu(this);
});
//跟进姓名 下拉式搜索
$(document).on("input", ".cus_fang", function() { //手机号搜索客方2 编辑 $(document).on("input", ".cus_fang", function() { //手机号搜索客方2 编辑
if($(".cus_fang").val() == '') { if($(".cus_fang").val() == '') {
user.agent_id2=''; user.agent_id2='';
...@@ -1499,6 +1515,8 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -1499,6 +1515,8 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
params.remark_phone = $.trim($("#remark_phone").val()); params.remark_phone = $.trim($("#remark_phone").val());
params.remark_store_id = $.trim($("#guest_stores").val()); params.remark_store_id = $.trim($("#guest_stores").val());
params.remark_district_id = $.trim($("#district_id").val()); params.remark_district_id = $.trim($("#district_id").val());
params.agent_id = user.agent_id_phone;//跟进人 下拉式搜索
if(params.remark_name.length == 1){ if(params.remark_name.length == 1){
alert('跟进人姓名的搜索必须2字及2字以上'); alert('跟进人姓名的搜索必须2字及2字以上');
return; return;
...@@ -1978,6 +1996,56 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -1978,6 +1996,56 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
} }
}); });
}, },
//跟进人 姓名搜索
search_phone_liu: function() { //手机号新增客户
$.ajax({
url: '/index/getBroker_new',
type: 'GET',
async: true,
data: {
"phone": $("#partical_name").val(),
'all' : 1
},
dataType: 'json',
success: function(data) {
if(data.code == 200) {
var user_ul = "";
$.each(data.data, function(i, item) {
if(item.status == 0){
var status=' ';
};
if(item.status == 1){
var status='-长假';
};
if(item.status == 2){
var status='-离职';
};
if(item.status == 3){
var status='-转勤';
};
if(item.status == 4){
var status='-黑名单';
}
user_ul += '<li class="addphoneliu" data-id="' + item.id + '">' + item.id + '-' + item.name + '-' + item.phone + status + '</li>';
});
$(".user-ul-liu").html(user_ul);
} else {
alert(data.msg);
}
}
});
},
//将li里的值 赋给input(分佣方姓名)
addphoneliu: function(obj) {//新增客户 input赋值
var user_ht = $(obj).html()+'';
var user_ht_str=user_ht.substring(0,user_ht.length-3);
$("#partical_name").val(user_ht_str);
$(".user-ul-liu").html('');
user.agent_id_phone = $(obj).attr("data-id");
},
}; };
return user; return user;
......
...@@ -17,7 +17,7 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css' ...@@ -17,7 +17,7 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css'
stopstatus: true, stopstatus: true,
boxphoto: '', boxphoto: '',
detailTabIndex:0,//查看 弹出框 tab切换 初始化 detailTabIndex:0,//查看 弹出框 tab切换 初始化
agent_id_phone:'',//下拉跟进人id
init: function() { init: function() {
//初始化dot //初始化dot
$(document.body).append(template); $(document.body).append(template);
...@@ -92,6 +92,7 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css' ...@@ -92,6 +92,7 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css'
$("#reset").click(function() { //重置 $("#reset").click(function() { //重置
document.getElementById("form_search").reset(); document.getElementById("form_search").reset();
$('#guest_stores').html(''); $('#guest_stores').html('');
house.agent_id_phone='';//重置经纪人id
}); });
//查看弹出框里的tab点击事件,查看商铺,商铺跟进 //查看弹出框里的tab点击事件,查看商铺,商铺跟进
_doc.on('click', '.detail-modal-header-tab>a', function(e){ _doc.on('click', '.detail-modal-header-tab>a', function(e){
...@@ -121,7 +122,19 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css' ...@@ -121,7 +122,19 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css'
$('.followup-modal-comment-area>textarea').val('');//清空跟进框内容 $('.followup-modal-comment-area>textarea').val('');//清空跟进框内容
house.getFollowupList(); house.getFollowupList();
}); });
//跟进姓名 下拉式搜索
$(document).on("input", "#partical_name", function() { //手机号新增搜索客方
if($("#partical_name").val() == '') {
house.agent_id_phone='';
$(".user-ul-liu").html('');
} else {
house.search_phone_liu();
}
});
//点击li 列表消失
$(document).delegate(".addphoneliu", "click", function() { //list消失新增客户 点击li事件 获取id ul消失
house.addphoneliu(this);
});
//点击商铺跟进保存按钮,保存数据的接口 //点击商铺跟进保存按钮,保存数据的接口
_doc.on('click', '#modal_followup_submit_btn', function(e){ _doc.on('click', '#modal_followup_submit_btn', function(e){
e.preventDefault(); e.preventDefault();
...@@ -197,11 +210,8 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css' ...@@ -197,11 +210,8 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css'
// params.user_name = $('#user_name').val(); // params.user_name = $('#user_name').val();
params.name_or_phone = $('#user_phone').val(); params.name_or_phone = $('#user_phone').val();
if(params.name_or_phone.length == 1){ params.agent_id = house.agent_id_phone;//下拉搜索 跟进人id
alert('跟进人姓名的搜素必须2字及2字以上');
return;
}
// params.report_agent_phone = $('#report_agent_phone').val(); // params.report_agent_phone = $('#report_agent_phone').val();
params.search_content = $('#follow_up_con').val(); params.search_content = $('#follow_up_con').val();
params.pageNo = house.pageNo; params.pageNo = house.pageNo;
...@@ -433,6 +443,56 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css' ...@@ -433,6 +443,56 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css'
} }
}); });
}, },
//跟进人 姓名搜索
search_phone_liu: function() { //手机号新增客户
$.ajax({
url: '/index/getBroker_new',
type: 'GET',
async: true,
data: {
"phone": $("#partical_name").val(),
'all' : 1
},
dataType: 'json',
success: function(data) {
if(data.code == 200) {
var user_ul = "";
$.each(data.data, function(i, item) {
if(item.status == 0){
var status=' ';
};
if(item.status == 1){
var status='-长假';
};
if(item.status == 2){
var status='-离职';
};
if(item.status == 3){
var status='-转勤';
};
if(item.status == 4){
var status='-黑名单';
}
user_ul += '<li class="addphoneliu" data-id="' + item.id + '">' + item.id + '-' + item.name + '-' + item.phone + status + '</li>';
});
$(".user-ul-liu").html(user_ul);
} else {
alert(data.msg);
}
}
});
},
//将li里的值 赋给input(分佣方姓名)
addphoneliu: function(obj) {//新增客户 input赋值
var user_ht = $(obj).html()+'';
var user_ht_str=user_ht.substring(0,user_ht.length-3);
$("#partical_name").val(user_ht_str);
$(".user-ul-liu").html('');
house.agent_id_phone = $(obj).attr("data-id");
},
}; };
return house; return house;
}); });
\ No newline at end of file
...@@ -940,6 +940,9 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function ...@@ -940,6 +940,9 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
} else if(_this.val() == '4') { } else if(_this.val() == '4') {
_moonPriceObj.prev().hide(); _moonPriceObj.prev().hide();
_moonPriceObj.next().html('元/年'); _moonPriceObj.next().html('元/年');
} else if(_this.val() == '5') {
_moonPriceObj.prev().hide();
_moonPriceObj.next().html('元/月/㎡');
}else { }else {
console.log('other value租金模式'); console.log('other value租金模式');
}; };
......
...@@ -33,6 +33,8 @@ ...@@ -33,6 +33,8 @@
[%= it[item]["rent_price"] / 100 %] // [%= it[item]["rent_price"] / 100 %] //
[% }else if (it[item]['rent_type'] == 4) { %] [% }else if (it[item]['rent_type'] == 4) { %]
[%= it[item]["rent_price"] / 100 %] / [%= it[item]["rent_price"] / 100 %] /
[% }else if (it[item]['rent_type'] == 5) { %]
[%= it[item]["rent_price"]%] //
[% } %] [% } %]
</td> </td>
<td> <td>
......
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