Commit 2915dac6 authored by 18083's avatar 18083

商业伙伴创建代码与正式环境保持一致

parent b703295d
...@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment