UPDATE:修改编辑计划按钮判断是否为主计划逻辑

This commit is contained in:
贾同学
2025-08-18 16:28:29 +08:00
parent c9fef2a9d7
commit e938c6b3d9

View File

@@ -580,8 +580,8 @@ const openDialog = (titleType: string, row: Partial<Plan.ReqPlan> = {}) => {
if (row.children?.length > 0) { if (row.children?.length > 0) {
// 有子计划 -> 主计划 // 有子计划 -> 主计划
planType = 0 planType = 0
} else if (row.origin == null) { } else if (row.fatherPlanId === '0') {
// 没有来源 -> 主计划 // 父级ID为"0" -> 主计划
planType = 0 planType = 0
} else { } else {
// 其他 -> 修改子计划 // 其他 -> 修改子计划