liyong
11 小时以前 7a23c450f3ac85de7dca1b908de273ff636ce218
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
package cn.iocoder.yudao.module.mes.controller.admin.pro.workorder.vo.process;
 
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
 
import java.math.BigDecimal;
import java.util.List;
 
@Schema(description = "管理后台 - MES 生产工单工序新增/修改 Request VO")
@Data
public class MesProWorkOrderProcessSaveReqVO {
 
    @Schema(description = "编号", example = "1024")
    private Long id;
 
    @Schema(description = "生产工单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "100")
    @NotNull(message = "生产工单编号不能为空")
    private Long workOrderId;
 
    @Schema(description = "工序编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "工序不能为空")
    private Long processId;
 
    @Schema(description = "序号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "序号不能为空")
    private Integer sort;
 
    @Schema(description = "与下一道工序关系", example = "0")
    private Integer linkType;
 
    @Schema(description = "准备时间(分钟)", example = "10")
    private Integer prepareTime;
 
    @Schema(description = "等待时间(分钟)", example = "5")
    private Integer waitTime;
 
    @Schema(description = "甘特图显示颜色", example = "#00AEF3")
    private String colorCode;
 
    @Schema(description = "是否关键工序", example = "false")
    private Boolean keyFlag;
 
    @Schema(description = "是否质检工序", example = "false")
    private Boolean checkFlag;
 
    @Schema(description = "是否倒冲", example = "true")
    private Boolean backflushFlag;
 
    @Schema(description = "产出产品物料编号", example = "100")
    private Long outputItemId;
 
    @Schema(description = "备注")
    private String remark;
 
    @Schema(description = "工序投料BOM列表")
    private List<BomItem> bomItems;
 
    @Data
    public static class BomItem {
 
        @Schema(description = "BOM物料编号", example = "1001")
        private Long itemId;
 
        @Schema(description = "BOM物料编码")
        private String itemCode;
 
        @Schema(description = "BOM物料名称")
        private String itemName;
 
        @Schema(description = "预计使用量")
        private BigDecimal quantity;
 
        @Schema(description = "备注")
        private String remark;
 
    }
 
}