package cn.iocoder.yudao.module.mes.controller.admin.qc.ledger.vo;
|
|
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
|
public class MesQcInspectionLedgerRespVO {
|
|
// ========== 检验单 ==========
|
|
@Schema(description = "分类(检验类型):1 来料检验 / 2 过程检验 / 3 出货检验 / 4 退货检验;字典 mes_qc_type", example = "1")
|
private Integer qcType;
|
|
@Schema(description = "检验单 ID", example = "1")
|
private Long qcId;
|
|
@Schema(description = "检验单编号", example = "IQC1787563511197")
|
private String code;
|
|
@Schema(description = "检验单名称", example = "AN1787563511157-物料检验")
|
private String name;
|
|
@Schema(description = "单据状态;字典 mes_order_status", example = "4")
|
private Integer status;
|
|
// ========== 物料 ==========
|
|
@Schema(description = "物料编号", example = "28")
|
private Long itemId;
|
|
@Schema(description = "物料编码", example = "WL0001")
|
private String itemCode;
|
|
@Schema(description = "物料名称", example = "物料A")
|
private String itemName;
|
|
@Schema(description = "规格型号", example = "100mm*50mm")
|
private String itemSpecification;
|
|
@Schema(description = "计量单位名称", example = "个")
|
private String unitName;
|
|
@Schema(description = "批次号", example = "20260920a")
|
private String batchNo;
|
|
// ========== 数量与结果 ==========
|
|
@Schema(description = "检测数量", example = "100.00")
|
private BigDecimal checkQuantity;
|
|
@Schema(description = "合格数量", example = "99.00")
|
private BigDecimal qualifiedQuantity;
|
|
@Schema(description = "不合格数量", example = "1.00")
|
private BigDecimal unqualifiedQuantity;
|
|
@Schema(description = "检测结果;字典 mes_qc_check_result", example = "1")
|
private Integer checkResult;
|
|
@Schema(description = "检测日期")
|
private LocalDateTime inspectDate;
|
|
@Schema(description = "检测人员编号", example = "1")
|
private Long inspectorUserId;
|
|
@Schema(description = "检测人员昵称", example = "张三")
|
private String inspectorName;
|
|
// ========== 检测项结果(一条明细一行;检验单未录入检测项时该组字段为空) ==========
|
|
@Schema(description = "检测项编号", example = "2")
|
private Long indicatorId;
|
|
@Schema(description = "检测项名称", example = "长度")
|
private String indicatorName;
|
|
@Schema(description = "检测值", example = "15")
|
private String indicatorValue;
|
|
@Schema(description = "检测项备注", example = "抽检")
|
private String indicatorRemark;
|
|
@Schema(description = "判定依据,由检测项标准值/误差上下限拼装", example = "10~20")
|
private String judgementBasis;
|
|
@Schema(description = "检测项标准值(判定依据原始值,前端展示用 judgementBasis 即可)", example = "15")
|
private BigDecimal standardValue;
|
|
@Schema(description = "检测项误差下限(判定依据原始值)", example = "10")
|
private BigDecimal minThreshold;
|
|
@Schema(description = "检测项误差上限(判定依据原始值)", example = "20")
|
private BigDecimal maxThreshold;
|
|
@Schema(description = "检验单备注")
|
private String remark;
|
|
}
|