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', '
house_fatherid: '',
collection_del_id:'',
listData :"",
moneyTotal : "" ,
init: function() {
//初始化dot
$(document.body).append(template);
......@@ -73,7 +74,8 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
});
//统计
$(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', '
var temp = document.getElementById('adjustment_template_tpl').innerHTML;
var doTtmpl = doT.template(temp);
$("#order_list").html(doTtmpl(data.data.list));
that.moneyTotal = data.data.money_total;
/*分页代码*/
add_page(data.data.total, no, that.pageSize, that.getList);
} else {
......
......@@ -20,6 +20,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
houseNmuber : '' ,
pay_id :'' ,
transfer_name : '' ,
totalCount : 0 ,
init: function() {
//初始化dot
$(document.body).append(template);
......@@ -214,7 +215,8 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
});
//统计
$(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){
......@@ -908,10 +910,11 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
success: function(data) {
if(typeof data === 'object') {
if(data.code == 200) {
that.totalCount = data.data.money_total;
that.listData = data.data.list;
var doTtmpl = doT.template(document.getElementById('receivables_template_tpl').innerHTML);
$("#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);
......
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