From cb2f2ef5f918dfb0c83a0f1bfa3313498450de76 Mon Sep 17 00:00:00 2001 From: 18631081161 <2088094923@qq.com> Date: Sat, 17 Jan 2026 21:17:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=88=E9=83=A8=E4=B8=8A=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/src/views/allocations/AllocationList.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/frontend/src/views/allocations/AllocationList.vue b/src/frontend/src/views/allocations/AllocationList.vue index 9cf2da0..948072e 100644 --- a/src/frontend/src/views/allocations/AllocationList.vue +++ b/src/frontend/src/views/allocations/AllocationList.vue @@ -596,12 +596,12 @@ function getTotalConsumed(): number { } function canReportConsumption(distribution: AllocationDistribution): boolean { - // 师级(Division)是配额创建者,不需要上报消耗 - if (authStore.organizationalLevelNum === 1) return false - // 当前用户所属单位或其上级单位的分配都可以上报消耗 if (!authStore.user) return false + // 如果分配目标是当前用户所属单位,则可以上报消耗 + if (distribution.targetUnitId === authStore.user.organizationalUnitId) return true // 营部及以下账号可以上报所属团的配额 - return true + if (authStore.organizationalLevelNum >= 3) return true + return false } function handleReportConsumption(distribution: AllocationDistribution) {