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
484f6d0b
Commit
484f6d0b
authored
May 17, 2023
by
TIANZHI.HU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
付款申请抵扣回购金分摊 add by 39135 HuTianzhi
parent
c4a4ac83
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
461 additions
and
129 deletions
+461
-129
prj_project_create.lview
src/main/webapp/modules/prj/PRJ500N/prj_project_create.lview
+147
-46
prj_project_maintain.lview
...ain/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
+154
-40
prj_project_maintain_wfl_new.lview
...pp/modules/prj/PRJ501N/prj_project_maintain_wfl_new.lview
+160
-43
No files found.
src/main/webapp/modules/prj/PRJ500N/prj_project_create.lview
View file @
484f6d0b
...
@@ -455,6 +455,18 @@
...
@@ -455,6 +455,18 @@
return false;
return false;
}
}
}
}
//神钢建机,新报单的机号与关联的合同机号必须相同
if(division == '91'){
debugger;
var machine_number1 = lease_item_record.get('machine_number');
var machine_number2 = project_record.get('machine_number');
if(typeof(machine_number1) != 'undefined'
&&
typeof(machine_number2) != 'undefined'){
if( machine_number1 != machine_number2){
$L.showErrorMessage('提示', '新报单的机号与关联的合同机号必须相同!');
return false;
}
}
}
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');
var bp_tenant_detail_r = $(score_ds_id).getCurrentRecord();
var bp_tenant_detail_r = $(score_ds_id).getCurrentRecord();
...
@@ -464,10 +476,13 @@
...
@@ -464,10 +476,13 @@
return false;
return false;
}
}
if (record.get('signing_city')){
if (record.get('signing_city')){
var reg = /^([\u2E80-\u9FFF]){4,}$/;
// var reg = /^([\u2E80-\u9FFF]){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 () {});
}
}
}
}
}
}
...
@@ -807,6 +822,7 @@
...
@@ -807,6 +822,7 @@
}
}
if
(
ds_id =
=
ds.id
&&
ds_id)
{
if
(
ds_id =
=
ds.id
&&
ds_id)
{
division=
record.get('division');
division=
record.get('division');
if(division!='91')
{
if
(record.get('secondary_lease')
==
'YES')
{
if
(record.get('secondary_lease')
==
'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_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'
;
...
@@ -824,6 +840,31 @@
...
@@ -824,6 +840,31 @@
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_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_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'
;
}
}
//业务类型回租时,默认只读“首付款抵扣”选项
//业务类型回租时,默认只读“首付款抵扣”选项
if
(record.get('business_type')
==
'LEASEBACK')
{
if
(record.get('business_type')
==
'LEASEBACK')
{
//
record.set('payment_deduction',
'DOWN_PAYMENT_DEDUCTION');
//
record.set('payment_deduction',
'DOWN_PAYMENT_DEDUCTION');
...
@@ -1075,26 +1116,86 @@
...
@@ -1075,26 +1116,86 @@
}
}
//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')
{
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').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
}else
if(
value=
='NO')
{
}
else
if
(
value =
=
'NO')
{
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id',
null);
record.set('repur_contract_id',
null);
record.set('repur_contract_id_n',
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_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_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'
;
}
}
}
}
//新增
“限制金额”字段;
//新增
“限制金额”字段;
//“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改;
//“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改;
if
(
name=
='pay_method')
{
if
(
name=
='pay_method')
{
...
...
src/main/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
View file @
484f6d0b
...
@@ -855,6 +855,7 @@
...
@@ -855,6 +855,7 @@
}
}
//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')
{
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'
;
...
@@ -873,6 +874,65 @@
...
@@ -873,6 +874,65 @@
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_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_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'
;
}
}
}
}
}
//新增
“限制金额”字段;
//新增
“限制金额”字段;
//“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改;
//“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改;
...
@@ -1078,7 +1138,8 @@
...
@@ -1078,7 +1138,8 @@
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')
{
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'
;
...
@@ -1096,7 +1157,33 @@
...
@@ -1096,7 +1157,33 @@
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_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_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'
;
}
}
}
else
{
}
else
{
if(division!='91')
{
if
(record.get('secondary_lease')
==
'YES')
{
if
(record.get('secondary_lease')
==
'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_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'
;
...
@@ -1104,6 +1191,21 @@
...
@@ -1104,6 +1191,21 @@
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_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_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'
;
}
}
}
}
//业务类型回租时,默认只读“首付款抵扣”选项
//业务类型回租时,默认只读“首付款抵扣”选项
if
(record.get('business_type')
==
'LEASEBACK')
{
if
(record.get('business_type')
==
'LEASEBACK')
{
...
@@ -1916,6 +2018,18 @@
...
@@ -1916,6 +2018,18 @@
return false;
return false;
}
}
}
}
//神钢建机,新报单的机号与关联的合同机号必须相同
if(division == '91'){
debugger;
var machine_number1 = lease_item_record.get('machine_number');
var machine_number2 = project_record.get('machine_number');
if(typeof(machine_number1) != 'undefined'
&&
typeof(machine_number2) != 'undefined'){
if( machine_number1 != machine_number2){
$L.showErrorMessage('提示', '新报单的机号与关联的合同机号必须相同!');
return false;
}
}
}
return true;
return true;
...
...
src/main/webapp/modules/prj/PRJ501N/prj_project_maintain_wfl_new.lview
View file @
484f6d0b
...
@@ -324,10 +324,13 @@
...
@@ -324,10 +324,13 @@
return false;
return false;
}
}
if (record.get('signing_city')){
if (record.get('signing_city')){
var reg = /^([\u2E80-\u9FFF]){4,}$/;
// var reg = /^([\u2E80-\u9FFF]){4,}$/;
if (!reg.test(record.get('signing_city'))) {
// if (!reg.test(record.get('signing_city'))) {
$L.showErrorMessage('提示', '合同签订地请输入**市**区!');
// $L.showErrorMessage('提示', '合同签订地请输入**市**区!');
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 () {});
}
}
}
}
}
}
...
@@ -406,6 +409,18 @@
...
@@ -406,6 +409,18 @@
return false;
return false;
}
}
}
}
//神钢建机,新报单的机号与关联的合同机号必须相同
if(division == '91'){
debugger;
var machine_number1 = lease_item_record.get('machine_number');
var machine_number2 = project_record.get('machine_number');
if(typeof(machine_number1) != 'undefined'
&&
typeof(machine_number2) != 'undefined'){
if( machine_number1 != machine_number2){
$L.showErrorMessage('提示', '新报单的机号与关联的合同机号必须相同!');
return false;
}
}
}
if(!bp_rate_flag){
if(!bp_rate_flag){
return false;
return false;
}
}
...
@@ -930,6 +945,7 @@
...
@@ -930,6 +945,7 @@
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')
{
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'
;
...
@@ -947,7 +963,33 @@
...
@@ -947,7 +963,33 @@
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_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_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'
;
}
}
}
else
{
}
else
{
if(division!='91')
{
if
(record.get('secondary_lease')
==
'YES')
{
if
(record.get('secondary_lease')
==
'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_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'
;
...
@@ -955,6 +997,21 @@
...
@@ -955,6 +997,21 @@
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_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_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'
;
}
}
}
}
//业务类型回租时,默认只读“首付款抵扣”选项
//业务类型回租时,默认只读“首付款抵扣”选项
...
@@ -1314,6 +1371,7 @@
...
@@ -1314,6 +1371,7 @@
}
}
//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')
{
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'
;
...
@@ -1332,6 +1390,65 @@
...
@@ -1332,6 +1390,65 @@
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_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_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'
;
}
}
}
}
}
//新增
“限制金额”字段;
//新增
“限制金额”字段;
//“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改;
//“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改;
...
...
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