Commit 90c3ed38 authored by agping's avatar agping

财务日报 收款详情

parent aee05aaf
{layout name="global/frame_two_tpl" /}
<input type="hidden" class="page-load" id="financial_manager_daily_list" />
<style type="text/css">
.col-xs-3{
padding-left: 8px;
padding-right: 8px;
};
/*图片*/
.clear{
clear: both;
......@@ -696,6 +701,29 @@
<span id="intoType" class="col-xs-6 ld-Marheight">中介费</span>
</div>
</div>
<!--收款详情 加中介费类型 之前已收佣-->
<div class="col-xs-12">
<div class="col-xs-6 agency_fees_type_hide">
<div class="form-group">
<strong><span class="col-xs-3 ld-Marheight" style="margin-left: -7px;">中介费类型:</span></strong>
<div class="col-xs-6">
<select class="form-control" id="agency_fees_type_text">
<option class="" value="0">正常</option>
<option class="" value="1">多收</option>
</select>
</div>
</div>
</div>
<div class="col-xs-6 before_commission_hide">
<div class="form-group">
<strong><span class="col-xs-3 ld-Marheight">之前已收佣:</span></strong>
<div class="col-xs-6">
<input class="form-control" type="text" value="0" id="before_commission_text">
</div>
</div>
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<strong><span class="col-xs-3 ld-Marheight">商铺号:</span></strong>
......
......@@ -655,7 +655,7 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
}
},'json')
},
getValueFunction : function(data){
getValueFunction : function(data){
$('.zhzd').show();
$('.zjcon').hide();
var doc = $('#modal-addPic');
......@@ -666,6 +666,17 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
doc.find("#tijiaoren").text(data.agent_name);
doc.find("#address").text(data.address);
doc.find("#comit_time").text(data.create_time);
//判断收款详情的类型
if(data.type == 91){
$('.agency_fees_type_hide').show();
}else{
$('.agency_fees_type_hide').hide();
};
if(data.type == 91 || data.type == 92){
$('.before_commission_hide').show();
}else{
$('.before_commission_hide').hide();
}
if (data.type == 10 ){
doc.find("#intoType").text('意向金');
} else if ( data.type == 20 ) {
......@@ -693,6 +704,10 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', '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+"元");
......@@ -833,7 +848,18 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
if ( $('#shoutiao').val()){
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 ;
},
......
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