Commit f2a229dc authored by duxinyuan's avatar duxinyuan

1

parent 26b52322
...@@ -1376,15 +1376,28 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css', ...@@ -1376,15 +1376,28 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
params.agent_id = that.back_agent_id; params.agent_id = that.back_agent_id;
params.agent_name = that.back_agent_name; params.agent_name = that.back_agent_name;
params.agent_id = that.back_agent_id; params.agent_id = that.back_agent_id;
if ( back_type - 0 > -1 ){ if ( back_type - 0 > -1 ){
params.type = back_type ; params.type = back_type ;
} else { } else {
alert("请输入退款类型"); alert("请输入退款类型");
return false ; return false ;
}; };
var max = $('#could_price_back').text()
if ( back_price ){ if ( back_price ){
params.refund_money = back_price ; if ( back_price > 0 ){
console.log(max);
console.log(back_price)
if ( max - back_price > -1) {
params.refund_money = back_price ;
} else {
alert("请输入正确的金额");
return false;
}
} else {
alert("请输入正确的金额");
return false;
}
} }
if ( back_no ){ if ( back_no ){
params.receipt_number = back_no ; params.receipt_number = back_no ;
......
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