Commit 6c72a893 authored by agping's avatar agping

客户列表修改

parent 0527912a
...@@ -56,7 +56,6 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -56,7 +56,6 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
$('#end_date').val(day_end);//商铺跟进 添加 默认时间 一个月 $('#end_date').val(day_end);//商铺跟进 添加 默认时间 一个月
//初始化城市 区域筛选 //初始化城市 区域筛选
user.initializationCityFunction(); user.initializationCityFunction();
user.getList();
user.event(); user.event();
//时间控件初始化 //时间控件初始化
//bootstrap 时间控件选择 //bootstrap 时间控件选择
...@@ -115,9 +114,11 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -115,9 +114,11 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
}); });
//城市 区域 二级联动 筛选 //城市 区域 二级联动 筛选
_doc.on('input', '#user_city_choose', function() { _doc.on('input', '#user_city_choose', function() {
$('#user_area_choose').val('');
user.getList(); user.getList();
var _this = $(this); var _this = $(this);
var _id = _this.val(); var _id = _this.val();
user.setUpCityFunction(_id);
$('#user_area_choose').html(''); //先清空 $('#user_area_choose').html(''); //先清空
if(_id && _id != '0') { if(_id && _id != '0') {
user.getCityAreaList(_id, function(_data) { user.getCityAreaList(_id, function(_data) {
...@@ -131,6 +132,10 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -131,6 +132,10 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
}); });
} else {}; } else {};
}); });
//自动筛选 区域
_doc.on('input', '#user_area_choose', function() {
user.getList();
});
//城市 区域 筛选 //城市 区域 筛选
_doc.on('input', '#user_city_add,#user_city_edit', function() { _doc.on('input', '#user_city_add,#user_city_edit', function() {
var _this = $(this); var _this = $(this);
...@@ -1114,7 +1119,8 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -1114,7 +1119,8 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
params.industry_type = $(".industry_type_two_1").val(); params.industry_type = $(".industry_type_two_1").val();
params.price_demand = $(".price_demand_1").val(); params.price_demand = $(".price_demand_1").val();
params.area_demand = $(".area_demand_1").val(); params.area_demand = $(".area_demand_1").val();
params.referrer_id = user.user_id_edit_introduce; // params.referrer_id = user.user_id_edit_introduce;
params.referrer_id = user.user_id_edit_introduce ? user.user_id_edit_introduce : 0;
params.referrer_source = 10; params.referrer_source = 10;
if($('#user_city_edit').val() == 310100){ if($('#user_city_edit').val() == 310100){
params.city = '上海市' ; params.city = '上海市' ;
...@@ -1643,6 +1649,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -1643,6 +1649,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
$("#user_area_choose").html(_str); $("#user_area_choose").html(_str);
}); });
} else {}; } else {};
user.getList();
} }
}); });
}, },
......
...@@ -68,7 +68,6 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css' ...@@ -68,7 +68,6 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css'
$('#create_time_end').val(day_end);//商铺跟进 添加 默认时间 一个月 $('#create_time_end').val(day_end);//商铺跟进 添加 默认时间 一个月
//初始化城市 区域筛选 //初始化城市 区域筛选
house.initializationCityFunction(); house.initializationCityFunction();
house.getList(0);//商铺跟进列表
// 部门 门店 二级联动 // 部门 门店 二级联动
house.getDistrict(function() { house.getDistrict(function() {
...@@ -132,6 +131,7 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css' ...@@ -132,6 +131,7 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css'
}); });
//城市 区域 筛选 //城市 区域 筛选
_doc.on('input', '#user_city_choose', function() { _doc.on('input', '#user_city_choose', function() {
$('#shop_area_id').val('');
house.getList(); house.getList();
var _this = $(this); var _this = $(this);
var _id = _this.val(); var _id = _this.val();
...@@ -152,6 +152,9 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css' ...@@ -152,6 +152,9 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css'
}); });
} else {}; } else {};
}); });
_doc.on('input', '#shop_area_id', function() {
house.getList();
});
//查看点击事件 //查看点击事件
_doc.on('click', 'a[href="#modal_shop_detail"]', function(e){ _doc.on('click', 'a[href="#modal_shop_detail"]', function(e){
e.preventDefault(); e.preventDefault();
...@@ -387,7 +390,10 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css' ...@@ -387,7 +390,10 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css'
$("#shop_area_id").html(_str); $("#shop_area_id").html(_str);
}); });
} else {}; } else {};
house.getList(0);//商铺跟进列表
} }
}); });
}, },
//设置 城市 //设置 城市
......
...@@ -80,7 +80,6 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin ...@@ -80,7 +80,6 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
// $('#end_date').val(day_end);//去掉默认时间 // $('#end_date').val(day_end);//去掉默认时间
//初始化城市 区域筛选 //初始化城市 区域筛选
business.initializationCityFunction(); business.initializationCityFunction();
business.getList(1);
business.event(); business.event();
business.resetLoad(); business.resetLoad();
}, },
...@@ -253,11 +252,12 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin ...@@ -253,11 +252,12 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
//城市 区域 二级联动 筛选 //城市 区域 二级联动 筛选
_doc.on('input', '#user_city_choose', function() { _doc.on('input', '#user_city_choose', function() {
$('#shop_area_id').val('');
business.getList(); business.getList();
var _this = $(this); var _this = $(this);
var _id = _this.val(); var _id = _this.val();
business.setUpCityFunction(_id); business.setUpCityFunction(_id);
$('#user_area_choose').html(''); //先清空 $('#shop_area_id').html(''); //先清空
if(_id && _id != '0') { if(_id && _id != '0') {
business.getDistrictStoreList(_id, function(_data) { business.getDistrictStoreList(_id, function(_data) {
var _str = '<option value="">区域</option>'; var _str = '<option value="">区域</option>';
...@@ -1188,7 +1188,10 @@ if(data.code == 200) { ...@@ -1188,7 +1188,10 @@ if(data.code == 200) {
$("#shop_area_id").html(_str); $("#shop_area_id").html(_str);
}); });
} else {}; } else {};
business.getList(1);
} }
}); });
}, },
//设置 城市 //设置 城市
......
...@@ -87,7 +87,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -87,7 +87,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
$('#end_date').val(day_end);//客户列表 进来 默认时间 一个月 $('#end_date').val(day_end);//客户列表 进来 默认时间 一个月
//默认 筛选求租客户 //默认 筛选求租客户
$("select[name=public_status]").val('0'); $("select[name=public_status]").val('0');
user.getList();
user.event(); user.event();
//新增 默认上海 //新增 默认上海
user.getCityAreaList(310100, function(_data) { user.getCityAreaList(310100, function(_data) {
...@@ -211,6 +211,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -211,6 +211,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
}); });
//城市 区域 二级联动 筛选 //城市 区域 二级联动 筛选
_doc.on('input', '#user_city_choose', function() { _doc.on('input', '#user_city_choose', function() {
$('#user_area_choose').val('');
user.getList(); user.getList();
var _this = $(this); var _this = $(this);
var _id = _this.val(); var _id = _this.val();
...@@ -228,6 +229,9 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -228,6 +229,9 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
}); });
} else {}; } else {};
}); });
_doc.on('input', '#user_area_choose', function() {
user.getList();
});
//城市 区域 筛选 //城市 区域 筛选
_doc.on('input', '#user_city_add,#user_city_edit', function() { _doc.on('input', '#user_city_add,#user_city_edit', function() {
var _this = $(this); var _this = $(this);
...@@ -1203,9 +1207,12 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -1203,9 +1207,12 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
success: function(data) { success: function(data) {
if(data.code == 200) { if(data.code == 200) {
var user_ul = ""; var user_ul = "";
$.each(data.data.user_date, function(i, item) { if(data.data.user_date){
user_ul += '<li class="add-user-edit-li" data-id="' + item.user_id + '">' + item.user_name + '-' + item.user_phone + '-' + item.user_id + '</li>'; $.each(data.data.user_date, function(i, item) {
}); user_ul += '<li class="add-user-edit-li" data-id="' + item.user_id + '">' + item.user_name + '-' + item.user_phone + '-' + item.user_id + '</li>';
});
}
$(".user-ul-edit-introduce").html(user_ul); $(".user-ul-edit-introduce").html(user_ul);
} else { } else {
...@@ -1330,7 +1337,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -1330,7 +1337,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
params.industry_type = $(".industry_type_two_1").val(); params.industry_type = $(".industry_type_two_1").val();
params.price_demand = $(".price_demand_1").val(); params.price_demand = $(".price_demand_1").val();
params.area_demand = $(".area_demand_1").val(); params.area_demand = $(".area_demand_1").val();
params.referrer_id = user.user_id_edit_introduce ? user.user_id_edit_introduce : ""; params.referrer_id = user.user_id_edit_introduce ? user.user_id_edit_introduce : 0;
params.referrer_source = 10; params.referrer_source = 10;
if($('#user_city_edit').val() == 310100){ if($('#user_city_edit').val() == 310100){
params.city = '上海市' ; params.city = '上海市' ;
...@@ -1874,6 +1881,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -1874,6 +1881,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
$("#user_area_choose").html(_str); $("#user_area_choose").html(_str);
}); });
} else {}; } else {};
user.getList();
} }
}); });
}, },
......
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