Commit 545b8127 authored by 陆正友's avatar 陆正友

授信页面超链接跳转

parent 220174a9
......@@ -8,7 +8,7 @@ $Purpose: 商业伙伴授信维护
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true" trace="true">
<a:init-procedure>
<a:model-query defaultWhereClause="t1.user_id=${/session/@user_id} and position_code in(003)" fetchAll="true" model="csh.CSH509.query_roles_info" rootPath="position_code"/>
<a:model-query defaultWhereClause="t1.user_id=${/session/@user_id} and position_code in(003,9065)" fetchAll="true" model="csh.CSH509.query_roles_info" rootPath="position_code"/>
</a:init-procedure>
<a:view>
......@@ -26,7 +26,7 @@ $Purpose: 商业伙伴授信维护
Leaf.onReady(function(){
user_code='${/model/position_code/record/@position_code}';
})
//判断角色是否可以操作
//超链接渲染
window['${/parameter/@bp_seq}${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record, bp_seq) {
......@@ -35,11 +35,13 @@ $Purpose: 商业伙伴授信维护
window['${/parameter/@bp_seq}${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record;
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')=='AGENT'){
link_function = 'on_business_agent_detail_window';
}else if(record.get('bp_category')=='VENDER'){
}else if ( record.get('bp_category')=='RENTER'){
link_function = 'on_business_tenant_detail_window';
}
......@@ -50,23 +52,11 @@ $Purpose: 商业伙伴授信维护
//变更确认
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function() {
//授信额度变更
debugger;
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 credit_ds=get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_credit_hd');
var datas=$(credit_ds).selected;
var param = {};
var saveData = [];
//角色判断
//判断角色是否可以操作
//002 营业本部长
for (var i = 0; i < datas.length; i++){
if(user_code==''||user_code==undefined){
......@@ -120,7 +110,7 @@ $Purpose: 商业伙伴授信维护
scope: this
});
})
})
};
//驳回单据.
......@@ -163,7 +153,6 @@ $Purpose: 商业伙伴授信维护
saveData.push(data_record.data);
}
param['details'] = saveData;
$L.showConfirm("提示",'确认进行授信退回?',function(){
// window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({
......
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