1.移动关闭页面调试

2.采购需求自动生成明细

S
This commit is contained in:
weiyunlong 2025-01-15 13:54:42 +08:00
parent 816127b403
commit d7da4e297f
2 changed files with 35 additions and 1 deletions

View File

@ -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");

View File

@ -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);
}
}
}