Commit e4ee7bd8 authored by XieZhiXiong's avatar XieZhiXiong

fix: 修复步骤条展示不对的问题

parent 244456a3
......@@ -127,11 +127,16 @@ function useGetDetailCommon<T extends GetProductGoodsGetGoodsProcessDetailRespon
roleName: string,
status: 'finish' | 'wait',
}[] = initialValue?.simpleProcessDefVO ?
initialValue?.simpleProcessDefVO?.tasks?.map(item => ({
initialValue?.simpleProcessDefVO?.tasks?.map((item, index) => ({
step: item.taskStep,
stepName: item.taskName,
roleName: item.roleName,
status: initialValue?.simpleProcessDefVO?.currentStep >= item.taskStep ? 'finish' : 'wait',
status: (
(initialValue?.simpleProcessDefVO?.currentStep > item.taskStep)
|| (index === initialValue?.simpleProcessDefVO?.tasks.length - 1 && initialValue?.simpleProcessDefVO?.currentStep === item.taskStep)
)
? 'finish'
: 'wait',
})) :
[]
const innerVerifyCurrent = findLastIndexFlowState(initialValue?.simpleProcessDefVO.tasks)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment