| | |
| | | @Schema(description = "来源单据行 ID", example = "300") |
| | | private Long sourceLineId; |
| | | |
| | | // ========== 生产关联 ========== |
| | | |
| | | @Schema(description = "生产工单 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") |
| | | @NotNull(message = "生产工单不能为空") |
| | | private Long workOrderId; |
| | | |
| | | @Schema(description = "生产任务 ID", example = "20") |
| | | private Long taskId; |
| | | |
| | | @Schema(description = "工位 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "30") |
| | | @NotNull(message = "工位不能为空") |
| | | private Long workstationId; |
| | | |
| | | @Schema(description = "工序 ID", example = "40") |
| | | private Long processId; |
| | | @Schema(description = "批号", requiredMode = Schema.RequiredMode.REQUIRED, example = "BC20250101") |
| | | @NotEmpty(message = "批号不能为空") |
| | | private String batchCode; |
| | | |
| | | // ========== 物料 ========== |
| | | |
| | | @Schema(description = "产品物料 ID", example = "50") |
| | | @Schema(description = "产品物料 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "50") |
| | | @NotNull(message = "产品物料不能为空") |
| | | private Long itemId; |
| | | |
| | | @Schema(description = "质检方案 ID", example = "5") |
| | | private Long templateId; |
| | | |
| | | // ========== 数量 ========== |
| | | |
| | |
| | | @Schema(description = "备注", example = "备注") |
| | | private String remark; |
| | | |
| | | // ========== 报告表头与签字 ========== |
| | | |
| | | @Schema(description = "采样地点", example = "罐区") |
| | | private String samplingLocation; |
| | | |
| | | @Schema(description = "证书编号/合格证号", example = "V0028") |
| | | private String certificateNo; |
| | | |
| | | @Schema(description = "执行标准", example = "GB/T6027") |
| | | private String executeStandard; |
| | | |
| | | @Schema(description = "复核人用户编号", example = "1") |
| | | private Long auditUserId; |
| | | |
| | | @Schema(description = "审核人用户编号", example = "1") |
| | | private Long approveUserId; |
| | | |
| | | @AssertTrue(message = "检测数量必须等于合格品数量与不合格品数量之和") |
| | | @JsonIgnore |
| | | public boolean isQuantityValid() { |