From d7da4e297f9549091ea58103cee31b912d71562d Mon Sep 17 00:00:00 2001 From: weiyunlong Date: Wed, 15 Jan 2025 13:54:42 +0800 Subject: [PATCH] =?UTF-8?q?1.=E7=A7=BB=E5=8A=A8=E5=85=B3=E9=97=AD=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E8=B0=83=E8=AF=95=202.=E9=87=87=E8=B4=AD=E9=9C=80?= =?UTF-8?q?=E6=B1=82=E8=87=AA=E5=8A=A8=E7=94=9F=E6=88=90=E6=98=8E=E7=BB=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit S --- .../rebm/opplugin/PurapplyAuditOPPlugin.java | 2 +- .../todotask/ApprovalPageMobilePlugin.java | 34 +++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 main/java/shkd/todotask/ApprovalPageMobilePlugin.java diff --git a/main/java/shkd/repc/rebm/opplugin/PurapplyAuditOPPlugin.java b/main/java/shkd/repc/rebm/opplugin/PurapplyAuditOPPlugin.java index 6394e05..4d69c63 100644 --- a/main/java/shkd/repc/rebm/opplugin/PurapplyAuditOPPlugin.java +++ b/main/java/shkd/repc/rebm/opplugin/PurapplyAuditOPPlugin.java @@ -17,7 +17,7 @@ public class PurapplyAuditOPPlugin extends AbstractOperationServicePlugIn { public void afterExecuteOperationTransaction(AfterOperationArgs e) { super.afterExecuteOperationTransaction(e); String operationKey = e.getOperationKey(); - if ("audit1".equals(operationKey)) { + if ("submit1".equals(operationKey)) { DynamicObject[] dataEntities = e.getDataEntities(); DynamicObject dataEntity = dataEntities[0]; dataEntity = BusinessDataServiceHelper.loadSingle(dataEntity.getPkValue(),"recon_settleplanbill"); diff --git a/main/java/shkd/todotask/ApprovalPageMobilePlugin.java b/main/java/shkd/todotask/ApprovalPageMobilePlugin.java new file mode 100644 index 0000000..30f4cd5 --- /dev/null +++ b/main/java/shkd/todotask/ApprovalPageMobilePlugin.java @@ -0,0 +1,34 @@ +package shkd.todotask; + +import kd.bos.form.events.ClosedCallBackEvent; +import kd.bos.logging.Log; +import kd.bos.logging.LogFactory; +import kd.bos.workflow.taskcenter.plugin.ApprovalPageMobilePluginNew; + +/** + * 移动审批处理 + * qeug_wf_approvaldealp_ext + */ + +public class ApprovalPageMobilePlugin extends ApprovalPageMobilePluginNew { + + private static final Log logger = LogFactory.getLog(ApprovalPageMobilePlugin.class); + + @Override + public void closedCallBack(ClosedCallBackEvent e){ + String actionId = e.getActionId(); + logger.info("获取actionId:%s",actionId); + if ("btntransfer".equals(actionId) || "approvalBtn".equals(actionId)){ + logger.info("获取actionId1:%s",actionId); + //转交/同意or驳回操作,从成功页面回调后的情况 || 终止的情况 + String operation = (String) e.getReturnData(); + if (!"cancel".equals(operation)){ + logger.info("close1"); + this.getView().close(); + logger.info("close2"); + } + }else { + super.closedCallBack(e); + } + } +}