feat(plan): 工艺参数内联编辑 + 双分支保存流程

道次区域状态机:
  - 未选计划:提示文字
  - 已选/未绑方案:「选择已有方案」+ 「新增工艺参数」两个按钮
  - 编辑模式:内联可编辑道次表 + 增减道次按钮
    底部操作栏:取消 | 仅用于本计划 | 保存为方案...
  - 已绑方案只读展示,支持「修改参数」进入编辑

「仅用于本计划」:创建 status=1 的私有方案并绑定,不出现在方案下拉中
「保存为方案」:弹窗填写方案号后以 status=0 保存并绑定,自动刷新方案列表

后端:MillProcessRecipeController.add 改为返回新方案 ID

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-28 17:09:00 +08:00
parent ca5c21b15f
commit 0443b8e320
2 changed files with 368 additions and 219 deletions

View File

@@ -37,7 +37,8 @@ public class MillProcessRecipeController extends BaseController {
@PostMapping
public AjaxResult add(@RequestBody MillProcessRecipe recipe) {
return toAjax(recipeService.save(recipe));
recipeService.save(recipe);
return AjaxResult.success(recipe.getId());
}
@PutMapping