Commit 9a331227 authored by 王炜's avatar 王炜

农行划扣增加工作流以及相关调整

parent 86a34b3d
......@@ -12,6 +12,8 @@
<a:link id="${/parameter/@layout_code}_con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
<a:link id="hls_ebank_input_detail_link" url="${/request/@context_path}/modules/hls_acr/HLS_ACR5040/hls_acr_ebank_input_detail.lview"/>
<a:link id="hls_ebank_input_delete_link" model="hls_acr.HLS_ACR5040.hls_acr_import_data_delete" modelaction="delete"/>
<a:link id="acr_invoice_abc2_interface_excel_sheets_id"
url="${/request/@context_path}/modules/hls_acr/HLS_ACR5010/acr_invoice_abc2_interface_excel_sheets.lsc"/>
<script><![CDATA[
//modify by wdd 20180530 for HL
//增加删除按钮,同时删除头行数据
......@@ -19,7 +21,14 @@
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_acr_ebank_output_hd_temp');
var hd_ds = $(ds_id);
var records = hd_ds.getSelected();
Leaf.showConfirm('${l:PROMPT}', '是否确定删除?', function() {
var comfirm_prompt='是否确定删除';
for (var i = 0;i < records.length;i++) {
var line_record = records[i];
if (line_record.get('wfl_status') == 'APPROVED') {
comfirm_prompt='所选数据包含调整金额流程审批通过数据,是否确认删除?';
}
}
Leaf.showConfirm('${l:PROMPT}', comfirm_prompt, function() {
var detail_mask = Ext.getBody();
if (records.length) {
Leaf.Masker.mask(detail_mask, '${l:HLS.EXECUTING}');
......@@ -74,7 +83,12 @@
window['${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record;
if (name == 'output_number' && record.get('output_hd_id')) {
link_function = '${/parameter/@layout_code}_open_input_detail_window';
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\');">' + value + '</a>';
if(record.get('wfl_status')=='REJECT'||record.get('wfl_status')=='APPROVING'){
return value;
}else{
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\');">' + value + '</a>';
}
}
};
......@@ -96,6 +110,28 @@
param['url_title'] = '明细';
hls_doc_get_layout_code('${/parameter/@layout_code}_con_contract_get_layout_code_link_id', param, 'hls_ebank_input_detail_link', null, null);
};
//调整金额导出划扣指令
window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function() {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_acr_ebank_output_hd_temp');
var hd_ds = $(ds_id);
var records = hd_ds.getSelected();
if(records.length==0||records.length>1){
Leaf.showMessage('提示', '请选择一条数据导出划扣指令!');
return;
}
var record=records[0];
if(record.get('handle_flag')=='Y'){
Leaf.showMessage('提示', '当前批次已处理完成不可导出划扣指令!');
return;
}
if(record.get('wfl_status')!='APPROVED'){
Leaf.showMessage('提示', '仅通过农行调整金额流程的批次可导出划扣指令!');
return;
}
url = $('acr_invoice_abc2_interface_excel_sheets_id').getUrl() + '?output_id=' + record.get('output_hd_id');
window.open(url);
}
]]></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