From 134a11da0973e2dc9c6799ab3172cc52530957fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=8C=E5=85=88=E8=88=9C?= <2499071264@qq.com> Date: Thu, 5 Nov 2026 16:17:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=96=97=E4=BC=91=E5=85=BBUI=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...eRapyRecuperationUnionQueryController.java | 9 +- .../TheRapyRecuperationEnrollServiceImpl.java | 11 + .../therapyRecuperation/mobileMixins.js | 8 + .../process/TheRapyQuery.html | 85 ++++- .../statistics/lineStatistics.html | 4 +- .../therapyRecuperation/index.html | 5 +- .../therapyRecuperation/lineInfo.html | 10 +- .../therapyRecuperation/lineList.html | 295 +++++++++++++++--- .../therapyRecuperation/userSignInfo.html | 2 +- 9 files changed, 353 insertions(+), 76 deletions(-) diff --git a/src/main/java/com/budwk/app/zhgh/staffbenefit/therapyRecuperation/controller/process/TheRapyRecuperationUnionQueryController.java b/src/main/java/com/budwk/app/zhgh/staffbenefit/therapyRecuperation/controller/process/TheRapyRecuperationUnionQueryController.java index 08f1b74..d7401e9 100644 --- a/src/main/java/com/budwk/app/zhgh/staffbenefit/therapyRecuperation/controller/process/TheRapyRecuperationUnionQueryController.java +++ b/src/main/java/com/budwk/app/zhgh/staffbenefit/therapyRecuperation/controller/process/TheRapyRecuperationUnionQueryController.java @@ -333,12 +333,15 @@ public class TheRapyRecuperationUnionQueryController { public Object getLxsData(PageForm pageForm, String year, String agencyId) { Cnd cnd = Cnd.NEW(); Sql sql = Sqls.create(""" + SELECT agency.* + FROM ( SELECT - *, + agency.*, files AS fileId, ( SELECT COUNT( 1 ) FROM inclusive_therapy_v3_enroll WHERE agency.id = takePartInTravelAgencyId and isNormal=true and stateId=@stateId $unionCnd $yearCnd) agencyNum FROM inclusive_therapy_v3_travel_agency agency + ) agency $condition """).setParam("stateId", TheRapyRecuperationState.PASS); if (!TherapyContext.hasAnyRoles("sysadmin,H06")) { @@ -349,11 +352,9 @@ public class TheRapyRecuperationUnionQueryController { } cnd.andEX("agency.`year`", "=", year); cnd.andEX("agency.id", "=", agencyId); + cnd.and("agency.agencyNum", ">", 0); sql.setCondition(cnd); Pagination pagination = baseService.listPageMap(pageForm.getPageNumber(), pageForm.getPageSize(), sql); - List list = pagination.getList(); - List agencyNum = list.stream().filter(v -> v.getInt("agencyNum") > 0).collect(Collectors.toList()); - pagination.setList(agencyNum); return pagination; } diff --git a/src/main/java/com/budwk/app/zhgh/staffbenefit/therapyRecuperation/service/impl/TheRapyRecuperationEnrollServiceImpl.java b/src/main/java/com/budwk/app/zhgh/staffbenefit/therapyRecuperation/service/impl/TheRapyRecuperationEnrollServiceImpl.java index 4c80b55..ff77ef5 100644 --- a/src/main/java/com/budwk/app/zhgh/staffbenefit/therapyRecuperation/service/impl/TheRapyRecuperationEnrollServiceImpl.java +++ b/src/main/java/com/budwk/app/zhgh/staffbenefit/therapyRecuperation/service/impl/TheRapyRecuperationEnrollServiceImpl.java @@ -99,8 +99,16 @@ public class TheRapyRecuperationEnrollServiceImpl extends TherapyServiceImpl getSelectLineById(String lineId, String usId, String unionId, int trrt, Integer lineUnionType, Integer signUpStatus) { + if (!isCurrentUserInActivityScope()) { + return Collections.emptyList(); + } Sql lineSql = Sqls.create(""" SELECT us.id as usId, diff --git a/src/main/resources/static/assets/staffbenefit/therapyRecuperation/mobileMixins.js b/src/main/resources/static/assets/staffbenefit/therapyRecuperation/mobileMixins.js index 74c416e..7f92f00 100644 --- a/src/main/resources/static/assets/staffbenefit/therapyRecuperation/mobileMixins.js +++ b/src/main/resources/static/assets/staffbenefit/therapyRecuperation/mobileMixins.js @@ -23,6 +23,14 @@ const mobileMixins = { } }, methods: { + historyBack(callback) { + if (window.history.length > 1) { + window.history.back() + } else { + window.location.href = '/platform/h5/home' + } + if (typeof callback === 'function') callback() + }, async pageData() { this.mLoading = true if (this.pageDataUrl == null) { diff --git a/src/main/resources/views/platform/zhgh/staffbenefit/therapyRecuperation/process/TheRapyQuery.html b/src/main/resources/views/platform/zhgh/staffbenefit/therapyRecuperation/process/TheRapyQuery.html index cff2d76..c4cab76 100644 --- a/src/main/resources/views/platform/zhgh/staffbenefit/therapyRecuperation/process/TheRapyQuery.html +++ b/src/main/resources/views/platform/zhgh/staffbenefit/therapyRecuperation/process/TheRapyQuery.html @@ -115,6 +115,40 @@ layout("/platform/zhgh/staffbenefit/therapyRecuperation/layouts/platform.html"){ padding-right: 0; } } + #app .branch-query-filters .query-route-choice { + display: flex; + align-items: center; + gap: 12px; + } + + #app .branch-query-filters .query-route-choice > span { + flex-shrink: 0; + } + + #app .branch-query-filters .query-route-choice > .el-select { + flex: 1; + min-width: 0; + width: 0 !important; + } + + #app .branch-query-filters .query-route-hint { + padding-left: 20px; + color: #b36b13; + font-size: 13px; + line-height: 20px; + } + + #app .branch-query-filters .query-route-hint > span { + color: inherit; + text-align: left; + } + + @media (max-width: 767px) { + #app .branch-query-filters .query-route-choice, + #app .branch-query-filters .query-route-hint { width: 100%; } + #app .branch-query-filters .query-route-hint { padding: 10px 0 0; } + } + .therapy-query-view-dialog, .therapy-query-edit-dialog { display: flex; @@ -393,7 +427,7 @@ layout("/platform/zhgh/staffbenefit/therapyRecuperation/layouts/platform.html"){ - + 选择路线: + + 【本工会报名线路】和【本工会人员选择其他工会的线路】 + 选择旅行社: - - - 【本工会报名线路】和【本工会人员选择其他工会的线路】 - - 温馨提醒:当前操作查询是【本工会当年参加疗休养的人员(包含校工会线路)】和【其他工会选择本工会线路的疗休养人员】 @@ -499,7 +531,7 @@ layout("/platform/zhgh/staffbenefit/therapyRecuperation/layouts/platform.html"){ - + - + - -