Commit 9709d057 authored by gzj34291's avatar gzj34291

合同签约前变更

parent 9aad293a
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
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="con_contract_change_link" <a:link id="con_contract_change_link"
url="${/request/@context_path}/modules/cont/CON731/hls_con_contract_change_detail.lview"/> url="${/request/@context_path}/modules/cont/CON731/hls_con_contract_change_detail.lview"/>
<a:link id="con_contract_sign_before_change_link" url="${/request/@context_path}/modules/cont/CON731/hls_before_sign_change_detail.lview"/>
<a:link id="con733_create_change_link" model="cont.CON733.create_change_req" modelaction="execute"/> <a:link id="con733_create_change_link" model="cont.CON733.create_change_req" modelaction="execute"/>
<a:link id="con_contract_change_req_link" <a:link id="con_contract_change_req_link"
url="${/request/@context_path}/modules/cont/CON701/con_contract_et_print.lsc"/> url="${/request/@context_path}/modules/cont/CON701/con_contract_et_print.lsc"/>
...@@ -68,6 +69,10 @@ ...@@ -68,6 +69,10 @@
$(ds_id).setQueryParameter('contract_status', ''); $(ds_id).setQueryParameter('contract_status', '');
$(ds_id).query(); $(ds_id).query();
} }
if (value == 'CCR_BEFORE_SIGN') {
$(ds_id).setQueryParameter('contract_status', 'NEW');
$(ds_id).query();
}
} }
}; };
...@@ -101,7 +106,6 @@ ...@@ -101,7 +106,6 @@
var head_record = $(head_ds_id).getAt(0); var head_record = $(head_ds_id).getAt(0);
var record = records[0]; var record = records[0];
var ccr_document_type = head_record.get('ccr_document_type'); var ccr_document_type = head_record.get('ccr_document_type');
debugger;
if ($(head_ds_id).validate($('${/parameter/@layout_code}_user_button1').enable())) { if ($(head_ds_id).validate($('${/parameter/@layout_code}_user_button1').enable())) {
//售后回租 无法进行承租人变更和回款账户变更 //售后回租 无法进行承租人变更和回款账户变更
if (record.get('business_type') == 'LEASEBACK' && (ccr_document_type == 'LEASE_CHAG' || ccr_document_type == 'ACC_CHAG')) { if (record.get('business_type') == 'LEASEBACK' && (ccr_document_type == 'LEASE_CHAG' || ccr_document_type == 'ACC_CHAG')) {
...@@ -113,6 +117,10 @@ ...@@ -113,6 +117,10 @@
Leaf.showErrorMessage('${l:PROMPT}', '铁甲业务无法操作此项变更!'); Leaf.showErrorMessage('${l:PROMPT}', '铁甲业务无法操作此项变更!');
return; return;
} }
if((record.get('division') != '70' && record.get('division') != '92') && ccr_document_type == 'CCR_BEFORE_SIGN'){
Leaf.showErrorMessage('${l:PROMPT}', '当前合同暂不能进行此项变更!');
return;
}
Leaf.showConfirm('特别注意', '<span style="color: #ff0000; ">该操作将导致合同在变更期间无法进行后续操作,请谨慎操作!!!如果需要取消变更,请一定点击取消变更按钮!!!</span>', function () { Leaf.showConfirm('特别注意', '<span style="color: #ff0000; ">该操作将导致合同在变更期间无法进行后续操作,请谨慎操作!!!如果需要取消变更,请一定点击取消变更按钮!!!</span>', function () {
var contract = record.get('contract_id'); var contract = record.get('contract_id');
...@@ -151,8 +159,18 @@ ...@@ -151,8 +159,18 @@
param['function_code'] = 'CON733BPB'; param['function_code'] = 'CON733BPB';
param['url_title'] = '变更申请-合同回款账户变更'; param['url_title'] = '变更申请-合同回款账户变更';
param['winid'] = 'con733_bpb_change_detail_winid'; param['winid'] = 'con733_bpb_change_detail_winid';
}else if (ccr_document_type == 'CCR_BEFORE_SIGN') {
param['function_code'] = 'CON733CBSIGN';
param['url_title'] = '变更申请-签约前合同变更';
param['winid'] = 'con733_before_sign_change_detail_winid';
} }
if(ccr_document_type == 'CCR_BEFORE_SIGN') {
//签约前变更换个页面,方便后续新人代码阅读 wangwei
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'con_contract_sign_before_change_link', ds_id);
}else{
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'con_contract_change_link', ds_id); hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'con_contract_change_link', ds_id);
}
}, },
failure: function () { failure: function () {
// $('${/parameter/@layout_code}_user_button1').enable(); //按钮启用 // $('${/parameter/@layout_code}_user_button1').enable(); //按钮启用
...@@ -176,8 +194,7 @@ ...@@ -176,8 +194,7 @@
} }
}; };
]]></script> ]]></script>
<a:screen-include <a:screen-include screen="modules/cont/CON500/con_contract_authority_list_validate.lview?document_category=CONTRACT&amp;function_code=CON733"/>
screen="modules/cont/CON500/con_contract_authority_list_validate.lview?document_category=CONTRACT&amp;function_code=CON733"/>
<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>
</a:screen> </a:screen>
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