9 天以前 2e84a447af471fe5ada907c28849838a6bc3a340
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
package cn.iocoder.yudao.module.mes.controller.admin.pro.feedback.vo;
 
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
 
import java.math.BigDecimal;
import java.time.LocalDateTime;
 
@Schema(description = "管理后台 - MES 生产报工新增/修改 Request VO")
@Data
public class MesProFeedbackSaveReqVO {
 
    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    private Long id;
 
    @Schema(description = "报工单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "FB202503001")
    @NotNull(message = "报工单编号不能为空")
    private String code;
 
    @Schema(description = "报工类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "报工类型不能为空")
    private Integer type;
 
    @Schema(description = "工作站编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "工作站不能为空")
    private Long workstationId;
 
    @Schema(description = "工艺路线编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "工艺路线不能为空")
    private Long routeId;
 
    @Schema(description = "工序编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "工序不能为空")
    private Long processId;
 
    @Schema(description = "生产工单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "生产工单不能为空")
    private Long workOrderId;
 
    @Schema(description = "生产任务编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "生产任务不能为空")
    private Long taskId;
 
    @Schema(description = "产品物料编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "100")
    @NotNull(message = "产品物料不能为空")
    private Long itemId;
 
    @Schema(description = "过期日期")
    private LocalDateTime expireDate;
 
    @Schema(description = "生产批号", example = "LOT20260321")
    private String lotNumber;
 
    @Schema(description = "排产数量", example = "5000.00")
    private BigDecimal scheduledQuantity;
 
    @Schema(description = "本次报工数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "500.00")
    @NotNull(message = "报工数量不能为空")
    private BigDecimal feedbackQuantity;
 
    @Schema(description = "合格品数量", example = "490.00")
    private BigDecimal qualifiedQuantity;
 
    @Schema(description = "不良品数量", example = "10.00")
    private BigDecimal unqualifiedQuantity;
 
    @Schema(description = "待检测数量", example = "0")
    private BigDecimal uncheckQuantity;
 
    @Schema(description = "工废数量", example = "6.00")
    private BigDecimal laborScrapQuantity;
 
    @Schema(description = "料废数量", example = "4.00")
    private BigDecimal materialScrapQuantity;
 
    @Schema(description = "其他废品数量", example = "0")
    private BigDecimal otherScrapQuantity;
 
    @Schema(description = "报工人编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "报工人不能为空")
    private Long feedbackUserId;
 
    @Schema(description = "报工时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "报工时间不能为空")
    private LocalDateTime feedbackTime;
 
    @Schema(description = "审核人编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "审核人不能为空")
    private Long approveUserId;
 
    @Schema(description = "备注", example = "备注")
    private String remark;
 
    }