2026-07-01 6b5f7c66fc40d7f6099d561e31a34fbd50dd20d3
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
package cn.iocoder.yudao.module.mes.controller.admin.qc.oqc.vo;
 
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
 
import java.math.BigDecimal;
import java.time.LocalDateTime;
 
@Schema(description = "管理后台 - MES 出货检验单 Response VO")
@Data
@ExcelIgnoreUnannotated
public class MesQcOqcRespVO {
 
    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    @ExcelProperty("编号")
    private Long id;
 
    @Schema(description = "检验单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "OQC20250101001")
    @ExcelProperty("检验单编号")
    private String code;
 
    @Schema(description = "检验单名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "物料A出货检验")
    @ExcelProperty("检验单名称")
    private String name;
 
    @Schema(description = "检验模板 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "100")
    private Long templateId;
 
    // ========== 来源单据 ==========
 
    @Schema(description = "来源单据类型", example = "118")
    private Integer sourceDocType;
 
    @Schema(description = "来源单据 ID", example = "200")
    private Long sourceDocId;
 
    @Schema(description = "来源单据行 ID", example = "300")
    private Long sourceLineId;
 
    @Schema(description = "来源单据编号", example = "DOC20250101001")
    private String sourceDocCode;
 
    // ========== 客户 ==========
 
    @Schema(description = "客户 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
    private Long clientId;
 
    @Schema(description = "客户简称", example = "客户A")
    @ExcelProperty("客户简称")
    private String clientNickname;
 
    // ========== 物料 ==========
 
    @Schema(description = "批次号", example = "BC20250101")
    @ExcelProperty("批次号")
    private String batchCode;
 
    @Schema(description = "产品物料 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "20")
    private Long itemId;
 
    @Schema(description = "产品物料编码", example = "ITEM001")
    @ExcelProperty("产品物料编码")
    private String itemCode;
 
    @Schema(description = "产品物料名称", example = "物料A")
    @ExcelProperty("产品物料名称")
    private String itemName;
 
    @Schema(description = "规格型号", example = "100mm*50mm")
    private String itemSpecification;
 
    @Schema(description = "单位名称", example = "个")
    private String unitName;
 
    // ========== 数量 ==========
 
    @Schema(description = "最低检测数", example = "5")
    private Integer minCheckQuantity;
 
    @Schema(description = "最大不合格数", example = "0")
    private Integer maxUnqualifiedQuantity;
 
    @Schema(description = "本次出货数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "100")
    @ExcelProperty("出货数量")
    private BigDecimal outQuantity;
 
    @Schema(description = "本次检测数量", example = "10")
    @ExcelProperty("检测数量")
    private BigDecimal checkQuantity;
 
    @Schema(description = "合格品数量", example = "9")
    @ExcelProperty("合格品数量")
    private BigDecimal qualifiedQuantity;
 
    @Schema(description = "不合格品数量", example = "1")
    @ExcelProperty("不合格品数量")
    private BigDecimal unqualifiedQuantity;
 
    // ========== 缺陷统计 ==========
 
    @Schema(description = "致命缺陷率(%)", example = "0.00")
    private BigDecimal criticalRate;
 
    @Schema(description = "严重缺陷率(%)", example = "0.00")
    private BigDecimal majorRate;
 
    @Schema(description = "轻微缺陷率(%)", example = "10.00")
    private BigDecimal minorRate;
 
    @Schema(description = "致命缺陷数量", example = "0")
    private Integer criticalQuantity;
 
    @Schema(description = "严重缺陷数量", example = "0")
    private Integer majorQuantity;
 
    @Schema(description = "轻微缺陷数量", example = "1")
    private Integer minorQuantity;
 
    // ========== 检验 ==========
 
    @Schema(description = "检测结果", example = "1")
    @ExcelProperty("检测结果")
    private Integer checkResult;
 
    @Schema(description = "出货日期")
    @ExcelProperty("出货日期")
    private LocalDateTime outDate;
 
    @Schema(description = "检测日期")
    @ExcelProperty("检测日期")
    private LocalDateTime inspectDate;
 
    @Schema(description = "检测人员用户 ID", example = "1")
    private Long inspectorUserId;
 
    @Schema(description = "检测人员昵称", example = "张三")
    @ExcelProperty("检测人员")
    private String inspectorNickname;
 
    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "0")
    @ExcelProperty("状态")
    private Integer status;
 
    @Schema(description = "备注", example = "备注")
    @ExcelProperty("备注")
    private String remark;
 
    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;
 
}