Commit 74528d46 authored by agping's avatar agping

收款详情修改

parent 0938ad59
......@@ -906,6 +906,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
'income_time' : that.income_time ,
'pay_id' : that.pay_id ,
'transfer_name' : that.transfer_name
};
var obj = {
......@@ -915,6 +916,15 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
obj.type = $('#change_type').val();//that.type_num;
//$('#change_type').val()
};
//提交调整 案场费 中介费 之前已收佣 中介费类型
if($('#change_type').val() == 91 || $('#change_type').val()==92){
params.received_money=$('#before_commission').val();
params.type_ext=$('#agency_fees_type').val();
};
if($('#change_type').val() == 91){
params.type_ext=$('#agency_fees_type').val();
}
//拼接jsonArray to jsonObject
if ($('#change_price').val()){//调整金额
if ( $('#change_price').val() > 0 ){
......@@ -1035,6 +1045,18 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
params.receipt_number = $('#shoutiao').val()
}
}
//判断是否是 案场费
if ($('#intoType').text() == '中介费'){
params.type_ext = $('#agency_fees_type_text').val()
};
//判断是否是 案场费 中介费
if ($('#intoType').text() == '案场费' || $('#intoType').text() == '中介费'){
if ($('#before_commission_text').val()){
params.received_money = $('#before_commission_text').val();
}
params.type_ext = $('#agency_fees_type_text').val()
};
return params ;
},
......@@ -1280,6 +1302,10 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
} else {
doc.find("#intoType").text('佣金');
}
//收款详情 获取中介费类型 之前已收佣
doc.find("#agency_fees_type_text").val(data.type_ext);
doc.find("#before_commission_text").val(data.received_money);
doc.find("#shopNo").text(data.house_number);
doc.find("#intoDate").val(data.income_time);
doc.find("#salePrice").text(data.price+"元");
......
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