Commit 122eeed6 authored by agping's avatar agping

财务日报总计

parent d8afdf11
define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', 'ckfinder', 'ckfinderStart', "datetimepicker",'pagination', 'bootstrapJs','blow-up'], function(doT, template) {
adjustment = {
pageNo: 1,
/*第几页*/
pageSize: 10,
/*每页显示多少条*/
id: '',
house_id: '',
house_fatherid: '',
collection_del_id:'',
listData :"",
moneyTotal : "" ,
agent_id_phone : '',
buildSearchParamsLiu:'',
init: function() {
//初始化dot
$(document.body).append(template);
adjustment.getList();
adjustment.event();
},
event: function() {
var that = adjustment;
var _doc = $(document);
//搜索
$(document).on('click','#search',function(e){
that.getList();
});
//重置搜索条件
$(document).on('click','#reset',function(e){
$('#comit_time_start').val('');
$('#comit_time_end').val('');
});
},
getList : function(no){
$.ajax({
url: '/index/getPaylogTotalPrice',
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) {
$('.total_commission').html(data.data.total_commission);
$('.not_open_commission').html(data.data.not_open_commission);
$('.open_commission').html(data.data.open_commission);
$('.total_intention_recorded').html(data.data.total_intention_recorded);
$('.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);
}
}
});
},
};
return adjustment;
});
\ No newline at end of file
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