Commit 8ee77d32 authored by 38823's avatar 38823

资产管理费对账问题修复

parent a56268b5
......@@ -13,10 +13,20 @@
<a:link id="con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
<a:link id="asset_check_wfl_link_id"
url="${/request/@context_path}/modules/csh/CSH1500/csh_asset_batch.lsc"/>
<a:link id="${/parameter/@layout_code}con_detail_link"
url="${/request/@context_path}/modules/cont/CON3200/con_re_incept_modify.lview"/>
<script type="text/javascript"><![CDATA[
Leaf.onReady(function() {
if('${/parameter/@function_usage}' == 'QUERY'){
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hl_asset_manage_fee');
$(ds_id).setQueryParameter('batch_id','${/parameter/@batch_id}');
$(ds_id).query();
}
});
//提交审批
window['${/parameter/@layout_code}_submit_approval_layout_dynamic_click'] = function() {
debugger;
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hl_asset_manage_fee');
var records = $(ds_id).getSelected();
var ParaData = [];
......@@ -25,9 +35,15 @@
return;
}
for(var i=0; i<records.length;i++){
if(records[i].data.wfl_status == 'APPROVING' || records[i].data.wfl_status == 'APPROVED'){
if(records[i].data.wfl_status_n == 'APPROVING' || records[i].data.wfl_status_n == 'APPROVED'){
$L.showMessage("提示",'请选择新建或者审批拒绝的单据!');
return;;
return;
}
if(i+1<records.length){
if(records[i].data.bp_id_tenant !=records[i+1].data.bp_id_tenant){
$L.showMessage("提示",'请选择相同代理店的现金流进行提交!');
return;
}
}
records[i].set('_status','execute');
ParaData.push(records[i].data);
......@@ -49,6 +65,28 @@
}, null, null);
};
function open_contract_detail(record_id, ds_id) {
debugger;
var record = $(ds_id).findById(record_id);
var param = {};
param['contract_id'] = record.get('contract_id');
param['function_code'] = 'CON3200Q';
param['layout_code'] = 'CONTRACT_QUERY_INC';
param['function_usage'] = 'QUERY';
param['maintain_type'] = 'QUERY';
param['url_title'] = '合同起租明细页面';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, '${/parameter/@layout_code}con_detail_link',ds_id);
}
//超链接渲染
window['${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record) {
var link_function = '';
window['${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record;
if(name == 'contract_number'){
link_function = 'open_contract_detail';
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + record.ds.id + '\')">' + value + '</a>';
}
};
]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
</a:view>
......
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