Commit 3e278ddf authored by agping's avatar agping

中介费修改

parent e152fdb5
<script src='/resource/lib/js/require.min.js' data-main='/resource/js/main?version=2019066686' charset='utf-8'></script>
<script src='/resource/lib/js/require.min.js' data-main='/resource/js/main?version=2019066689' charset='utf-8'></script>
......@@ -24,6 +24,9 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
receipt_number :'' ,
agent_id_phone : '',
houseNumber_new : '' ,
payment_details_price : 0 ,
payment_details_money : 0 ,
init: function() {
//初始化dot
$(document.body).append(template);
......@@ -165,6 +168,22 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
});
//中介费 类型切换 多收 正常
$("#agency_fees_type_text").change(function() {
//中介费类型显示 隐藏 中介费
if($(this).val()*1 == 1){
var persent_liu=0;
console.log(1)
}else{
var persent_liu=0.7;
console.log(2)
};
$("#getPrice").text((Math.floor(((receiv.payment_details_price-0)*persent_liu )*100)/100).toFixed(2)+ "元");
$("#morePrice").text((Math.floor((receiv.payment_details_money - ((receiv.payment_details_price-0)*persent_liu))*100)/100).toFixed(2) + "元");
});
//图片删除,已有的则调用接口删除
_doc.on('click', '.span-del2', function(e) {
var _this = $(this);
......@@ -1300,6 +1319,9 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
$('.hangzhou').hide();
$('.shenzheng').show();
}
//切换 中介费类型 多收金额 应收金额相应的改变
receiv.payment_details_price = data.price;
receiv.payment_details_money = data.money;
var persent = 0.7;
$('.zhzd').show();
$('.zjcon').hide();
......
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