Commit ac3bf037 authored by agping's avatar agping

城市筛选

parent 05942213
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
<tr> <tr>
<td colspan="14"> <td colspan="14">
<form id="maintable_form_search"> <form id="maintable_form_search">
<select class="form-control btn2 margin-top-ld" id="financial_city_choose"> <!--<select class="form-control btn2 margin-top-ld" id="financial_city_choose">
<option value="0">选择城市</option> <option value="0">选择城市</option>
<option value="10001">上海市</option> <option value="10001">上海市</option>
<option value="10002">杭州市</option> <option value="10002">杭州市</option>
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
<option value="10004">广州市</option> <option value="10004">广州市</option>
<option value="10005">北京市</option> <option value="10005">北京市</option>
</select> </select>-->
<span class="fore-span margin-left-10">提交时间:</span> <span class="fore-span margin-left-10">提交时间:</span>
<input class="form-control btn4" value="" data-rule-phoneus="false" data-rule-required="false" id="maintable_create_time" name="start_date" type="date"> <input class="form-control btn4" value="" data-rule-phoneus="false" data-rule-required="false" id="maintable_create_time" name="start_date" type="date">
<span class="fore-span margin-left-10"></span> <span class="fore-span margin-left-10"></span>
......
...@@ -1028,15 +1028,15 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp ...@@ -1028,15 +1028,15 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
params.group_name = $("input[name='groupname']").val(); params.group_name = $("input[name='groupname']").val();
params.district_id = $("#district_id2").val(); params.district_id = $("#district_id2").val();
params.store_id = $("#guest_stores").val(); params.store_id = $("#guest_stores").val();
// params.site_id = $("#district_id2_city").val();//站点筛选 params.site_id = $("#district_id2_city").val();//站点筛选
params.status = $("select[name=agent_status]").val(); params.status = $("select[name=agent_status]").val();
params.id_card = $("#identity_id").val(); params.id_card = $("#identity_id").val();
if($("#district_id2_city").val()){ // if($("#district_id2_city").val()){
if(!$("#district_id2").val()){ // if(!$("#district_id2").val()){
alert('请选择部门进行搜索'); // alert('请选择部门进行搜索');
return // return
} // }
} // }
$.ajax({ $.ajax({
url: '/index/AgentList', url: '/index/AgentList',
type: 'GET', type: 'GET',
...@@ -1074,7 +1074,7 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp ...@@ -1074,7 +1074,7 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
}, },
//导出经纪人列表 //导出经纪人列表
maintableExport: function(pageNo) { maintableExport: function(pageNo) {
window.open('/index/AgentList?excel=1' + '&' + 'search=' + $("input[name='search']").val() + '&group_name=' + $("input[name='groupname']").val() + '&district_id=' + $("#district_id2").val() + '&store_id=' + $("#guest_stores").val() + '&status=' + $("select[name=agent_status]").val() + '&id_card=' + $("#identity_id").val()); window.open('/index/AgentList?excel=1' + '&' + 'search=' + $("input[name='search']").val() + '&group_name=' + $("input[name='groupname']").val() + '&site_id=' + $("#district_id2_city").val() + '&district_id=' + $("#district_id2").val() + '&store_id=' + $("#guest_stores").val() + '&status=' + $("select[name=agent_status]").val() + '&id_card=' + $("#identity_id").val());
}, },
spandelList: function(n) { //删除已经保存的图片都调用 spandelList: function(n) { //删除已经保存的图片都调用
$.ajax({ $.ajax({
......
...@@ -468,13 +468,14 @@ define(['doT', 'text!temp/commissionTotal_template_tpl.html', 'css!style/home.cs ...@@ -468,13 +468,14 @@ define(['doT', 'text!temp/commissionTotal_template_tpl.html', 'css!style/home.cs
params.confirm_date = $('#confirm_commission').val(); params.confirm_date = $('#confirm_commission').val();
params.district_id = $("#district_id").val(); //部门id 添加字段 params.district_id = $("#district_id").val(); //部门id 添加字段
params.store_id = $('#guest_stores').val(); params.store_id = $('#guest_stores').val();
console.log(params) params.site_id = $('#district_id2_city').val();
if($("#district_id2_city").val()){
if(!$("#district_id").val()){ // if($("#district_id2_city").val()){
alert('请选择部门进行搜索'); // if(!$("#district_id").val()){
return // alert('请选择部门进行搜索');
} // return
} // }
// }
$.ajax({ $.ajax({
url: business.listUrl, //获取列表 url: business.listUrl, //获取列表
type: 'GET', type: 'GET',
...@@ -551,6 +552,8 @@ define(['doT', 'text!temp/commissionTotal_template_tpl.html', 'css!style/home.cs ...@@ -551,6 +552,8 @@ define(['doT', 'text!temp/commissionTotal_template_tpl.html', 'css!style/home.cs
var district_id = $("#district_id").val(); //部门id 添加字段 var district_id = $("#district_id").val(); //部门id 添加字段
var store_id = $('#guest_stores').val(); var store_id = $('#guest_stores').val();
var confirm_date=$('#confirm_commission').val(); var confirm_date=$('#confirm_commission').val();
var site_id = $("#district_id2_city").val();//站点筛选
var str = business.listUrl + '?excel=1'; var str = business.listUrl + '?excel=1';
if (name) { if (name) {
str += '&name=' + name; str += '&name=' + name;
...@@ -575,6 +578,10 @@ define(['doT', 'text!temp/commissionTotal_template_tpl.html', 'css!style/home.cs ...@@ -575,6 +578,10 @@ define(['doT', 'text!temp/commissionTotal_template_tpl.html', 'css!style/home.cs
if (bargain_end_date) { if (bargain_end_date) {
str += '&bargain_end_date=' + bargain_end_date; str += '&bargain_end_date=' + bargain_end_date;
} }
if (site_id) {
str += '&site_id=' + site_id;
}
if (district_id) { if (district_id) {
str += '&district_id=' + district_id; str += '&district_id=' + district_id;
} }
......
...@@ -128,15 +128,15 @@ define(['doT', 'text!temp/financial_daily_list_template_tpl.html', 'css!style/ho ...@@ -128,15 +128,15 @@ define(['doT', 'text!temp/financial_daily_list_template_tpl.html', 'css!style/ho
'id': $('#financial_id').val(), 'id': $('#financial_id').val(),
'status': bargain.switchStatus(), 'status': bargain.switchStatus(),
'is_self':$('#my-review').val(), 'is_self':$('#my-review').val(),
'site_id':$('#financial_city_choose').val(), 'site_id':$('#district_id2_city').val(),
}; };
if($("#district_id2_city").val()){ // if($("#district_id2_city").val()){
if(!$("select[name='district_id']").val()){ // if(!$("select[name='district_id']").val()){
alert('请选择部门进行搜索'); // alert('请选择部门进行搜索');
return // return
} // }
} // }
$.ajax({ $.ajax({
type: 'GET', type: 'GET',
url: '/index/dailyList', url: '/index/dailyList',
......
...@@ -626,6 +626,7 @@ define(['doT', 'text!temp/open_check_template_tpl.html', 'css!style/home.css', ' ...@@ -626,6 +626,7 @@ define(['doT', 'text!temp/open_check_template_tpl.html', 'css!style/home.css', '
var order_id = $('#order_id').val(); var order_id = $('#order_id').val();
var house_id = $('#house_id').val(); var house_id = $('#house_id').val();
var house_address = $('#house_address').val(); var house_address = $('#house_address').val();
var site_id = $("#district_id2_city").val();//站点筛选
var commit_home = $('#commit_home').val(); var commit_home = $('#commit_home').val();
var commit_shop = $('#commit_shop').val(); var commit_shop = $('#commit_shop').val();
var comit_name = that.agent_id_phone; var comit_name = that.agent_id_phone;
...@@ -676,6 +677,11 @@ define(['doT', 'text!temp/open_check_template_tpl.html', 'css!style/home.css', ' ...@@ -676,6 +677,11 @@ define(['doT', 'text!temp/open_check_template_tpl.html', 'css!style/home.css', '
params.house_address = house_address; params.house_address = house_address;
paramsStr += "house_address=" + house_address +'&'; paramsStr += "house_address=" + house_address +'&';
} }
if ( site_id) {
params.site_id = site_id;
paramsStr += "site_id=" + site_id +'&';
}
if ( commit_home > 0) { if ( commit_home > 0) {
params.district_id = commit_home; params.district_id = commit_home;
paramsStr += "district_id=" + commit_home +'&'; paramsStr += "district_id=" + commit_home +'&';
......
...@@ -130,11 +130,11 @@ define (['doT', 'text!temp/performanceContrast_template_tpl.html','ckfinder','ck ...@@ -130,11 +130,11 @@ define (['doT', 'text!temp/performanceContrast_template_tpl.html','ckfinder','ck
} }
if(params.real_performance_time_end*1 < params.real_performance_time_start*1){ if(params.real_performance_time_end*1 < params.real_performance_time_start*1){
alert('实收对比开始时间须于实收对比结束时间'); alert('实收对比开始时间须于实收对比结束时间');
return; return;
} }
if(params.performance_time_end*1 < params.performance_time_start*1){ if(params.performance_time_end*1 < params.performance_time_start*1){
alert('业绩对比开始时间须于业绩对比结束时间'); alert('业绩对比开始时间须于业绩对比结束时间');
return; return;
} }
$(".search-con").hide();//隐藏提示内容 $(".search-con").hide();//隐藏提示内容
......
...@@ -167,7 +167,9 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r ...@@ -167,7 +167,9 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
var name= $('#agent_name').val(); var name= $('#agent_name').val();
var phone= $('#agent_phone').val(); var phone= $('#agent_phone').val();
var bargain_id = $('#bargain_id').val(); var bargain_id = $('#bargain_id').val();
window.open(bargain.exportUrl + '?' + 'shop_type=' + shop_type + '&trade_type=' + trade_type + '&create_time_start=' + create_time_start + '&create_time_end=' + create_time_end + '&landmark=' + landmark + '&house_id=' + house_id + '&district_id=' + district_id + '&store_id=' + store_id + '&name=' + name + '&phone=' + phone); var site_id = $("#district_id2_city").val();//站点筛选
window.open(bargain.exportUrl + '?' + 'shop_type=' + shop_type + '&trade_type=' + trade_type + '&create_time_start=' + create_time_start + '&create_time_end=' + create_time_end + '&landmark=' + landmark + '&house_id=' + house_id + '&district_id=' + district_id + '&store_id=' + store_id + '&name=' + name + '&phone=' + phone + '&site_id=' + site_id);
}, },
// 获取客户详情 // 获取客户详情
Caozuo: function() { //获取跟进详情的数据 Caozuo: function() { //获取跟进详情的数据
...@@ -326,13 +328,15 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r ...@@ -326,13 +328,15 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
'name': $.trim($('#agent_name').val()), 'name': $.trim($('#agent_name').val()),
'phone': $.trim($('#agent_phone').val()), 'phone': $.trim($('#agent_phone').val()),
'bargain_id' : $.trim($('#bargain_id').val()), 'bargain_id' : $.trim($('#bargain_id').val()),
'site_id' : $('#district_id2_city').val(),
}; };
if($("#district_id2_city").val()){ // if($("#district_id2_city").val()){
if(!$("[name='district_id']").val()){ // if(!$("[name='district_id']").val()){
alert('请选择部门进行搜索'); // alert('请选择部门进行搜索');
return // return
} // }
} // }
$.ajax({ $.ajax({
type: 'GET', type: 'GET',
url: bargain.listUrl, //获取业绩明细列表 url: bargain.listUrl, //获取业绩明细列表
......
...@@ -2151,15 +2151,16 @@ define(['doT', 'text!temp/reportList_shop_template_tpl.html', 'css!style/home.cs ...@@ -2151,15 +2151,16 @@ define(['doT', 'text!temp/reportList_shop_template_tpl.html', 'css!style/home.cs
'partial_id': bargain.agent_id_phone, 'partial_id': bargain.agent_id_phone,
'user_id': $('#maintable_user_ID').val(), 'user_id': $('#maintable_user_ID').val(),
'is_pay_log': $('#isPayment').val(), 'is_pay_log': $('#isPayment').val(),
'site_id' : $("#district_id2_city").val(),
}; };
if($("#district_id2_city").val()){ // if($("#district_id2_city").val()){
if(!$("select[name='district_id']").val()){ // if(!$("select[name='district_id']").val()){
alert('请选择部门进行搜索'); // alert('请选择部门进行搜索');
return // return
} // }
} // }
$.ajax({ $.ajax({
type: 'GET', type: 'GET',
url: bargain.switchUrl(), url: bargain.switchUrl(),
...@@ -2347,9 +2348,11 @@ define(['doT', 'text!temp/reportList_shop_template_tpl.html', 'css!style/home.cs ...@@ -2347,9 +2348,11 @@ define(['doT', 'text!temp/reportList_shop_template_tpl.html', 'css!style/home.cs
var partial_id = bargain.agent_id_phone; var partial_id = bargain.agent_id_phone;
var user_id = $('#maintable_user_ID').val(); var user_id = $('#maintable_user_ID').val();
var is_pay_log = $('#isPayment').val(); var is_pay_log = $('#isPayment').val();
var site_id = $("#district_id2_city").val();//站点筛选
var _url = bargain.switchUrl() + '?'; var _url = bargain.switchUrl() + '?';
window.open(_url + 'excel=' + excel + '&shop_type=' + shop_type + '&create_time=' + create_time + '&end_time=' + end_time + '&internal_address=' + internal_address + '&user_phone=' + user_phone + '&house_number=' + house_number + '&store_id=' + store_id + '&district_id=' + district_id + '&agent_phone=' + agent_phone+ '&bargain_id=' + bargain_id+ '&agent_name=' + agent_name+ '&partial_id=' + partial_id+ '&user_id=' + user_id +'&is_pay_log=' + is_pay_log); window.open(_url + 'excel=' + excel + '&shop_type=' + shop_type + '&create_time=' + create_time + '&end_time=' + end_time + '&internal_address=' + internal_address + '&user_phone=' + user_phone + '&house_number=' + house_number + '&store_id=' + store_id + '&district_id=' + district_id + '&agent_phone=' + agent_phone+ '&bargain_id=' + bargain_id+ '&agent_name=' + agent_name+ '&partial_id=' + partial_id+ '&user_id=' + user_id +'&is_pay_log=' + is_pay_log +'&site_id=' + site_id);
}, },
// 获取客户详情 // 获取客户详情
Caozuo: function() { //获取跟进详情的数据 Caozuo: function() { //获取跟进详情的数据
......
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