fix(sample-progress): retain reached cancelled sample nodes
This commit is contained in:
parent
fd0354f1d0
commit
7a25001d6b
@ -1715,7 +1715,11 @@ function toProjectListItem(record: PreviewProjectRecord): OaBoardProjectListItem
|
||||
const nodeAssessments = record.flowInstances
|
||||
.flatMap((flowInstance) =>
|
||||
flowInstance.taskRecords
|
||||
.filter((taskRecord) => taskRecord.status !== 'CANCELED')
|
||||
.filter(
|
||||
(taskRecord) =>
|
||||
taskRecord.status !== 'CANCELED' ||
|
||||
(taskRecord.nodeName === '确认打样出货时间' && Boolean(taskRecord.startedAtSource)),
|
||||
)
|
||||
.map((taskRecord) => ({
|
||||
flowType: flowInstance.flowType,
|
||||
flowLabel:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user