This commit is contained in:
zlwu committed 2026-06-29 09:21:09 +08:00
1 parent 4daf990fab
commit 1ca2668112
219 files changed
+29817 -20945

No files matched your search

+5 -1
View File
@@ -10,6 +10,7 @@ import { useUserStore } from '@/store/modules/user'
export const MY_QC_MATERIAL_USAGE_VIEW_AMOUNT_PERM = 'biz:myQcMaterialUsage:viewAmount'
export const QC_MATERIAL_VIEW_AMOUNT_PERM = 'biz:qcMaterial:viewAmount'
export const QC_THIRD_PARTY_VIEW_AMOUNT_PERM = 'biz:qcThirdPartyCompany:viewAmount'
export function useMenuPerm() {
const userStore = useUserStore()
@@ -28,9 +29,12 @@ export function useMenuPerm() {
const hasQcMaterialViewAmount = computed(() => hasMenuPerm(QC_MATERIAL_VIEW_AMOUNT_PERM))
const hasQcThirdPartyViewAmount = computed(() => hasMenuPerm(QC_THIRD_PARTY_VIEW_AMOUNT_PERM))
return {
hasMenuPerm,
hasMyQcMaterialUsageViewAmount,
hasQcMaterialViewAmount
hasQcMaterialViewAmount,
hasQcThirdPartyViewAmount
}
}