修正 ERP 边界与资产页面一致性(05-30-fix-erp-boundary-asset-consistency)
这个提交包含在:
@@ -42,7 +42,6 @@ const MODULE_LABELS: Record<string, string> = {
|
||||
invoicePool: "票据",
|
||||
inventoryChecks: "资产盘点",
|
||||
cutover: "切换控制台",
|
||||
erpIntegrations: "外部系统",
|
||||
profile: "个人设置",
|
||||
};
|
||||
|
||||
@@ -83,9 +82,12 @@ export function WorkspaceSetupPage() {
|
||||
|
||||
const workspace = workspaceQuery.data;
|
||||
const rolePresets = navigationQuery.data?.recommendedRolePresets ?? [];
|
||||
const moduleEntries = useMemo(() => Object.entries(workspace?.moduleVisibility ?? {}), [workspace?.moduleVisibility]);
|
||||
const moduleEntries = useMemo(
|
||||
() => Object.entries(workspace?.moduleVisibility ?? {}).filter(([key]) => key !== "erpIntegrations"),
|
||||
[workspace?.moduleVisibility],
|
||||
);
|
||||
const workspaceStats = useMemo(() => {
|
||||
const entries = Object.entries(workspace?.moduleVisibility ?? {});
|
||||
const entries = Object.entries(workspace?.moduleVisibility ?? {}).filter(([key]) => key !== "erpIntegrations");
|
||||
return {
|
||||
total: entries.length,
|
||||
main: entries.filter(([, mode]) => mode === "main").length,
|
||||
|
||||
在新工单中引用
屏蔽一个用户