Commit 35df5085 authored by agping's avatar agping

导出

parent 5e261d1d
...@@ -24,6 +24,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css', ...@@ -24,6 +24,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
receipt_number :'' , receipt_number :'' ,
agent_id_phone : '', agent_id_phone : '',
houseNumber_new : '' , houseNumber_new : '' ,
buildSearchParamsLiu:'',
init: function() { init: function() {
//初始化dot //初始化dot
$(document.body).append(template); $(document.body).append(template);
...@@ -1137,9 +1138,10 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css', ...@@ -1137,9 +1138,10 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
// var is_selt = $('#is_type').val(); // var is_selt = $('#is_type').val();
// var get_id = $('#get_id').val(); // var get_id = $('#get_id').val();
// var status = refund.check_status; // var status = refund.check_status;
receiv.buildSearchParams();
var _url = '/index/getCollection' + '?'; var _url = '/index/getCollection' + '?'+ 'excel' + '=' + 'excel&';
window.open(_url + receiv.buildSearchParams(excel)); window.open(_url + receiv.buildSearchParamsLiu);
console.log(receiv.buildSearchParamsLiu);
}, },
...@@ -1164,7 +1166,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css', ...@@ -1164,7 +1166,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
var commit_shop = $('#commit_shop').val(); var commit_shop = $('#commit_shop').val();
var comit_name = that.agent_id_phone;//$('#comit_name').val(); var comit_name = that.agent_id_phone;//$('#comit_name').val();
var params = {}; var params = {};
var paramsStr = "?" ; var paramsStr = "" ;
if ( commite_time_start ) { if ( commite_time_start ) {
params.start_time = commite_time_start; params.start_time = commite_time_start;
paramsStr += "income_start_time=" + commite_time_start + "&" paramsStr += "income_start_time=" + commite_time_start + "&"
...@@ -1226,6 +1228,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css', ...@@ -1226,6 +1228,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
params.agent_id = comit_name; params.agent_id = comit_name;
paramsStr += "agent_name=" + comit_name + "&" paramsStr += "agent_name=" + comit_name + "&"
} }
receiv.buildSearchParamsLiu = paramsStr.substr(0,paramsStr.length-1);
if (excel) { if (excel) {
return paramsStr.substr(0,paramsStr.length-1) return paramsStr.substr(0,paramsStr.length-1)
} else { } else {
......
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