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) {