Commit dd6c0265 authored by duxinyuan's avatar duxinyuan

123

parent 33c304d1
...@@ -9,6 +9,7 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', ' ...@@ -9,6 +9,7 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
house_fatherid: '', house_fatherid: '',
collection_del_id:'', collection_del_id:'',
listData :"", listData :"",
moneyTotal : "" ,
init: function() { init: function() {
//初始化dot //初始化dot
$(document.body).append(template); $(document.body).append(template);
...@@ -73,7 +74,8 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', ' ...@@ -73,7 +74,8 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
}); });
//统计 //统计
$(document).on('click','#count',function(e){ $(document).on('click','#count',function(e){
that.countValue(); // that.countValue();
$('#money_total').text((that.moneyTotal-0 > 0) ? (that.moneyTotal+"元"): "0元" )
}); });
//二级联动 //二级联动
...@@ -194,7 +196,7 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', ' ...@@ -194,7 +196,7 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
var temp = document.getElementById('adjustment_template_tpl').innerHTML; var temp = document.getElementById('adjustment_template_tpl').innerHTML;
var doTtmpl = doT.template(temp); var doTtmpl = doT.template(temp);
$("#order_list").html(doTtmpl(data.data.list)); $("#order_list").html(doTtmpl(data.data.list));
that.moneyTotal = data.data.money_total;
/*分页代码*/ /*分页代码*/
add_page(data.data.total, no, that.pageSize, that.getList); add_page(data.data.total, no, that.pageSize, that.getList);
} else { } else {
......
...@@ -20,6 +20,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css', ...@@ -20,6 +20,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
houseNmuber : '' , houseNmuber : '' ,
pay_id :'' , pay_id :'' ,
transfer_name : '' , transfer_name : '' ,
totalCount : 0 ,
init: function() { init: function() {
//初始化dot //初始化dot
$(document.body).append(template); $(document.body).append(template);
...@@ -214,7 +215,8 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css', ...@@ -214,7 +215,8 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
}); });
//统计 //统计
$(document).on('click','#count',function(e){ $(document).on('click','#count',function(e){
that.countValue(); //that.countValue();
$('#money_total').text((that.totalCount-0 > 0) ? (that.totalCount+"元"): "0元" )
}); });
//收款详情 //收款详情
$("#modal-addPic").on("shown.bs.modal", function(event){ $("#modal-addPic").on("shown.bs.modal", function(event){
...@@ -908,10 +910,11 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css', ...@@ -908,10 +910,11 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
success: function(data) { success: function(data) {
if(typeof data === 'object') { if(typeof data === 'object') {
if(data.code == 200) { if(data.code == 200) {
that.totalCount = data.data.money_total;
that.listData = data.data.list; that.listData = data.data.list;
var doTtmpl = doT.template(document.getElementById('receivables_template_tpl').innerHTML); var doTtmpl = doT.template(document.getElementById('receivables_template_tpl').innerHTML);
$("#order_list").html(doTtmpl(data.data.list)); $("#order_list").html(doTtmpl(data.data.list));
$("#money_total").html(data.data.money_total) // $("#money_total").html(data.data.money_total)
/*分页代码*/ /*分页代码*/
add_page(data.data.total, no, that.pageSize, that.getList); add_page(data.data.total, no, that.pageSize, that.getList);
......
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