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
fd55a10c
Commit
fd55a10c
authored
Aug 22, 2023
by
38823
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合同签约前,4个商业伙伴必填项校验的增加
parent
a604da98
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
89 additions
and
0 deletions
+89
-0
hls_bp_master_create.lview
...ain/webapp/modules/hls/HLS213N/hls_bp_master_create.lview
+30
-0
hls_bp_master_modify.lview
...ain/webapp/modules/hls/HLS214N/hls_bp_master_modify.lview
+29
-0
hls_bp_master_req_modify.lview
...webapp/modules/hls/HLS214N/hls_bp_master_req_modify.lview
+30
-0
No files found.
src/main/webapp/modules/hls/HLS213N/hls_bp_master_create.lview
View file @
fd55a10c
...
...
@@ -528,6 +528,19 @@
return
false;
}
}
}
//新增校验,承租人(法人)和担保人(法人)商业伙伴的创建,银行账号信息都是要必填(为电子签约做准备)
if(head_record.get('bp_class')=='ORG'){
if(head_record.get('bp_type')=='TENANT'
||
head_record.get('bp_type')=='GUTA_ORG'){
var
bank_flag=
true;
if(
bank_record.length=
=0){
bank_flag=
false;
if(
bank_flag=
=false){
Leaf.showErrorMessage('${l:PROMPT}','请在银行账户信息中维护[银行账号信息]!');
return
false;
}
}
}
}
//若选择开票类型为“纸质发票”,则系统校验无法选择“是否全电发票”为“是”
18083
2022/11/30
if
(head_record.get('invoice_type')=='PAPER'){
...
...
@@ -580,6 +593,23 @@
//验证是否有户籍地址,或者通讯地址
var
address_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'hls_bp_master_address');
var
records_addr =
$(address_ds_id).getAll();
//新增校验,承租人(自然人)商业伙伴创建必须维护居住地址(为电子签约做准备)
if(head_record.get('bp_class')=='NP'
&&
head_record.get('bp_type')=='TENANT'){
var
check_flag=
true;
for(var
i=
0;i<records_addr.length;i++){
if(records_addr[i].get('address_type')=='HOUSE_ADDRESS'){
check_flag=
true;
break;
}else
{
check_flag=
false;
}
}
if(
check_flag=
=false){
Leaf.showErrorMessage('${l:PROMPT}','必填项[居住住址]为空,请在地址信息新增!');
return
false;
}
}
if
(head_record.get('bp_class')
=='NP'&&head_record.get('bp_type')!='THIRD_PARTY'){
//判断户籍地址
var
flag =
true;
...
...
src/main/webapp/modules/hls/HLS214N/hls_bp_master_modify.lview
View file @
fd55a10c
...
...
@@ -89,6 +89,35 @@
var
address_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'hls_bp_master_address');
var
records_addr =
$(address_ds_id).getAll();
//新增校验,承租人(法人)和担保人(法人)商业伙伴的创建,银行账号信息都是要必填(为电子签约做准备)
if(bp_record.get('bp_class')
==
'ORG'){
if(bp_record.get('bp_type')=='TENANT'
||
bp_record.get('bp_type')=='GUTA_ORG'){
if(
bank_record.length=
=0){
flag=
false;
if(
flag=
=false){
Leaf.showErrorMessage('${l:PROMPT}','请在银行账户信息中维护[银行账号信息]!');
return
false;
}
}
}
}
//新增校验,承租人(自然人)商业伙伴创建必须维护居住地址(为电子签约做准备)
if(bp_record.get('bp_class')=='NP'
&&
bp_record.get('bp_type')=='TENANT'){
var
check_flag=
true;
for(var
i=
0;i<records_addr.length;i++){
if(records_addr[i].get('address_type')=='HOUSE_ADDRESS'){
check_flag=
true;
break;
}else
{
check_flag=
false;
}
}
if(
check_flag=
=false){
Leaf.showErrorMessage('${l:PROMPT}','必填项[居住住址]为空,请在地址信息新增!');
return
false;
}
}
if
(bp_record.get('bp_class')
==
'NP'){
//判断户籍地址
var
flag =
true;
...
...
src/main/webapp/modules/hls/HLS214N/hls_bp_master_req_modify.lview
View file @
fd55a10c
...
...
@@ -81,6 +81,36 @@
var
bank_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'hls_bp_master_bank_acc_req');
var
bank_record =
$(bank_ds_id).getAll();
var
flag =
true;
//新增校验,承租人(法人)和担保人(法人)商业伙伴的创建,银行账号信息都是要必填(为电子签约做准备)
if(bp_record.get('bp_class')
==
'ORG'){
if(bp_record.get('bp_type')=='TENANT'
||
bp_record.get('bp_type')=='GUTA_ORG'){
if(
bank_record.length=
=0){
flag=
false;
if(
flag=
=false){
Leaf.showErrorMessage('${l:PROMPT}','请在银行账户信息中维护[银行账号信息]!');
return
false;
}
}
}
}
//新增校验,承租人(自然人)商业伙伴创建必须维护居住地址(为电子签约做准备)
if(bp_record.get('bp_class')=='NP'
&&
bp_record.get('bp_type')=='TENANT'){
var
check_flag=
true;
for(var
i=
0;i<records_addr.length;i++){
if(records_addr[i].get('address_type')=='HOUSE_ADDRESS'){
check_flag=
true;
break;
}else
{
check_flag=
false;
}
}
if(
check_flag=
=false){
Leaf.showErrorMessage('${l:PROMPT}','必填项[居住住址]为空,请在地址信息新增!');
return
false;
}
}
if(bank_record.length
>
0){
for(var i=0;i
<bank_record.length
;i++){
var
full_name=
bank_record[i].get('bank_full_name');
...
...
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