From 4bd10c533782d0457a1ad4b10d4258e75fe302c0 Mon Sep 17 00:00:00 2001 From: = <=> Date: Wed, 6 May 2026 14:23:54 +0800 Subject: [PATCH] commit --- .../UnionReimburseApplyController.java | 33 +++--- .../plugins/sysSignature/h5Index.vue | 2 +- .../unionReimburse/apply/index.html | 111 +++++++++++++++--- 3 files changed, 114 insertions(+), 32 deletions(-) diff --git a/src/main/java/com/budwk/app/zhgh/dayofficework/unionReimburse/controller/UnionReimburseApplyController.java b/src/main/java/com/budwk/app/zhgh/dayofficework/unionReimburse/controller/UnionReimburseApplyController.java index 7a799ff1..644cee4b 100644 --- a/src/main/java/com/budwk/app/zhgh/dayofficework/unionReimburse/controller/UnionReimburseApplyController.java +++ b/src/main/java/com/budwk/app/zhgh/dayofficework/unionReimburse/controller/UnionReimburseApplyController.java @@ -113,22 +113,23 @@ public class UnionReimburseApplyController { return Result.success(); } -// @At -// @ApiOperation("重新提交申请") -// @Aop(TransAop.READ_COMMITTED) -// @SaCheckPermission(value = {"unionReimburse.apply", "h5.unionReimburse.apply"}, mode = SaMode.OR) -// public Result submitAgain(@Param("data") UnionReimburse unionReimburse, @Param("taskId") Long taskId) { -// if (StrUtil.isBlank(unionReimburse.getId())) unionReimburse.setCreateTime(new Date()); -// -// dao.insertOrUpdate(unionReimburse); -// -// Dict dict = Dict.create(); -// dict.set(FlowConst.PROCESS_TASK_ID_KEY, taskId); -// dict.set(FlowConst.SUBMIT_TYPE, ProcessSubmitTypeEnum.RE_APPLY.getCode()); -// dict.set("userId", unionReimburse.getCondolenceUserId()); -// flowCommonService.executeTask(dict); -// return Result.success(); -// } + @At + @ApiOperation("重新提交申请") + @Aop(TransAop.READ_COMMITTED) + @SaCheckPermission(value = {"unionReimburse.apply", "h5.unionReimburse.apply"}, mode = SaMode.OR) + public Result submitAgain(@Param("data") UnionReimburse unionReimburse, @Param("taskId") Long taskId) { + // 退回重提也必须复用当前提交保存逻辑,避免绕过发票明细落库和提交校验。 + Result result = unionReimburseService.saveApply(unionReimburse, 2); + if (result.getCode() != 0) { + return result; + } + + Dict dict = Dict.create(); + dict.set(FlowConst.PROCESS_TASK_ID_KEY, taskId); + dict.set(FlowConst.SUBMIT_TYPE, ProcessSubmitTypeEnum.RE_APPLY.getCode()); + flowCommonService.executeTask(dict); + return Result.success(); + } @At @SaCheckLogin diff --git a/src/main/resources/static/components/plugins/sysSignature/h5Index.vue b/src/main/resources/static/components/plugins/sysSignature/h5Index.vue index 62726682..6c78cdbf 100644 --- a/src/main/resources/static/components/plugins/sysSignature/h5Index.vue +++ b/src/main/resources/static/components/plugins/sysSignature/h5Index.vue @@ -15,7 +15,7 @@