Commit 42af6a13 authored by duxinyuan's avatar duxinyuan

111

parent 2f564133
......@@ -1330,6 +1330,9 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
saveBack : function(){
var that = receiv;
var params = that.getBackParams();
if (!params) {
return false ;
}
$.post('/index/refundPayLog',params,function(data){
if(data.code == 200) {
console.log(data)
......@@ -1361,7 +1364,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
params.agent_name = that.back_agent_name;
params.agent_id = that.back_agent_id;
if ( back_type ){
if ( back_type - 0 > -1 ){
params.type = back_type ;
} else {
alert("请输入退款类型");
......@@ -1385,8 +1388,16 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
if ( back_bank_name ){
params.name = back_bank_name ;
}
if ( back_phone ){
params.phone = back_phone ;
// if ( back_phone ){
// params.phone = back_phone ;
// }
if ( back_phone ) {
if ( back_phone[0] == "1" && back_phone.length == 11 && back_phone-0>-1) {
params.phone = back_phone;
}else {
alert("请输入正确的手机号码")
return false ;
}
}
if ( back_others ){
params.remark = back_others ;
......
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