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
d0fedc74
Commit
d0fedc74
authored
Aug 09, 2024
by
18083
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商业伙伴创建代码与正式环境保持一致
parent
3def404c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
21 deletions
+46
-21
hls_bp_master_create.lview
...ain/webapp/modules/hls/HLS213N/hls_bp_master_create.lview
+1
-18
hls_bp_master_create_entrance.lview
...p/modules/hls/HLS213N/hls_bp_master_create_entrance.lview
+45
-3
No files found.
src/main/webapp/modules/hls/HLS213N/hls_bp_master_create.lview
View file @
d0fedc74
...
...
@@ -815,23 +815,6 @@
}, 20);
return false;
}
if(bank_flag1 == false){
Leaf.showErrorMessage('${l:PROMPT}', '银行账户户名必须与商业伙伴名称一致');
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;
}
}
}
}
//许可证有效期校验
...
...
src/main/webapp/modules/hls/HLS213N/hls_bp_master_create_entrance.lview
View file @
d0fedc74
...
...
@@ -28,6 +28,13 @@
var param = record.data;
hls_doc_get_layout_code('get_layout_code_link_id', param, 'hls_bp_master_link', null, '${/parameter/@layout_code}');
}else if(record.get('bp_type')=='RENTER' || record.get('bp_type')=='MAN_FACTURER' || record.get('bp_type')=='ASSET_REGULATOR'){
record.set('function_code','HLS213OP');
record.set('function_usage','CREATE');
record.set('default_value_dsid',ds_id);
record.data['url_title'] ='商业伙伴创建'
var param=record.data;
hls_doc_get_layout_code('get_layout_code_link_id',param,'hls_bp_op_master_link',null,'${/parameter/@layout_code}');
}else{
record.set('function_code', 'HLS213D');
record.set('function_usage', 'CREATE');
...
...
@@ -42,7 +49,7 @@
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function(ds, record, name, value, old_value, bp_seq){
var f_bp_create_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
if(f_bp_create_ds_id==ds.id){
if(name=='bp_type'){
if(name=='bp_type'
&& "${/model/user_division/record/@division}"!='95'
){
//deron 将承租人与经销商分开录入,没有供应商
// if(value=='AGENT' || value=='GUTA_ORG' || value=='VENDER'){
if(value=='GUTA_ORG'){
...
...
@@ -57,7 +64,31 @@
}
else if(value=='TENANT'){
record.getField('bp_class_n').setReadOnly(false);
}else{
}else if(value=='MAN_FACTURER' || value=='RENTER' || value=='ASSET_REGULATOR'){
record.set('bp_class','ORG');
record.set('bp_class_n','法人');
record.getField('bp_class').setReadOnly(true);
record.getField('bp_class_n').setReadOnly(true);
} else{
record.getField('bp_class_n').setReadOnly(false);
}
}
if(name=='bp_type' && "${/model/user_division/record/@division}"=='95'){
if(value=='MAN_FACTURER' || value =='RENTER' || value=='ASSET_REGULATOR'){
record.set('bp_class','ORG');
record.set('bp_class_n','法人');
record.getField('bp_class').setReadOnly(true);
record.getField('bp_class_n').setReadOnly(true);
}else if(value=='GUTA_ORG'){
record.set('bp_class','ORG');
record.set('bp_class_n','法人');
record.getField('bp_class_n').setReadOnly(true);
}else if(value=='GUTA_NP'){
record.set('bp_class','NP');
record.set('bp_class_n','自然人');
record.getField('bp_class_n').setReadOnly(true);
}else {
record.getField('bp_class').setReadOnly(false);
record.getField('bp_class_n').setReadOnly(false);
}
}
...
...
@@ -88,6 +119,17 @@
}else{
r.set('bp_type','TENANT') ;
r.set('bp_type_n', '承租人');
}
if("${/model/user_division/record/@division}"=='95'){
r.set('bp_type','RENTER');
r.set('bp_type_n','租赁商');
r.set('bp_class','ORG');
r.set('bp_class_n','法人');
r.getField('bp_class').setReadOnly(true);
r.getField('bp_class_n').setReadOnly(true);
}else{
r.set('bp_type','TENANT') ;
r.set('bp_type_n', '承租人');
}
}
};
...
...
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