提交
This commit is contained in:
1 parent
54a1ba0c5c
commit
dd3bb3cf06
896 files changed
+668620
-194702
No files matched your search
@@ -326,16 +326,12 @@ export function enrichStopProductsDisplayFromPlan(
|
||||
})
|
||||
}
|
||||
|
||||
/** 查看态:段产品为空时回退计划产品,再补齐展示字段(与编辑弹窗 bootstrap 一致) */
|
||||
/** 查看态:仅展示段上真实产品(空段不回退计划产品);有段产品时补齐展示字段 */
|
||||
export function resolveStopProductsForView(
|
||||
stopProducts: PlanStopProductFormRow[] | undefined | null,
|
||||
planProducts: PlanFormProductRow[]
|
||||
): PlanStopProductFormRow[] {
|
||||
const rows = stopProducts?.length
|
||||
? stopProducts
|
||||
: planProducts.length
|
||||
? createStopProductsFromPlanProducts(planProducts)
|
||||
: []
|
||||
const rows = stopProducts?.length ? stopProducts : []
|
||||
return enrichStopProductsDisplayFromPlan(rows, planProducts)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user