Commit ceaa43f9 authored by 38823's avatar 38823

资产管理费代理店

parent d2f89b6e
......@@ -341,12 +341,32 @@
}
}
//资产管理费
function open_asset_management(record_id, ds_id) {
debugger;
var record = $(ds_id).findById(record_id);
if(record.get('bp_id') == undefined || record.get('agent_division_id')==undefined){
$L.showMessage('提示','请先保存!');
return;
}
var param = {};
param['bp_id'] = record.get('bp_id');
param['agent_division_id'] = record.get('agent_division_id');
param['division'] = record.get('division');
param['function_code'] = 'HLS303_ASSET';
param['function_usage'] = 'MODIFY';
param['maintain_type'] = 'UPDATE';
param['winid'] = 'open_asset_create_window';
param['url_title'] = '资产管理费明细页面';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, '${/parameter/@layout_code}asset_management_link',ds_id);
}
//超链接渲染
window['${/parameter/@layout_code}_dynamic_link_renderer'] = function(value, record, name, config_record) {
debugger;
//
window['${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record;
if (name == 'attachment') {
......@@ -391,6 +411,9 @@
} else {
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + config_record.get('prompt') + '(' + record.get('attach_count') + ')' + '</a>';
}
}else if(name == 'management_flag'){
link_function = 'open_asset_management';
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + record.ds.id + '\')">' + '明细' + '</a>';
}
};
......
......@@ -293,7 +293,7 @@
function open_asset_management(record_id, ds_id) {
debugger;
var record = $(ds_id).findById(record_id);
if(record.get('bp_id') == 'undefined'){
if(record.get('bp_id') == undefined || record.get('agent_division_id')==undefined){
$L.showMessage('提示','请先保存!');
return;
}
......
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