Merge branch 'dev' into order-delivery-reply

# Conflicts:
#	backend/app/models/user.py
#	docs/demand.md
#	docs/funclist.md
#	frontend/src/features/auth/stores/auth.store.ts
#            dev existing problems
This commit is contained in:
HTEWJ\26070045 committed 2026-09-29 16:38:05 +08:00
commit 821bd0a62c
101 files changed
+4784 -527

No files matched your search

@@ -19,7 +19,7 @@ import { computed, provide, ref, watch } from 'vue';
import { useRoute } from 'vue-router';
import { Maximize2, Minimize2, Loader2 } from 'lucide-vue-next';
import { useAuthStore } from '@/features/auth/stores/auth.store';
import ChatShell from '@/shared/layouts/ChatShell.vue';
@@ -166,7 +166,13 @@ const embeddedIframeSrc = computed(() => {
});
const canManageMaintenance = computed(() => ['admin', 'maintenance_manager'].includes(String(page.currentUser?.role || '')));
const authStore = useAuthStore();
/**
* 设备维保台账/维修写入口。
* 核心逻辑:读登录态 maintenance.ledger_write,不再认 role 字符串。
*/
const canManageMaintenance = computed(() => authStore.hasFeaturePermission('maintenance.ledger_write'));
const hideWelcomePanel = computed(() => false);