Commit 89584035 authored by duxinyuan's avatar duxinyuan

1

parent c94b80f4
......@@ -324,7 +324,9 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
success: function(data) {
if(data.code == 200) {
} else {}
} else {
alert(data.msg)
}
}
});
},
......@@ -353,7 +355,9 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
}));
};
} else {}
} else {
alert(data.msg)
}
}
});
},
......@@ -484,6 +488,8 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
});
$('#commit_home').append(str);
fn && fn();
} else {
alert(data.msg);
}
}
});
......@@ -502,6 +508,8 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
success: function(data) {
if(data.code == 200 && data.data != null) {
fn && fn(data.data);
} else {
alert(data.msg);
}
}
});
......@@ -521,7 +529,11 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
getReportDataByDetail : function(val){
$.post('',{'val':val},function(data){
return data ;
if(data.code == 200) {
return data ;
} else {
alert(data.msg);
}
})
},
......@@ -650,14 +662,21 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
//上传数据
$.post('/index/collectingBill',params,function( data ){
console.log(data);
$('#modal-linetime').modal('hide');
if(data.code == 200) {
$('#modal-linetime').modal('hide');
} else {
alert(data.msg);
}
},'json');
},
getAllPrice : function(id){
$.get('/index/getAdjustment',{'pay_id':id},function(data){
$('#could_price').text(data.data.residue_money);
if(data.code == 200) {
$('#could_price').text(data.data.residue_money);
} else {
alert(data.msg);
}
})
},
......@@ -666,7 +685,11 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
var params = that.recervablesParams();
console.log(params);
$.post('/index/getCollectionEdit',params,function(data){
that.getList(that.pageNo);
if(data.code == 200) {
that.getList(that.pageNo);
} else {
alert(data.msg);
}
},'json')
},
......@@ -738,7 +761,11 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
var that = receiv;
var params = that.buildSearchParams(true);
$.post('',params, function(data){
console.log(data);
if(data.code == 200) {
} else {
alert(data.msg);
}
})
window.open('/index/getCollection' +params);
},
......@@ -888,9 +915,11 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
'pay_id' : id
};
$.post('/index/getCollectionDetail',params , function(data){
console.log("12321321321321313213213")
console.log(data);
that.getValueFunction(data.data);
if(data.code == 200) {
that.getValueFunction(data.data);
} else {
alert(data.msg);
}
},'json')
},
......@@ -978,7 +1007,11 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
var that = receiv;
$.get('/index/getBeForNum',{'order_id':id},function(data){
// $('#shop_id_change').text(data.data.house_number);
that.yetai = data.data.industry_type;
if(data.code == 200) {
that.yetai = data.data.industry_type;
} else {
alert(data.msg);
}
},'json')
},
/**
......@@ -992,8 +1025,11 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
'pay_id' : id
};
$.post('/index/delPayLog',params , function(data){
console.log(data);
that.getList(1);
if(data.code == 200) {
that.getList(1);
} else {
alert(data.msg);
}
},'json')
}
};
......
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