fix(oa-board): scope brand planning rows to new workflows

This commit is contained in:
jingchuan 2026-07-22 18:48:21 +08:00
parent 3150fea488
commit b1c8ef2e48

View File

@ -381,6 +381,11 @@ function buildSnapshotRows(
const graph = graphBySpu.get(product.spu.trim().toUpperCase())
const reviewFlow = findFlow(graph, 'review')
const artFlow = findFlow(graph, 'art')
// The board follows the new-product review workflow. Historical SKU records
// without a matching review flow are not actionable for brand planning.
if (!graph || !reviewFlow) return []
const taskAssignedAt = dateFromUnknown(
readFlowField(artFlow, ['品牌策划主管分配任务结束时间']),
) ?? findTaskDate(artFlow, ['品牌策划主管分配任务'], 'finished')