fix(intake): 分销部纳入运营负责人候选名单并默认归运营

1. intake-owner-options.service.ts: operation 口径在路径含运营中心之外,增加 江苏简尚品牌管理有限公司>分销部,SPU负责人与运营负责人共用该名单,运营中心原口径不变。

2. business-role-inference.ts: 分销部从 EXCLUDED_ROOTS 移出,改为默认归 OPERATIONS,避免每日花名册同步把分销部在职员工打回普通用户。
This commit is contained in:
WuYongJie 2026-09-28 12:35:10 +08:00
parent a87a8b50b3
commit d1aa93e17f
2 changed files with 8 additions and 2 deletions

View File

@ -13,7 +13,6 @@ const EXCLUDED_ROOTS = new Set([
'总经理室',
'直播中心',
'商务中心',
'分销部',
'公共视觉部',
'经营管理中心',
'摄影中心',
@ -147,6 +146,10 @@ export function inferBusinessRolesFromDepartmentPath(
}
}
if (root === '分销部') {
return inferBusinessRole('OPERATIONS', '分销部默认归运营')
}
if (EXCLUDED_ROOTS.has(root) || /^效率部/.test(root)) {
return inferGeneralUser(`${root} 默认归普通用户`)
}

View File

@ -68,7 +68,10 @@ function departmentTextMatchesScope(
}
if (scope === "operation") {
return text.includes("运营中心");
return (
text.includes("运营中心") ||
text.includes("江苏简尚品牌管理有限公司>分销部")
);
}
if (scope === "purchasing") {