Commit 91f8e51b authored by 18083's avatar 18083

建机北京心诚合并二手机改造

parent 8945a2db
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
} else if (datas[i].business_type == 'LEASEBACK') { } else if (datas[i].business_type == 'LEASEBACK') {
leaseback_count = leaseback_count + 1; leaseback_count = leaseback_count + 1;
} }
//合同编号BJS18020001与燕千云单号I-19139有关,暂不能开票,请联系IT管理员! //合同编号BJS18020001与燕千云单号I-19139有关,暂不能开票,请联系IT管理员!
if(datas[i].contract_number == 'BJS18020001'){ if(datas[i].contract_number == 'BJS18020001'){
$L.showErrorMessage('提示','合同编号BJS18020001与燕千云单号I-19139有关,暂不能开票,请联系IT管理员!'); $L.showErrorMessage('提示','合同编号BJS18020001与燕千云单号I-19139有关,暂不能开票,请联系IT管理员!');
Leaf.Masker.unmask(Ext.getBody()); Leaf.Masker.unmask(Ext.getBody());
...@@ -269,6 +269,7 @@ ...@@ -269,6 +269,7 @@
<a:datas> <a:datas>
<a:record code_value="LEASE" code_value_name="直租"/> <a:record code_value="LEASE" code_value_name="直租"/>
<a:record code_value="LEASEBACK" code_value_name="售后回租"/> <a:record code_value="LEASEBACK" code_value_name="售后回租"/>
<a:record code_value="LEASEOPERAT" code_value_name="经营性租赁"/>
</a:datas> </a:datas>
</a:dataSet> </a:dataSet>
<a:dataSet id="write_off_flag_ds"> <a:dataSet id="write_off_flag_ds">
...@@ -300,16 +301,14 @@ ...@@ -300,16 +301,14 @@
<a:record code_value="30" code_value_name="高空作业车"/> <a:record code_value="30" code_value_name="高空作业车"/>
<a:record code_value="40" code_value_name="其它"/> <a:record code_value="40" code_value_name="其它"/>
<a:record code_value="50" code_value_name="星邦高空作业车"/> <a:record code_value="50" code_value_name="星邦高空作业车"/>
<!--<a:record code_value="90" code_value_name="租赁二手机"/>-->
<a:record code_value="90" code_value_name="租赁二手机(日立)"/> <a:record code_value="90" code_value_name="租赁二手机(日立)"/>
<a:record code_value="91" code_value_name="神钢建机"/> <a:record code_value="91" code_value_name="神钢建机"/>
<a:record code_value="92" code_value_name="北京心诚"/> <!--<a:record code_value="92" code_value_name="北京心诚"/>-->
<a:record code_value="99" code_value_name="工程机械"/> <a:record code_value="95" code_value_name="经租设备"/>
<a:record code_value="99" code_value_name="工程机械"/>
<a:record code_value="80" code_value_name="叉车"/> <a:record code_value="80" code_value_name="叉车"/>
<!--<a:record code_value="70" code_value_name="铁甲业务"/>-->
<a:record code_value="70" code_value_name="二手机业务"/> <a:record code_value="70" code_value_name="二手机业务"/>
<a:record code_value="95" code_value_name="经租设备"/> <a:record code_value="93" code_value_name="新业务-厂商担保"/>
<a:record code_value="93" code_value_name="新业务-厂商担保"/>
</a:datas> </a:datas>
</a:dataSet> </a:dataSet>
<a:dataSet id="acr510n_invoice_method_ds"> <a:dataSet id="acr510n_invoice_method_ds">
...@@ -540,6 +539,8 @@ ...@@ -540,6 +539,8 @@
<a:hBox> <a:hBox>
<a:comboBox bindTarget="allConditionDs" name="billing_status_n" prompt="开票状态"/> <a:comboBox bindTarget="allConditionDs" name="billing_status_n" prompt="开票状态"/>
<a:comboBox bindTarget="allConditionDs" name="full_elec_invoice_flag_n" prompt="是否全电发票"/> <a:comboBox bindTarget="allConditionDs" name="full_elec_invoice_flag_n" prompt="是否全电发票"/>
<a:textField bindTarget="allConditionDs" name="search_term_1" prompt="厂商合同编号"/>
<a:textField bindTarget="allConditionDs" name="pur_number" prompt="采购单编号"/>
</a:hBox> </a:hBox>
<!-- <a:formBody column="4" labelWidth="400"> <!-- <a:formBody column="4" labelWidth="400">
<a:lov name="contract_number_from" bindTarget="allConditionDs" prompt="HLS.CONTRACT_NUMBER_FROM"/> <a:lov name="contract_number_from" bindTarget="allConditionDs" prompt="HLS.CONTRACT_NUMBER_FROM"/>
...@@ -578,6 +579,8 @@ ...@@ -578,6 +579,8 @@
<a:column name="bp_id_agent_level1_n" prompt="代理店" width="170"/> <a:column name="bp_id_agent_level1_n" prompt="代理店" width="170"/>
<a:column name="business_type_desc" prompt="业务类型" align="center" width="70"/> <a:column name="business_type_desc" prompt="业务类型" align="center" width="70"/>
<a:column name="times" align="right" lock="true" prompt="期数" width="40"/> <a:column name="times" align="right" lock="true" prompt="期数" width="40"/>
<a:column name="search_term_1" align="right" lock="true" prompt="厂商合同编号" width="100"/>
<a:column name="pur_number" align="right" lock="true" prompt="采购单编号" width="100"/>
<a:column name="cf_item_desc" lock="true" prompt="应收项目" align="center"/> <a:column name="cf_item_desc" lock="true" prompt="应收项目" align="center"/>
<a:column name="due_date" prompt="应收日" align="center"/> <a:column name="due_date" prompt="应收日" align="center"/>
<a:column name="due_amount" align="right" prompt="应收金额" renderer="Leaf.formatMoney"/> <a:column name="due_amount" align="right" prompt="应收金额" renderer="Leaf.formatMoney"/>
...@@ -607,7 +610,7 @@ ...@@ -607,7 +610,7 @@
<a:column name="invoice_method_n" prompt="开票方式" width="100"/> <a:column name="invoice_method_n" prompt="开票方式" width="100"/>
<a:column name="division_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="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="billing_status_n" width="100" align="center" prompt="开票状态" />
<a:column name="full_elec_invoice_flag_n" width="100" align="center" prompt="是否全电发票" /> <a:column name="full_elec_invoice_flag_n" width="100" align="center" prompt="是否全电发票" />
</a:columns> </a:columns>
...@@ -629,7 +632,7 @@ ...@@ -629,7 +632,7 @@
width="200"/> width="200"/>
<a:column name="object_tax_registry_num" prompt="纳税人识别号" width="150"/> <a:column name="object_tax_registry_num" prompt="纳税人识别号" width="150"/>
<a:column name="object_taxpayer_type_desc" prompt="纳税人类型" align="center" width="150"/> <a:column name="object_taxpayer_type_desc" prompt="纳税人类型" align="center" width="150"/>
<a:column name="invoice_type_n" prompt="开票类型" width="150"/> <a:column name="invoice_type_n" prompt="开票类型" width="150"/>
<a:column name="invoice_bp_address_phone_num" autoAdjust="false" prompt="开票地址电话" <a:column name="invoice_bp_address_phone_num" autoAdjust="false" prompt="开票地址电话"
showTitle="true" width="200"/> showTitle="true" width="200"/>
<a:column name="invoice_bp_bank_account" autoAdjust="false" prompt="开户行及账号" <a:column name="invoice_bp_bank_account" autoAdjust="false" prompt="开户行及账号"
......
...@@ -9,10 +9,10 @@ ...@@ -9,10 +9,10 @@
dynamiccreateenabled="true" trace="true"> dynamiccreateenabled="true" trace="true">
<a:init-procedure> <a:init-procedure>
<a:model-query model="cont.CON620.get_sys_role" rootPath="role_info"/> <a:model-query model="cont.CON620.get_sys_role" rootPath="role_info"/>
<a:model-query model="csh.CSH531F.csh_transaction_recoi_check_wfl" rootPath="wfl_status"/> <a:model-query model="cont.CON505.contract_approval" defaultWhereClause="t1.contract_id=${/parameter/@contract_id}" rootPath="is_constru_unit_info"/>
<a:model-query model="cont.CON3200.get_user_employee_type" rootPath="employee_info"/> <a:model-query model="csh.CSH531F.csh_transaction_recoi_check_wfl" rootPath="wfl_status"/>
<a:model-query model="cont.CON3200.get_user_employee_type" rootPath="employee_info"/>
<a:model-query fetchAll="true" model="cont.CON500.con_contract_get_guid_file_name" rootPath="file_name_path"/> <a:model-query fetchAll="true" model="cont.CON500.con_contract_get_guid_file_name" rootPath="file_name_path"/>
<!--<a:model-query model="cont.CON3200.receipt_detail_insert_atm" rootPath="get_contract_ccr"/>-->
<s:server-script import="contract_print_path.js"><![CDATA[ <s:server-script import="contract_print_path.js"><![CDATA[
$ctx.parameter.file_path = con_print_path['con_print_path']; $ctx.parameter.file_path = con_print_path['con_print_path'];
$ctx.parameter.tomcat_source = con_print_path['tomcat_source']; $ctx.parameter.tomcat_source = con_print_path['tomcat_source'];
...@@ -48,6 +48,9 @@ ...@@ -48,6 +48,9 @@
model="cont.CON505.con505_contract_content" modelaction="execute"/> model="cont.CON505.con505_contract_content" modelaction="execute"/>
<a:link id="${/parameter/@layout_code}_file_copy_from_template_link_id" <a:link id="${/parameter/@layout_code}_file_copy_from_template_link_id"
url="${/request/@context_path}/modules/cont/CON505/file_copy_from_template.lsc"/> url="${/request/@context_path}/modules/cont/CON505/file_copy_from_template.lsc"/>
<a:link id="${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_calculator_op_update_link_id"
url="${/request/@context_path}/modules/hls/HLS500N/hls_fin_calculator_update_n_for_ol.lview"/>
<a:link id="prj2000_pur_order_deteail_link_id" url="${/request/@context_path}/modules/prj/PRJ2000/purchase_order_deteail.lview"></a:link>
<a:link id="${/parameter/@layout_code}_con_batch_dl_link_id" <a:link id="${/parameter/@layout_code}_con_batch_dl_link_id"
url="${/request/@context_path}/modules/cont/CON505/con_atm_batch_dl.lsc"/> url="${/request/@context_path}/modules/cont/CON505/con_atm_batch_dl.lsc"/>
<a:link id="${/parameter/@layout_code}_con_cashflow_wirte_off_detail_link" <a:link id="${/parameter/@layout_code}_con_cashflow_wirte_off_detail_link"
...@@ -59,7 +62,7 @@ ...@@ -59,7 +62,7 @@
url="${/request/@context_path}/modules/hls/HLS500N/hls_fin_calculator_update_n.lview"/> url="${/request/@context_path}/modules/hls/HLS500N/hls_fin_calculator_update_n.lview"/>
<a:link id="get_atch_download_link" <a:link id="get_atch_download_link"
url="${/request/@context_path}/modules/batch_download/lease_atm_batch_dl.lsc"/> url="${/request/@context_path}/modules/batch_download/lease_atm_batch_dl.lsc"/>
<a:link id="check_contract_status" model="cont.CON3200.con_checklist_contract" modelaction="query"/> <a:link id="check_contract_status" model="cont.CON3200.con_checklist_contract" modelaction="query"/>
<link href="${/request/@context_path}/modules/viewerjs/viewer.css" rel="stylesheet"/> <link href="${/request/@context_path}/modules/viewerjs/viewer.css" rel="stylesheet"/>
<script src="${/request/@context_path}/modules/viewerjs/viewer.js"/> <script src="${/request/@context_path}/modules/viewerjs/viewer.js"/>
<script src="${/request/@context_path}/modules/viewerjs/viewer_tool.js"/> <script src="${/request/@context_path}/modules/viewerjs/viewer_tool.js"/>
...@@ -87,6 +90,7 @@ ...@@ -87,6 +90,7 @@
}; };
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function (ds, record, config_records, bp_seq) { window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function (ds, record, config_records, bp_seq) {
if('${/parameter/@cond_para2}'=='N' || '${/parameter/@cond_para2}'==''){
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract'); var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
if (ds_id == ds.id && ds_id) { if (ds_id == ds.id && ds_id) {
// if (record.get('business_type') == 'LEASEBACK'&&'${/parameter/@function_usage}'=='MODIFY') { // if (record.get('business_type') == 'LEASEBACK'&&'${/parameter/@function_usage}'=='MODIFY') {
...@@ -97,59 +101,84 @@ ...@@ -97,59 +101,84 @@
// record.getField('guarantee_letter_f').setReadOnly(true); // record.getField('guarantee_letter_f').setReadOnly(true);
// record.getField('guarantee_letter_f_n').setReadOnly(true); // record.getField('guarantee_letter_f_n').setReadOnly(true);
// }else // }else
if (record.get('division')!='70'&&record.get('division')!='92'){ if (record.get('division')!='70'){
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_CUSTOMER_MARGIN_prompt').style.display = 'none'; if (record.get('division')!='93'){
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_CUSTOMER_MARGIN').style.display = 'none'; if(document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_CUSTOMER_MARGIN')){
if(document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_WRITE_OFF_AMOUNT_prompt')!=null){ document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_CUSTOMER_MARGIN_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_WRITE_OFF_AMOUNT_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_CUSTOMER_MARGIN').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_WRITE_OFF_AMOUNT').style.display = 'none'; }
} if(document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_WRITE_OFF_AMOUNT')){
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_BRAND_VALUE_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_WRITE_OFF_AMOUNT_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_BRAND_VALUE').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_WRITE_OFF_AMOUNT').style.display = 'none';
}
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_MODELCD_prompt').style.display = 'none'; }
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_MODELCD').style.display = 'none'; if(document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_BRAND_VALUE')){
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_BRAND_VALUE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_USING_HOUR_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_BRAND_VALUE').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_USING_HOUR').style.display = 'none'; }
if(document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_MODELCD')){
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_RESIDUAL_VALUE_AMOUNT_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_MODELCD_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_RESIDUAL_VALUE_AMOUNT').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_MODELCD').style.display = 'none';
}
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_OWNERSHIP_FLAG_prompt').style.display = 'none'; if(document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_USING_HOUR')){
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_OWNERSHIP_FLAG').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_USING_HOUR_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_USING_HOUR').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_PRODUCE_DATE_prompt').style.display = 'none'; }
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_PRODUCE_DATE').style.display = 'none'; if(document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_RESIDUAL_VALUE_AMOUNT')){
}else if (record.get('division')=='70'||record.get('division')=='92'){ document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_RESIDUAL_VALUE_AMOUNT_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_OTHER_FEE_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_RESIDUAL_VALUE_AMOUNT').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_OTHER_FEE').style.display = 'none'; }
if(document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_OWNERSHIP_FLAG')){
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_THIRD_PARTY_DEPOSIT_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_OWNERSHIP_FLAG_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_THIRD_PARTY_DEPOSIT').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_OWNERSHIP_FLAG').style.display = 'none';
}
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_OTHER_FEE2_prompt').style.display = 'none'; if(document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_PRODUCE_DATE')){
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_OTHER_FEE2').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_PRODUCE_DATE_prompt').style.display = 'none';
} document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_PRODUCE_DATE').style.display = 'none';
if(record.get('division')=='92'){ }
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_CUSTOMER_MARGIN_prompt').style.display = 'none'; }else if (record.get('division')=='70'){
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_CUSTOMER_MARGIN').style.display = 'none'; if(document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_OTHER_FEE')){
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_WRITE_OFF_AMOUNT_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_OTHER_FEE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_WRITE_OFF_AMOUNT').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_OTHER_FEE').style.display = 'none';
} }
if(document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_THIRD_PARTY_DEPOSIT')){
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_THIRD_PARTY_DEPOSIT_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_THIRD_PARTY_DEPOSIT').style.display = 'none';
}
if(document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_OTHER_FEE2')){
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_OTHER_FEE2_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_OTHER_FEE2').style.display = 'none';
}
if(record.get('division_detail')=='03'||record.get('division_detail')=='02'){
if(document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_CUSTOMER_MARGIN')){
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_CUSTOMER_MARGIN_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_CUSTOMER_MARGIN').style.display = 'none';
}
if(document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_WRITE_OFF_AMOUNT')){
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_WRITE_OFF_AMOUNT_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_WRITE_OFF_AMOUNT').style.display = 'none';
}
}
}
if (record.get('business_type') == 'LEASE') { if (record.get('business_type') == 'LEASE') {
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_ENTRUSTED_AMOUNT')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_ENTRUSTED_AMOUNT_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_ENTRUSTED_AMOUNT_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_ENTRUSTED_AMOUNT').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_ENTRUSTED_AMOUNT').style.display = 'none';
} }
if (record.get('secondary_lease') == 'YES') { }
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_REPUR_CONTRACT_ID_prompt').style.display = 'block'; if (record.get('secondary_lease') == 'YES') {
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_REPUR_CONTRACT_ID_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_REPUR_CONTRACT_ID').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_REPUR_CONTRACT_ID').style.display = 'block';
} else /*if (record.get('secondary_lease') == 'NO') */{ }
} else {
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_REPUR_CONTRACT_ID_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_REPUR_CONTRACT_ID_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_REPUR_CONTRACT_ID').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_REPUR_CONTRACT_ID').style.display = 'none';
} }
}
if (record.get('contract_status') != 'REPUR' && record.get('contract_status') != 'REPURING') { if (record.get('contract_status') != 'REPUR' && record.get('contract_status') != 'REPURING') {
if (document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_BP_ID_TENANT_BF_REPUR_N')) { if (document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_BP_ID_TENANT_BF_REPUR_N')) {
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_BP_ID_TENANT_BF_REPUR_N_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_BP_ID_TENANT_BF_REPUR_N_prompt').style.display = 'none';
...@@ -159,19 +188,42 @@ ...@@ -159,19 +188,42 @@
//新增 “限制金额”字段; //新增 “限制金额”字段;
//“扣款限额”:“租金支付方式”为“建行扣款”时展示; //“扣款限额”:“租金支付方式”为“建行扣款”时展示;
if (record.get('pay_method') == 'CCB_THREE'||record.get('pay_method') == 'CCB_TWO') { if (record.get('pay_method') == 'CCB_THREE'||record.get('pay_method') == 'CCB_TWO') {
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_DEDUCTION_LIMIT_prompt').style.display = 'block'; if(document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_DEDUCTION_LIMIT')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_DEDUCTION_LIMIT_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_DEDUCTION_LIMIT').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_DEDUCTION_LIMIT').style.display = 'block';
}
} else { } else {
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_DEDUCTION_LIMIT_prompt').style.display = 'none'; if(document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_DEDUCTION_LIMIT')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_DEDUCTION_LIMIT_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_DEDUCTION_LIMIT').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_DEDUCTION_LIMIT').style.display = 'none';
} }
if('${/parameter/@layout_code}' == "CONTRACT_CREATE_INC" && (record.get('division') == '70'&&record.get('division') == '92')){ }
if('${/parameter/@layout_code}' == "CONTRACT_CREATE_INC" && record.get('division') == '70'){
if(Ext.isEmpty(record.get('guarantee_letter_f'))){ if(Ext.isEmpty(record.get('guarantee_letter_f'))){
record.set('guarantee_letter_f','N'); record.set('guarantee_letter_f','N');
record.set('guarantee_letter_f_n','否'); record.set('guarantee_letter_f_n','否');
} }
}
if (document.getElementById("${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_RENT_DEPOSIT")) {
if ('${/parameter/@is_constru_unit}' == 'N'||"${/model/is_constru_unit_info/record/@is_constru_unit}"=='N') {
document.getElementById("${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_RENT_DEPOSIT_prompt").style.display = "none";
document.getElementById("${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_RENT_DEPOSIT").style.display = "none";
}
}
if (document.getElementById("${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_RENT_DEPOSIT_AMOUNT_RECORDED")) {
if ('${/parameter/@is_constru_unit}' == 'N'||"${/model/is_constru_unit_info/record/@is_constru_unit}"=='N') {
document.getElementById("${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_RENT_DEPOSIT_AMOUNT_RECORDED_prompt").style.display = "none";
document.getElementById("${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_RENT_DEPOSIT_AMOUNT_RECORDED").style.display = "none";
}
}
if (document.getElementById("${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_DOWN_PAYMENT_DEPOSIT_RECORDED")) {
if ( '${/parameter/@is_constru_unit}' == 'N'||"${/model/is_constru_unit_info/record/@is_constru_unit}"=='N') {
document.getElementById("${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_DOWN_PAYMENT_DEPOSIT_RECORDED_prompt").style.display = "none";
document.getElementById("${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_DOWN_PAYMENT_DEPOSIT_RECORDED").style.display = "none";
}
} }
} }
}
}; };
...@@ -274,6 +326,9 @@ ...@@ -274,6 +326,9 @@
} else if (name == 'attach_file_name_new') { } else if (name == 'attach_file_name_new') {
link_function = '${/parameter/@layout_code}_prj500_cdd_attachtment_new_upload'; link_function = '${/parameter/@layout_code}_prj500_cdd_attachtment_new_upload';
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.ds.id + '\',\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + config_record.get('prompt') + '</a>'; return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.ds.id + '\',\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + config_record.get('prompt') + '</a>';
}else if(name=='lease_detail' && record.get('project_lease_item_id')!=null) {
link_function = 'cont3200_lease_renderer';
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' +'明细' + '</a>';
} }
}; };
...@@ -287,6 +342,19 @@ ...@@ -287,6 +342,19 @@
param['url_title'] = '租赁申请查询'; param['url_title'] = '租赁申请查询';
hls_doc_get_layout_code('${/parameter/@layout_code}_con_contract_get_layout_code_link_id', param, 'wfl_readonly_pageLink_projectQueryScreen_update_project', record.ds.id, '${/parameter/@layout_code}'); hls_doc_get_layout_code('${/parameter/@layout_code}_con_contract_get_layout_code_link_id', param, 'wfl_readonly_pageLink_projectQueryScreen_update_project', record.ds.id, '${/parameter/@layout_code}');
} }
function cont3200_lease_renderer(record_id, ds_id) {
var ds_id = 'CONTRACT_OP_QUERY_INC_G_LEASE_HEAD_CAR_con_contract_lease_item_ds';
var record = $(ds_id).getCurrentRecord();
var project_id=record.get('source_project_id');
var param = {};
var param = record.data;
param['function_code'] = 'PRJ2000D_WFL';
param['function_usage'] = 'QUERY';
param['maintain_type'] = 'READONLY'
param['url_title'] = '采购申请单维护';
param['project_id'] = project_id;
hls_doc_get_layout_code('${/parameter/@layout_code}_con_contract_get_layout_code_link_id', param, 'prj2000_pur_order_deteail_link_id', null, '${/parameter/@layout_code}');
}
window['${/parameter/@layout_code}_ast_con_cdd4_attachtment_upload'] = function (ds_id, id, name, query_only) { window['${/parameter/@layout_code}_ast_con_cdd4_attachtment_upload'] = function (ds_id, id, name, query_only) {
...@@ -342,7 +410,10 @@ ...@@ -342,7 +410,10 @@
if (record.get('bp_category') == 'AGENT') { if (record.get('bp_category') == 'AGENT') {
param['function_code'] = 'HLS303_Q'; param['function_code'] = 'HLS303_Q';
param['function_usage'] = 'QUERY'; param['function_usage'] = 'QUERY';
} else { } else if(record.get('bp_category')=='RENTER' || record.get('bp_category')=='MAN_FACTURER' || record.get('bp_category')=='ASSET_REGULATOR'){
param['function_code'] = 'HLS215D_OP';
param['function_usage'] = 'QUERY';
}else {
param['function_code'] = 'CON505H'; param['function_code'] = 'CON505H';
param['function_usage'] = 'QUERY'; param['function_usage'] = 'QUERY';
} }
...@@ -611,17 +682,14 @@ ...@@ -611,17 +682,14 @@
return; return;
} }
if ($(ds_id).validate()) { if ($(ds_id).validate()) {
if('${/model/wfl_status/record/@mar_status}' == 'Y'){ if('${/model/wfl_status/record/@mar_status}' == 'Y'|| Ext.isEmpty('${/model/wfl_status/record/@mar_status}')){
if(record.get('division')=='70'&&record.get('write_off_amount')<record.get('customer_margin')){ if(record.get('division')=='70'&&record.get('write_off_amount')<record.get('customer_margin') &&record.get('division_detail')=='01'){
// Leaf.showMessage('${l:PROMPT}', '铁甲业务需要保证金入账后才能起租'); //Leaf.showMessage('${l:PROMPT}', '铁甲业务需要保证金入账后才能起租');
Leaf.showMessage('${l:PROMPT}', '二手机业务需要保证金入账后才能起租'); Leaf.showMessage('${l:PROMPT}', '二手机业务需要保证金入账后才能起租');
return; return;
} }
} }
// if(record.get('division')=='92'&&record.get('write_off_amount')<record.get('customer_margin')){
// Leaf.showMessage('${l:PROMPT}', '北京卡家业务需要保证金入账后才能起租');
// return;
// }
//为法人且不为95时,财报是否上传提示 //为法人且不为95时,财报是否上传提示
var is_rsc_flag = ''; var is_rsc_flag = '';
if (record.get('division') != '95' && record.get('bp_class') == 'ORG'){ if (record.get('division') != '95' && record.get('bp_class') == 'ORG'){
...@@ -631,7 +699,7 @@ ...@@ -631,7 +699,7 @@
contract_id: contract_id contract_id: contract_id
}, },
scope: this, scope: this,
sync: true, sync: true,
success: function (res) { success: function (res) {
is_rsc_flag = res.result.record.is_rsc_upload_flag; is_rsc_flag = res.result.record.is_rsc_upload_flag;
} }
...@@ -690,6 +758,12 @@ ...@@ -690,6 +758,12 @@
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract'); var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
var cashflow_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_cashflow'); var cashflow_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_cashflow');
var record = $(ds_id).getCurrentRecord(); var record = $(ds_id).getCurrentRecord();
var division = record.get('division');
if(division == '95'){
var url =$('${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_calculator_op_update_link_id').getUrl();
}else {
var url = $('${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_calculator_update_link_id').getUrl();
}
var price_list = record.get('price_list'); var price_list = record.get('price_list');
var calc_session_id = record.get('calc_session_id'); var calc_session_id = record.get('calc_session_id');
var parent_pk_value = record.get('contract_id'); var parent_pk_value = record.get('contract_id');
...@@ -717,7 +791,7 @@ ...@@ -717,7 +791,7 @@
recreate_L_formula: 'Y', recreate_L_formula: 'Y',
recreate_H_formula: 'Y' recreate_H_formula: 'Y'
}, },
url: $('${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_calculator_update_link_id').getUrl(), url: url,
fullScreen: true, fullScreen: true,
draggable: true draggable: true
}); });
...@@ -730,11 +804,28 @@ ...@@ -730,11 +804,28 @@
} }
} }
Leaf.onReady(function () { Leaf.onReady(function () {
var role_id = "${/session/@role_id}";
//仅营业内勤与IT可维护身份证等打包下载功能
if(role_id != '2307' && role_id != '2334'&& role_id != '1714'){
if(document.getElementById('CONTRACT_QUERY_INC_C_ATTCH_1_USER_BUTTON1_layout_dynamic_button_id')){
$('CONTRACT_QUERY_INC_C_ATTCH_1_USER_BUTTON1_layout_dynamic_button_id').hide();
}
//$('CONTRACT_QUERY_INC_C_ATTCH_1_USER_BUTTON1_layout_dynamic_button_id').hide();
}
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'T_INVOICE_INFO', 'con_contract_bp'); var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'T_INVOICE_INFO', 'con_contract_bp');
if(ds_id){ if(ds_id){
$(ds_id).setQueryUrl('${/request/@context_path}/autocrud/prj.PRJ501N.con_contract_bp/query'); $(ds_id).setQueryUrl('${/request/@context_path}/autocrud/prj.PRJ501N.con_contract_bp/query');
$(ds_id).setQueryParameter('contract_id', '${/parameter/@contract_id}'); $(ds_id).setQueryParameter('contract_id', '${/parameter/@contract_id}');
$(ds_id).query(); $(ds_id).query();
}
if('${/parameter/@cond_para2}'=='Y'){
if(document.getElementById("${/parameter/@layout_code}_user_button9")){
$jq('#${/parameter/@layout_code}_user_button9').hide();
};
} }
}) })
//附件打包下载 //附件打包下载
...@@ -776,7 +867,7 @@ ...@@ -776,7 +867,7 @@
var lease_item_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'con_contract_lease_item'); var lease_item_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'con_contract_lease_item');
if(ds.id == lease_item_ds_id&&lease_item_ds_id){ if(ds.id == lease_item_ds_id&&lease_item_ds_id){
var gridId= ds.bindname+'_layout_grid_id'; var gridId= ds.bindname+'_layout_grid_id';
if(record.data.division=='70' ||record.data.division=='92'){ if(record.data.division=='70'){
$(gridId).hideColumn('full_name'); $(gridId).hideColumn('full_name');
$(gridId).hideColumn('division_n'); $(gridId).hideColumn('division_n');
$(gridId).hideColumn('equipments'); $(gridId).hideColumn('equipments');
...@@ -786,6 +877,9 @@ ...@@ -786,6 +877,9 @@
$(gridId).hideColumn('machine_number'); $(gridId).hideColumn('machine_number');
record.getField('machine_number').setRequired(false); record.getField('machine_number').setRequired(false);
}else { }else {
if(record.data.division=='60'){
record.getField('machine_number').setRequired(false);
}
$(gridId).hideColumn('machine_number_70'); $(gridId).hideColumn('machine_number_70');
$(gridId).hideColumn('lease_name_n'); $(gridId).hideColumn('lease_name_n');
$(gridId).hideColumn('brand_value'); $(gridId).hideColumn('brand_value');
...@@ -797,7 +891,6 @@ ...@@ -797,7 +891,6 @@
$(gridId).hideColumn('ownership_flag_n'); $(gridId).hideColumn('ownership_flag_n');
$(gridId).hideColumn('created_by_n'); $(gridId).hideColumn('created_by_n');
} }
} }
var cashflow_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_CASHFLOW_1', 'con_contract_cashflow'); var cashflow_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_CASHFLOW_1', 'con_contract_cashflow');
if(ds.id == cashflow_ds_id&&cashflow_ds_id){ if(ds.id == cashflow_ds_id&&cashflow_ds_id){
...@@ -807,9 +900,33 @@ ...@@ -807,9 +900,33 @@
} }
} }
}; };
/* 时间戳转换为时间 */
function timestampToTime(timestamp) {
timestamp = timestamp ? timestamp : null;
var date = new Date(timestamp);//时间戳为10位需*1000,时间戳为13位的话不需乘1000
var Y = date.getFullYear() + '-';
var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-';
var D = (date.getDate() < 10 ? '0' + date.getDate() : date.getDate());
// var h = (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':';
// var m = (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()) + ':';
// var s = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds();
return Y + M + D;
};
var count = 0; var count = 0;
window['${/parameter/@layout_code}_on_layout_dynamic_before_submit'] = function (ds, record) { window['${/parameter/@layout_code}_on_layout_dynamic_before_submit'] = function (ds, record) {
debugger; if('${/parameter/@layout_code}' == 'CONTRACT_OP_CREATE_INC'){
var lease_item_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'con_contract_lease_item');
var lease_item_record = $(lease_item_ds_id).getCurrentRecord();
var con_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
var contract_record = $(con_ds_id).getAt(0);
var ref_d09 = timestampToTime(Date.parse(lease_item_record.get('ref_d09')));
var lease_start_date = timestampToTime(Date.parse(record.get('lease_start_date')));
if(lease_start_date>ref_d09){
Leaf.showMessage('${l:PROMPT}','采购单的付款预定日期需大于合同起租日,请重新选择!');
return false;
}
}
var lease_item_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'con_contract_lease_item'); var lease_item_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'con_contract_lease_item');
var lease_item_record = $(lease_item_ds_id).getCurrentRecord(); var lease_item_record = $(lease_item_ds_id).getCurrentRecord();
var con_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract'); var con_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
...@@ -819,7 +936,7 @@ ...@@ -819,7 +936,7 @@
var division = lease_item_record.get('division'); var division = lease_item_record.get('division');
var machine_number_num = 0; var machine_number_num = 0;
var secondary_lease = record.get('secondary_lease') ; var secondary_lease = record.get('secondary_lease') ;
var contract_id = record.get('contract_id'); var contract_id = record.get('contract_id');
var contract_status = record.get('contract_status'); var contract_status = record.get('contract_status');
var contract_status_result = ''; var contract_status_result = '';
//校验合同状态 //校验合同状态
...@@ -849,19 +966,16 @@ ...@@ -849,19 +966,16 @@
]]></script> ]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/> <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
Leaf.onReady(init); /*Leaf.onReady(init);
function init() { function init() {
//用户对应员工不是员工 就不显示该附件组件 debugger;
if("${/model/employee_info/record/@employee_type_code}" != 'STAFF'){ //用户对应员工不是员工 就不显示该附件组件
document.getElementById('${/parameter/@layout_code}_C_ATTCH_2_con_contract_grid_id_wrap').style.display = 'none'; if("${/model/employee_info/record/@employee_type_code}" != 'STAFF'){
} document.getElementById('${/parameter/@layout_code}_C_ATTCH_2_con_contract_grid_id_wrap').style.display = 'none';
//if('${/parameter/@paper_sign_ccr}' == 'Y' && "${/model/get_contract_ccr/record/@crr_count}" == 'Y'){
// Leaf.showInfoMessage('${l:PROMPT}','此合同进行过签约前变更,请注意租赁开始日和对应的租金还款计划',null,250,100);
//}
} }
]]></script> }*/
]]></script>
</a:view> </a:view>
</a:screen> </a:screen>
...@@ -113,17 +113,17 @@ ...@@ -113,17 +113,17 @@
if(record.data.lease_name91=='Y'){//addby xsh35973 20221011 I-12357新增产品线 if(record.data.lease_name91=='Y'){//addby xsh35973 20221011 I-12357新增产品线
record.data.division=record.data.division+',91'; record.data.division=record.data.division+',91';
}; };
if(record.data.lease_name92=='Y'){//add by gzj //if(record.data.lease_name92=='Y'){//add by gzj
record.data.division=record.data.division+',92'; //record.data.division=record.data.division+',92';
}; //};
if(record.data.lease_name99=='Y'){//add by gzj if(record.data.lease_name99=='Y'){//add by gzj
record.data.division=record.data.division+',99'; record.data.division=record.data.division+',99';
};
if(record.data.lease_name95=='Y'){//add by gzj
record.data.division=record.data.division+',95';
}; };
if(record.data.lease_name93=='Y'){//add by gzj if(record.data.lease_name93=='Y'){//add by gzj
record.data.division=record.data.division+',93'; record.data.division=record.data.division+',93';
};
if(record.data.lease_name95=='Y'){
record.data.division=record.data.division+',95';
}; };
record.data.division=record.data.division.substr(1,record.data.division.length); record.data.division=record.data.division.substr(1,record.data.division.length);
$('contract_sales_result_ds').query(); $('contract_sales_result_ds').query();
...@@ -144,6 +144,7 @@ ...@@ -144,6 +144,7 @@
<a:datas> <a:datas>
<a:record code_value="LEASE" code_value_name="直租"/> <a:record code_value="LEASE" code_value_name="直租"/>
<a:record code_value="LEASEBACK" code_value_name="售后回租"/> <a:record code_value="LEASEBACK" code_value_name="售后回租"/>
<a:record code_value="LEASEOPERAT" code_value_name="经营性租赁"/>
</a:datas> </a:datas>
</a:dataSet> </a:dataSet>
<a:dataSet id="contract_sales_report_ds" autoPageSize="true"> <a:dataSet id="contract_sales_report_ds" autoPageSize="true">
...@@ -211,17 +212,17 @@ ...@@ -211,17 +212,17 @@
<a:checkBox name="lease_name30" bindTarget="contract_sales_report_ds" prompt="高空作业车"/> <a:checkBox name="lease_name30" bindTarget="contract_sales_report_ds" prompt="高空作业车"/>
<a:checkBox name="lease_name50" bindTarget="contract_sales_report_ds" prompt="星邦高空作业车"/> <a:checkBox name="lease_name50" bindTarget="contract_sales_report_ds" prompt="星邦高空作业车"/>
<a:checkBox name="lease_name60" bindTarget="contract_sales_report_ds" prompt="新业务"/> <a:checkBox name="lease_name60" bindTarget="contract_sales_report_ds" prompt="新业务"/>
<!-- <a:checkBox name="lease_name70" bindTarget="contract_sales_report_ds" prompt="铁甲业务"/>-->
<a:checkBox name="lease_name70" bindTarget="contract_sales_report_ds" prompt="二手机业务"/> <a:checkBox name="lease_name70" bindTarget="contract_sales_report_ds" prompt="二手机业务"/>
<a:checkBox name="lease_name80" bindTarget="contract_sales_report_ds" prompt="叉车"/> <a:checkBox name="lease_name80" bindTarget="contract_sales_report_ds" prompt="叉车"/>
<!-- <a:checkBox name="lease_name90" bindTarget="contract_sales_report_ds" prompt="租赁二手机"/>-->
<a:checkBox name="lease_name90" bindTarget="contract_sales_report_ds" prompt="租赁二手机(日立)"/> <a:checkBox name="lease_name90" bindTarget="contract_sales_report_ds" prompt="租赁二手机(日立)"/>
<a:checkBox name="lease_name40" bindTarget="contract_sales_report_ds" prompt="其它"/> <a:checkBox name="lease_name40" bindTarget="contract_sales_report_ds" prompt="其它"/>
<a:checkBox name="lease_name91" bindTarget="contract_sales_report_ds" prompt="神钢建机"/>//addby xsh35973 20221011 I-12357新增产品线 <a:checkBox name="lease_name91" bindTarget="contract_sales_report_ds" prompt="神钢建机"/>//addby xsh35973 20221011 I-12357新增产品线
<a:checkBox name="lease_name92" bindTarget="contract_sales_report_ds" prompt="北京心诚"/> <!--<a:checkBox name="lease_name92" bindTarget="contract_sales_report_ds" prompt="北京心诚"/>-->
<a:checkBox name="lease_name99" bindTarget="contract_sales_report_ds" prompt="工程机械"/> <a:checkBox name="lease_name99" bindTarget="contract_sales_report_ds" prompt="工程机械"/>
<a:checkBox name="lease_name95" bindTarget="contract_sales_report_ds" prompt="经租设备"/>
<a:checkBox name="lease_name93" bindTarget="contract_sales_report_ds" prompt="新业务-厂商担保"/> <a:checkBox name="lease_name93" bindTarget="contract_sales_report_ds" prompt="新业务-厂商担保"/>
</a:form>
</a:form>
<a:grid id="contract_sales_result_ds_grid" bindTarget="contract_sales_result_ds" marginHeight="150" navBar="true" marginWidth="40"> <a:grid id="contract_sales_result_ds_grid" bindTarget="contract_sales_result_ds" marginHeight="150" navBar="true" marginWidth="40">
<a:columns> <a:columns>
...@@ -230,6 +231,7 @@ ...@@ -230,6 +231,7 @@
<a:column name="journal_date" prompt="记账日期" align="center" width="220" renderer="formatDate"/> <a:column name="journal_date" prompt="记账日期" align="center" width="220" renderer="formatDate"/>
<a:column name="division_n" prompt="租赁物" align="center" width="220"/> <a:column name="division_n" prompt="租赁物" align="center" width="220"/>
<a:column name="contract_number" prompt="合同编号" align="center" width="220"/> <a:column name="contract_number" prompt="合同编号" align="center" width="220"/>
<a:column name="search_term_1" prompt="厂商合同编号" align="center" width="220"/>
<a:column name="business_type_n" prompt="业务类型" align="center" width="220"/> <a:column name="business_type_n" prompt="业务类型" align="center" width="220"/>
<a:column name="bp_tenant_code" prompt="承租人编号" align="center" width="220"/> <a:column name="bp_tenant_code" prompt="承租人编号" align="center" width="220"/>
<a:column name="bp_tenant_name" prompt="承租人名称" align="center" width="220"/> <a:column name="bp_tenant_name" prompt="承租人名称" align="center" width="220"/>
...@@ -242,6 +244,7 @@ ...@@ -242,6 +244,7 @@
<a:column name="sale_penalty" prompt="逾期利息收入" align="center" width="220"/> <a:column name="sale_penalty" prompt="逾期利息收入" align="center" width="220"/>
<a:column name="sale_other" prompt="其他收入" align="center" width="220"/> <a:column name="sale_other" prompt="其他收入" align="center" width="220"/>
<a:column name="deposit_value_amount" prompt="保证金时间价值收益" align="center" width="220"/> <a:column name="deposit_value_amount" prompt="保证金时间价值收益" align="center" width="220"/>
<a:column name="full_name" prompt="设备名称" align="center" width="220"/>
</a:columns> </a:columns>
</a:grid> </a:grid>
......
...@@ -24,6 +24,11 @@ ...@@ -24,6 +24,11 @@
var period_name=$(ds_id).getAt(0).get('period_name'); var period_name=$(ds_id).getAt(0).get('period_name');
var record = $(ds_id).getAt(0); var record = $(ds_id).getAt(0);
//期间校验提示
if(period_name == null || period_name == ''){
Leaf.showMessage('提示', '请选择报表的期间');
return false;
}
record.data.division1=''; record.data.division1='';
record.data.division2=''; record.data.division2='';
record.data.division3=''; record.data.division3='';
...@@ -35,6 +40,9 @@ ...@@ -35,6 +40,9 @@
record.data.division9=''; record.data.division9='';
record.data.division10=''; record.data.division10='';
record.data.division11=''; record.data.division11='';
record.data.division12='';
record.data.division13='';
record.data.division14='';
if(record.data.lease_name10=='Y'){ if(record.data.lease_name10=='Y'){
record.data.division1='10'; record.data.division1='10';
} }
...@@ -65,12 +73,21 @@ ...@@ -65,12 +73,21 @@
if(record.data.lease_name91=='Y'){ if(record.data.lease_name91=='Y'){
record.data.division10='91'; record.data.division10='91';
}; };
if(record.data.lease_name92=='Y'){ //if(record.data.lease_name92=='Y'){
record.data.division11='92'; //record.data.division11='92';
//};
if(record.data.lease_name99=='Y'){
record.data.division12='99';
};
if(record.data.lease_name95=='Y'){
record.data.division13='95';
};
if(record.data.lease_name93=='Y'){
record.data.division14='93';
}; };
// record.data.division=record.data.division.substr(1,record.data.division.length); // record.data.division=record.data.division.substr(1,record.data.division.length);
if(record.data.division1 == ''&&record.data.division2 == ''&&record.data.division3 == ''&&record.data.division4 == '' if(record.data.division1 == ''&&record.data.division2 == ''&&record.data.division3 == ''&&record.data.division4 == ''
&&record.data.division5 == ''&&record.data.division6 == ''&&record.data.division7 == ''&&record.data.division8 == ''&&record.data.division9 == ''&&record.data.division10 == ''&&record.data.division11 == ''){ &&record.data.division5 == ''&&record.data.division6 == ''&&record.data.division7 == ''&&record.data.division8 == ''&&record.data.division9 == ''&&record.data.division10 == ''&&record.data.division11 == ''&&record.data.division12 == ''&&record.data.division13 ==''&&record.data.division14 == ''){
// record.data.division1='10,20,30,40,50,60,70,80'; // record.data.division1='10,20,30,40,50,60,70,80';
record.data.division1='10'; record.data.division1='10';
record.data.division2='20'; record.data.division2='20';
...@@ -82,7 +99,10 @@ ...@@ -82,7 +99,10 @@
record.data.division8='80'; record.data.division8='80';
record.data.division9='90'; record.data.division9='90';
record.data.division10='91'; record.data.division10='91';
record.data.division11='92'; //record.data.division11='92';
record.data.division12='99';
record.data.division13='95';
record.data.division14='93';
}; };
param['division1']= record.data.division1; param['division1']= record.data.division1;
param['division2']= record.data.division2; param['division2']= record.data.division2;
...@@ -95,6 +115,9 @@ ...@@ -95,6 +115,9 @@
param['division9']= record.data.division9; param['division9']= record.data.division9;
param['division10']= record.data.division10; param['division10']= record.data.division10;
param['division11']= record.data.division11; param['division11']= record.data.division11;
param['division12']= record.data.division12;
param['division13']= record.data.division13;
param['division14']= record.data.division14;
param['period_name']=period_name; param['period_name']=period_name;
param['function_code'] = 'CON3400N'; param['function_code'] = 'CON3400N';
param['function_usage'] = 'MODIFY'; param['function_usage'] = 'MODIFY';
......
This source diff could not be displayed because it is too large. You can view the blob instead.
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true" <a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true"
trace="true"> trace="true">
<a:init-procedure> <a:init-procedure>
<a:model-query defaultWhereClause="t1.change_req_id = ${/parameter/@change_req_id}" <a:model-query defaultWhereClause="t1.change_req_id = ${/parameter/@change_req_id}"
model="cus_deposit.CUS_DEPOSIT106.get_contract_wfl_status" rootPath="default_value_path"/> model="cus_deposit.CUS_DEPOSIT106.get_contract_wfl_status" rootPath="default_value_path"/>
<a:model-query defaultWhereClause="t1.contract_id=${/parameter/@contract_id}" fetchAll="true" model="cont.CON_ET001.create_change_req" rootPath="get_contract_division"/> <a:model-query fetchAll="true" model="cont.CON_ET001.create_change_req" rootPath="get_contract_division"/>
<a:model-query fetchAll="true" model="cont.CON_ET001.con_asset_fee_calc" rootPath="asset_flag_path" ></a:model-query> <a:model-query fetchAll="true" model="cont.CON_ET001.con_asset_fee_calc" rootPath="asset_flag_path" ></a:model-query>
</a:init-procedure> </a:init-procedure>
<a:view> <a:view>
<!-- <a:link id="con731_calc_ccr_fee_link" model="cont.CON731.calc_ccr_fee" modelaction="execute"/>--> <!-- <a:link id="con731_calc_ccr_fee_link" model="cont.CON731.calc_ccr_fee" modelaction="execute"/>-->
<a:link id="calc_leasse_amount_link" model="cont.CON731.calc_leasse_date" modelaction="execute"/> <a:link id="calc_leasse_amount_link" model="cont.CON731.calc_leasse_date" modelaction="execute"/>
...@@ -31,17 +31,14 @@ ...@@ -31,17 +31,14 @@
url="${/request/@context_path}/uploadFile.lview"/> url="${/request/@context_path}/uploadFile.lview"/>
<a:link id="${/parameter/@layout_code}${/parameter/@pre_layout}prj500_cdd_downloadFile_id" <a:link id="${/parameter/@layout_code}${/parameter/@pre_layout}prj500_cdd_downloadFile_id"
url="${/request/@context_path}/downloadFile.lview"/> url="${/request/@context_path}/downloadFile.lview"/>
<a:link id="con731_hls_bp_master_query_link" <a:link id="con731_hls_bp_master_query_link" url="${/request/@context_path}/modules/cont/CON505/hls_bp_master_query.lview"/>
url="${/request/@context_path}/modules/cont/CON505/hls_bp_master_query.lview"/> <a:link id="${/parameter/@layout_code}hls_bp_master_query_link"
<a:link id="${/parameter/@layout_code}hls_bp_master_query_link"
url="${/request/@context_path}/modules/hls/HLS215N/hls_bp_master_query.lview"/> url="${/request/@context_path}/modules/hls/HLS215N/hls_bp_master_query.lview"/>
<a:link id="${/parameter/@layout_code}_con_contract_get_layout_code_link_id" <a:link id="${/parameter/@layout_code}_con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
model="cont.CON500.con_contract_get_layout_code" modelaction="update"/> <a:link id="con_buyback_info_print_link_id" url="${/request/@context_path}/modules/csh/CSH501/csh_con_req_history_pdf_print.lsc"/>
<a:link id="con_buyback_info_print_link_id" <a:link id="con_check_deduction_limit_link" model="check_after_save_bm.con_check_deduction_limit_after_save"
url="${/request/@context_path}/modules/csh/CSH501/csh_con_req_history_pdf_print.lsc"/>
<a:link id="con_check_deduction_limit_link" model="check_after_save_bm.con_check_deduction_limit_after_save"
modelaction="update"/> modelaction="update"/>
<a:link id="${/parameter/@layout_code}contract_number_query_link" <a:link id="${/parameter/@layout_code}contract_number_query_link"
url="${/request/@context_path}/modules/cont/CON505/con_contract_modify.lview"/> url="${/request/@context_path}/modules/cont/CON505/con_contract_modify.lview"/>
<a:link id="${/parameter/@layout_code}_tenant_rate_query_link" <a:link id="${/parameter/@layout_code}_tenant_rate_query_link"
url="${/request/@context_path}/modules/prj/PRJ902/prj_project_score_result.lview"/> url="${/request/@context_path}/modules/prj/PRJ902/prj_project_score_result.lview"/>
...@@ -54,12 +51,12 @@ ...@@ -54,12 +51,12 @@
$(ds_con_id).setQueryParameter('contract_id', '${/parameter/@contract_id}'); $(ds_con_id).setQueryParameter('contract_id', '${/parameter/@contract_id}');
$(ds_con_id).query(); $(ds_con_id).query();
} }
//让历史信息查询 //让历史信息查询
var history_con_id=get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'T_HISTORY_INGO', 'hls_bp_master'); var history_con_id=get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'T_HISTORY_INGO', 'hls_bp_master');
if($(history_con_id)){ if($(history_con_id)){
var url = '${/request/@context_path}/autocrud/prj.PRJ501N.prj_project_history_display/query?bp_id=${/parameter/@bp_id}'; var url = '${/request/@context_path}/autocrud/prj.PRJ501N.prj_project_history_display/query?bp_id=${/parameter/@bp_id}';
$(history_con_id).setQueryUrl(url); $(history_con_id).setQueryUrl(url);
$(history_con_id).query(); $(history_con_id).query();
} }
//铁甲业务合同展示保证金字段 18083 2023/5/11 //铁甲业务合同展示保证金字段 18083 2023/5/11
if('${/model/get_contract_division/record/@division}' !='70' && '${/model/get_contract_division/record/@division}' != ''){ if('${/model/get_contract_division/record/@division}' !='70' && '${/model/get_contract_division/record/@division}' != ''){
...@@ -71,14 +68,25 @@ ...@@ -71,14 +68,25 @@
document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_DEDUCTION_prompt").style.display = "none"; document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_DEDUCTION_prompt").style.display = "none";
document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_DEDUCTION").style.display = "none"; document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_DEDUCTION").style.display = "none";
} }
} }else if('${/model/get_contract_division/record/@division}' =='70'){
//报价中资管费字段为否时,不展示资产管理费字段 18083 2024/1/29 if('${/model/get_contract_division/record/@division_detail}' =='03'||'${/model/get_contract_division/record/@division_detail}' =='02' ){
if(document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_BALANCE")){
document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_BALANCE_prompt").style.display = "none";
document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_BALANCE").style.display = "none";
}
if(document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_DEDUCTION")){
document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_DEDUCTION_prompt").style.display = "none";
document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_DEDUCTION").style.display = "none";
}
}
}
//报价中资管费字段为否时,不展示资产管理费字段 18083 2024/1/29
if('${/model/asset_flag_path/record/@hd_user_col_v06}' !='Y'){ if('${/model/asset_flag_path/record/@hd_user_col_v06}' !='Y'){
if(document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_ASSET_POSSESSION_COST")){ if(document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_ASSET_POSSESSION_COST")){
document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_ASSET_POSSESSION_COST_prompt").style.display = "none"; document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_ASSET_POSSESSION_COST_prompt").style.display = "none";
document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_ASSET_POSSESSION_COST").style.display = "none"; document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_ASSET_POSSESSION_COST").style.display = "none";
} }
} }
}); });
function open_contract_win(ds_id, record_id) { function open_contract_win(ds_id, record_id) {
...@@ -165,8 +173,6 @@ ...@@ -165,8 +173,6 @@
}; };
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function (ds, record, name, value, old_value, bp_seq) { window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function (ds, record, name, value, old_value, bp_seq) {
var ds_con_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_QUOTATION_01', 'con_contract'); var ds_con_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_QUOTATION_01', 'con_contract');
if (ds.id == ds_con_id) { if (ds.id == ds_con_id) {
...@@ -180,42 +186,42 @@ ...@@ -180,42 +186,42 @@
$(history_con_id).query(); $(history_con_id).query();
var tennat_score_ds_id=get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail'); var tennat_score_ds_id=get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail');
var tenant_score_record=$(tennat_score_ds_id).getAt(0); var tenant_score_record=$(tennat_score_ds_id).getAt(0);
if(tenant_score_record){ if(tenant_score_record){
Leaf.request({ Leaf.request({
url: $('${/parameter/@layout_code}get_bp_tenant_rate_detail_link').getUrl(), url: $('${/parameter/@layout_code}get_bp_tenant_rate_detail_link').getUrl(),
para: { para: {
bp_id: value bp_id: value
}, },
success: function (data) { success: function (data) {
if (data.result.record && !data.result.record.length) { if (data.result.record && !data.result.record.length) {
//评分信息 //评分信息
for (var name in tenant_score_record.data) { for (var name in tenant_score_record.data) {
if (name != 'bp_detail_id' && name != 'project_id'&& name != 'contract_id') { if (name != 'bp_detail_id' && name != 'project_id'&& name != 'contract_id') {
if(data.result.record[name]){ if(data.result.record[name]){
tenant_score_record.set(name, data.result.record[name]); tenant_score_record.set(name, data.result.record[name]);
}else{ }else{
tenant_score_record.set(name, ''); tenant_score_record.set(name, '');
} }
}
} }
} }else{
}else{ //未找到则置空
//未找到则置空 for (var name in tenant_score_record.data) {
for (var name in tenant_score_record.data) { if (name != 'bp_detail_id' && name != 'project_id'&& name != 'contract_id') {
if (name != 'bp_detail_id' && name != 'project_id'&& name != 'contract_id') { tenant_score_record.set(name, '');
tenant_score_record.set(name, ''); }
} }
} }
}
}, },
failure: function () { failure: function () {
}, },
error: function () { error: function () {
}, },
scope: this scope: this
}); });
} }
...@@ -250,9 +256,8 @@ ...@@ -250,9 +256,8 @@
}, },
scope: this scope: this
}); });
} }if (name == 'pay_method') {
if (name == 'pay_method') { if ( value== 'WIRE_TRANSFER') {
if (value == 'WIRE_TRANSFER') {
record.set('bank_account_id', null); record.set('bank_account_id', null);
record.set('bank_account_id_n', null); record.set('bank_account_id_n', null);
record.getField('bank_account_id').setReadOnly(true); record.getField('bank_account_id').setReadOnly(true);
...@@ -263,27 +268,30 @@ ...@@ -263,27 +268,30 @@
record.set('bank_branch_num', null); record.set('bank_branch_num', null);
record.set('bank_branch_name', null); record.set('bank_branch_name', null);
record.set('withhold_way', null); record.set('withhold_way', null);
} else if (value == 'AGRI_THREE') { } else if (value== 'AGRI_THREE'){
record.getField('bank_account_id').setReadOnly(false); record.getField('bank_account_id').setReadOnly(false);
record.getField('bank_account_id_n').setReadOnly(false); record.getField('bank_account_id_n').setReadOnly(false);
record.getField('bank_account_id').setRequired(true); record.getField('bank_account_id').setRequired(true);
record.getField('bank_account_id_n').setRequired(true); record.getField('bank_account_id_n').setRequired(true);
record.set('withhold_way', 'ABC'); record.set('withhold_way', 'ABC');
} else if (value == 'AGRI_TWO') { }
else if (value == 'AGRI_TWO'){
record.getField('bank_account_id').setReadOnly(false); record.getField('bank_account_id').setReadOnly(false);
record.getField('bank_account_id_n').setReadOnly(false); record.getField('bank_account_id_n').setReadOnly(false);
record.getField('bank_account_id').setRequired(true); record.getField('bank_account_id').setRequired(true);
record.getField('bank_account_id_n').setRequired(true); record.getField('bank_account_id_n').setRequired(true);
record.set('withhold_way', 'ABC_2'); record.set('withhold_way', 'ABC_2');
} else if (value == 'CCB_THREE'||value == 'CCB_TWO') { }
else if (value == 'CCB_THREE'||value == 'CCB_TWO'){
record.getField('bank_account_id').setReadOnly(false); record.getField('bank_account_id').setReadOnly(false);
record.getField('bank_account_id_n').setReadOnly(false); record.getField('bank_account_id_n').setReadOnly(false);
record.getField('bank_account_id').setRequired(true); record.getField('bank_account_id').setRequired(true);
record.getField('bank_account_id_n').setRequired(true); record.getField('bank_account_id_n').setRequired(true);
record.set('withhold_way', null); record.set('withhold_way', null);
} }
} }
//新增 “限制金额”字段; //新增 “限制金额”字段;
//“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改; //“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改;
if (name == 'pay_method') { if (name == 'pay_method') {
if (value == 'CCB_THREE'||value == 'CCB_TWO') { if (value == 'CCB_THREE'||value == 'CCB_TWO') {
...@@ -300,12 +308,11 @@ ...@@ -300,12 +308,11 @@
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_DEDUCTION_LIMIT').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_DEDUCTION_LIMIT').style.display = 'none';
} }
} }
} }
// 回款賬戶變更 // 回款賬戶變更
if ('${/parameter/@layout_code}' == 'CON_ACCOUNT_CHANGE_MODIFY') { if ('${/parameter/@layout_code}' == 'CON_ACCOUNT_CHANGE_MODIFY') {
if (name == 'pay_method') { if (name == 'pay_method') {
if (value == 'WIRE_TRANSFER') { if ( value== 'WIRE_TRANSFER') {
record.set('bank_account_id', null); record.set('bank_account_id', null);
record.set('bank_account_id_n', null); record.set('bank_account_id_n', null);
record.getField('bank_account_id').setReadOnly(true); record.getField('bank_account_id').setReadOnly(true);
...@@ -316,30 +323,33 @@ ...@@ -316,30 +323,33 @@
record.set('bank_branch_num', null); record.set('bank_branch_num', null);
record.set('bank_branch_name', null); record.set('bank_branch_name', null);
record.set('withhold_way', null); record.set('withhold_way', null);
} else if (value == 'AGRI_THREE') { } else if (value== 'AGRI_THREE'){
record.getField('bank_account_id').setReadOnly(false); record.getField('bank_account_id').setReadOnly(false);
record.getField('bank_account_id_n').setReadOnly(false); record.getField('bank_account_id_n').setReadOnly(false);
record.getField('bank_account_id').setRequired(true); record.getField('bank_account_id').setRequired(true);
record.getField('bank_account_id_n').setRequired(true); record.getField('bank_account_id_n').setRequired(true);
record.set('withhold_way', 'ABC'); record.set('withhold_way', 'ABC');
} else if (value == 'AGRI_TWO') { }
else if (value == 'AGRI_TWO'){
record.getField('bank_account_id').setReadOnly(false); record.getField('bank_account_id').setReadOnly(false);
record.getField('bank_account_id_n').setReadOnly(false); record.getField('bank_account_id_n').setReadOnly(false);
record.getField('bank_account_id').setRequired(true); record.getField('bank_account_id').setRequired(true);
record.getField('bank_account_id_n').setRequired(true); record.getField('bank_account_id_n').setRequired(true);
record.set('withhold_way', 'ABC_2'); record.set('withhold_way', 'ABC_2');
} else if (value == 'CCB_THREE'||value == 'CCB_TWO') { }
else if (value == 'CCB_THREE'||value == 'CCB_TWO'){
record.getField('bank_account_id').setReadOnly(false); record.getField('bank_account_id').setReadOnly(false);
record.getField('bank_account_id_n').setReadOnly(false); record.getField('bank_account_id_n').setReadOnly(false);
record.getField('bank_account_id').setRequired(true); record.getField('bank_account_id').setRequired(true);
record.getField('bank_account_id_n').setRequired(true); record.getField('bank_account_id_n').setRequired(true);
record.set('withhold_way', null); record.set('withhold_way', null);
} }
} }
//新增 “限制金额”字段; //新增 “限制金额”字段;
//“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改; //“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改;
if (name == 'pay_method') { if (name == 'pay_method') {
if (value == 'CCB_THREE'|| value == 'CCB_TWO') { if (value == 'CCB_THREE'||value == 'CCB_TWO') {
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_DEDUCTION_LIMIT_prompt').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_DEDUCTION_LIMIT_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_DEDUCTION_LIMIT').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_DEDUCTION_LIMIT').style.display = 'block';
record.getField('deduction_limit').setRequired(true); record.getField('deduction_limit').setRequired(true);
...@@ -395,17 +405,17 @@ ...@@ -395,17 +405,17 @@
if('${/parameter/@layout_code}' == 'CON_TENANT_CHANGE_MODIFY'){ if('${/parameter/@layout_code}' == 'CON_TENANT_CHANGE_MODIFY'){
var tennat_score_ds_id1=get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail'); var tennat_score_ds_id1=get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail');
if(ds.id==tennat_score_ds_id1){ if(ds.id==tennat_score_ds_id1){
if(name=='third_guar_score'&&!Ext.isEmpty(value)){ if(name=='third_guar_score'&&!Ext.isEmpty(value)){
if(value<0||value>10){ if(value<0||value>10){
setTimeout(function () { setTimeout(function () {
record.set('third_guar_score', ''); record.set('third_guar_score', '');
}, 0); }, 0);
Leaf.showInfoMessage("提示", "第三方担保附件分数范围为0-10,请重新输入!"); Leaf.showInfoMessage("提示", "第三方担保附件分数范围为0-10,请重新输入!");
} }
} }
} }
} }
}; };
...@@ -423,8 +433,9 @@ ...@@ -423,8 +433,9 @@
record.set('bank_account_name', null); record.set('bank_account_name', null);
record.set('bank_branch_num', null); record.set('bank_branch_num', null);
record.set('bank_branch_name', null); record.set('bank_branch_name', null);
} }
if ('${/parameter/@layout_code}' == 'CON_ACCOUNT_CHANGE_MODIFY' || '${/parameter/@layout_code}' == 'CON_TENANT_CHANGE_MODIFY') { if ('${/parameter/@layout_code}' == 'CON_ACCOUNT_CHANGE_MODIFY' || '${/parameter/@layout_code}' == 'CON_TENANT_CHANGE_MODIFY') {
//新增 “限制金额”字段; //新增 “限制金额”字段;
//“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改; //“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改;
if (record.get('pay_method') == 'CCB_THREE'||record.get('pay_method') == 'CCB_TWO') { if (record.get('pay_method') == 'CCB_THREE'||record.get('pay_method') == 'CCB_TWO') {
...@@ -439,7 +450,7 @@ ...@@ -439,7 +450,7 @@
} }
//原楼扣款限额隐藏 //原楼扣款限额隐藏
if ('${/parameter/@layout_code}' == 'CON_ACCOUNT_CHANGE_MODIFY') { if ('${/parameter/@layout_code}' == 'CON_ACCOUNT_CHANGE_MODIFY') {
if (record.get('pay_method_old') == 'CCB_THREE'||record.get('pay_method') == 'CCB_TWO') { if (record.get('pay_method_old') == 'CCB_THREE'||record.get('pay_method_old') == 'CCB_TWO') {
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_DEDUCTION_LIMIT_S_prompt').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_DEDUCTION_LIMIT_S_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_DEDUCTION_LIMIT_S').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_DEDUCTION_LIMIT_S').style.display = 'block';
} else { } else {
...@@ -457,10 +468,10 @@ ...@@ -457,10 +468,10 @@
} }
} }
} }
if ('${/parameter/@function_code}' == 'CON_REPO001D_WQ') { if('${/parameter/@function_code}' == 'CON_REPO001D_WQ'){
if (!record.get('rec_residue_amount')) { if (!record.get('rec_residue_amount')){
var rec_residue_amount = record.get('sum_unreceived_rent_amount') + record.get('sum_overdue_amount') + record.get('due_amount') + record.get('residual_value'); var rec_residue_amount = record.get('sum_unreceived_rent_amount') + record.get('sum_overdue_amount')+record.get('due_amount')+record.get('residual_value');
record.set('rec_residue_amount', rec_residue_amount); record.set('rec_residue_amount',rec_residue_amount);
} }
} }
var tennat_score_ds_id1=get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail'); var tennat_score_ds_id1=get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail');
...@@ -536,7 +547,7 @@ ...@@ -536,7 +547,7 @@
var document_type = '${/parameter/@document_type}'; var document_type = '${/parameter/@document_type}';
var calc_session_id = req_record.get('calc_session_id'); var calc_session_id = req_record.get('calc_session_id');
// window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window'](); // window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window']();
for (var i = 0; i < $(attch_id).getAll().length; i++) { for (var i=0;i<$(attch_id).getAll().length;i++){
if ($(attch_id).getAll()[i].dirty == true) { if ($(attch_id).getAll()[i].dirty == true) {
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}'); Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
// $('${/parameter/@layout_code}_submit_approval').enable(); // $('${/parameter/@layout_code}_submit_approval').enable();
...@@ -569,14 +580,15 @@ ...@@ -569,14 +580,15 @@
// con731_submit(); // con731_submit();
// } // }
// } else // } else
if ('${/parameter/@layout_code}' == 'CON_TENANT_CHANGE_MODIFY') { if ('${/parameter/@layout_code}' == 'CON_TENANT_CHANGE_MODIFY') {
var bp_id_tenant = req_record.get('bp_id_tenant'); var bp_id_tenant = req_record.get('bp_id_tenant');
var bp_id_tenant_old = req_record.get('bp_id_tenant_old'); var bp_id_tenant_old = req_record.get('bp_id_tenant_old');
if (bp_id_tenant == bp_id_tenant_old) { if (bp_id_tenant == bp_id_tenant_old) {
Leaf.showMessage('警告', '变更承租人和原承租人不能重复!'); Leaf.showMessage('警告', '变更承租人和原承租人不能重复!');
// window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window'](); // window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return false; return false;
} else { }
else {
con731_submit(); con731_submit();
} }
...@@ -589,17 +601,18 @@ ...@@ -589,17 +601,18 @@
}; };
function con731_submit() { function con731_submit() {
var same_flag; var same_flag = 'Y';
Leaf.request({ // 承租人变更
url: $('con_guarantor_comparison_link').getUrl(), if ('${/parameter/@layout_code}' == 'CON_TENANT_CHANGE_MODIFY') {
para: { Leaf.request({
change_req_id: '${/parameter/@change_req_id}', url: $('con_guarantor_comparison_link').getUrl(),
}, para: {
success: function (res) { change_req_id: '${/parameter/@change_req_id}',
debugger; },
same_flag= res.result.same_flag; success: function (res) {
}, same_flag = res.result.same_flag;
failure: function () { },
failure: function () {
}, },
error: function () { error: function () {
...@@ -608,13 +621,13 @@ ...@@ -608,13 +621,13 @@
scope: this, scope: this,
sync: true sync: true
}); });
}
if(same_flag=='Y'){ if(same_flag=='Y'){
var showMessage ='是否确认提交审批?'; var showMessage ='是否确认提交审批?';
}else{ }else{
var showMessage ='担保人未发生变更,是否确认提交审批?'; var showMessage ='担保人未发生变更,是否确认提交审批?';
} }
// debugger; Leaf.showConfirm('${l:HLS.PROMPT}', showMessage, function () {
Leaf.showConfirm('${l:HLS.PROMPT}', showMessage, function () {
var req_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract'); var req_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
var req_record = $(req_ds_id).getAt(0); var req_record = $(req_ds_id).getAt(0);
window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window'](); window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window']();
...@@ -732,7 +745,7 @@ ...@@ -732,7 +745,7 @@
Leaf.request({ Leaf.request({
url: $('con731_cancel_link').getUrl(), url: $('con731_cancel_link').getUrl(),
para: { para: {
change_req_id: '${/parameter/@change_req_id}' change_req_id: ${/parameter/@change_req_id}
}, },
success: function (res) { success: function (res) {
// $('${/parameter/@layout_code}_user_button1').enable(); // $('${/parameter/@layout_code}_user_button1').enable();
...@@ -868,17 +881,17 @@ ...@@ -868,17 +881,17 @@
window['${/parameter/@layout_code}_open_bp_detail_window'] = function (id, name) { window['${/parameter/@layout_code}_open_bp_detail_window'] = function (id, name) {
var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name]; var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name];
var param = {};//record.data; var param = {};//record.data;
param['bp_id'] = record.get('bp_id'); param['bp_id'] = record.get('bp_id');
param['cdd_list_id'] = record.get('cdd_list_id'); param['cdd_list_id'] = record.get('cdd_list_id');
param['company_id'] = '${/session/company_id}'; param['company_id'] = '${/session/company_id}';
param['document_id'] = record.get('bp_id'); param['document_id'] = record.get('bp_id');
param['document_category'] = 'BP'; param['document_category'] = 'BP';
param['bp_class'] = record.get('bp_class'); param['bp_class'] = record.get('bp_class');
param['bp_category'] = record.get('bp_category'); param['bp_category'] = record.get('bp_category');
if (record.get('bp_category') == 'AGENT') { if( record.get('bp_category')=='AGENT'){
param['function_code'] = 'HLS303_Q'; param['function_code'] = 'HLS303_Q';
param['function_usage'] = 'QUERY'; param['function_usage'] = 'QUERY';
} else { }else{
param['function_code'] = 'CON505H'; param['function_code'] = 'CON505H';
param['function_usage'] = 'QUERY'; param['function_usage'] = 'QUERY';
} }
...@@ -905,8 +918,8 @@ ...@@ -905,8 +918,8 @@
} }
var lease_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASE_10', 'con_contract_lease_item'); var lease_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASE_10', 'con_contract_lease_item');
if(ds.id == lease_ds_id&&lease_ds_id){ if(ds.id == lease_ds_id&&lease_ds_id){
var gridId= ds.bindname+'_layout_grid_id'; var gridId= ds.bindname+'_layout_grid_id';
if(record.data.division=='70' || record.data.division=='92'){ if(record.data.division=='70'){
$(gridId).hideColumn('full_name'); $(gridId).hideColumn('full_name');
$(gridId).hideColumn('machine_number'); $(gridId).hideColumn('machine_number');
}else { }else {
...@@ -923,28 +936,29 @@ ...@@ -923,28 +936,29 @@
}, 0); }, 0);
} }
};*/ };*/
//add by lihh 20210330审批记录打印 //add by lihh 20210330审批记录打印
window['${/parameter/@layout_code}_user_button4_layout_dynamic_click'] = function () { window['${/parameter/@layout_code}_user_button4_layout_dynamic_click'] = function() {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract'); var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
var records = $(ds_id).getCurrentRecord(); var records = $(ds_id).getCurrentRecord();
var document_id = records.get('contract_id'); var document_id = records.get('contract_id');
var url_l; var url_l;
var file_name; var file_name;
if ('${/parameter/@function_code}' == 'CON_REPO001D_WQ') { if('${/parameter/@function_code}' == 'CON_REPO001D_WQ'){
file_name = records.get('contract_number') + "合同-解约回购审批记录打印"; file_name = records.get('contract_number') + "合同-解约回购审批记录打印";
url_l = $('con_buyback_info_print_link_id').getUrl() + '?document_id=' + document_id + '&file_name=' + encodeURI(file_name) + '&document_table=CON_CONTRACT_BUYBACK_INFO&batch_flag=Y&source_type=COMMON'; url_l = $('con_buyback_info_print_link_id').getUrl() + '?document_id=' + document_id + '&file_name=' + encodeURI(file_name) +'&document_table=CON_CONTRACT_BUYBACK_INFO&batch_flag=Y&source_type=COMMON';
} }
if ('${/parameter/@function_code}' == 'CON_ET002_WQ') { if('${/parameter/@function_code}' == 'CON_ET002_WQ'){
file_name = records.get('contract_number') + "合同-提前结清审批记录打印"; file_name = records.get('contract_number') + "合同-提前结清审批记录打印";
url_l = $('con_buyback_info_print_link_id').getUrl() + '?document_id=' + document_id + '&file_name=' + encodeURI(file_name) + '&document_table=CON_CONTRACT_CLOSE_BEFORE&batch_flag=Y&source_type=COMMON'; url_l = $('con_buyback_info_print_link_id').getUrl() + '?document_id=' + document_id + '&file_name=' + encodeURI(file_name) +'&document_table=CON_CONTRACT_CLOSE_BEFORE&batch_flag=Y&source_type=COMMON';
} }
if ('${/parameter/@function_code}' == 'CON733BPT_WQ') { if('${/parameter/@function_code}' == 'CON733BPT_WQ'){
file_name = records.get('contract_number') + "合同-承租人变更审批记录打印"; file_name = records.get('contract_number') + "合同-承租人变更审批记录打印";
url_l = $('con_buyback_info_print_link_id').getUrl() + '?document_id=' + document_id + '&file_name=' + encodeURI(file_name) + '&document_table=CON_CONTRACT_TENANT_CHANGE&batch_flag=Y&source_type=COMMON'; url_l = $('con_buyback_info_print_link_id').getUrl() + '?document_id=' + document_id + '&file_name=' + encodeURI(file_name) +'&document_table=CON_CONTRACT_TENANT_CHANGE&batch_flag=Y&source_type=COMMON';
} }
var OpenWindow = window.open(href = url_l, target = "_blank"); var OpenWindow = window.open(href = url_l, target = "_blank");
}; };
//保存前调用
//保存前调用
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_before_submit'] = function (ds, record) { window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_before_submit'] = function (ds, record) {
var check_flag = true; var check_flag = true;
window['${/parameter/@layout_code}_lock_layout_dynamic_window'](); window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <!--
$Author: WangYu $Author: WangYu
$Date: 2014-4-25 上午09:31:11 $Date: 2014-4-25 上午09:31:11
$Revision: 1.0 $Revision: 1.0
$Purpose: $Purpose:
--> -->
<a:screen xmlns:a="http://www.leaf-framework.org/application" trace="true"> <a:screen xmlns:a="http://www.leaf-framework.org/application" trace="true">
<a:view> <a:view>
<!--<a:link id="con_cashflow_pre_query_id" model="cont.CON930.con_contract_cashflow_monthly" modelaction="update"/>--> <!--<a:link id="con_cashflow_pre_query_id" model="cont.CON930.con_contract_cashflow_monthly" modelaction="update"/>-->
<a:link id="con_cashflow_pre_query_id" model="cont.CON930.con_contract_cashflow_monthly_n" modelaction="update"/> <a:link id="con_cashflow_pre_query_id" model="cont.CON930.con_contract_cashflow_monthly_n" modelaction="update"/>
<a:link id="con_cashflow_pre_update_id" model="cont.CON930.insert_con_cash_temp_data_job" modelaction="update"/> <a:link id="con_cashflow_pre_update_id" model="cont.CON930.insert_con_cash_temp_data_job" modelaction="update"/>
<script><![CDATA[ <script><![CDATA[
function CON321_con_contract_query() { function CON321_con_contract_query() {
if ($('con_contract_cashflow_monthly_query_ds').validate()){ if ($('con_contract_cashflow_monthly_query_ds').validate()){
...@@ -48,9 +47,9 @@ ...@@ -48,9 +47,9 @@
if(record.data.lease_name91=='Y'){//addby xsh35973 20221011 I-12357新增产品线 if(record.data.lease_name91=='Y'){//addby xsh35973 20221011 I-12357新增产品线
record.data.division=record.data.division+',91'; record.data.division=record.data.division+',91';
}; };
if(record.data.lease_name92=='Y'){//add by gzj 2022-12-19 10:17:53 //if(record.data.lease_name92=='Y'){//add by gzj 2022-12-19 10:17:53
record.data.division=record.data.division+',92'; //record.data.division=record.data.division+',92';
}; //};
if(record.data.lease_name99=='Y'){//add by gzj 2022-12-19 10:17:53 if(record.data.lease_name99=='Y'){//add by gzj 2022-12-19 10:17:53
record.data.division=record.data.division+',99'; record.data.division=record.data.division+',99';
}; };
...@@ -94,34 +93,34 @@ ...@@ -94,34 +93,34 @@
} }
} }
function CON321_con_contract_update() { function CON321_con_contract_update() {
var headers_ds = $('con_contract_cashflow_monthly_query_ds'); var headers_ds = $('con_contract_cashflow_monthly_query_ds');
var record = headers_ds.getAt(0); var record = headers_ds.getAt(0);
//基准日期校验 //基准日期校验
if(record.get('due_date') == null || record.get('due_date') == ''){ if(record.get('due_date') == null || record.get('due_date') == ''){
Leaf.showMessage('提示', '请选择报表的基准日期'); Leaf.showMessage('提示', '请选择报表的基准日期');
return false; return false;
} }
Leaf.Masker.mask(Ext.getBody(), '正在更新数据,请稍等...'); Leaf.Masker.mask(Ext.getBody(), '正在更新数据,请稍等...');
Leaf.request({ Leaf.request({
url: $('con_cashflow_pre_update_id').getUrl(), url: $('con_cashflow_pre_update_id').getUrl(),
para: { para: {
due_date : record.get('due_date'), due_date : record.get('due_date'),
business_type : record.get('business_type') business_type : record.get('business_type')
}, },
success: function(res) { success: function(res) {
Leaf.Masker.unmask (Ext.getBody()); Leaf.Masker.unmask (Ext.getBody());
}, },
failure: function() { failure: function() {
Leaf.Masker.unmask (Ext.getBody()); Leaf.Masker.unmask (Ext.getBody());
}, },
error: function() { error: function() {
Leaf.Masker.unmask (Ext.getBody()); Leaf.Masker.unmask (Ext.getBody());
}, },
scope: this scope: this
}); });
} }
function CON321_con_contract_reset() { function CON321_con_contract_reset() {
$('con_contract_cashflow_monthly_query_ds').reset(); $('con_contract_cashflow_monthly_query_ds').reset();
...@@ -167,7 +166,7 @@ ...@@ -167,7 +166,7 @@
<a:field checkedValue="Y" name="lease_name70" uncheckedValue="N" defaultValue="N"/> <a:field checkedValue="Y" name="lease_name70" uncheckedValue="N" defaultValue="N"/>
<a:field checkedValue="Y" name="lease_name80" uncheckedValue="N" defaultValue="N"/> <a:field checkedValue="Y" name="lease_name80" uncheckedValue="N" defaultValue="N"/>
<a:field checkedValue="Y" name="lease_name90" uncheckedValue="N" defaultValue="N"/> <a:field checkedValue="Y" name="lease_name90" uncheckedValue="N" defaultValue="N"/>
<a:field checkedValue="Y" name="lease_name92" uncheckedValue="N" defaultValue="N"/> <!--<a:field checkedValue="Y" name="lease_name92" uncheckedValue="N" defaultValue="N"/>-->
<a:field checkedValue="Y" name="lease_name99" uncheckedValue="N" defaultValue="N"/> <a:field checkedValue="Y" name="lease_name99" uncheckedValue="N" defaultValue="N"/>
<a:field checkedValue="Y" name="lease_name93" uncheckedValue="N" defaultValue="N"/> <a:field checkedValue="Y" name="lease_name93" uncheckedValue="N" defaultValue="N"/>
<a:field name="division" /> <a:field name="division" />
...@@ -189,7 +188,7 @@ ...@@ -189,7 +188,7 @@
<a:screenBody> <a:screenBody>
<a:screenTopToolbar> <a:screenTopToolbar>
<a:gridButton click="CON321_con_contract_query" text="HLS.QUERY"/> <a:gridButton click="CON321_con_contract_query" text="HLS.QUERY"/>
<a:gridButton click="CON321_con_contract_update" text="更新全量数据"/> <a:gridButton click="CON321_con_contract_update" text="更新全量数据"/>
<a:gridButton click="CON321_con_contract_reset" text="HLS.RESET"/> <a:gridButton click="CON321_con_contract_reset" text="HLS.RESET"/>
</a:screenTopToolbar> </a:screenTopToolbar>
<a:form bindTarget="con_contract_cashflow_balance_query_ds" column="3" title="收付款预定查询" marginWidth="40"> <a:form bindTarget="con_contract_cashflow_balance_query_ds" column="3" title="收付款预定查询" marginWidth="40">
...@@ -213,14 +212,12 @@ ...@@ -213,14 +212,12 @@
<a:checkBox name="lease_name50" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="星邦高空作业车"/> <a:checkBox name="lease_name50" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="星邦高空作业车"/>
<a:checkBox name="lease_name60" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="新业务"/> <a:checkBox name="lease_name60" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="新业务"/>
<!-- <a:checkBox name="lease_name70" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="铁甲业务"/>-->
<a:checkBox name="lease_name70" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="二手机业务"/> <a:checkBox name="lease_name70" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="二手机业务"/>
<a:checkBox name="lease_name80" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="叉车"/> <a:checkBox name="lease_name80" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="叉车"/>
<!-- <a:checkBox name="lease_name90" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="租赁二手机"/>--> <a:checkBox name="lease_name90" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="租赁二手机(日立)"/>
<a:checkBox name="lease_name90" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="租赁二手机(日立)"/>
<a:checkBox name="lease_name40" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="其它"/> <a:checkBox name="lease_name40" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="其它"/>
<a:checkBox name="lease_name91" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="神钢建机"/>//addby xsh35973 20221011 I-12357新增产品线 <a:checkBox name="lease_name91" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="神钢建机"/>//addby xsh35973 20221011 I-12357新增产品线
<a:checkBox name="lease_name92" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="北京心诚"/> <!-- <a:checkBox name="lease_name92" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="北京心诚"/>-->
<a:checkBox name="lease_name99" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="工程机械"/> <a:checkBox name="lease_name99" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="工程机械"/>
<a:checkBox name="lease_name93" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="新业务-厂商担保"/> <a:checkBox name="lease_name93" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="新业务-厂商担保"/>
...@@ -269,7 +266,8 @@ ...@@ -269,7 +266,8 @@
<a:column name="not_due_amount_4" align="center" prompt="未到期4个月" renderer="Leaf.formatMoney" width="80"/> <a:column name="not_due_amount_4" align="center" prompt="未到期4个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_5" align="center" prompt="未到期5个月" renderer="Leaf.formatMoney" width="80"/> <a:column name="not_due_amount_5" align="center" prompt="未到期5个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_6" align="center" prompt="未到期6个月" renderer="Leaf.formatMoney" width="80"/> <a:column name="not_due_amount_6" align="center" prompt="未到期6个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_7" align="center" prompt="未到期7个月" renderer="Leaf.formatMoney" width="80"/> <!--<a:column name="not_due_amount_left" align="center" prompt="未到期6个月以上" renderer="Leaf.formatMoney" width="80"/>-->
<a:column name="not_due_amount_7" align="center" prompt="未到期7个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_8" align="center" prompt="未到期8个月" renderer="Leaf.formatMoney" width="80"/> <a:column name="not_due_amount_8" align="center" prompt="未到期8个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_9" align="center" prompt="未到期9个月" renderer="Leaf.formatMoney" width="80"/> <a:column name="not_due_amount_9" align="center" prompt="未到期9个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_10" align="center" prompt="未到期10个月" renderer="Leaf.formatMoney" width="80"/> <a:column name="not_due_amount_10" align="center" prompt="未到期10个月" renderer="Leaf.formatMoney" width="80"/>
...@@ -333,7 +331,7 @@ ...@@ -333,7 +331,7 @@
<a:column name="not_due_amount_68" align="center" prompt="未到期68个月" renderer="Leaf.formatMoney" width="80"/> <a:column name="not_due_amount_68" align="center" prompt="未到期68个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_69" align="center" prompt="未到期69个月" renderer="Leaf.formatMoney" width="80"/> <a:column name="not_due_amount_69" align="center" prompt="未到期69个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_70" align="center" prompt="未到期70个月及以上" renderer="Leaf.formatMoney" width="80"/> <a:column name="not_due_amount_70" align="center" prompt="未到期70个月及以上" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_left" align="center" prompt="未到期6个月以上" renderer="Leaf.formatMoney" width="80"/> <a:column name="not_due_amount_left" align="center" prompt="未到期6个月以上" renderer="Leaf.formatMoney" width="80"/>
<!--<a:column name="not_due_amount_48_left" align="center" prompt="未到期48个月以上" renderer="Leaf.formatMoney" width="80"/>--> <!--<a:column name="not_due_amount_48_left" align="center" prompt="未到期48个月以上" renderer="Leaf.formatMoney" width="80"/>-->
<a:column name="not_due_amount_year_1" align="center" prompt="未到期1年" renderer="Leaf.formatMoney" width="80"/> <a:column name="not_due_amount_year_1" align="center" prompt="未到期1年" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_year_2" align="center" prompt="未到期2年" renderer="Leaf.formatMoney" width="80"/> <a:column name="not_due_amount_year_2" align="center" prompt="未到期2年" renderer="Leaf.formatMoney" width="80"/>
...@@ -341,6 +339,7 @@ ...@@ -341,6 +339,7 @@
<a:column name="not_due_amount_year_4" align="center" prompt="未到期4年" renderer="Leaf.formatMoney" width="80"/> <a:column name="not_due_amount_year_4" align="center" prompt="未到期4年" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_year_5" align="center" prompt="未到期5年" renderer="Leaf.formatMoney" width="80"/> <a:column name="not_due_amount_year_5" align="center" prompt="未到期5年" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_year_5_left" align="center" prompt="未到期5年以上" renderer="Leaf.formatMoney" width="80"/> <a:column name="not_due_amount_year_5_left" align="center" prompt="未到期5年以上" renderer="Leaf.formatMoney" width="80"/>
<a:column name="full_name" align="center" prompt="设备名称" width="220"/>
</a:columns> </a:columns>
</a:grid> </a:grid>
</a:tab> </a:tab>
......
...@@ -6,8 +6,9 @@ ...@@ -6,8 +6,9 @@
<a:init-procedure> <a:init-procedure>
<a:model-query defaultWhereClause="t1.user_id=${/session/@user_id}" fetchAll="true" model="wx.WX100.sys_pilot_run_user" rootPath="pilot_run_user"/> <a:model-query defaultWhereClause="t1.user_id=${/session/@user_id}" fetchAll="true" model="wx.WX100.sys_pilot_run_user" rootPath="pilot_run_user"/>
<a:model-query defaultWhereClause="t1.contract_id=${/parameter/@contract_id}" fetchAll="true" model="cont.CON_ET001.con_get_contract_status" rootPath="get_contract_status"/> <a:model-query defaultWhereClause="t1.contract_id=${/parameter/@contract_id}" fetchAll="true" model="cont.CON_ET001.con_get_contract_status" rootPath="get_contract_status"/>
<a:model-query defaultWhereClause="t1.contract_id=${/parameter/@contract_id}" fetchAll="true" model="cont.CON_ET001.create_change_req" rootPath="get_contract_division"/> <a:model-query fetchAll="true" model="cont.CON_ET001.create_change_req" rootPath="get_contract_division"/>
<a:model-query fetchAll="true" model="cont.CON_ET001.con_asset_fee_calc" rootPath="asset_flag_path" ></a:model-query> <a:model-query fetchAll="true" model="cont.CON_ET001.con_asset_fee_calc" rootPath="asset_flag_path" ></a:model-query>
</a:init-procedure> </a:init-procedure>
<a:view> <a:view>
<a:link id="con_contract_repo_detail_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/> <a:link id="con_contract_repo_detail_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
...@@ -58,40 +59,50 @@ ...@@ -58,40 +59,50 @@
if ('${/model/pilot_run_user/record/@pilot_run_flag}' != 'Y'){ if ('${/model/pilot_run_user/record/@pilot_run_flag}' != 'Y'){
$('${/parameter/@layout_code}_user_button4').hide(); $('${/parameter/@layout_code}_user_button4').hide();
} }
//铁甲业务合同展示保证金字段 18083 2023/5/11 //铁甲业务合同展示保证金字段 18083 2023/6/14
if('${/model/get_contract_division/record/@division}' !='70' && '${/model/get_contract_division/record/@division}' != ''){ if('${/model/get_contract_division/record/@division}' !='70' && '${/model/get_contract_division/record/@division}' != ''){
if(document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_BALANCE")){ if(document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_BALANCE")){
document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_BALANCE_prompt").style.display = "none"; document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_BALANCE_prompt").style.display = "none";
document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_BALANCE").style.display = "none"; document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_BALANCE").style.display = "none";
} }
if(document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_DEDUCTION")){ if(document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_DEDUCTION")){
document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_DEDUCTION_prompt").style.display = "none"; document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_DEDUCTION_prompt").style.display = "none";
document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_DEDUCTION").style.display = "none"; document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_DEDUCTION").style.display = "none";
} }
} }else if('${/model/get_contract_division/record/@division}' =='70'){
//报价中资管费字段为否时,不展示资产管理费字段 18083 2024/1/29 if('${/model/get_contract_division/record/@division_detail}' =='03'||'${/model/get_contract_division/record/@division_detail}' =='02' ){
if(document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_BALANCE")){
document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_BALANCE_prompt").style.display = "none";
document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_BALANCE").style.display = "none";
}
if(document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_DEDUCTION")){
document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_DEDUCTION_prompt").style.display = "none";
document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_DEDUCTION").style.display = "none";
}
}
}
//报价中资管费字段为否时,不展示资产管理费字段 18083 2024/1/29
if('${/model/asset_flag_path/record/@hd_user_col_v06}' !='Y'){ if('${/model/asset_flag_path/record/@hd_user_col_v06}' !='Y'){
if(document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_ASSET_POSSESSION_COST")){ if(document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_ASSET_POSSESSION_COST")){
document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_ASSET_POSSESSION_COST_prompt").style.display = "none"; document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_ASSET_POSSESSION_COST_prompt").style.display = "none";
document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_ASSET_POSSESSION_COST").style.display = "none"; document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_ASSET_POSSESSION_COST").style.display = "none";
} }
} }
}); });
var calc_flag='N'; var calc_flag='N';
//新增和加载时调用form //新增和加载时调用form
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function(ds, record, config_records, bp_seq) { window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function(ds, record, config_records, bp_seq) {
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'F_BASE_01', 'con_contract_change_req'); var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'F_BASE_01', 'con_contract_change_req');
if (ds_id == ds.id && ds_id) { if (ds_id == ds.id && ds_id) {
if(record.get('bp_class') == 'NP'){ if(record.get('bp_class') == 'NP'){
record.getField('signer_n').setReadOnly(true); record.getField('signer_n').setReadOnly(true);
record.getField('signer_n').setRequired(false); record.getField('signer_n').setRequired(false);
record.set('signer_n',''); record.set('signer_n','');
} }
if(record.get('division') == '70'){ if(record.get('division') == '70' && record.get('division_detail') == '01'){
record.getField('deposit_deduction').setRequired(true); record.getField('deposit_deduction').setRequired(true);
} }
} }
}; };
var clc_flag = 'N'; var clc_flag = 'N';
...@@ -102,13 +113,11 @@ ...@@ -102,13 +113,11 @@
calc_flag='N'; calc_flag='N';
record.set('calc_flag','N'); record.set('calc_flag','N');
} }
//调整后提前结清手续费
if (name == 'et_fee') { if (name == 'et_fee') {
var et_total_amount=record.get('et_total_amount')||0; var et_total_amount=record.get('et_total_amount')||0;
var old_et_fee=old_value||0; var old_et_fee=old_value||0;
record.set('et_total_amount', plus(minus(et_total_amount,old_et_fee),value||0)); record.set('et_total_amount', plus(minus(et_total_amount,old_et_fee),value||0));
} }
//调整后逾期罚息
if (name == 'ccr_penalty') { if (name == 'ccr_penalty') {
var et_total_amount=record.get('et_total_amount')||0; var et_total_amount=record.get('et_total_amount')||0;
var due_amount = record.get('penalty') || 0; var due_amount = record.get('penalty') || 0;
...@@ -126,10 +135,11 @@ ...@@ -126,10 +135,11 @@
}, 5); }, 5);
return; return;
} }
record.set('et_total_amount',minus(plus(plus(plus(plus(record.get('et_due_amount')||0,record.get('et_fee')||0),record.get('residual_value')||0),record.get('overdue_amount')||0),value),record.get('deposit_deduction')||0)); record.set('et_total_amount',minus(plus(plus(plus(plus(record.get('et_due_amount')||0,record.get('et_fee')||0),record.get('residual_value')||0),record.get('overdue_amount')||0),value),record.get('deposit_deduction')||0));
} }
//铁甲业务计算保证金抵扣金额 18083 2023/5/12
if('${/model/get_contract_division/record/@division}' =='70' && '${/model/get_contract_division/record/@division}' != ''){ //铁甲业务计算保证金抵扣金额 18083 2023/6/14
if('${/model/get_contract_division/record/@division}' =='70' && '${/model/get_contract_division/record/@division}' != '' && '${/model/get_contract_division/record/@division_detail}' == '01'){
if (name == 'deposit_deduction') { if (name == 'deposit_deduction') {
var et_total_amount=record.get('et_total_amount')||0; var et_total_amount=record.get('et_total_amount')||0;
var deposit_balance = record.get('deposit_balance') || 0; var deposit_balance = record.get('deposit_balance') || 0;
...@@ -141,7 +151,6 @@ ...@@ -141,7 +151,6 @@
}, 5); }, 5);
return; return;
} }
if (value < 0 || value == NaN || value == undefined) { if (value < 0 || value == NaN || value == undefined) {
Leaf.showMessage('${l:HLS.PROMPT}', '调整后的保证金抵扣金额应大于等于0!'); Leaf.showMessage('${l:HLS.PROMPT}', '调整后的保证金抵扣金额应大于等于0!');
setTimeout(function () { setTimeout(function () {
...@@ -149,7 +158,8 @@ ...@@ -149,7 +158,8 @@
}, 5); }, 5);
return; return;
} }
//调整后的保证金余额应小于支付总额
//调整后的保证金余额应小于支付总额
if (value > et_total_amount) { if (value > et_total_amount) {
Leaf.showMessage('${l:HLS.PROMPT}', '调整后的保证金抵扣金额应小于支付总额!'); Leaf.showMessage('${l:HLS.PROMPT}', '调整后的保证金抵扣金额应小于支付总额!');
setTimeout(function () { setTimeout(function () {
...@@ -157,13 +167,12 @@ ...@@ -157,13 +167,12 @@
}, 5); }, 5);
return; return;
} }
record.set('et_total_amount', minus(plus(plus(plus(plus(record.get('et_due_amount')||0,record.get('et_fee')||0),record.get('residual_value')||0),record.get('overdue_amount')||0),record.get('ccr_penalty')||0),value)); record.set('et_total_amount', minus(plus(plus(plus(plus(record.get('et_due_amount')||0,record.get('et_fee')||0),record.get('residual_value')||0),record.get('overdue_amount')||0),record.get('ccr_penalty')||0),value));
} }
} }
if (name == 'termination_date'&&value) { if (name == 'termination_date'&&value) {
// 根据结清日计算结清相关金额字段 // 根据结清日计算结清相关金额字段
Leaf.request({ Leaf.request({
url: $('con_et001_calc_et_date_amount_link').getUrl(), url: $('con_et001_calc_et_date_amount_link').getUrl(),
para: { para: {
...@@ -176,12 +185,12 @@ ...@@ -176,12 +185,12 @@
et_interest_rate: record.get('et_interest_rate'), et_interest_rate: record.get('et_interest_rate'),
/**留购价**/ /**留购价**/
residual_value: record.get('residual_value'), //update by xsh35973 20220613 residual_value: record.get('residual_value'), //update by xsh35973 20220613
/**保证金抵扣金额**/ /**保证金抵扣金额**/
deposit_deduction: record.get('deposit_deduction')||0 //update by 18083 2023/5/12 deposit_deduction: record.get('deposit_deduction')||0 //update by 18083 2023/6/14
}, },
success: function (res) { success: function (res) {
clc_flag = 'Y'; clc_flag = 'Y';
//record.set('et_fee', res.result.et_fee); //record.set('et_fee', res.result.et_fee);
record.set('et_total_amount', res.result.et_total_amount); record.set('et_total_amount', res.result.et_total_amount);
record.set('et_due_amount', res.result.et_due_amount); record.set('et_due_amount', res.result.et_due_amount);
record.set('overdue_amount', res.result.overdue_amount||0); record.set('overdue_amount', res.result.overdue_amount||0);
...@@ -228,7 +237,6 @@ ...@@ -228,7 +237,6 @@
}); });
} }
//add by xsh35973 添加修改调整后资源占用费提前结清租金跟随变动 //add by xsh35973 添加修改调整后资源占用费提前结清租金跟随变动
//调整后资金占用费
if(name == 'fund_possession_cost'&& clc_flag =='N'){ if(name == 'fund_possession_cost'&& clc_flag =='N'){
if (value < 0 || value == NaN || value == undefined) { if (value < 0 || value == NaN || value == undefined) {
Leaf.showMessage('${l:HLS.PROMPT}', '调整后的资金占用费金额应大于等于0!'); Leaf.showMessage('${l:HLS.PROMPT}', '调整后的资金占用费金额应大于等于0!');
...@@ -260,10 +268,9 @@ ...@@ -260,10 +268,9 @@
}, 5); }, 5);
return; return;
} }
var et_total_amount_result=minus(plus(plus(plus(plus(record.get('et_due_amount') || 0, record.get('et_fee') || 0), record.get('residual_value') || 0), record.get('overdue_amount') || 0), record.get('ccr_penalty')),record.get('deposit_deduction') || 0); var et_total_amount_result=minus(plus(plus(plus(plus(record.get('et_due_amount') || 0, record.get('et_fee') || 0), record.get('residual_value') || 0), record.get('overdue_amount') || 0), record.get('ccr_penalty')),record.get('deposit_deduction') || 0);
record.set('et_total_amount',et_total_amount_result); record.set('et_total_amount',et_total_amount_result);
} }
//提前结清租金
if(name == 'et_due_amount'&& clc_flag =='N'){ if(name == 'et_due_amount'&& clc_flag =='N'){
if (value < 0 || value == NaN || value == undefined) { if (value < 0 || value == NaN || value == undefined) {
Leaf.showMessage('${l:HLS.PROMPT}', '调整后的提前结清租金金额应大于等于0!'); Leaf.showMessage('${l:HLS.PROMPT}', '调整后的提前结清租金金额应大于等于0!');
...@@ -272,11 +279,10 @@ ...@@ -272,11 +279,10 @@
}, 5); }, 5);
return; return;
} }
var et_total_amount_result=minus(plus(plus(plus(plus(record.get('et_due_amount') || 0, record.get('et_fee') || 0), record.get('residual_value') || 0), record.get('overdue_amount') || 0), record.get('ccr_penalty')),record.get('deposit_deduction') || 0); var et_total_amount_result=minus(plus(plus(plus(plus(record.get('et_due_amount') || 0, record.get('et_fee') || 0), record.get('residual_value') || 0), record.get('overdue_amount') || 0), record.get('ccr_penalty')),record.get('deposit_deduction') || 0);
record.set('et_total_amount',et_total_amount_result); record.set('et_total_amount',et_total_amount_result);
} }
} }
}; };
window['${/parameter/@layout_code}_submit_approval_layout_dynamic_click'] = function() { window['${/parameter/@layout_code}_submit_approval_layout_dynamic_click'] = function() {
...@@ -705,7 +711,7 @@ ...@@ -705,7 +711,7 @@
var lease_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASE_10', 'con_contract_lease_item'); var lease_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASE_10', 'con_contract_lease_item');
if(ds.id == lease_ds_id&&lease_ds_id){ if(ds.id == lease_ds_id&&lease_ds_id){
var gridId= ds.bindname+'_layout_grid_id'; var gridId= ds.bindname+'_layout_grid_id';
if(record.data.division=='70' || record.data.division=='92'){ if(record.data.division=='70'){
$(gridId).hideColumn('full_name'); $(gridId).hideColumn('full_name');
$(gridId).hideColumn('machine_number'); $(gridId).hideColumn('machine_number');
}else { }else {
...@@ -800,7 +806,7 @@ ...@@ -800,7 +806,7 @@
var url=$('con_lease_org_print_link').getUrl() + '?contract_id=' + contract_id + '&templet_code=' + templet_code; var url=$('con_lease_org_print_link').getUrl() + '?contract_id=' + contract_id + '&templet_code=' + templet_code;
window.open(url, '_self'); window.open(url, '_self');
}; };
]]></script> ]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/> <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
</a:view> </a:view>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <!--
$Author: wangwei5743 $Author: wangwei5743
$Date: 2014-10-8 下午1:13:25 $Date: 2014-10-8 下午1:13:25
$Revision: 1.0 $Revision: 1.0
$Purpose: 租赁申请创建入口 $Purpose: 租赁申请创建入口
--> -->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true" <a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true"
trace="true"> trace="true">
...@@ -34,16 +34,10 @@ ...@@ -34,16 +34,10 @@
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project'); var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var record = $(ds_id).getCurrentRecord(); var record = $(ds_id).getCurrentRecord();
if(record.data.division=='70'&&record.data.business_type!='LEASEBACK'){ if(record.data.division=='70'&&record.data.business_type!='LEASEBACK'){
debugger;
// $L.showErrorMessage("提示", '租赁物为铁甲业务的业务类型只能是售后回租!');
$L.showErrorMessage("提示", '租赁物为二手机业务的业务类型只能是售后回租!'); $L.showErrorMessage("提示", '租赁物为二手机业务的业务类型只能是售后回租!');
return false; return false;
}
if(record.data.division=='92'&&record.data.business_type!='LEASEBACK'){
debugger;
$L.showErrorMessage("提示", '租赁物为北京心诚的业务类型只能是售后回租!');
return false;
} }
if(record.data.division=='95'&&record.data.business_type!='LEASEOPERAT'){ if(record.data.division=='95'&&record.data.business_type!='LEASEOPERAT'){
$L.showErrorMessage("提示", '租赁物为经租设备的业务类型只能是经营性租赁!'); $L.showErrorMessage("提示", '租赁物为经租设备的业务类型只能是经营性租赁!');
return false; return false;
...@@ -64,10 +58,10 @@ ...@@ -64,10 +58,10 @@
record.set('function_code', 'PRJ500D'); record.set('function_code', 'PRJ500D');
url = "prj_chance_create_link"; url = "prj_chance_create_link";
} }
record.data['url_title'] = '报价申请创建';
record.set('function_usage', 'CREATE'); record.set('function_usage', 'CREATE');
record.set('document_category', 'PROJECT'); record.set('document_category', 'PROJECT');
record.set('default_value_dsid', ds_id); record.set('default_value_dsid', ds_id);
record.data['url_title'] = '报价申请创建';
var param = record.data; var param = record.data;
record.set('winid', 'prj_porject_create_win_id'); record.set('winid', 'prj_porject_create_win_id');
......
...@@ -18,18 +18,21 @@ ...@@ -18,18 +18,21 @@
<a:model-query fetchAll="true" model="prj.PRJ500D.prj_project_residual_value" rootPath="residual_value"/> <a:model-query fetchAll="true" model="prj.PRJ500D.prj_project_residual_value" rootPath="residual_value"/>
<!-- <a:model-query fetchAll="true" model="prj.PRJ500D.prj_project_residual_value_from" rootPath="prj_residual_value"/>--> <!-- <a:model-query fetchAll="true" model="prj.PRJ500D.prj_project_residual_value_from" rootPath="prj_residual_value"/>-->
<a:model-query fetchAll="true" model="prj.PRJ500D.prj_project_get_asset_fee_flag" rootPath="asset_fee_path" ></a:model-query> <a:model-query fetchAll="true" model="prj.PRJ500D.prj_project_get_asset_fee_flag" rootPath="asset_fee_path" ></a:model-query>
<a:model-query fetchAll="true" model="prj.PRJ500D.prj_project_get_division_detail" rootPath="division_detail_path" ></a:model-query>
<s:server-script import="contract_print_path.js"><![CDATA[ <s:server-script import="contract_print_path.js"><![CDATA[
$ctx.parameter.file_path = con_print_path['con_print_path']; $ctx.parameter.file_path = con_print_path['con_print_path'];
$ctx.parameter.tomcat_source = con_print_path['tomcat_source']; $ctx.parameter.tomcat_source = con_print_path['tomcat_source'];
$ctx.parameter.asset_fee_flag = $ctx.get('/model/asset_fee_path/record/@asset_fee_flag');
$ctx.parameter.division_detail = $ctx.get('/model/division_detail_path/record/@division_detail');
$ctx.parameter.asset_fee_flag = $ctx.get('/model/asset_fee_path/record/@asset_fee_flag'); ]]>
]]></s:server-script> </s:server-script>
</a:init-procedure> </a:init-procedure>
<a:view> <a:view>
<a:link id="prj501N_prj_lease_item_maintain_link" model="prj.PRJ500N.prj_project_lease_item_delete" modelaction="execute"/> <a:link id="prj501N_prj_lease_item_maintain_link" model="prj.PRJ500N.prj_project_lease_item_delete" modelaction="execute"/>
<a:link id="hls_bp_master_billing_link" model="prj.PRJ500N.hls_bp_master_billing" modelaction="query"/> <a:link id="hls_bp_master_billing_link" model="prj.PRJ500N.hls_bp_master_billing" modelaction="query"/>
<a:link id="bp_tenant_detail_query_link" model="prj.PRJ500D.bp_tenant_old_r_query" modelaction="query"/> <a:link id="bp_tenant_detail_query_link" model="prj.PRJ500D.bp_tenant_old_r_query" modelaction="query"/>
<a:link id="${/parameter/@pre_layout}get_special_fields_link_id" <a:link id="${/parameter/@layout_code}${/parameter/@pre_layout}get_special_fields_link_id"
model="cont.CON500.con_contract_get_special_fields" modelaction="update"/> model="cont.CON500.con_contract_get_special_fields" modelaction="update"/>
<a:link id="${/parameter/@layout_code}${/parameter/@pre_layout}prj500_cdd_uploadFile_id" <a:link id="${/parameter/@layout_code}${/parameter/@pre_layout}prj500_cdd_uploadFile_id"
url="${/request/@context_path}/uploadFile.lview"/> url="${/request/@context_path}/uploadFile.lview"/>
...@@ -126,7 +129,7 @@ ...@@ -126,7 +129,7 @@
}); });
}; };
function check_empty(value){ function check_empty(value){
if(Ext.isEmpty(value)||typeof(value)=='undefined'||value==''||value==null){ if(Ext.isEmpty(value)||typeof(value)=='undefined'||value==''||value==null){
return true; return true;
}else{ }else{
...@@ -135,8 +138,10 @@ ...@@ -135,8 +138,10 @@
} }
//add by zhuxianfei //add by zhuxianfei
window['${/parameter/@layout_code}_quote_layout_dynamic_click'] = function () { window['${/parameter/@layout_code}_quote_layout_dynamic_click'] = function () {
var url; var url;
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project'); var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation'); var quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation');
...@@ -181,10 +186,10 @@ ...@@ -181,10 +186,10 @@
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item'); var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
var current_red= $(ds_id).getCurrentRecord(); var current_red= $(ds_id).getCurrentRecord();
if(division=='30' || division=='50'|| division=='99'){ if(division=='30' || division=='50'|| division=='99'){
var set_number=current_red.get('set_number'); var set_number=current_red.get('set_number');
var total_number=current_red.get('total_number'); var total_number=current_red.get('total_number');
if(total_number!=0 && set_number!=total_number){ if(total_number!=0 && set_number!=total_number){
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
Leaf.showMessage('${l:HLS.PROMPT}', '租赁物台数与查看明细中台数不一致,请重新维护!'); Leaf.showMessage('${l:HLS.PROMPT}', '租赁物台数与查看明细中台数不一致,请重新维护!');
return; return;
} }
...@@ -257,10 +262,10 @@ ...@@ -257,10 +262,10 @@
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item'); var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
var current_red= $(ds_id).getCurrentRecord(); var current_red= $(ds_id).getCurrentRecord();
if(division=='30' || division=='50'|| division=='99'){ if(division=='30' || division=='50'|| division=='99'){
var set_number=current_red.get('set_number'); var set_number=current_red.get('set_number');
var total_number=current_red.get('total_number'); var total_number=current_red.get('total_number');
if(total_number!=0 && set_number!=total_number){ if(total_number!=0 && set_number!=total_number){
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
Leaf.showMessage('${l:HLS.PROMPT}', '租赁物台数与查看明细中台数不一致,请重新维护!'); Leaf.showMessage('${l:HLS.PROMPT}', '租赁物台数与查看明细中台数不一致,请重新维护!');
return; return;
} }
...@@ -268,8 +273,7 @@ ...@@ -268,8 +273,7 @@
var cal_hd_price_list = record.get('cal_hd_price_list'); var cal_hd_price_list = record.get('cal_hd_price_list');
var price_list = record.get('price_list'); var price_list = record.get('price_list');
//追加二手机报价重算条件,选择了适用或者调整了利率组合则需要重算报价 //追加二手机报价重算条件,选择了适用或者调整了利率组合则需要重算报价
//追加二手机报价重算条件,选择了适用或者调整了利率组合则需要重算报价
var cal_hd_user_col_v06 = record.get('cal_hd_user_col_v06'); var cal_hd_user_col_v06 = record.get('cal_hd_user_col_v06');
var hd_user_col_v06 = record.get('hd_user_col_v06'); var hd_user_col_v06 = record.get('hd_user_col_v06');
var cal_btb_int_rate = record.get('cal_btb_int_rate'); var cal_btb_int_rate = record.get('cal_btb_int_rate');
...@@ -288,16 +292,18 @@ ...@@ -288,16 +292,18 @@
if(check_empty(int_rate_display)){ if(check_empty(int_rate_display)){
int_rate_display=0; int_rate_display=0;
} }
if(check_empty(cal_btb_int_rate)){ if(check_empty(cal_btb_int_rate)){
cal_btb_int_rate =0; cal_btb_int_rate =0;
} }
if(check_empty(cal_int_rate_display)){ if(check_empty(cal_int_rate_display)){
cal_int_rate_display=0; cal_int_rate_display=0;
} }
if ((cal_hd_price_list == price_list&&'${/parameter/@asset_fee_flag}'=='N') if ((cal_hd_price_list == price_list&&'${/parameter/@asset_fee_flag}'=='N')
||(cal_hd_price_list == price_list&&'${/parameter/@asset_fee_flag}'=='Y'&&cal_hd_user_col_v06==hd_user_col_v06 ||(cal_hd_price_list == price_list&&'${/parameter/@asset_fee_flag}'=='Y'&&cal_hd_user_col_v06==hd_user_col_v06
&&cal_btb_int_rate==btb_int_rate&&cal_int_rate_display==int_rate_display)) { &&cal_btb_int_rate==btb_int_rate&&cal_int_rate_display==int_rate_display)) {
//直接进入报价页面 //直接进入报价页面
var win = new Leaf.Window({ var win = new Leaf.Window({
id: 'hls_fin_calc_quotation_update_link_winid', id: 'hls_fin_calc_quotation_update_link_winid',
...@@ -623,9 +629,9 @@ ...@@ -623,9 +629,9 @@
$(score_ds_id).query(); $(score_ds_id).query();
} }
if (prj_project_lease_item_ds_id==ds.id){ if (prj_project_lease_item_ds_id==ds.id){
$(prj_quotation_ds_id).query(); $(prj_quotation_ds_id).query();
} }
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}; };
...@@ -702,7 +708,7 @@ ...@@ -702,7 +708,7 @@
var prj_quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation'); var prj_quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation');
var lease_item_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item'); var lease_item_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
var tenant_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC_INFO_1', 'prj_project'); var tenant_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC_INFO_1', 'prj_project');
//二手车资管费为否,隐藏组合利率组件及将字段设置为空 //二手车资管费为否,隐藏组合利率组件及将字段设置为空
if (prj_quotation_ds_id == ds.id) { if (prj_quotation_ds_id == ds.id) {
if (name == 'hd_user_col_v06') { if (name == 'hd_user_col_v06') {
if('${/parameter/@asset_fee_flag}'=='Y'){ if('${/parameter/@asset_fee_flag}'=='Y'){
...@@ -717,25 +723,27 @@ ...@@ -717,25 +723,27 @@
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){ if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id').style.display = 'none';
} }
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){ if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest'); $('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee'); $('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
} }
} else { } else {
record.getField('asset_id').setRequired(true); record.getField('asset_id').setRequired(true);
record.getField('asset_id_n').setRequired(true); record.getField('asset_id_n').setRequired(true);
//取消隐藏组件 //隐藏组件
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){ if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id').style.display = 'block';
} }
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){ if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_interest'); $('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_fee'); $('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_fee');
} }
} }
} }
} }
} }
if(tenant_ds_id == ds.id&&tenant_ds_id){ if(tenant_ds_id == ds.id&&tenant_ds_id){
if(name == 'send_message_n'){ if(name == 'send_message_n'){
...@@ -751,7 +759,7 @@ ...@@ -751,7 +759,7 @@
if (lease_item_ds_id == ds.id && lease_item_ds_id) { if (lease_item_ds_id == ds.id && lease_item_ds_id) {
if(division=='70'||division=='92'){ if(division=='70'){
record.getField('lease_name_n').setRequired(true); record.getField('lease_name_n').setRequired(true);
record.getField('brand_value').setRequired(true); record.getField('brand_value').setRequired(true);
record.getField('produce_date').setRequired(true); record.getField('produce_date').setRequired(true);
...@@ -924,91 +932,37 @@ ...@@ -924,91 +932,37 @@
} }
//add by niminmin //add by niminmin
//当“二次租赁”字段选择‘是’时,“回购合同编号”字段为必填。当选择‘否’时,“回购合同编号”字段为只读。 //当“二次租赁”字段选择‘是’时,“回购合同编号”字段为必填。当选择‘否’时,“回购合同编号”字段为只读。
if(record.get('division') !='91') { if (name == 'secondary_lease') {
if (name == 'secondary_lease') { if (value == 'YES') {
if (value == 'YES') { if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'block';
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
} else if (value == 'NO') {
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id', null);
record.set('repur_contract_id_n', null);
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'none';
}
}
}else {
//当“旧机二次租赁”、“新机二次租赁”中任意一个为“是”,则系统提示只能任选其一(两个都选择是,则提示)
//当“旧机二次租赁”、 “新机二次租赁”中任意一个为“是”,则校验结清合同号必填
if (name == 'secondary_lease_new'){
if (value == 'YES') {
if (record.get('secondary_lease') == 'YES') {
record.set('secondary_lease_new','NO');
record.set('secondary_lease_new_n','否');
Leaf.showMessage('${l:HLS.PROMPT}', '旧机二次租赁、新机二次租赁只能任选其一!');
return false;
}
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'block';
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
}else if (value == 'NO') {
if (record.get('secondary_lease') == 'NO') {
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id', null);
record.set('repur_contract_id_n', null);
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'none';
}
}
}
if (name == 'secondary_lease'){
if (value == 'YES') {
if (record.get('secondary_lease_new') == 'YES') {
record.set('secondary_lease','NO');
record.set('secondary_lease_n','否');
Leaf.showMessage('${l:HLS.PROMPT}', '旧机二次租赁、新机二次租赁只能任选其一!');
return false;
}
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'block';
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
}else if (value == 'NO') {
if (record.get('secondary_lease_new') == 'NO') {
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id', null);
record.set('repur_contract_id_n', null);
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'none';
}
} }
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
} else if (value == 'NO') {
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id', null);
record.set('repur_contract_id_n', null);
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'none';
}
} }
} }
//新增 “限制金额”字段; //新增 “限制金额”字段;
//“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改; //“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改;
if (name=='pay_method') { if (name=='pay_method') {
if(value=='CCB_THREE'||value=='CCB_TWO'){ if(value=='CCB_THREE'||value=='CCB_TWO'){
if(document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT')){
document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT_prompt').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT').style.display = 'block';
}
record.getField('deduction_limit').setRequired(true); record.getField('deduction_limit').setRequired(true);
if(Ext.isEmpty(record.get('deduction_limit'))){ if(Ext.isEmpty(record.get('deduction_limit'))){
record.set('deduction_limit',200000); record.set('deduction_limit',200000);
...@@ -1016,8 +970,10 @@ ...@@ -1016,8 +970,10 @@
}else{ }else{
record.getField('deduction_limit').setRequired(false); record.getField('deduction_limit').setRequired(false);
record.set('deduction_limit',null); record.set('deduction_limit',null);
if(document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT')){
document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT').style.display = 'none';
}
} }
} }
} }
...@@ -1063,21 +1019,27 @@ ...@@ -1063,21 +1019,27 @@
var quotation_record = $(prj_quotation_ds_id).getCurrentRecord(); var quotation_record = $(prj_quotation_ds_id).getCurrentRecord();
if ($(prj_project_ds_id).getAt(0).get('business_type') == 'LEASE') { if ($(prj_project_ds_id).getAt(0).get('business_type') == 'LEASE') {
if (value == 'HL_PRICR_E' || value == 'HL_PRICR_EN'){ if (value == 'HL_PRICR_E' || value == 'HL_PRICR_EN'){
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'block';
}
}else{ }else{
quotation_record.set('large_balance','NO'); quotation_record.set('large_balance','NO');
quotation_record.set('large_balance_n','否'); quotation_record.set('large_balance_n','否');
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'none';
}
} }
} }
} }
} }
} }
} }
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'none';
}
}; };
...@@ -1097,7 +1059,7 @@ ...@@ -1097,7 +1059,7 @@
if(division!='30' && division!='50'&& division!='99'){ if(division!='30' && division!='50'&& division!='99'){
$(gridId).hideColumn('machine_number_n'); $(gridId).hideColumn('machine_number_n');
} }
if((division=='70'||division=='92')&&division!=''){ if(division=='70'&&division!=''){
if(record!=''){ if(record!=''){
record.getField('lease_name_n').setRequired(true); record.getField('lease_name_n').setRequired(true);
record.getField('brand_value').setRequired(true); record.getField('brand_value').setRequired(true);
...@@ -1133,7 +1095,7 @@ ...@@ -1133,7 +1095,7 @@
$(gridId).hideColumn('created_by_n'); $(gridId).hideColumn('created_by_n');
} }
if (lease_item_ds_id == ds.id && lease_item_ds_id) { if (lease_item_ds_id == ds.id && lease_item_ds_id) {
if(division=='30'||division=='50'||division=='80'||division=='99'){ if(division=='30'||division=='50'||division=='80'|| division=='99'){
record.getField('set_number').setRequired(true); record.getField('set_number').setRequired(true);
}else{ }else{
record.getField('set_number').setReadOnly(true); record.getField('set_number').setReadOnly(true);
...@@ -1153,44 +1115,46 @@ ...@@ -1153,44 +1115,46 @@
record.getField('bp_id_n').setReadOnly(true); record.getField('bp_id_n').setReadOnly(true);
} }
} }
//现金流列表加载时隐藏资管费 18083 //现金流列表加载时隐藏资管费 18083
if(cashflow_ds_id == ds.id &&cashflow_ds_id){ if(cashflow_ds_id == ds.id &&cashflow_ds_id){
//var hd_user_col_v06 = $(cashflow_ds_id).getAt(0).get('hd_user_col_v06'); //var hd_user_col_v06 = $(cashflow_ds_id).getAt(0).get('hd_user_col_v06');
if('${/parameter/@asset_fee_flag}'=='N'||'${/parameter/@asset_fee_flag}'==''){ if('${/parameter/@asset_fee_flag}'=='N'||'${/parameter/@asset_fee_flag}'==''){
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
}
}else{
if(Ext.isEmpty($(cashflow_ds_id).getAt(0))){
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
}
}else{
if (Ext.isEmpty($(cashflow_ds_id).getAt(0).get('hd_user_col_v06'))) {
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
}
}else{
if($(cashflow_ds_id).getAt(0).get('hd_user_col_v06')=='N'){
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){ if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest'); $('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee'); $('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
} }
}else{
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_fee');
}
}
}
}
}
}
}else{
if(Ext.isEmpty($(cashflow_ds_id).getAt(0))){
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
}
}else{
if (Ext.isEmpty($(cashflow_ds_id).getAt(0).get('hd_user_col_v06'))) {
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
}
}else{
if($(cashflow_ds_id).getAt(0).get('hd_user_col_v06')=='N'){
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
}
}else{
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_fee');
}
}
}
}
}
}
}; };
...@@ -1205,6 +1169,7 @@ ...@@ -1205,6 +1169,7 @@
} }
var division=''; var division='';
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function (ds, record, config_records, bp_seq) { window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function (ds, record, config_records, bp_seq) {
var tenant_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC_INFO_1', 'prj_project'); var tenant_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC_INFO_1', 'prj_project');
if(tenant_ds_id == ds.id){ if(tenant_ds_id == ds.id){
...@@ -1236,81 +1201,51 @@ ...@@ -1236,81 +1201,51 @@
//新增 “限制金额”字段; //新增 “限制金额”字段;
//“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改; //“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改;
if (record.get('pay_method') == 'CCB_THREE'||record.get('pay_method') == 'CCB_TWO') { if (record.get('pay_method') == 'CCB_THREE'||record.get('pay_method') == 'CCB_TWO') {
if(document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT')){
document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT_prompt').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT').style.display = 'block';
}
record.getField('deduction_limit').setRequired(true); record.getField('deduction_limit').setRequired(true);
} else { } else {
if(document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT')){
document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT').style.display = 'none';
}
record.getField('deduction_limit').setRequired(false); record.getField('deduction_limit').setRequired(false);
} }
if('${/parameter/@function_usage}'!='QUERY') { if ('${/parameter/@function_usage}' != 'QUERY') {
if(division!='91') { if (record.get('secondary_lease') == 'YES') {
if (record.get('secondary_lease') == 'YES') { if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'block';
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
} else if (record.get('secondary_lease') == 'NO') {
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id', null);
record.set('repur_contract_id_n', null);
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'none';
}
//“新机二次租赁”字段仅展示在神钢产品线的页面中,其余产品线不展示
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW').style.display = 'none';
}else {
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW').style.display = 'block';
// 神钢建机时,当“旧机二次租赁”、 “新机二次租赁”中任意一个为“是”,则校验结清合同号必填
if (record.get('secondary_lease') == 'YES' || record.get('secondary_lease_new') == 'YES') {
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'block';
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
} else if (record.get('secondary_lease') == 'NO' && record.get('secondary_lease_new') == 'NO') {
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id', null);
record.set('repur_contract_id_n', null);
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'none';
} }
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
} else if (record.get('secondary_lease') == 'NO') {
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id', null);
record.set('repur_contract_id_n', null);
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'none';
}
} }
} else { } else {
if(division!='91') { if (record.get('secondary_lease') == 'YES') {
if (record.get('secondary_lease') == 'YES') { if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'block';
} else if (record.get('secondary_lease') == 'NO') {
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'none';
}
//“新机二次租赁”字段仅展示在神钢产品线的页面中,其余产品线不展示
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW').style.display = 'none';
}else {
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW').style.display = 'block';
// 神钢建机时,当“旧机二次租赁”、 “新机二次租赁”中任意一个为“是”,则校验结清合同号必填
if (record.get('secondary_lease') == 'YES' || record.get('secondary_lease_new') == 'YES') {
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'block';
} else if (record.get('secondary_lease') == 'NO' && record.get('secondary_lease_new') == 'NO') {
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'none';
} }
} else if (record.get('secondary_lease') == 'NO') {
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'none';
}
} }
} }
//业务类型回租时,默认只读“首付款抵扣”选项 //业务类型回租时,默认只读“首付款抵扣”选项
...@@ -1330,9 +1265,12 @@ ...@@ -1330,9 +1265,12 @@
} }
if ('${/parameter/@function_usage}' != 'QUERY') { if ('${/parameter/@function_usage}' != 'QUERY') {
if (division == '92') { //云南铁拳并入二手机,调整租金支付方式为必填
if (division == '70') {
if('${/parameter/@division_detail}'=='03'||'${/parameter/@division_detail}'=='02'){
record.getField('pay_method').setReadOnly(false); record.getField('pay_method').setReadOnly(false);
record.getField('pay_method_n').setReadOnly(false); record.getField('pay_method_n').setReadOnly(false);
}
} }
} }
...@@ -1361,15 +1299,17 @@ ...@@ -1361,15 +1299,17 @@
var bp_code='${/model/user_agent_description/record/@bp_code}'; var bp_code='${/model/user_agent_description/record/@bp_code}';
var credit_record = $(ds_id).getCurrentRecord(); var credit_record = $(ds_id).getCurrentRecord();
var invoice_agent_id=record.get('invoice_agent_id'); var invoice_agent_id=record.get('invoice_agent_id');
if(!Ext.isEmpty(description) && description == 'AGENT'){ //博雷顿展示 授信额度占用 字段
if(division !='93') {
if(!Ext.isEmpty(description) && description == 'AGENT'){
if(!Ext.isEmpty(bp_code)){ if(!Ext.isEmpty(bp_code)){
if((division=='80'||division=='30'||division=='50'|| division=='99') && bp_code !== 'D00010019'){ if((division=='80'||division=='30'||division=='50'|| division=='99') && bp_code !== 'D00010019'){
credit_record.set('credit_line','TENANT'); credit_record.set('credit_line','TENANT');
credit_record.set('credit_line_n','承租人'); credit_record.set('credit_line_n','承租人');
}
}
} }
}
}
if(!Ext.isEmpty(description) && description == 'AGENT'){ if(!Ext.isEmpty(description) && description == 'AGENT'){
if(!Ext.isEmpty(bp_code)){ if(!Ext.isEmpty(bp_code)){
if(bp_code !== 'D00000026' && bp_code !== 'D00000029' && bp_code !== 'D00000030' && bp_code !== 'D00000031'){ if(bp_code !== 'D00000026' && bp_code !== 'D00000029' && bp_code !== 'D00000030' && bp_code !== 'D00000031'){
...@@ -1382,17 +1322,20 @@ ...@@ -1382,17 +1322,20 @@
credit_record.getField('credit_line_n').setRequired(false); credit_record.getField('credit_line_n').setRequired(false);
}else { } else {
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE_prompt').style.display = 'none'; if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE').style.display = 'none';
}
}
} }
} }
} else {
credit_record.getField('credit_line').setReadOnly(true);
credit_record.getField('credit_line_n').setReadOnly(true);
credit_record.getField('credit_line').setRequired(false);
credit_record.getField('credit_line_n').setRequired(false);
} }
}else {
credit_record.getField('credit_line').setReadOnly(true);
credit_record.getField('credit_line_n').setReadOnly(true);
credit_record.getField('credit_line').setRequired(false);
credit_record.getField('credit_line_n').setRequired(false);
} }
} }
//只读页面隐藏保存按钮 //只读页面隐藏保存按钮
...@@ -1402,17 +1345,16 @@ ...@@ -1402,17 +1345,16 @@
} }
} }
if (prj_quotation_ds_id == ds.id && prj_quotation_ds_id){ if (prj_quotation_ds_id == ds.id && prj_quotation_ds_id){
//产品线维护了组合利率的调整加载事件显示 //产品线维护了组合利率的调整加载事件显示
if('${/parameter/@asset_fee_flag}'=='N'||'${/parameter/@asset_fee_flag}'==''){ if('${/parameter/@asset_fee_flag}'=='N'||'${/parameter/@asset_fee_flag}'==''){
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){ if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id').style.display = 'none';
} }
record.getField('hd_user_col_v06').setRequired(false); record.getField('hd_user_col_v06').setRequired(false);
record.getField('hd_user_col_v06_n').setRequired(false); record.getField('hd_user_col_v06_n').setRequired(false);
record.getField('asset_id').setRequired(false); record.getField('asset_id').setRequired(false);
record.getField('asset_id_n').setRequired(false); record.getField('asset_id_n').setRequired(false);
}else{ }else{
if (check_empty(record.get('hd_user_col_v06'))||record.get('hd_user_col_v06')=='N' ) { if (check_empty(record.get('hd_user_col_v06'))||record.get('hd_user_col_v06')=='N' ) {
record.set('asset_id', null); record.set('asset_id', null);
...@@ -1423,7 +1365,7 @@ ...@@ -1423,7 +1365,7 @@
record.getField('asset_id_n').setRequired(false); record.getField('asset_id_n').setRequired(false);
//隐藏组件 //隐藏组件
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){ if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id').style.display = 'none';
} }
}else{ }else{
...@@ -1440,47 +1382,66 @@ ...@@ -1440,47 +1382,66 @@
record.getField('customer_margin').setReadOnly(true); record.getField('customer_margin').setReadOnly(true);
record.getField('customer_margin_n').setReadOnly(true); record.getField('customer_margin_n').setReadOnly(true);
} }
if(division!='70'&&division!='92'&&division!=''){ if(division!='70'&&division!=''){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN').style.display = 'none' if(division != '93'){
; if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN').style.display = 'none';
}
}
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_BRAND_VALUE')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_BRAND_VALUE_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_BRAND_VALUE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_BRAND_VALUE').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_BRAND_VALUE').style.display = 'none';
}
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_MODELCD')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_MODELCD_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_MODELCD_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_MODELCD').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_MODELCD').style.display = 'none';
}
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_USING_HOUR')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_USING_HOUR_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_USING_HOUR_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_USING_HOUR').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_USING_HOUR').style.display = 'none';
}
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_RESIDUAL_VALUE_AMOUNT')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_RESIDUAL_VALUE_AMOUNT_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_RESIDUAL_VALUE_AMOUNT_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_RESIDUAL_VALUE_AMOUNT').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_RESIDUAL_VALUE_AMOUNT').style.display = 'none';
}
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OWNERSHIP_FLAG')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OWNERSHIP_FLAG_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OWNERSHIP_FLAG_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OWNERSHIP_FLAG').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OWNERSHIP_FLAG').style.display = 'none';
}
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_PRODUCE_DATE')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_PRODUCE_DATE_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_PRODUCE_DATE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_PRODUCE_DATE').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_PRODUCE_DATE').style.display = 'none';
}
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CONTRACT_AMOUNT')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CONTRACT_AMOUNT_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CONTRACT_AMOUNT_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CONTRACT_AMOUNT').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CONTRACT_AMOUNT').style.display = 'none';
}else if((division=='70'||division=='92')&&division!=''){ }
}else if((division=='70')&&division!=''){
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OTHER_FEE')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OTHER_FEE_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OTHER_FEE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OTHER_FEE').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OTHER_FEE').style.display = 'none';
}
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_THIRD_PARTY_DEPOSIT')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_THIRD_PARTY_DEPOSIT_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_THIRD_PARTY_DEPOSIT_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_THIRD_PARTY_DEPOSIT').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_THIRD_PARTY_DEPOSIT').style.display = 'none';
}
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OTHER_FEE2')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OTHER_FEE2_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OTHER_FEE2_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OTHER_FEE2').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OTHER_FEE2').style.display = 'none';
}
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'none';
} }
if (division=='92' && division != '') { //北京心诚与云南铁拳隐藏承租人保证金字段 18083 2023/5/24
if('${/parameter/@division_detail}'=='03'||'${/parameter/@division_detail}'=='02'){
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN').style.display = 'none' document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN').style.display = 'none'
; }
}
} }
var bp_code = '${/model/user_agent_description/record/@bp_code}'; var bp_code = '${/model/user_agent_description/record/@bp_code}';
if (!Ext.isEmpty(bp_code)){ if (!Ext.isEmpty(bp_code)){
...@@ -1492,30 +1453,46 @@ ...@@ -1492,30 +1453,46 @@
var quotation_record = $(prj_quotation_ds_id).getCurrentRecord(); var quotation_record = $(prj_quotation_ds_id).getCurrentRecord();
if ($(ds_id).getAt(0).get('business_type') == 'LEASE') { if ($(ds_id).getAt(0).get('business_type') == 'LEASE') {
if (quotation_record.get('price_list') == 'HL_PRICR_E' || quotation_record.get('price_list') == 'HL_PRICR_EN'){ if (quotation_record.get('price_list') == 'HL_PRICR_E' || quotation_record.get('price_list') == 'HL_PRICR_EN'){
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'block';
}
}else{ }else{
quotation_record.set('large_balance','NO'); quotation_record.set('large_balance','NO');
quotation_record.set('large_balance_n','否'); quotation_record.set('large_balance_n','否');
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'none';
}
} }
} }
}else{ }else{
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'none';
}
} }
}else { }else {
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'none';
}
} }
} }
var score_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail'); var score_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail');
if (score_ds_id == ds.id) { if (score_ds_id == ds.id) {
if (division != '70' && division != '') { if (division != '70' && division != '') {
if(document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE')){
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE').style.display = 'none';
} }
//铁甲细分非产品线细分一隐藏铁甲评分
}else if(division == '70' && division != '' && ('${/parameter/@division_detail}'=='03'||'${/parameter/@division_detail}'=='02')){
if(document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE')){
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE').style.display = 'none';
}
}
if (!record.get('score_name')) { if (!record.get('score_name')) {
if ($(ds_id).getCurrentRecord()) { if ($(ds_id).getCurrentRecord()) {
var score_name = $(ds_id).getCurrentRecord().get('legal_person') || $(ds_id).getCurrentRecord().get('bp_id_tenant_n'); var score_name = $(ds_id).getCurrentRecord().get('legal_person') || $(ds_id).getCurrentRecord().get('bp_id_tenant_n');
...@@ -1523,8 +1500,10 @@ ...@@ -1523,8 +1500,10 @@
} }
} }
} }
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'none';
}
}; };
//pdf预览 add by zhuxianfei //pdf预览 add by zhuxianfei
...@@ -1558,7 +1537,7 @@ ...@@ -1558,7 +1537,7 @@
var billing_url = '${/request/@context_path}/autocrud/prj.PRJ501N.prj_project_bp/query?project_id=${/parameter/@project_id}'; var billing_url = '${/request/@context_path}/autocrud/prj.PRJ501N.prj_project_bp/query?project_id=${/parameter/@project_id}';
$(billing_ds_id).setQueryUrl(billing_url); $(billing_ds_id).setQueryUrl(billing_url);
$(billing_ds_id).query(); $(billing_ds_id).query();
//不为租赁二手机业务时隐藏资管费相关字段及费率 18083 2023/1/15 //不为租赁二手机业务时隐藏资管费相关字段及费率 18083 2023/1/15
if('${/parameter/@asset_fee_flag}'=='N'){ if('${/parameter/@asset_fee_flag}'=='N'){
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06')){ if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06').style.display = 'none';
...@@ -1568,11 +1547,15 @@ ...@@ -1568,11 +1547,15 @@
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){ if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id').style.display = 'none';
} }
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){ if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest'); $('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee'); $('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
} }
} }
}); });
//序号自增 add by lijingjing //序号自增 add by lijingjing
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_add'] = function (ds, record, config_records, bp_seq) { window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_add'] = function (ds, record, config_records, bp_seq) {
...@@ -1681,26 +1664,36 @@ ...@@ -1681,26 +1664,36 @@
if (bp_tenant_detail_r) { if (bp_tenant_detail_r) {
for (var key in bp_tenant_detail_r.data) { for (var key in bp_tenant_detail_r.data) {
if(division!='70'){ if(division!='70'){
if (key != 'bp_detail_id' && key != 'score_name'&& key != 'contract_id' && key != 'bp_age' && key != 'project_id' && key != 'third_party_credibility' && key != 'third_party_credibility_n'&& key != 'third_guar_score'&& key != 'tj_score' ) { if (key != 'bp_detail_id' && key != 'division' && key != 'score_name'&& key != 'contract_id' && key != 'bp_age' && key != 'project_id' && key != 'third_party_credibility' && key != 'third_party_credibility_n'&& key != 'third_guar_score'&& key != 'tj_score' ) {
//if (!bp_tenant_detail_r.get(key)) {
if (typeof bp_tenant_detail_r.get(key) == "null" || typeof bp_tenant_detail_r.get(key) == "undefined" || bp_tenant_detail_r.get(key) === "") { if (typeof bp_tenant_detail_r.get(key) == "null" || typeof bp_tenant_detail_r.get(key) == "undefined" || bp_tenant_detail_r.get(key) === "") {
Leaf.showInfoMessage("提示", "承租人评分信息区域的所有字段,除\"第三方担保附件分数\"外,其他都为必输字段,请填写!"); Leaf.showInfoMessage("提示", "承租人评分信息区域的所有字段,除\"第三方担保附件分数\"外,其他都为必输字段,请填写!");
return; return;
} }
} }
}else{ }else{
if (key != 'bp_detail_id' && key != 'score_name'&& key != 'contract_id' && key != 'bp_age' && key != 'project_id' && key != 'third_party_credibility' && key != 'third_party_credibility_n'&& key != 'third_guar_score' ) { if('${/parameter/@division_detail}'=='03'||'${/parameter/@division_detail}'=='02'){
//if (!bp_tenant_detail_r.get(key)) { if (key != 'bp_detail_id' && key != 'division' && key != 'score_name' && key != 'bp_age'&& key != 'contract_id' && key != 'project_id' && key != 'third_party_credibility' && key != 'third_party_credibility_n'&& key != 'third_guar_score'&&key != 'tj_score') {
if (typeof bp_tenant_detail_r.get(key) == "null" || typeof bp_tenant_detail_r.get(key) == "undefined" || bp_tenant_detail_r.get(key) === "") { if (typeof bp_tenant_detail_r.get(key) == "null" || typeof bp_tenant_detail_r.get(key) == "undefined" || bp_tenant_detail_r.get(key) === "") {
Leaf.showInfoMessage("提示", "承租人评分信息区域的所有字段,除\"第三方担保附件得分\"外,其他都为必输字段,请填写!");
bp_rate_flag = false;
break;
}else{
bp_rate_flag = true;
}
}
}else{
if (key != 'bp_detail_id' && key != 'division' && key != 'score_name'&& key != 'contract_id' && key != 'bp_age' && key != 'project_id' && key != 'third_party_credibility' && key != 'third_party_credibility_n'&& key != 'third_guar_score' ) {
if (typeof bp_tenant_detail_r.get(key) == "null" || typeof bp_tenant_detail_r.get(key) == "undefined" || bp_tenant_detail_r.get(key) === "") {
Leaf.showInfoMessage("提示", "承租人评分信息区域的所有字段,除\"第三方担保附件分数\"外,其他都为必输字段,请填写!"); Leaf.showInfoMessage("提示", "承租人评分信息区域的所有字段,除\"第三方担保附件分数\"外,其他都为必输字段,请填写!");
return; return;
} }
} }
}
} }
} }
} }
if(current_record.get('division')=='70' || current_record.get('division')=='92'){ if(current_record.get('division')=='70'){
var bp_number; var bp_number;
$L.request({ $L.request({
url: '${/request/@context_path}/autocrud/prj.PRJ500N.get_bp_address/query', url: '${/request/@context_path}/autocrud/prj.PRJ500N.get_bp_address/query',
...@@ -1776,10 +1769,10 @@ ...@@ -1776,10 +1769,10 @@
var show = down_payment_rate_new * 100; var show = down_payment_rate_new * 100;
if ((price_list == 'HL_PRICR_E' || price_list == 'HL_PRICR_TEST' || price_list == 'HL_PRICR_NTEST' || price_list == 'HL_PRICR_EN') && secondary_lease == 'NO') { if ((price_list == 'HL_PRICR_E' || price_list == 'HL_PRICR_TEST' || price_list == 'HL_PRICR_NTEST' || price_list == 'HL_PRICR_EN') && secondary_lease == 'NO') {
if ((div((H16 + H97), (H99 + H102 - H16)).toFixed(2) * 1) < down_payment_rate_new) { if ((div((H16 + H97), (H99 + H102 - H16)).toFixed(2) * 1) < down_payment_rate_new) {
if(current_record.get('division')!='91'){ if(current_record.get('division')!='91'&&current_record.get('division')!='93'){
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
Leaf.showMessage('${l:PROMPT}', '首付款比例+首付款保证金比例之和不能低于' + down_payment_rate_new * 100 + '%'); Leaf.showMessage('${l:PROMPT}', '首付款比例+首付款保证金比例之和不能低于' + down_payment_rate_new * 100 + '%');
return; return;
} }
} }
} }
...@@ -1875,9 +1868,9 @@ ...@@ -1875,9 +1868,9 @@
if ((price_list == 'HL_PRICR_E' || price_list == 'HL_PRICR_TEST' || price_list == 'HL_PRICR_NTEST' || price_list == 'HL_PRICR_EN') && secondary_lease == 'NO') { if ((price_list == 'HL_PRICR_E' || price_list == 'HL_PRICR_TEST' || price_list == 'HL_PRICR_NTEST' || price_list == 'HL_PRICR_EN') && secondary_lease == 'NO') {
if ((div((H16 + H97), (H99 + H102 - H16)).toFixed(2) * 1) < down_payment_rate_new) { if ((div((H16 + H97), (H99 + H102 - H16)).toFixed(2) * 1) < down_payment_rate_new) {
if(current_record.get('division')!='91'&&current_record.get('division')!='93') { if(current_record.get('division')!='91'&&current_record.get('division')!='93') {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
Leaf.showMessage('${l:PROMPT}', '首付款比例+首付款保证金比例之和不能低于' + down_payment_rate_new * 100 + '%'); Leaf.showMessage('${l:PROMPT}', '首付款比例+首付款保证金比例之和不能低于' + down_payment_rate_new * 100 + '%');
return; return;
} }
} }
} }
...@@ -1894,7 +1887,7 @@ ...@@ -1894,7 +1887,7 @@
var lease_item_amount=record.get('lease_item_amount'); var lease_item_amount=record.get('lease_item_amount');
var residual_value=record.get('residual_value'); var residual_value=record.get('residual_value');
var q_value=records.get('q_value'); var q_value=records.get('q_value');
if(total_price!=lease_item_amount &&total_price!=null){ if(total_price!=lease_item_amount &&total_price!=null){
Leaf.showMessage('${l:PROMPT}', '支付计划页面“设备价格”字段值与租赁物明细“设备单价(总)”合计不相等,无法进行提交!'); Leaf.showMessage('${l:PROMPT}', '支付计划页面“设备价格”字段值与租赁物明细“设备单价(总)”合计不相等,无法进行提交!');
return; return;
...@@ -1953,7 +1946,7 @@ ...@@ -1953,7 +1946,7 @@
var total_price=records.get('total_price'); var total_price=records.get('total_price');
var lease_item_amount=record.get('lease_item_amount'); var lease_item_amount=record.get('lease_item_amount');
var residual_value=record.get('residual_value'); var residual_value=record.get('residual_value');
var q_value=records.get('q_value'); var q_value=records.get('q_value');
if(total_price!=lease_item_amount &&total_price!=null){ if(total_price!=lease_item_amount &&total_price!=null){
Leaf.showMessage('${l:PROMPT}', '支付计划页面“设备价格”字段值与租赁物明细“设备单价(总)”合计不相等,无法进行提交!'); Leaf.showMessage('${l:PROMPT}', '支付计划页面“设备价格”字段值与租赁物明细“设备单价(总)”合计不相等,无法进行提交!');
...@@ -2090,31 +2083,22 @@ ...@@ -2090,31 +2083,22 @@
return false; return false;
} }
if (record.get('signing_city')){ if (record.get('signing_city')){
// var reg = /^([\u2E80-\u9FFF]){4,}$/;
var reg = /^(.){4,}$/; // var reg = /^(.){4,}$/;
if (!reg.test(record.get('signing_city'))) { // if (!reg.test(record.get('signing_city'))) {
$L.showErrorMessage('提示', '合同签订地建议格式:“xx市xx区”(也可填写详细地址)!'); // $L.showErrorMessage('提示', '合同签订地建议格式:“xx市xx区”(也可填写详细地址)!');
return false; // return false;
// }
if (record.get('signing_city').indexOf('州') == -1 && record.get('signing_city').indexOf('县') == -1 && record.get('signing_city').indexOf('区') == -1) {
Leaf.showConfirm('${HLS.PROMPT}', '合同签订地所填写内容,未细化到区/县/州级别,是否确认?', function () {});
} }
} }
} }
if (bp_tenant_detail_r && ds.id == prj_project_ds_id) { if (bp_tenant_detail_r && ds.id == prj_project_ds_id) {
for (var key in bp_tenant_detail_r.data) { for (var key in bp_tenant_detail_r.data) {
if(division != '70'&&division!='92'){ if(division != '70'){
if (key != 'bp_detail_id' && key != 'score_name' && key != 'bp_age'&& key != 'contract_id' && key != 'project_id' && key != 'third_party_credibility' && key != 'third_party_credibility_n'&& key != 'third_guar_score'&&key != 'tj_score') { if (key != 'bp_detail_id' && key != 'division' && key != 'score_name' && key != 'bp_age'&& key != 'contract_id' && key != 'project_id' && key != 'third_party_credibility' && key != 'third_party_credibility_n'&& key != 'third_guar_score'&&key != 'tj_score') {
//if (!bp_tenant_detail_r.get(key)) { if (typeof bp_tenant_detail_r.get(key) == "null" || typeof bp_tenant_detail_r.get(key) == "undefined" || bp_tenant_detail_r.get(key) === "") {
if (typeof bp_tenant_detail_r.get(key) == "null" || typeof bp_tenant_detail_r.get(key) == "undefined" || bp_tenant_detail_r.get(key) === "") {
Leaf.showInfoMessage("提示", "承租人评分信息区域的所有字段,除\"第三方担保附件得分\"外,其他都为必输字段,请填写!");
bp_rate_flag = false;
break;
} else {
bp_rate_flag = true;
}
}
}else if(division == '92'){
if (key != 'bp_detail_id' && key != 'score_name' && key != 'bp_age'&& key != 'contract_id' && key != 'project_id' && key != 'third_party_credibility' && key != 'third_party_credibility_n'&& key != 'third_guar_score'&&key != 'tj_score') {
//if (!bp_tenant_detail_r.get(key)) {
if (typeof bp_tenant_detail_r.get(key) == "null" || typeof bp_tenant_detail_r.get(key) == "undefined" || bp_tenant_detail_r.get(key) === "") {
Leaf.showInfoMessage("提示", "承租人评分信息区域的所有字段,除\"第三方担保附件得分\"外,其他都为必输字段,请填写!"); Leaf.showInfoMessage("提示", "承租人评分信息区域的所有字段,除\"第三方担保附件得分\"外,其他都为必输字段,请填写!");
bp_rate_flag = false; bp_rate_flag = false;
break; break;
...@@ -2123,8 +2107,8 @@ ...@@ -2123,8 +2107,8 @@
} }
} }
}else{ }else{
if('${/parameter/@division_detail}'=='03'){ if('${/parameter/@division_detail}'=='03'||'${/parameter/@division_detail}'=='02'){
if (key != 'bp_detail_id' && key != 'score_name' && key != 'bp_age'&& key != 'contract_id' && key != 'project_id' && key != 'third_party_credibility' && key != 'third_party_credibility_n'&& key != 'third_guar_score'&&key != 'tj_score') { if (key != 'bp_detail_id' && key != 'division' && key != 'score_name' && key != 'bp_age'&& key != 'contract_id' && key != 'project_id' && key != 'third_party_credibility' && key != 'third_party_credibility_n'&& key != 'third_guar_score'&&key != 'tj_score') {
if (typeof bp_tenant_detail_r.get(key) == "null" || typeof bp_tenant_detail_r.get(key) == "undefined" || bp_tenant_detail_r.get(key) === "") { if (typeof bp_tenant_detail_r.get(key) == "null" || typeof bp_tenant_detail_r.get(key) == "undefined" || bp_tenant_detail_r.get(key) === "") {
Leaf.showInfoMessage("提示", "承租人评分信息区域的所有字段,除\"第三方担保附件得分\"外,其他都为必输字段,请填写!"); Leaf.showInfoMessage("提示", "承租人评分信息区域的所有字段,除\"第三方担保附件得分\"外,其他都为必输字段,请填写!");
bp_rate_flag = false; bp_rate_flag = false;
...@@ -2134,8 +2118,7 @@ ...@@ -2134,8 +2118,7 @@
} }
} }
}else{ }else{
if (key != 'bp_detail_id' && key != 'score_name' && key != 'bp_age'&& key != 'contract_id' && key != 'project_id' && key != 'third_party_credibility' && key != 'third_party_credibility_n'&& key != 'third_guar_score') { if (key != 'bp_detail_id' && key != 'division' && key != 'score_name' && key != 'bp_age'&& key != 'contract_id' && key != 'project_id' && key != 'third_party_credibility' && key != 'third_party_credibility_n'&& key != 'third_guar_score') {
//if (!bp_tenant_detail_r.get(key)) {
if (typeof bp_tenant_detail_r.get(key) == "null" || typeof bp_tenant_detail_r.get(key) == "undefined" || bp_tenant_detail_r.get(key) === "") { if (typeof bp_tenant_detail_r.get(key) == "null" || typeof bp_tenant_detail_r.get(key) == "undefined" || bp_tenant_detail_r.get(key) === "") {
Leaf.showInfoMessage("提示", "承租人评分信息区域的所有字段,除\"第三方担保附件得分\"外,其他都为必输字段,请填写!"); Leaf.showInfoMessage("提示", "承租人评分信息区域的所有字段,除\"第三方担保附件得分\"外,其他都为必输字段,请填写!");
bp_rate_flag = false; bp_rate_flag = false;
...@@ -2161,6 +2144,7 @@ ...@@ -2161,6 +2144,7 @@
var secondary_lease = project_record.get('secondary_lease'); var secondary_lease = project_record.get('secondary_lease');
return true; return true;
}; };
//附件打包下载 //附件打包下载
......
...@@ -13,11 +13,12 @@ ...@@ -13,11 +13,12 @@
<a:model-query fetchAll="true" model="prj.PRJ500D.user_agent_description" rootPath="user_agent_description"/> <a:model-query fetchAll="true" model="prj.PRJ500D.user_agent_description" rootPath="user_agent_description"/>
<a:model-query fetchAll="true" model="zjwfl.ZJWFL1060.zi_wfl_approve_get_submitted" rootPath="approve_history_rp"/> <a:model-query fetchAll="true" model="zjwfl.ZJWFL1060.zi_wfl_approve_get_submitted" rootPath="approve_history_rp"/>
<a:model-query fetchAll="true" model="prj.PRJ500D.prj_project_get_asset_fee_flag" rootPath="asset_fee_path" ></a:model-query> <a:model-query fetchAll="true" model="prj.PRJ500D.prj_project_get_asset_fee_flag" rootPath="asset_fee_path" ></a:model-query>
<s:server-script import="contract_print_path.js"><![CDATA[ <a:model-query fetchAll="true" model="prj.PRJ500D.prj_project_get_division_detail" rootPath="division_detail_path" ></a:model-query>
<s:server-script import="contract_print_path.js"><![CDATA[
$ctx.parameter.file_path = con_print_path['con_print_path']; $ctx.parameter.file_path = con_print_path['con_print_path'];
$ctx.parameter.tomcat_source = con_print_path['tomcat_source']; $ctx.parameter.tomcat_source = con_print_path['tomcat_source'];
$ctx.parameter.asset_fee_flag = $ctx.get('/model/asset_fee_path/record/@asset_fee_flag');
$ctx.parameter.asset_fee_flag = $ctx.get('/model/asset_fee_path/record/@asset_fee_flag'); $ctx.parameter.division_detail = $ctx.get('/model/division_detail_path/record/@division_detail');
]]></s:server-script> ]]></s:server-script>
</a:init-procedure> </a:init-procedure>
<a:view> <a:view>
...@@ -117,7 +118,7 @@ ...@@ -117,7 +118,7 @@
}); });
}; };
function check_empty(value){ function check_empty(value){
if(Ext.isEmpty(value)||typeof(value)=='undefined'||value==''||value==null){ if(Ext.isEmpty(value)||typeof(value)=='undefined'||value==''||value==null){
return true; return true;
}else{ }else{
...@@ -126,6 +127,7 @@ ...@@ -126,6 +127,7 @@
} }
//add by zhuxianfei //add by zhuxianfei
window['${/parameter/@layout_code}_quote_layout_dynamic_click'] = function () { window['${/parameter/@layout_code}_quote_layout_dynamic_click'] = function () {
...@@ -229,34 +231,34 @@ ...@@ -229,34 +231,34 @@
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
var cal_hd_price_list = record.get('cal_hd_price_list'); var cal_hd_price_list = record.get('cal_hd_price_list');
var price_list = record.get('price_list'); var price_list = record.get('price_list');
//追加二手机报价重算条件,选择了适用或者调整了利率组合则需要重算报价 //追加二手机报价重算条件,选择了适用或者调整了利率组合则需要重算报价
var cal_hd_user_col_v06 = record.get('cal_hd_user_col_v06'); var cal_hd_user_col_v06 = record.get('cal_hd_user_col_v06');
var hd_user_col_v06 = record.get('hd_user_col_v06'); var hd_user_col_v06 = record.get('hd_user_col_v06');
var cal_btb_int_rate = record.get('cal_btb_int_rate'); var cal_btb_int_rate = record.get('cal_btb_int_rate');
var btb_int_rate = record.get('btb_int_rate'); var btb_int_rate = record.get('btb_int_rate');
var cal_int_rate_display = record.get('cal_int_rate_display'); var cal_int_rate_display = record.get('cal_int_rate_display');
var int_rate_display = record.get('int_rate_display'); var int_rate_display = record.get('int_rate_display');
if(check_empty(cal_hd_user_col_v06)){ if(check_empty(cal_hd_user_col_v06)){
cal_hd_user_col_v06='N'; cal_hd_user_col_v06='N';
} }
if(check_empty(hd_user_col_v06)){ if(check_empty(hd_user_col_v06)){
hd_user_col_v06='N'; hd_user_col_v06='N';
} }
if(check_empty(btb_int_rate)){ if(check_empty(btb_int_rate)){
btb_int_rate=0; btb_int_rate=0;
} }
if(check_empty(int_rate_display)){ if(check_empty(int_rate_display)){
int_rate_display=0; int_rate_display=0;
} }
if(check_empty(cal_btb_int_rate)){ if(check_empty(cal_btb_int_rate)){
cal_btb_int_rate =0; cal_btb_int_rate =0;
} }
if(check_empty(cal_int_rate_display)){ if(check_empty(cal_int_rate_display)){
cal_int_rate_display=0; cal_int_rate_display=0;
} }
if ((cal_hd_price_list == price_list&&'${/parameter/@asset_fee_flag}'=='N') if ((cal_hd_price_list == price_list&&'${/parameter/@asset_fee_flag}'=='N')
||(cal_hd_price_list == price_list&&'${/parameter/@asset_fee_flag}'=='Y'&&cal_hd_user_col_v06==hd_user_col_v06 ||(cal_hd_price_list == price_list&&'${/parameter/@asset_fee_flag}'=='Y'&&cal_hd_user_col_v06==hd_user_col_v06
&&cal_btb_int_rate==btb_int_rate&&cal_int_rate_display==int_rate_display)) { &&cal_btb_int_rate==btb_int_rate&&cal_int_rate_display==int_rate_display)) {
//直接进入报价页面 //直接进入报价页面
...@@ -375,10 +377,9 @@ ...@@ -375,10 +377,9 @@
} }
if (bp_tenant_detail_r && ds.id == prj_project_ds_id) { if (bp_tenant_detail_r && ds.id == prj_project_ds_id) {
for (var key in bp_tenant_detail_r.data) { for (var key in bp_tenant_detail_r.data) {
if(division!='70'&&division != '92'){ if(division!='70'){
if (key != 'bp_detail_id' && key != 'score_name' && key != 'bp_age' && key != 'project_id'&& key != 'third_party_credibility' && key != 'third_party_credibility_n'&& key != 'contract_id'&& key != 'third_guar_score'&&key != 'tj_score') { if (key != 'bp_detail_id' && key != 'division' && key != 'score_name' && key != 'bp_age' && key != 'project_id'&& key != 'third_party_credibility' && key != 'third_party_credibility_n'&& key != 'contract_id'&& key != 'third_guar_score'&&key != 'tj_score') {
//if(!bp_tenant_detail_r.get(key)){ if (typeof bp_tenant_detail_r.get(key)== "null"||typeof bp_tenant_detail_r.get(key)== "undefined"|| bp_tenant_detail_r.get(key)== "") {
if (typeof bp_tenant_detail_r.get(key)== "null"||typeof bp_tenant_detail_r.get(key)== "undefined"|| bp_tenant_detail_r.get(key)== "") {
Leaf.showInfoMessage("提示","承租人评分信息区域的所有字段,除\"第三方担保附件分数\"外,其他都为必输字段,请填写!"); Leaf.showInfoMessage("提示","承租人评分信息区域的所有字段,除\"第三方担保附件分数\"外,其他都为必输字段,请填写!");
bp_rate_flag = false; bp_rate_flag = false;
break; break;
...@@ -386,20 +387,9 @@ ...@@ -386,20 +387,9 @@
bp_rate_flag = true; bp_rate_flag = true;
} }
} }
}else if(division == '92'){ }else{
if (key != 'bp_detail_id' && key != 'score_name' && key != 'bp_age'&& key != 'contract_id' && key != 'project_id' && key != 'third_party_credibility' && key != 'third_party_credibility_n'&& key != 'third_guar_score'&&key != 'tj_score') { if('${/parameter/@division_detail}'=='03'||'${/parameter/@division_detail}'=='02'){
//if (!bp_tenant_detail_r.get(key)) { if (key != 'bp_detail_id' && key != 'division' && key != 'score_name' && key != 'bp_age'&& key != 'contract_id' && key != 'project_id' && key != 'third_party_credibility' && key != 'third_party_credibility_n'&& key != 'third_guar_score'&&key != 'tj_score') {
if (typeof bp_tenant_detail_r.get(key) == "null" || typeof bp_tenant_detail_r.get(key) == "undefined" || bp_tenant_detail_r.get(key) === "") {
Leaf.showInfoMessage("提示", "承租人评分信息区域的所有字段,除\"第三方担保附件得分\"外,其他都为必输字段,请填写!");
bp_rate_flag = false;
break;
}else{
bp_rate_flag = true;
}
}
} else{
if('${/parameter/@division_detail}'=='03'){
if (key != 'bp_detail_id' && key != 'score_name' && key != 'bp_age'&& key != 'contract_id' && key != 'project_id' && key != 'third_party_credibility' && key != 'third_party_credibility_n'&& key != 'third_guar_score'&&key != 'tj_score') {
if (typeof bp_tenant_detail_r.get(key) == "null" || typeof bp_tenant_detail_r.get(key) == "undefined" || bp_tenant_detail_r.get(key) === "") { if (typeof bp_tenant_detail_r.get(key) == "null" || typeof bp_tenant_detail_r.get(key) == "undefined" || bp_tenant_detail_r.get(key) === "") {
Leaf.showInfoMessage("提示", "承租人评分信息区域的所有字段,除\"第三方担保附件得分\"外,其他都为必输字段,请填写!"); Leaf.showInfoMessage("提示", "承租人评分信息区域的所有字段,除\"第三方担保附件得分\"外,其他都为必输字段,请填写!");
bp_rate_flag = false; bp_rate_flag = false;
...@@ -409,8 +399,7 @@ ...@@ -409,8 +399,7 @@
} }
} }
}else{ }else{
if (key != 'bp_detail_id' && key != 'score_name' && key != 'bp_age' && key != 'project_id'&& key != 'third_party_credibility' && key != 'third_party_credibility_n'&& key != 'contract_id'&& key != 'third_guar_score') { if (key != 'bp_detail_id' && key != 'division' && key != 'score_name' && key != 'bp_age' && key != 'project_id'&& key != 'third_party_credibility' && key != 'third_party_credibility_n'&& key != 'contract_id'&& key != 'third_guar_score') {
//if(!bp_tenant_detail_r.get(key)){
if (typeof bp_tenant_detail_r.get(key)== "null"||typeof bp_tenant_detail_r.get(key)== "undefined"|| bp_tenant_detail_r.get(key)== "") { if (typeof bp_tenant_detail_r.get(key)== "null"||typeof bp_tenant_detail_r.get(key)== "undefined"|| bp_tenant_detail_r.get(key)== "") {
Leaf.showInfoMessage("提示","承租人评分信息区域的所有字段,除\"第三方担保附件分数\"外,其他都为必输字段,请填写!"); Leaf.showInfoMessage("提示","承租人评分信息区域的所有字段,除\"第三方担保附件分数\"外,其他都为必输字段,请填写!");
bp_rate_flag = false; bp_rate_flag = false;
...@@ -421,7 +410,6 @@ ...@@ -421,7 +410,6 @@
} }
} }
} }
} }
} }
var lease_item_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item'); var lease_item_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
...@@ -431,6 +419,7 @@ ...@@ -431,6 +419,7 @@
var machine_number = lease_item_record.get('machine_number_70'); var machine_number = lease_item_record.get('machine_number_70');
var machine_number_num = 0; var machine_number_num = 0;
var secondary_lease = project_record.get('secondary_lease'); var secondary_lease = project_record.get('secondary_lease');
if(!bp_rate_flag){ if(!bp_rate_flag){
return false; return false;
} }
...@@ -653,12 +642,12 @@ ...@@ -653,12 +642,12 @@
var lease_item_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item'); var lease_item_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
//控制资管费现金流隐藏 //控制资管费现金流隐藏
var cashflow_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_CASHFLOW_NS', 'prj_quotation'); var cashflow_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_CASHFLOW_NS', 'prj_quotation');
if(lease_item_ds_id == ds.id &&lease_item_ds_id){ if(lease_item_ds_id == ds.id &&lease_item_ds_id){
var gridId= ds.bindname+'_layout_grid_id'; var gridId= ds.bindname+'_layout_grid_id';
if(division!='30' && division!='50'){ if(division!='30' && division!='50'){
$(gridId).hideColumn('machine_number_n'); $(gridId).hideColumn('machine_number_n');
} }
if((division=='70'||division=='92')&&division!=''){ if(division=='70'&&division!=''){
if(record!=''){ if(record!=''){
record.getField('lease_name_n').setRequired(true); record.getField('lease_name_n').setRequired(true);
record.getField('brand_value').setRequired(true); record.getField('brand_value').setRequired(true);
...@@ -717,44 +706,44 @@ ...@@ -717,44 +706,44 @@
record.getField('bp_id_n').setReadOnly(true); record.getField('bp_id_n').setReadOnly(true);
} }
} }
//现金流列表加载时隐藏资管费 18083 //现金流列表加载时隐藏资管费 18083
if(cashflow_ds_id == ds.id &&cashflow_ds_id){ if(cashflow_ds_id == ds.id &&cashflow_ds_id){
//var hd_user_col_v06 = $(cashflow_ds_id).getAt(0).get('hd_user_col_v06'); //var hd_user_col_v06 = $(cashflow_ds_id).getAt(0).get('hd_user_col_v06');
if('${/parameter/@asset_fee_flag}'=='N'||'${/parameter/@asset_fee_flag}'==''){ if('${/parameter/@asset_fee_flag}'=='N'||'${/parameter/@asset_fee_flag}'==''){
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
}
}else{
if(Ext.isEmpty($(cashflow_ds_id).getAt(0))){
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
}
}else{
if (Ext.isEmpty($(cashflow_ds_id).getAt(0).get('hd_user_col_v06'))) {
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
}
}else{
if($(cashflow_ds_id).getAt(0).get('hd_user_col_v06')=='N'){
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){ if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest'); $('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee'); $('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
} }
}else{
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_fee');
}
}
}else{ }
if(Ext.isEmpty($(cashflow_ds_id).getAt(0))){ }
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){ }
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest'); }
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
}
}else{
if (Ext.isEmpty($(cashflow_ds_id).getAt(0).get('hd_user_col_v06'))) {
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
}
}else{
if($(cashflow_ds_id).getAt(0).get('hd_user_col_v06')=='N'){
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
}
}else{
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_fee');
}
}
}
}
}
}
}; };
...@@ -870,8 +859,7 @@ ...@@ -870,8 +859,7 @@
var billing_url = '${/request/@context_path}/autocrud/prj.PRJ501N.prj_project_bp/query?project_id=${/parameter/@project_id}'; var billing_url = '${/request/@context_path}/autocrud/prj.PRJ501N.prj_project_bp/query?project_id=${/parameter/@project_id}';
$(billing_ds_id).setQueryUrl(billing_url); $(billing_ds_id).setQueryUrl(billing_url);
$(billing_ds_id).query(); $(billing_ds_id).query();
//不为租赁二手机业务时隐藏资管费相关字段及费率 18083 2023/1/15
//不为租赁二手机业务时隐藏资管费相关字段及费率 18083 2023/1/15
if('${/parameter/@asset_fee_flag}'=='N'){ if('${/parameter/@asset_fee_flag}'=='N'){
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06')){ if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06').style.display = 'none';
...@@ -881,15 +869,14 @@ ...@@ -881,15 +869,14 @@
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){ if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id').style.display = 'none';
} }
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){ if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest'); $('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee'); $('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
} }
//if($('PROJECT_WFL_RE_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
//$('PROJECT_WFL_RE_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
//$('PROJECT_WFL_RE_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
//}
} }
}) })
//序号自增 add by lijingjing //序号自增 add by lijingjing
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_add'] = function (ds, record, config_records, bp_seq) { window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_add'] = function (ds, record, config_records, bp_seq) {
...@@ -1036,6 +1023,11 @@ ...@@ -1036,6 +1023,11 @@
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE').style.display = 'none';
} }
}else if(record.get('division') == '70' && division != '' && ('${/parameter/@division_detail}'=='03'||'${/parameter/@division_detail}'=='02')){
if(document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE')){
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE').style.display = 'none';
}
} }
} }
if (ds_id == ds.id && ds_id) { if (ds_id == ds.id && ds_id) {
...@@ -1064,104 +1056,37 @@ ...@@ -1064,104 +1056,37 @@
record.getField('deduction_limit').setRequired(false); record.getField('deduction_limit').setRequired(false);
} }
if('${/parameter/@function_usage}'!='QUERY') { if('${/parameter/@function_usage}'!='QUERY') {
if(division!='91') { if (record.get('secondary_lease') == 'YES') {
if (record.get('secondary_lease') == 'YES') { if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){ document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'block';
}
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
} else if (record.get('secondary_lease') == 'NO') {
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id', null);
record.set('repur_contract_id_n', null);
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'none';
}
}
//“新机二次租赁”字段仅展示在神钢产品线的页面中,其余产品线不展示
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW').style.display = 'none';
}
}else {
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW').style.display = 'block';
} }
record.getField('repur_contract_id').setRequired(true);
// 神钢建机时,当“旧机二次租赁”、 “新机二次租赁”中任意一个为“是”,则校验结清合同号必填 record.getField('repur_contract_id_n').setRequired(true);
if (record.get('secondary_lease') == 'YES' || record.get('secondary_lease_new') == 'YES') { record.getField('repur_contract_id').setReadOnly(false);
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){ record.getField('repur_contract_id_n').setReadOnly(false);
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'block'; } else if (record.get('secondary_lease') == 'NO') {
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'block'; record.getField('repur_contract_id').setRequired(false);
} record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setRequired(true); record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setRequired(true); record.getField('repur_contract_id_n').setReadOnly(true);
record.getField('repur_contract_id').setReadOnly(false); record.set('repur_contract_id', null);
record.getField('repur_contract_id_n').setReadOnly(false); record.set('repur_contract_id_n', null);
} else if (record.get('secondary_lease') == 'NO' && record.get('secondary_lease_new') == 'NO') { if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
record.getField('repur_contract_id').setRequired(false); document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'none';
record.getField('repur_contract_id_n').setRequired(false); document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'none';
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id', null);
record.set('repur_contract_id_n', null);
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'none';
}
} }
} }
} else { } else {
if(division!='91') { if (record.get('secondary_lease') == 'YES') {
if (record.get('secondary_lease') == 'YES') { if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){ document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'block';
}
} else if (record.get('secondary_lease') == 'NO') {
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'none';
}
}
//“新机二次租赁”字段仅展示在神钢产品线的页面中,其余产品线不展示
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW').style.display = 'none';
}
}else {
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW').style.display = 'block';
} }
} else if (record.get('secondary_lease') == 'NO') {
// 神钢建机时,当“旧机二次租赁”、 “新机二次租赁”中任意一个为“是”,则校验结清合同号必填 if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
if (record.get('secondary_lease') == 'YES' || record.get('secondary_lease_new') == 'YES') { document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'none';
if( document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){ document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'block';
}
} else if (record.get('secondary_lease') == 'NO' && record.get('secondary_lease_new') == 'NO') {
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'none';
}
} }
} }
} }
...@@ -1183,9 +1108,12 @@ ...@@ -1183,9 +1108,12 @@
} }
if ('${/parameter/@function_usage}' != 'QUERY') { if ('${/parameter/@function_usage}' != 'QUERY') {
if (division == '92') { //云南铁拳并入二手机,调整租金支付方式为必填
if (division == '70') {
if('${/parameter/@division_detail}'=='03'||'${/parameter/@division_detail}'=='02'){
record.getField('pay_method').setReadOnly(false); record.getField('pay_method').setReadOnly(false);
record.getField('pay_method_n').setReadOnly(false); record.getField('pay_method_n').setReadOnly(false);
}
} }
} }
//深圳美鹏和hcs显示分公司,其他隐藏 //深圳美鹏和hcs显示分公司,其他隐藏
...@@ -1206,6 +1134,7 @@ ...@@ -1206,6 +1134,7 @@
var create_bp_code = '${/model/approve_history_rp/record/@bp_code}'; var create_bp_code = '${/model/approve_history_rp/record/@bp_code}';
var credit_record = $(ds_id).getCurrentRecord(); var credit_record = $(ds_id).getCurrentRecord();
if(!Ext.isEmpty(create_bp_code)){ if(!Ext.isEmpty(create_bp_code)){
if(create_bp_code == 'D00000029' || create_bp_code == 'D00000026' || create_bp_code == 'D00000030' || create_bp_code == 'D00000031'){ if(create_bp_code == 'D00000029' || create_bp_code == 'D00000026' || create_bp_code == 'D00000030' || create_bp_code == 'D00000031'){
if('${/parameter/@editable_flag}' == 'Y' || '${/parameter/@editable_flag}' == 'YE'){ if('${/parameter/@editable_flag}' == 'Y' || '${/parameter/@editable_flag}' == 'YE'){
credit_record.getField('credit_line').setReadOnly(false); credit_record.getField('credit_line').setReadOnly(false);
...@@ -1228,34 +1157,42 @@ ...@@ -1228,34 +1157,42 @@
document.getElementById('${/parameter/@layout_code}_save').style.display = "none"; document.getElementById('${/parameter/@layout_code}_save').style.display = "none";
} }
} }
}else if('${/parameter/@editable_flag}' != 'YE'){ }else if('${/parameter/@editable_flag}' != 'YE' && division != '93'){
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE')){ if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE').style.display = 'none';
} }
if(document.getElementById('${/parameter/@layout_code}_save')){ if(document.getElementById('${/parameter/@layout_code}_save')){
document.getElementById('${/parameter/@layout_code}_save').style.display = "none"; document.getElementById('${/parameter/@layout_code}_save').style.display = "none";
} }
}else { }else if(division !='93') {
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE')){ if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE').style.display = 'none';
} }
}else if(division=='93' && '${/parameter/@editable_flag}' == 'YE'){
credit_record.getField('credit_line').setReadOnly(false);
credit_record.getField('credit_line_n').setReadOnly(false);
credit_record.getField('credit_line').setRequired(true);
credit_record.getField('credit_line_n').setRequired(true);
}else if(division=='93' && '${/parameter/@editable_flag}' != 'YE'){
if(document.getElementById('${/parameter/@layout_code}_save')){
document.getElementById('${/parameter/@layout_code}_save').style.display = "none";
}
} }
} }
} }
if (prj_quotation_ds_id == ds.id && prj_quotation_ds_id){ if (prj_quotation_ds_id == ds.id && prj_quotation_ds_id){
//产品线维护了组合利率的调整加载事件显示 //产品线维护了组合利率的调整加载事件显示
if('${/parameter/@asset_fee_flag}'=='N'||'${/parameter/@asset_fee_flag}'==''){ if('${/parameter/@asset_fee_flag}'=='N'||'${/parameter/@asset_fee_flag}'==''){
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id').style.display = 'none';
}
record.getField('hd_user_col_v06').setRequired(false); record.getField('hd_user_col_v06').setRequired(false);
record.getField('hd_user_col_v06_n').setRequired(false); record.getField('hd_user_col_v06_n').setRequired(false);
record.getField('asset_id').setRequired(false); record.getField('asset_id').setRequired(false);
record.getField('asset_id_n').setRequired(false); record.getField('asset_id_n').setRequired(false);
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id').style.display = 'none';
}
}else{ }else{
if (check_empty(record.get('hd_user_col_v06'))||record.get('hd_user_col_v06')=='N' ) { if (check_empty(record.get('hd_user_col_v06'))||record.get('hd_user_col_v06')=='N' ) {
...@@ -1265,15 +1202,16 @@ ...@@ -1265,15 +1202,16 @@
//record.set('int_rate_display', ''); //record.set('int_rate_display', '');
record.getField('asset_id').setRequired(false); record.getField('asset_id').setRequired(false);
record.getField('asset_id_n').setRequired(false); record.getField('asset_id_n').setRequired(false);
//隐藏组件 //隐藏组件
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){ if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id').style.display = 'none';
} }
}else{ }else{
record.getField('asset_id').setRequired(true); record.getField('asset_id').setRequired(true);
record.getField('asset_id_n').setRequired(true); record.getField('asset_id_n').setRequired(true);
//显示组件 //显示组件
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){ if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id').style.display = 'block';
} }
...@@ -1285,11 +1223,13 @@ ...@@ -1285,11 +1223,13 @@
record.getField('customer_margin').setReadOnly(true); record.getField('customer_margin').setReadOnly(true);
record.getField('customer_margin_n').setReadOnly(true); record.getField('customer_margin_n').setReadOnly(true);
} }
if(division!='70'&&division!='92'&&division!=''){ if(division!='70'&&division!=''){
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN')){ if(division != '93'){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN_prompt').style.display = 'none'; if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN').style.display = 'none';
}
} }
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_BRAND_VALUE')){ if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_BRAND_VALUE')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_BRAND_VALUE_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_BRAND_VALUE_prompt').style.display = 'none';
...@@ -1326,7 +1266,7 @@ ...@@ -1326,7 +1266,7 @@
} }
}else if((division=='70'||division=='92')&&division!=''){ }else if(division=='70'&&division!=''){
if( document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OTHER_FEE')){ if( document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OTHER_FEE')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OTHER_FEE_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OTHER_FEE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OTHER_FEE').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OTHER_FEE').style.display = 'none';
...@@ -1344,14 +1284,13 @@ ...@@ -1344,14 +1284,13 @@
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'none';
} }
//云南铁拳隐藏承租人保证金字段 18083 2023/5/24
if('${/parameter/@division_detail}'=='03'||'${/parameter/@division_detail}'=='02'){
} if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN')){
if (division=='92' && division != '') { document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN_prompt').style.display = 'none';
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN')){ document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN').style.display = 'none'
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN_prompt').style.display = 'none'; }
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN').style.display = 'none'; }
}
} }
...@@ -1401,7 +1340,6 @@ ...@@ -1401,7 +1340,6 @@
if(document.getElementById('${/parameter/@layout_code}_save')){ if(document.getElementById('${/parameter/@layout_code}_save')){
document.getElementById('${/parameter/@layout_code}_save').style.display = "none"; document.getElementById('${/parameter/@layout_code}_save').style.display = "none";
} }
} }
}; };
if('${/parameter/@editable_flag}' == 'Y' || '${/parameter/@editable_flag}' == 'YE'){ if('${/parameter/@editable_flag}' == 'Y' || '${/parameter/@editable_flag}' == 'YE'){
...@@ -1426,6 +1364,7 @@ ...@@ -1426,6 +1364,7 @@
var tenant_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC_INFO_1', 'prj_project'); var tenant_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC_INFO_1', 'prj_project');
var prj_quotation_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_QUOTATION_N', 'prj_quotation'); var prj_quotation_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_QUOTATION_N', 'prj_quotation');
if(tenant_ds_id == ds.id&&tenant_ds_id){ if(tenant_ds_id == ds.id&&tenant_ds_id){
if(name == 'send_message_n'){ if(name == 'send_message_n'){
...@@ -1437,7 +1376,7 @@ ...@@ -1437,7 +1376,7 @@
} }
} }
//二手车资管费为否,隐藏组合利率组件及将字段设置为空 //二手车资管费为否,隐藏组合利率组件及将字段设置为空
if (prj_quotation_ds_id == ds.id) { if (prj_quotation_ds_id == ds.id) {
if (name == 'hd_user_col_v06') { if (name == 'hd_user_col_v06') {
if('${/parameter/@asset_fee_flag}'=='Y'){ if('${/parameter/@asset_fee_flag}'=='Y'){
...@@ -1452,14 +1391,10 @@ ...@@ -1452,14 +1391,10 @@
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){ if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id').style.display = 'none';
} }
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){ if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest'); $('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee'); $('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
} }
//if($('PROJECT_WFL_RE_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
//$('PROJECT_WFL_RE_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
// $('PROJECT_WFL_RE_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
//}
} else { } else {
...@@ -1467,20 +1402,17 @@ ...@@ -1467,20 +1402,17 @@
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){ if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id').style.display = 'block';
} }
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){ if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_interest'); $('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_fee'); $('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_fee');
} }
//if($('PROJECT_WFL_RE_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
//$('PROJECT_WFL_RE_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_interest');
//$('PROJECT_WFL_RE_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_fee');
// }
} }
} }
} }
} }
//选择承租人带出开票信息 //选择承租人带出开票信息
var prj_project_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project'); var prj_project_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var prj_project_history_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'T_HISTORY_INGO', 'hls_bp_master'); var prj_project_history_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'T_HISTORY_INGO', 'hls_bp_master');
...@@ -1489,8 +1421,7 @@ ...@@ -1489,8 +1421,7 @@
var prj_quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation'); var prj_quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation');
var lease_item_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item'); var lease_item_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
if (lease_item_ds_id == ds.id && lease_item_ds_id) { if (lease_item_ds_id == ds.id && lease_item_ds_id) {
if(division=='70'||division=='92'){ if(division=='70'){
debugger;
record.getField('lease_name_n').setRequired(true); record.getField('lease_name_n').setRequired(true);
record.getField('brand_value').setRequired(true); record.getField('brand_value').setRequired(true);
record.getField('produce_date').setReadOnly(false); record.getField('produce_date').setReadOnly(false);
...@@ -1653,96 +1584,26 @@ ...@@ -1653,96 +1584,26 @@
} }
//add by niminmin //add by niminmin
//当“二次租赁”字段选择‘是’时,“回购合同编号”字段为必填。当选择‘否’时,“回购合同编号”字段为只读。 //当“二次租赁”字段选择‘是’时,“回购合同编号”字段为必填。当选择‘否’时,“回购合同编号”字段为只读。
if(record.get('division') !='91') { if (name == 'secondary_lease') {
if (name == 'secondary_lease') { if (value == 'YES') {
if (value == 'YES') { if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){ document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'block'; }
} record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setRequired(true); record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setRequired(true); record.getField('repur_contract_id_n').setReadOnly(false);
record.getField('repur_contract_id').setReadOnly(false); } else if (value == 'NO') {
record.getField('repur_contract_id_n').setReadOnly(false); record.getField('repur_contract_id').setRequired(false);
} else if (value == 'NO') { record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setRequired(false); record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setRequired(false); record.getField('repur_contract_id_n').setReadOnly(true);
record.getField('repur_contract_id').setReadOnly(true); record.set('repur_contract_id', null);
record.getField('repur_contract_id_n').setReadOnly(true); record.set('repur_contract_id_n', null);
record.set('repur_contract_id', null); if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
record.set('repur_contract_id_n', null); document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'none';
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){ document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'none';
}
}
}
}else {
//当“旧机二次租赁”、“新机二次租赁”中任意一个为“是”,则系统提示只能任选其一(两个都选择是,则提示)
//当“旧机二次租赁”、 “新机二次租赁”中任意一个为“是”,则校验结清合同号必填
if (name == 'secondary_lease_new'){
if (value == 'YES') {
if (record.get('secondary_lease') == 'YES') {
record.set('secondary_lease_new','NO');
record.set('secondary_lease_new_n','否');
Leaf.showMessage('${l:HLS.PROMPT}', '旧机二次租赁、新机二次租赁只能任选其一!');
return false;
}
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'block';
}
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
}else if (value == 'NO') {
if (record.get('secondary_lease') == 'NO') {
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id', null);
record.set('repur_contract_id_n', null);
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'none';
}
}
}
}
if (name == 'secondary_lease'){
if (value == 'YES') {
if (record.get('secondary_lease_new') == 'YES') {
record.set('secondary_lease','NO');
record.set('secondary_lease_n','否');
Leaf.showMessage('${l:HLS.PROMPT}', '旧机二次租赁、新机二次租赁只能任选其一!');
return false;
}
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'block';
}
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
}else if (value == 'NO') {
if (record.get('secondary_lease_new') == 'NO') {
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id', null);
record.set('repur_contract_id_n', null);
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'none';
}
}
} }
} }
} }
...@@ -1832,6 +1693,7 @@ ...@@ -1832,6 +1693,7 @@
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'none';
} }
}; };
//附件打包下载 //附件打包下载
window['${/parameter/@layout_code}_ACY_USER_BUTTON1_layout_dynamic_tab_click'] = function () { window['${/parameter/@layout_code}_ACY_USER_BUTTON1_layout_dynamic_tab_click'] = function () {
......
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