fix(oa-board): scope brand planning rows to new workflows
This commit is contained in:
parent
3150fea488
commit
b1c8ef2e48
@ -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')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user