Commit 5c981e50 authored by duxinyuan's avatar duxinyuan

修改收款详情

parent 0de9e9b2
...@@ -1284,6 +1284,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css', ...@@ -1284,6 +1284,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
}, },
getValueFunction : function(data){ getValueFunction : function(data){
var persent = 70% ;
$('.zhzd').show(); $('.zhzd').show();
$('.zjcon').hide(); $('.zjcon').hide();
var doc = $('#modal-addPic'); var doc = $('#modal-addPic');
...@@ -1325,6 +1326,9 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css', ...@@ -1325,6 +1326,9 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
doc.find("#intoType").text('佣金'); doc.find("#intoType").text('佣金');
} else if ( data.type == 91 ) { } else if ( data.type == 91 ) {
doc.find("#intoType").text('中介费'); doc.find("#intoType").text('中介费');
if ( doc.find('#agency_fees_type').val() == 1 ){
persent = 0 ;
}
$('.zhzd').hide(); $('.zhzd').hide();
} else if ( data.type == 92 ) { } else if ( data.type == 92 ) {
doc.find("#intoType").text('案场费'); doc.find("#intoType").text('案场费');
...@@ -1343,8 +1347,8 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css', ...@@ -1343,8 +1347,8 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
doc.find("#shouxu").val(data.transaction_fee); doc.find("#shouxu").val(data.transaction_fee);
doc.find("#realPrice").val(data.real_money); doc.find("#realPrice").val(data.real_money);
//保留两位小数 //保留两位小数
doc.find("#getPrice").text((Math.floor(((data.price-0)*0.7 )*100)/100).toFixed(2)+ "元"); doc.find("#getPrice").text((Math.floor(((data.price-0)*persent )*100)/100).toFixed(2)+ "元");
doc.find("#morePrice").text((Math.floor((data.money - ((data.price-0)*0.7))*100)/100).toFixed(2) + "元"); doc.find("#morePrice").text((Math.floor((data.money - ((data.price-0)*persent))*100)/100).toFixed(2) + "元");
$("#person").text(data.current_agent_name); $("#person").text(data.current_agent_name);
$("#belongT").text(data.store_name); $("#belongT").text(data.store_name);
doc.find("#payType").val(data.pay_type); doc.find("#payType").val(data.pay_type);
......
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