Commit 6cf8b312 authored by lizhe's avatar lizhe

日立为优质客户付租金

parent 1824923f
......@@ -522,7 +522,7 @@
<a:comboBox bindTarget="allConditionDs" name="invoice_method_n" prompt="开票方式"/>
<a:comboBox bindTarget="allConditionDs" name="division_n" prompt="租赁物"/>
<a:comboBox bindTarget="allConditionDs" name="invoice_type_n" prompt="开票类型"/>
<a:comboBox bindTarget="allConditionDs" name="rl_flag_n" prompt="是否日立返还金"/>
<a:comboBox bindTarget="allConditionDs" name="rl_flag_n" prompt="是否日立为优质客户付租金"/>
</a:hBox>
<a:hBox>
<a:comboBox bindTarget="allConditionDs" name="billing_status_n" prompt="开票状态"/>
......@@ -594,7 +594,7 @@
<a:column name="invoice_method_n" prompt="开票方式" width="100"/>
<a:column name="division_n" prompt="租赁物" width="100"/>
<a:column name="write_off_flag_desc" width="100" align="center" prompt="核销标记" />
<a:column name="rl_flag_n" width="100" align="center" prompt="是否日立返还金" />
<a:column name="rl_flag_n" width="100" align="center" prompt="是否日立为优质客户付租金" />
<a:column name="billing_status_n" width="100" align="center" prompt="开票状态" />
<a:column name="full_elec_invoice_flag_n" width="100" align="center" prompt="是否全电发票" />
</a:columns>
......
......@@ -38,6 +38,8 @@
<!-- <script src="${/request/@context_path}/javascripts/hap/dynamicStopAutoQuery.js" type="text/javascript"/>-->
<a:link id="${/parameter/@layout_code}_contract_print_signatures_link_id"
url="${/request/@context_path}/modules/cont/CON301N/con_contract_print_signatures.lview"/>
<a:link id="rl_notice_print_link"
url="${/request/@context_path}/modules/cont/CON301N/rl_notice_print.lsc"/>
<script type="text/javascript"><![CDATA[
// stopDymanicAutoQuery('${/parameter/@layout_code}', 'G_CONTRACT_RESULT', 'con_contract');
......@@ -280,14 +282,17 @@
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
var cur_record = $(ds_id).getSelected()[0];
var rl_flag = cur_record.get("rl_flag");
if(rl_flag == 'Y'){
var et_date = cur_record.get("et_date");
if(rl_flag == 'Y' && !Ext.isEmpty(et_date)){
var document_id = cur_record.get("contract_id");
var to_file_name = '返还租金通知'+ cur_record.get("contract_number") + '.docx'
var url = $('rl_notice_print_link').getUrl() + '?document_id=' + document_id + '&document_table=CON_RL_NOTICE&file_path=${/parameter/@file_path}&batch_flag=Y&source_type=COMMON&to_file_name='+to_file_name;
window.open(href = url, target = "_blank");
}else if(rl_flag == 'N'){
Leaf.showMessage('提示', '请选择是日立为优质客户付租金的合同!');
}else if(rl_flag == 'N' || Ext.isEmpty(et_date)){
Leaf.showMessage('提示', '请选择合同结束日不为空,是日立为优质客户付租金的合同!');
return;
// Leaf.showMessage('提示', '请选择是日立为优质客户付租金的合同!');
// return;
}
};
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function (ds, record, config_records, bp_seq) {
......
......@@ -193,7 +193,7 @@
</a:grid>
</a:tab>
<a:tab prompt="租金余额表(日立返还金筛选用)" width="210">
<a:tab prompt="租金余额表(日立为优质客户付租金筛选用)" width="280">
<a:grid id="con_contract_rental_result_add_grid" bindTarget="con_contract_rental_result_ds" marginHeight="115" navBar="true" marginWidth="30">
<a:columns>
<a:column name="agent_extra_name" align="center" prompt="代理店" width="120"/>
......@@ -231,7 +231,7 @@
<a:column name="rental_12_pay_flag" align="center" prompt="是否已履约12期及以上" width="160"/>
<a:column name="cf_9_exists_flag" align="center" prompt="是否有违约金记录产生" width="160"/>
<a:column name="cf_9_notfirsttime_exists_flag" align="center" prompt="除第1期外是否有违约金记录产生" width="160"/>
<a:column name="rl_flag_n" align="center" prompt="是否日立返还金" width="100"/>
<a:column name="rl_flag_n" align="center" prompt="是否日立为优质客户付租金" width="100"/>
</a:columns>
</a:grid>
</a:tab>
......
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