Commit ce451fed authored by agping's avatar agping

退款审核列表

parent 02894097
...@@ -341,6 +341,15 @@ ...@@ -341,6 +341,15 @@
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="get_id" placeholder="收款ID" type="text" value=""> <input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="get_id" placeholder="收款ID" type="text" value="">
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="shoped_id" placeholder="商铺ID" type="text" value=""> <input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="shoped_id" placeholder="商铺ID" type="text" value="">
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="shoped_addr" placeholder="商铺地址" type="text" value=""> <input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="shoped_addr" placeholder="商铺地址" type="text" value="">
<!--城市筛选-->
<select class="form-control btn2 ld-Marheight" name="" id="district_id2_city">
<option value="">提交人所在城市</option>
<option value="10001">上海市</option>
<option value="10002">杭州市</option>
<option value="10003">深圳市</option>
<option value="10004">广州市</option>
<option value="10005">北京市</option>
</select>
<select class="form-control btn2 ld-Marheight" id="commit_home"> <select class="form-control btn2 ld-Marheight" id="commit_home">
<option value="">提交人所在部门</option> <option value="">提交人所在部门</option>
</select> </select>
......
...@@ -1504,6 +1504,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css', ...@@ -1504,6 +1504,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
var is_normality = $('#is_normality').val("0"); var is_normality = $('#is_normality').val("0");
$('#open_time_start').val(""); $('#open_time_start').val("");
$('#open_time_end').val(""); $('#open_time_end').val("");
$('#district_id2_city').val("");//置空城市
}, },
......
...@@ -147,22 +147,23 @@ define(['doT', 'text!temp/refund_shop_template_tpl.html', 'css!style/home.css', ...@@ -147,22 +147,23 @@ define(['doT', 'text!temp/refund_shop_template_tpl.html', 'css!style/home.css',
that.checkRefund(2,text,picName); that.checkRefund(2,text,picName);
}); });
$(document).on("input", "#district_id2_city", function() { //点击城市
//列表选择城市
that.getDistrictList();
});
//二级联动 //二级联动
that.getDistrict(function() { _doc.on('input', '#commit_home', function() {
_doc.on('input', '#commit_home', function() { var _this = $(this);
var _this = $(this); var _id = $('#commit_home').val();
var _id = $('#commit_home').val(); if(_id && _id != '0') {
$('#commit_shop').html(''); //先清空 that.getDistrictStoreList(_id, function(_data) {
if(_id && _id != '0') { var _str = '<option value="">提交人所在门店</option>';
that.getDistrictStoreList(_id, function(_data) { $.each(_data, function(i, item) {
var _str = '<option value="0">全部</option>'; _str += '<option value="' + item.id + '">' + item.store_name + '</option>';
$.each(_data, function(i, item) {
_str += '<option value="' + item.id + '">' + item.store_name + '</option>';
});
$('#commit_shop').append(_str)
}); });
} else {}; $('#commit_shop').html(_str)
}); });
} else {};
}); });
//点击li 列表消失 //点击li 列表消失
...@@ -515,8 +516,33 @@ define(['doT', 'text!temp/refund_shop_template_tpl.html', 'css!style/home.css', ...@@ -515,8 +516,33 @@ define(['doT', 'text!temp/refund_shop_template_tpl.html', 'css!style/home.css',
} }
}); });
}, },
//获取城市所在部门
getDistrictStoreList: function(id, fn) { getDistrictList: function(fn) {
$.ajax({
url: '/index/getDistrict',
type: 'GET',
async: true,
data: {
"pageSize": 1000,
"site_id": $('#district_id2_city').val()
},
dataType: 'json',
success: function(data) {
if(data.code == 200 && data.data != null) {
var str = '<option value="">提交人所在部门</option>';
$.each(data.data, function(i, item) {
str += '<option value="' + item.id + '">' + item.district_name + '</option>';
});
// $('[name=district_id]').html(str);
$('#commit_home').html(str);
$('#commit_shop').html('<option value="">提交人所在门店</option>');
}
}
});
},
getDistrictStoreList: function(id, fn) {
$.ajax({ $.ajax({
url: '/index/getDistrictStoreList', url: '/index/getDistrictStoreList',
type: 'GET', type: 'GET',
...@@ -631,6 +657,8 @@ define(['doT', 'text!temp/refund_shop_template_tpl.html', 'css!style/home.css', ...@@ -631,6 +657,8 @@ define(['doT', 'text!temp/refund_shop_template_tpl.html', 'css!style/home.css',
$('#is_open').val("-1"); $('#is_open').val("-1");
$('#back_id_money').val(""); $('#back_id_money').val("");
that.agent_id_phone=""; that.agent_id_phone="";
$('#district_id2_city').val("");
}, },
......
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