xiaoyi
3 天以前 4bec63c802692a402039f0d99eae068d26d63c55
yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/controller/admin/item/vo/MdmItemSaveReqVO.java
@@ -24,6 +24,9 @@
    @Schema(description = "规格型号", example = "M8*20")
    private String specification;
    @Schema(description = "颜色", example = "红")
    private String color;
    @Schema(description = "物料分类编号(关联 MES 物料分类 mes_md_item_type)", example = "1")
    private Long categoryId;
@@ -72,6 +75,14 @@
    @Schema(description = "最高库存", example = "500")
    private BigDecimal maxStock;
    @Schema(description = "采购提前期(天)")
    @jakarta.validation.constraints.Min(value = 0, message = "采购提前期不能为负数")
    private Integer leadTime;
    @Schema(description = "外协提前期(天)")
    @jakarta.validation.constraints.Min(value = 0, message = "外协提前期不能为负数")
    private Integer outsourceLeadTime;
    @Schema(description = "保质期天数", example = "365")
    private Integer expiryDay;
@@ -90,4 +101,29 @@
    @Schema(description = "是否同步到 MES", example = "false")
    private Boolean syncMes;
}
    // ========== 批次属性配置(同步时一起保存) ==========
    @Schema(description = "生产日期必填", example = "true")
    private Boolean produceDateFlag;
    @Schema(description = "有效期必填", example = "true")
    private Boolean expireDateFlag;
    @Schema(description = "入库日期必填", example = "false")
    private Boolean receiptDateFlag;
    @Schema(description = "供应商必填", example = "true")
    private Boolean vendorFlag;
    @Schema(description = "采购订单号必填", example = "false")
    private Boolean purchaseOrderCodeFlag;
    @Schema(description = "生产批号必填", example = "true")
    private Boolean lotNumberFlag;
    @Schema(description = "质量状态必填", example = "false")
    private Boolean qualityStatusFlag;
    private Long mdmItemId;
}