Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
leaf-hlcm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hlcm
leaf-hlcm
Commits
9709d057
Commit
9709d057
authored
Feb 24, 2023
by
gzj34291
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合同签约前变更
parent
9aad293a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
121 additions
and
71 deletions
+121
-71
hls_con_contract_et_create_entrance.lview
...les/cont/CON733/hls_con_contract_et_create_entrance.lview
+20
-3
hls_fin_calculator_update_n.lview
...app/modules/hls/HLS500N/hls_fin_calculator_update_n.lview
+101
-68
No files found.
src/main/webapp/modules/cont/CON733/hls_con_contract_et_create_entrance.lview
View file @
9709d057
...
...
@@ -18,6 +18,7 @@
url=
"${/request/@context_path}/modules/cont/CON505/con_contract_modify.lview"
/>
<a:link
id=
"con_contract_change_link"
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=
"con_contract_change_req_link"
url=
"${/request/@context_path}/modules/cont/CON701/con_contract_et_print.lsc"
/>
...
...
@@ -68,6 +69,10 @@
$(ds_id).setQueryParameter('contract_status', '');
$(ds_id).query();
}
if (value == 'CCR_BEFORE_SIGN') {
$(ds_id).setQueryParameter('contract_status', 'NEW');
$(ds_id).query();
}
}
};
...
...
@@ -101,7 +106,6 @@
var head_record = $(head_ds_id).getAt(0);
var record = records[0];
var ccr_document_type = head_record.get('ccr_document_type');
debugger;
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')) {
...
...
@@ -113,6 +117,10 @@
Leaf.showErrorMessage('${l:PROMPT}', '铁甲业务无法操作此项变更!');
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 () {
var contract = record.get('contract_id');
...
...
@@ -151,8 +159,18 @@
param['function_code'] = 'CON733BPB';
param['url_title'] = '变更申请-合同回款账户变更';
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);
}
},
failure: function () {
// $('${/parameter/@layout_code}_user_button1').enable(); //按钮启用
...
...
@@ -176,8 +194,7 @@
}
};
]]>
</script>
<a:screen-include
screen=
"modules/cont/CON500/con_contract_authority_list_validate.lview?document_category=CONTRACT&function_code=CON733"
/>
<a:screen-include
screen=
"modules/cont/CON500/con_contract_authority_list_validate.lview?document_category=CONTRACT&function_code=CON733"
/>
<a:screen-include
screen=
"modules/cont/CON500/con_contract_get_layout_code.lview"
/>
</a:view>
</a:screen>
src/main/webapp/modules/hls/HLS500N/hls_fin_calculator_update_n.lview
View file @
9709d057
...
...
@@ -5,8 +5,7 @@
$Revision: 1.0
$Purpose:
-->
<a:screen
xmlns:c=
"leaf.application.action"
xmlns:a=
"http://www.leaf-framework.org/application"
xmlns:p=
"uncertain.proc"
customizationEnabled=
"true"
trace=
"true"
>
<a:screen
xmlns:c=
"leaf.application.action"
xmlns:s=
"leaf.plugin.script"
xmlns:a=
"http://www.leaf-framework.org/application"
xmlns:p=
"uncertain.proc"
customizationEnabled=
"true"
trace=
"true"
>
<a:init-procedure
participants=
"leaf.service.exception.ExceptionHandler"
>
<a:model-query
defaultWhereClause=
"d.enabled_flag='Y' and nvl(d.display_flag,'N')!='N'"
fetchAll=
"true"
model=
"hls.HLS500.hls_fin_calc_config_ln"
rootPath=
"calc_config_ln_path"
/>
<a:model-query
defaultWhereClause=
"d.enabled_flag='Y'"
fetchAll=
"true"
model=
"hls.HLS500.hls_fin_calc_config_ln"
rootPath=
"calc_config_ln_all_path"
/>
...
...
@@ -173,13 +172,14 @@
var cc = div((H16 + H97), (H99 + H102 - H16));
// alert(div((H16+H97), (H99+H102-H16)).toFixed(2) * 1);
var show = down_payment_rate_new * 100;
// if ((div((H16 + H97), (H99 + H102 - H16)).toFixed(2) * 1) < down_payment_rate_new) {
// unlock_calc_current_window();
// Leaf.showMessage('${l:PROMPT}', '首付款比例+首付款保证金比例之和不能低于' + down_payment_rate_new * 100 + '%');
// return false;
//}
if ((div((H16 + H97), (H99 + H102 - H16)).toFixed(2) * 1) < down_payment_rate_new) {
if ('${/parameter/@division}'!=91) {
unlock_calc_current_window();
Leaf.showMessage('${l:PROMPT}', '首付款比例+首付款保证金比例之和不能低于' + down_payment_rate_new * 100 + '%');
return false;
}else{
if ('${/parameter/@division}'==91){
Leaf.SideBar.show({
// msg:'首付款比例+首付款保证金比例之和不能低于' + down_payment_rate_new * 100 + '%</br>
租赁期为一年及以内的,利率为6.75%,大于一年的7.3%
</br>
利率最低值不能低于4.75%',
msg:'首付款比例+首付款保证金比例之和不能低于' + down_payment_rate_new * 100 + '%',
...
...
@@ -405,8 +405,11 @@
success:
function
(res)
{
on_calc_success_query('${/parameter/@dsId}',
'${/parameter/@document_category}');
get_warning_message(res.result.warning_message);
if('${/parameter/@layout_code}'!='CCR_BEFORE_SIGN'){
recreate_H_formula =
'N'
;
recreate_L_formula =
'N'
;
}
open_after_save_execute();
},
failure:
function
()
{
...
...
@@ -956,6 +959,8 @@
var contract_status = res.result.contract_status;
var sign_contract_status = res.result.sign_contract_status;
if (sign_contract_status == 'SIGN' || sign_contract_status == 'SIGNING' || contract_status == 'NEW' || contract_status == 'INCEPT_RETURN') {
//签约前合同变更才放开部分字段,其他维持原合同起租时租赁日调整逻辑
/*if('${/parameter/@layout_code}'!='CCR_BEFORE_SIGN'){*/
for (var i = 0; i
< headRecords.length
;
i++)
{
var
column_name =
headRecords[i].get('column_name');
if
(column_name
!=
"lease_start_date"
&&
column_name
!=
"contract_inception_date")
{
...
...
@@ -965,6 +970,22 @@
headRecords[i].getField('column_value_c').setReadOnly(true);
}
}
/*
}else{
for
(var
i =
0;
i
<
headRecords.length;
i++)
{
var
column_name =
headRecords[i].get('column_name');
if
(column_name
!=
"lease_start_date"
&&
column_name
!=
"contract_inception_date"&&column_name
!=
"other_fee"&&column_name
!=
"lease_times"&&column_name
!=
"int_rate_display"
&&column_name
!=
"down_payment"&&column_name
!=
"third_party_deposit"&&column_name
!=
"balloon_ratio")
{
headRecords[i].set('input_mode',
'READONLY');
headRecords[i].set('readonly_input_mode',
'TRUE');
headRecords[i].getField('column_value').setReadOnly(true);
headRecords[i].getField('column_value_c').setReadOnly(true);
}
}
}*/
}
else
{
for
(var
i =
0;
i
<
headRecords.length;
i++)
{
headRecords[i].set('input_mode',
'READONLY');
...
...
@@ -988,7 +1009,7 @@
}
if
('${/parameter/@document_category}'
==
'PROJECT')
{
if
('${/parameter/@document_category}'
==
'PROJECT'
||
'${/parameter/@layout_code}'
==
'CCR_BEFORE_SIGN'
)
{
Leaf.request({
url:
$('prj_check_prj_record_link_id').getUrl(),
para:
{
...
...
@@ -1437,7 +1458,11 @@
$('${/parameter/@layout_code}_F_QUOTATION_N_prj_quotation_ds').query();
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_ds').query();
} else if ('${/parameter/@document_category}' == 'CONTRACT') {
$('CONTRACT_CREATE_INC_G_CASHFLOW_1_con_contract_cashflow_ds').query();
if( $('${/parameter/@layout_code}_G_CASHFLOW_1_con_contract_cashflow_ds')){
$('${/parameter/@layout_code}_G_CASHFLOW_1_con_contract_cashflow_ds').query();
}
}
// success_sidebar_show();
get_warning_message(res.result.msg);
...
...
@@ -1533,7 +1558,6 @@
function hls_hls500_save_new(nextStep, source_procedure) {
debugger;
var temp_head_records = $('hls_fin_calculator_hd_ds').getAll();
var H1, H54, H159, H16, H12,H99,H102,H15,H44;
for (var i = 0; i
< temp_head_records.length
;
i++)
{
...
...
@@ -1560,23 +1584,21 @@
H44 =
temp_head_records[i].get('column_value')
||
0;
}
}
//
if
('${/parameter/@division}'==91
&&
(((H1<=12
&&
plus(H54,4.75)
!=
6.75)
||
(H1
>
12
&&
plus(H54,4.75) != 7.3))||H54
< 0
)){
//
Leaf.SideBar.show({
//
msg:"租赁期为一年及以内的,利率为6.75%,大于一年的7.3%</br
>
利率最低值不能低于4.75%",
// duration: 5000
// });
// }
// if(H1
<2
){
//
Leaf.showMessage('${l:PROMPT}',
'系统暂时不支持还款期数小于2期的租金计划');
//
return
false;
//
}
if
(H1
>
70) {
Leaf.showMessage('${l:PROMPT}', '还款期数应小
于70期');
unlock_calc_current_window();
return false;
}
//
if
(H1
>
70) {
// Leaf.showMessage('${l:PROMPT}', '还款期数应小于或等
于70期');
//
unlock_calc_current_window();
//
return false;
//
}
if (H54
< 0
&&'${/parameter/@division}'!=91)
{
Leaf.showMessage('${l:PROMPT}',
'利率最低值不能低于4.75');
unlock_calc_current_window();
...
...
@@ -1590,6 +1612,7 @@
return
false;
}
if(H44!=100){
Leaf.showMessage('${l:PROMPT}',
'留购金需要为100元');
unlock_calc_current_window();
return
false;
...
...
@@ -1616,7 +1639,6 @@
});
}
}
}
lock_calc_current_window('${l:HLS.CALCULATING}');
...
...
@@ -1656,12 +1678,13 @@
var
cc =
div((H16
+
H97),
(H99
+
H102
-
H16));
//
alert(div((H16+H97),
(H99+H102-H16)).toFixed(2)
*
1);
var
show =
down_payment_rate_new
*
100;
//if
((div((H16
+
H97),
(H99
+
H102
-
H16)).toFixed(2)
*
1)
<
down_payment_rate_new)
{
//
unlock_calc_current_window();
//
Leaf.showMessage('${l:PROMPT}',
'首付款比例+首付款保证金比例之和不能低于'
+
down_payment_rate_new
*
100
+
'%');
//
return
false;
//}
if
((div((H16
+
H97),
(H99
+
H102
-
H16)).toFixed(2)
*
1)
<
down_payment_rate_new)
{
if
('${/parameter/@division}'!=91)
{
Leaf.showMessage('${l:PROMPT}',
'首付款比例+首付款保证金比例之和不能低于'
+
down_payment_rate_new
*
100
+
'%');
unlock_calc_current_window();
return
false;
}else{
if
('${/parameter/@division}'==91)
{
Leaf.SideBar.show({
//
msg:'首付款比例+首付款保证金比例之和不能低于'
+
down_payment_rate_new
*
100
+
'%</br
>
租赁期为一年及以内的,利率为6.75%,大于一年的7.3%
</br>
利率最低值不能低于4.75%',
msg:'首付款比例+首付款保证金比例之和不能低于' + down_payment_rate_new * 100 + '%',
...
...
@@ -1866,8 +1889,10 @@
success:
function
(res)
{
on_calc_success_query('${/parameter/@dsId}',
'${/parameter/@document_category}');
//get_warning_message(res.result.warning_message);
if('${/parameter/@layout_code}'!='CCR_BEFORE_SIGN'){
recreate_H_formula =
'N'
;
recreate_L_formula =
'N'
;
}
//open_after_save_execute();
hls_hls500_user_button1();
},
...
...
@@ -1904,8 +1929,11 @@
success:
function
(res)
{
on_calc_success_query('${/parameter/@dsId}',
'${/parameter/@document_category}');
//get_warning_message(res.result.warning_message);
if('${/parameter/@layout_code}'!='CCR_BEFORE_SIGN'){
recreate_H_formula =
'N'
;
recreate_L_formula =
'N'
;
}
//open_after_save_execute();
hls_hls500_user_button2();
//
unlock_calc_current_window();
...
...
@@ -1933,7 +1961,12 @@
$('${/parameter/@layout_code}_F_QUOTATION_N_prj_quotation_ds').query();
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_ds').query();
}
else
if
('${/parameter/@document_category}'
==
'CONTRACT')
{
$('CONTRACT_CREATE_INC_G_CASHFLOW_1_con_contract_cashflow_ds').query();
if(
$('${/parameter/@layout_code}_G_CASHFLOW_1_con_contract_cashflow_ds')){
$('${/parameter/@layout_code}_G_CASHFLOW_1_con_contract_cashflow_ds').query();
}
}
open_after_save_execute();
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment