Commit 2b403f8f authored by gzj34291's avatar gzj34291

商业伙伴创建修改

parent 9a27c1a0
......@@ -64,12 +64,17 @@
window['${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function(ds, record, config_records, bp_seq) {
var bp_create_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
debugger;
if(ds.id == bp_create_ds_id) {
var r = $(bp_create_ds_id).getCurrentRecord();
if (!r.get('bp_category')) {
r.set('bp_category', 'TENANT');
r.set('bp_category_n', '承租人');
if("${/model/user_name_path/record/@user_name}"=="DSF001"||"${/model/user_name_path/record/@user_name}"=="DSF002"){
r.set('bp_category', 'THIRD_PARTY');
r.set('bp_category_n', '第三方');
}else{
r.set('bp_category', 'TENANT');
r.set('bp_category_n', '承租人');
}
}
if("${/model/user_name_path/record/@user_name}"=="DSF001"||"${/model/user_name_path/record/@user_name}"=="DSF002"){
......
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