<?xml version="1.0" encoding="UTF-8"?> <!-- $Author: 38823 $Date: 2023-01-18 $Revision: 1.0 $purpose: 资产管理费对账 --> <a:screen xmlns:a="http://www.leaf-framework.org/application" xmlns:s="leaf.plugin.script" customizationEnabled="true" dynamiccreateenabled="true" trace="true"> <a:init-procedure> </a:init-procedure> <a:view> <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"/> <script type="text/javascript"><![CDATA[ //提交审批 window['${/parameter/@layout_code}_submit_approval_layout_dynamic_click'] = function() { var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hl_asset_manage_fee'); var records = $(ds_id).getSelected(); var ParaData = []; if(records.length ==0){ $L.showMessage("提示",'请至少选择一条数据!'); return; } for(var i=0; i<records.length;i++){ if(records[i].data.wfl_status == 'APPROVING' || records[i].data.wfl_status == 'APPROVED'){ $L.showMessage("提示",'请选择新建或者审批拒绝的单据!'); return;; } records[i].set('_status','execute'); ParaData.push(records[i].data); } Leaf.showConfirm('${l:PROMPT}', '确认提交资产管理费对账工作流?', function () { Leaf.request({ url: $('asset_check_wfl_link_id').getUrl(), para: ParaData, success: function () { Leaf.SideBar.show({ msg: '提交成功', duration: 2000 }); $(ds_id).query(); }, scope: this }); }, function () { }, null, null); }; ]]></script> <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/> </a:view> </a:screen>