Commit 83d2ba8a authored by 陆正友's avatar 陆正友

授信页面超链接跳转

parent 39604fe6
...@@ -35,10 +35,14 @@ $Purpose: 商业伙伴授信维护 ...@@ -35,10 +35,14 @@ $Purpose: 商业伙伴授信维护
window['${/parameter/@bp_seq}${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record; window['${/parameter/@bp_seq}${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record;
if (name == 'bp_code' && value) { if (name == 'bp_code' && value) {
if (record.get('bp_category')=='TENANT'){ if (record.get('bp_category')=='AGENT'){
link_function = 'on_business_tenant_detail_window';
}else if ( record.get('bp_category')=='TENANT'){
link_function = 'on_business_tenant_detail_window';
}else if ( record.get('bp_category')=='RENTER'){
link_function = 'on_business_tenant_detail_window';
}else if ( record.get('bp_category')=='RENTER'){
link_function = 'on_business_tenant_detail_window'; link_function = 'on_business_tenant_detail_window';
}else if ( record.get('bp_category')=='AGENT'){
link_function = 'on_business_agent_detail_window';
} }
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\');">' + value + '</a>'; return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\');">' + value + '</a>';
...@@ -48,8 +52,20 @@ $Purpose: 商业伙伴授信维护 ...@@ -48,8 +52,20 @@ $Purpose: 商业伙伴授信维护
//变更确认 //变更确认
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function() { window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function() {
//授信额度变更 //授信额度变更
var credit_ds=get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_credit_hd'); debugger;
var datas=$(credit_ds).selected; var credit_ds=get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'F_CREDIT_HD', 'hls_bp_master_credit_hd');
var op_credit_ds=get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'F_CREDIT_OP', 'hls_bp_master_credit_hd');
var credit_datas = $(credit_ds).selected;
var op_credit_datas = $(op_credit_ds).selected;
if(credit_datas == ''){
var datas=$(op_credit_ds).selected;
}else {
datas = $(credit_ds).selected;
}
if(credit_datas!='' && op_credit_datas!=''){
$L.showErrorMessage("提示",'请勾选同一业务类型的单据进行授信确认操作!');
return;
}
var param = {}; var param = {};
var saveData = []; var saveData = [];
//角色判断 //角色判断
......
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