Commit 494e29e7 authored by hujun's avatar hujun

统计

parent e0f495f2
This diff is collapsed.
......@@ -21,11 +21,17 @@
<td colspan="15">
<form id="form_search">
<span class="fore-span ld-Marheight">入账日期:</span>
<input id="comit_time_start" class="form-control btn4 ld-Marheight" type="text" placeholder="开始时间"
onClick="WdatePicker({el:this,dateFmt:'yyyy-MM-dd',maxDate:'#F{ $dp.$D(\'comit_time_end\')||\'%y-%M-%d\'}',readOnly:'readonly' })">
<input id="comit_time_start" class="form-control btn4 ld-Marheight" type="text" placeholder="开始时间"
onClick="WdatePicker({el:this,dateFmt:'yyyy-MM-dd',maxDate:'#F{ $dp.$D(\'comit_time_end\')||\'%y-%M-%d\'}',readOnly:'readonly' })">
<span class="fore-span ld-Marheight">-</span>
<input id="comit_time_end" class="form-control btn4 ld-Marheight" type="text" placeholder="结束时间"
onClick="WdatePicker({el:this,dateFmt:'yyyy-MM-dd',minDate:'#F{ $dp.$D(\'comit_time_start\' )}',maxDate:'%y-%M-%d',readOnly:'readOnly'})">
onClick="WdatePicker({el:this,dateFmt:'yyyy-MM-dd',minDate:'#F{ $dp.$D(\'comit_time_start\' )}',maxDate:'%y-%M-%d',readOnly:'readOnly'})">
<span class="fore-span ld-Marheight">收款的提交时间(财务日报日期):</span>
<input id="create_start_time" class="form-control btn4 ld-Marheight" type="text" placeholder="开始时间"
onClick="WdatePicker({el:this,dateFmt:'yyyy-MM-dd',maxDate:'#F{ $dp.$D(\'comit_time_end\')||\'%y-%M-%d\'}',readOnly:'readonly' })">
<span class="fore-span ld-Marheight">-</span>
<input id="create_end_time" class="form-control btn4 ld-Marheight" type="text" placeholder="结束时间"
onClick="WdatePicker({el:this,dateFmt:'yyyy-MM-dd',minDate:'#F{ $dp.$D(\'comit_time_start\' )}',maxDate:'%y-%M-%d',readOnly:'readOnly'})">
<span class="btn btn-info btn3 ld-Marheight" id="search" style="float:left">统计</span>
<span class="btn btn-info btn3 ld-Marheight" id="reset" style="float:left">重置</span>
......
......@@ -15,12 +15,11 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
init: function() {
//初始化dot
$(document.body).append(template);
adjustment.getList();
adjustment.event();
},
event: function() {
var that = adjustment;
var _doc = $(document);
// var _doc = $(document);
//搜索
$(document).on('click','#search',function(e){
......@@ -33,15 +32,31 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
});
},
getList : function(no){
buildParams: function() {
var start_time = $('#comit_time_start').val();
var end_time = $('#comit_time_end').val();
var create_start_time = $('#create_start_time').val();
var create_end_time = $('#create_end_time').val();
var params_string = "";
if (start_time) {
params_string += "start_time="+start_time+"&";
}
if (end_time) {
params_string += "end_time="+end_time+"&";
}
if (create_start_time) {
params_string += "create_start_time="+create_start_time+"&";
}
if (create_end_time) {
params_string += "create_end_time="+create_end_time+"&";
}
return params_string;
},
getList : function(){
$.ajax({
url: '/index/getPaylogTotalPrice',
url: '/index/getPaylogTotalPrice?' + adjustment.buildParams(),
type: 'GET',
async: true,
data: {
"start_time": $('#comit_time_start').val(),
"end_time": $('#comit_time_end').val()
},
dataType: 'json',
success: function(data) {
if(data.code == 200) {
......@@ -52,15 +67,14 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
$('.intention_recorded').html(data.data.intention_recorded);
$('.intention_adjustment').html(data.data.intention_adjustment);
$('.intention_refund').html(data.data.intention_refund);
$('.total_custody_recorded').html(data.data.total_custody_recorded);
$('.custody_recorded').html(data.data.custody_recorded);
$('.custody_adjustment').html(data.data.custody_adjustment);
$('.custody_refund').html(data.data.custody_refund);
$('.wait_total_fee').html(data.data.wait_total_fee);
}
} else {
alert(data.msg);
}
}
});
},
......
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