Commit d0fedc74 authored by 18083's avatar 18083

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

parent 3def404c
...@@ -815,24 +815,7 @@ ...@@ -815,24 +815,7 @@
}, 20); }, 20);
return false; 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;
}
}
}
} }
//许可证有效期校验 //许可证有效期校验
if (name == 'due_date') { if (name == 'due_date') {
......
...@@ -28,7 +28,14 @@ ...@@ -28,7 +28,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);
...@@ -42,7 +49,7 @@ ...@@ -42,7 +49,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'){
...@@ -57,11 +64,35 @@ ...@@ -57,11 +64,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) {
...@@ -89,6 +120,17 @@ ...@@ -89,6 +120,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