Commit 9e318ebc authored by agping's avatar agping

商铺列表优化

parent 6d68ef18
...@@ -1123,9 +1123,7 @@ if(data.code == 200) { ...@@ -1123,9 +1123,7 @@ if(data.code == 200) {
} }
}); });
}, },
//==============批量修改客方=========== getList: function(pageNo, type) {//商铺列表 搜索
getList: function(pageNo, type) {
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo')));
business.pageNo = pageNo; business.pageNo = pageNo;
var params = {}; var params = {};
...@@ -1146,7 +1144,6 @@ if(data.code == 200) { ...@@ -1146,7 +1144,6 @@ if(data.code == 200) {
params.internal_title = $('#internal_title').val(); //对内商铺名称 params.internal_title = $('#internal_title').val(); //对内商铺名称
params.external_title = $('#internal_title_open').val(); //对外商铺名称 params.external_title = $('#internal_title_open').val(); //对外商铺名称
params.area = $('#area_id').val(); //面积筛选 params.area = $('#area_id').val(); //面积筛选
//添加个人商铺和所有商铺选择功能 //添加个人商铺和所有商铺选择功能
params.dish_id = business.all_shop ? '' : user_info_obj.id ; params.dish_id = business.all_shop ? '' : user_info_obj.id ;
...@@ -1165,11 +1162,7 @@ if(data.code == 200) { ...@@ -1165,11 +1162,7 @@ if(data.code == 200) {
params.end_date = $('#end_date').val(); //时间2 params.end_date = $('#end_date').val(); //时间2
params.dish_district_id = $('#district_id_panfang').val(); //盘方 部门 id params.dish_district_id = $('#district_id_panfang').val(); //盘方 部门 id
params.dish_store_id = $('#guest_stores_panfang').val(); //盘方 门店 id params.dish_store_id = $('#guest_stores_panfang').val(); //盘方 门店 id
params.dish_name = $('#dish_name').val(); //盘方姓名 下拉式 params.dish_name = business.agent_id_choose; //盘方姓名 下拉式
$.ajax({ $.ajax({
url: '/index/getHouseList.html', //获取列表 url: '/index/getHouseList.html', //获取列表
type: 'GET', type: 'GET',
...@@ -1317,16 +1310,16 @@ if(data.code == 200) { ...@@ -1317,16 +1310,16 @@ if(data.code == 200) {
type: 'GET', type: 'GET',
async: true, async: true,
data: { data: {
"type":1, "type":2,
"agent_id":$('#dish_name').val() "agent_name":$('#dish_name').val()
}, },
dataType: 'json', dataType: 'json',
success: function(data) { success: function(data) {
if(data.code == 200) { if(data.code == 200) {
var user_ul = ""; var user_ul = "";
$.each(data.data, function(i, item) { $.each(data.data.data, function(i, item) {
user_ul += '<li class="addphone-agent" data-id="' + item.id + '">' + item.id + '-' + item.name + '-' + item.phone + '</li>'; user_ul += '<li class="addphone-agent" data-id="' + item.name + '">' + item.id + '-' + item.name + '-' + item.phone + '</li>';
}); });
$(".user-ul-agent").html(user_ul); $(".user-ul-agent").html(user_ul);
......
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