Commit ced7c0a5 authored by agping's avatar agping

客户列表修改

parent 3dfa1b90
......@@ -88,6 +88,13 @@
.clear {
clear: both;
}
.left{
float: left;
font-size: 12px;
}
.bottom{
margin-top: 30px;
}
</style>
<!--导航star-->
......@@ -191,17 +198,23 @@
<option value="2"></option>
<option value="1"></option>
</select>
<select class="form-control btn2 margin-top-ld input" name="" id="district_id" placeholder="">
<select class="form-control btn2 margin-top-ld input" name="" id="district_id" placeholder="" title="
客方所属部门、客方所属门店 与邀请人所属部门、邀请人所属门店 不作为并列筛选项">
</select>
<input class="form-control btn2 margin-top-ld input" data-rule-phoneus="false" data-rule-required="false" id="guest_stores" placeholder="客方所属门店" type="text" value="">
<input class="form-control btn2 margin-top-ld input" data-rule-phoneus="false" data-rule-required="false" id="guest_stores" placeholder="客方所属门店" type="text" value="" title="
客方所属部门、客方所属门店 与邀请人所属部门、邀请人所属门店 不作为并列筛选项">
<!--邀请人-->
<select class="form-control btn2 margin-top-ld input" name="" id="district_id2" placeholder="">
<select class="form-control btn2 margin-top-ld input" name="" id="district_id2" placeholder="" title="
客方所属部门、客方所属门店 与邀请人所属部门、邀请人所属门店 不作为并列筛选项">
</select>
<input class="form-control btn2 margin-top-ld input" data-rule-phoneus="false" data-rule-required="false" id="guest_stores2" placeholder="邀请人所属门店" type="text" value="">
<input class="form-control btn2 margin-top-ld input" data-rule-phoneus="false" data-rule-required="false" id="guest_stores2" placeholder="邀请人所属门店" type="text" value="" title="
客方所属部门、客方所属门店 与邀请人所属部门、邀请人所属门店 不作为并列筛选项">
<!--<div class="clear"></div>-->
<!--<span class='left bottom'>(注:客方所属部门,客方所属门店与邀请人所属部门,邀请人所属门店不作为并列筛选项)</span>-->
<select class="form-control btn2 margin-top-ld" name="public_status">
<option value="2">客户状态</option>
......@@ -210,6 +223,10 @@
<option value="-1">无效</option>
</select>
<div class="clear"></div>
<!-- <span class="btn btn-info btn3 margin-top-ld" class="reset_1">搜索</span>
<span class="btn btn-info btn3 margin-top-ld" class="reset_1">重置</span> -->
<span class="btn btn-info btn3 margin-top-ld" id="search">搜索</span>
......
......@@ -379,6 +379,14 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
user.pageNo = pageNo;
var params = {};
console.log($("#start_date").val());
if($("#district_id").val()!=0||$("#guest_stores").val()!=''){
$("#district_id2").val('0');
$("#guest_stores2").val('');
};
if($("#district_id2").val()!=0||$("#guest_stores2").val()!=''){
$("#district_id1").val('0');
$("#guest_stores1").val('');
};
// 输入 name
// params.name = $("input[name='user']").val();
params.phone = $("input[name='phone']").val();
......@@ -395,7 +403,7 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
params.public_user=$("select[name=male_status]").val();
params.store_name=$("#guest_stores").val();
params.referrer_store_name=$("#guest_stores2").val();
params.district_name=$("#district_id").val()
params.district_id=$("#district_id").val()
params.referrer_district_id=$("#district_id2").val()
params.login_status = $("select[name=login_status]").val();
params.activate = $("select[name=activate]").val();
......@@ -405,6 +413,8 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
params.area_type = $("select[name=area_type]").val();
params.price_type = $("select[name=price_type]").val();
params.industry_type = $("select[name=industry_type]").val();
//客方和邀请人搜索项不能并列
$.ajax ({
url: '/index/users_list',
......@@ -518,7 +528,7 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
dataType: 'json',
success: function (data) {
if (data.code == 200 && data.data != null) {
var str = '<option value="-1">客方所属部门</option>';
var str = '<option value="0">客方所属部门</option>';
$.each(data.data, function(i,item) {
str += '<option value="'+item.id+'">'+item.district_name+'</option>';
});
......@@ -537,7 +547,7 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
dataType: 'json',
success: function (data) {
if (data.code == 200 && data.data != null) {
var str = '<option value="-1">邀请人所属部门</option>';
var str = '<option value="0">邀请人所属部门</option>';
$.each(data.data, function(i,item) {
str += '<option value="'+item.id+'">'+item.district_name+'</option>';
});
......
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