Commit 9e318ebc authored by agping's avatar agping

商铺列表优化

parent 6d68ef18
......@@ -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')));
business.pageNo = pageNo;
var params = {};
......@@ -1146,7 +1144,6 @@ if(data.code == 200) {
params.internal_title = $('#internal_title').val(); //对内商铺名称
params.external_title = $('#internal_title_open').val(); //对外商铺名称
params.area = $('#area_id').val(); //面积筛选
//添加个人商铺和所有商铺选择功能
params.dish_id = business.all_shop ? '' : user_info_obj.id ;
......@@ -1165,11 +1162,7 @@ if(data.code == 200) {
params.end_date = $('#end_date').val(); //时间2
params.dish_district_id = $('#district_id_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({
url: '/index/getHouseList.html', //获取列表
type: 'GET',
......@@ -1317,16 +1310,16 @@ if(data.code == 200) {
type: 'GET',
async: true,
data: {
"type":1,
"agent_id":$('#dish_name').val()
"type":2,
"agent_name":$('#dish_name').val()
},
dataType: 'json',
success: function(data) {
if(data.code == 200) {
var user_ul = "";
$.each(data.data, function(i, item) {
user_ul += '<li class="addphone-agent" data-id="' + item.id + '">' + item.id + '-' + item.name + '-' + item.phone + '</li>';
$.each(data.data.data, function(i, item) {
user_ul += '<li class="addphone-agent" data-id="' + item.name + '">' + item.id + '-' + item.name + '-' + item.phone + '</li>';
});
$(".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