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
2915dac6
Commit
2915dac6
authored
Aug 09, 2024
by
18083
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商业伙伴创建代码与正式环境保持一致
parent
b703295d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
3 deletions
+45
-3
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_entrance.lview
View file @
2915dac6
...
@@ -26,7 +26,14 @@
...
@@ -26,7 +26,14 @@
var param = record.data;
var param = record.data;
hls_doc_get_layout_code('get_layout_code_link_id', param, 'hls_bp_master_link', null, '${/parameter/@layout_code}');
hls_doc_get_layout_code('get_layout_code_link_id', param, 'hls_bp_master_link', null, '${/parameter/@layout_code}');
}else{
}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_code', 'HLS213D');
record.set('function_usage', 'CREATE');
record.set('function_usage', 'CREATE');
record.set('default_value_dsid', ds_id);
record.set('default_value_dsid', ds_id);
...
@@ -40,7 +47,7 @@
...
@@ -40,7 +47,7 @@
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function(ds, record, name, value, old_value, bp_seq){
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');
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(f_bp_create_ds_id==ds.id){
if(name=='bp_type'){
if(name=='bp_type'
&& "${/model/user_division/record/@division}"!='95'
){
//deron 将承租人与经销商分开录入,没有供应商
//deron 将承租人与经销商分开录入,没有供应商
// if(value=='AGENT' || value=='GUTA_ORG' || value=='VENDER'){
// if(value=='AGENT' || value=='GUTA_ORG' || value=='VENDER'){
if(value=='GUTA_ORG'){
if(value=='GUTA_ORG'){
...
@@ -55,11 +62,35 @@
...
@@ -55,11 +62,35 @@
}
}
else if(value=='TENANT'){
else if(value=='TENANT'){
record.getField('bp_class_n').setReadOnly(false);
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);
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);
}
}
}
}
}
};
};
window['${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function(ds, record, config_records, bp_seq) {
window['${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function(ds, record, config_records, bp_seq) {
...
@@ -84,6 +115,17 @@
...
@@ -84,6 +115,17 @@
r.set('bp_type','TENANT') ;
r.set('bp_type','TENANT') ;
r.set('bp_type_n', '承租人');
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', '承租人');
}
}
}
};
};
]]>
</script>
]]>
</script>
...
...
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