Commit bd61514ad8f857afd48666fb5c2e3ace461fe526

Authored by YunaiV
1 parent 582c84b6

✨ feat(mes): 更新保养记录状态值及表单操作逻辑

调整保养记录状态值,确保状态与操作逻辑一致。新增表单提交功能,允许在编辑模式下提交保养记录,优化用户体验。
yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/enums/dv/MesDvMaintenRecordStatusEnum.java
@@ -15,10 +15,11 @@ import java.util.Arrays; @@ -15,10 +15,11 @@ import java.util.Arrays;
15 @AllArgsConstructor 15 @AllArgsConstructor
16 public enum MesDvMaintenRecordStatusEnum implements ArrayValuable<Integer> { 16 public enum MesDvMaintenRecordStatusEnum implements ArrayValuable<Integer> {
17 17
18 - PREPARE(0, "草稿"),  
19 - SUBMITTED(1, "已提交"); 18 + PREPARE(1, "草稿"),
  19 + SUBMITTED(2, "已提交");
20 20
21 - public static final Integer[] ARRAYS = Arrays.stream(values()).map(MesDvMaintenRecordStatusEnum::getStatus).toArray(Integer[]::new); 21 + public static final Integer[] ARRAYS = Arrays.stream(values()).map(MesDvMaintenRecordStatusEnum::getStatus)
  22 + .toArray(Integer[]::new);
22 23
23 /** 24 /**
24 * 状态值 25 * 状态值