From bc31cda78817c62aa552be40f39eccaa03262923 Mon Sep 17 00:00:00 2001
From: xiaoyi <908147524@qq.com>
Date: 星期六, 07 十一月 2026 01:21:22 +0800
Subject: [PATCH] feat: 补齐排产约束与缺料校验,新增风险监测,优化隐患通知与招投标联动

---
 yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/controller/admin/item/vo/MdmItemSaveReqVO.java |   61 ++++++++++++++++++++++++++++--
 1 files changed, 56 insertions(+), 5 deletions(-)

diff --git a/yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/controller/admin/item/vo/MdmItemSaveReqVO.java b/yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/controller/admin/item/vo/MdmItemSaveReqVO.java
index ede7f8c..13710d4 100644
--- a/yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/controller/admin/item/vo/MdmItemSaveReqVO.java
+++ b/yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/controller/admin/item/vo/MdmItemSaveReqVO.java
@@ -24,14 +24,29 @@
     @Schema(description = "瑙勬牸鍨嬪彿", example = "M8*20")
     private String specification;
 
-    @Schema(description = "鐗╂枡鍒嗙被缂栧彿", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
+    @Schema(description = "鐗╂枡鍒嗙被缂栧彿锛堝叧鑱� MES 鐗╂枡鍒嗙被 mes_md_item_type锛�", example = "1")
     private Long categoryId;
 
-    @Schema(description = "璁¢噺鍗曚綅缂栧彿", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
+    @Schema(description = "璁¢噺鍗曚綅缂栧彿", example = "1")
     private Long unitMeasureId;
 
-    @Schema(description = "鍝佺墝缂栧彿", example = "1")
-    private Long brandId;
+    @Schema(description = "杈呭崟浣�1缂栧彿", example = "2")
+    private Long unitMeasureId2;
+
+    @Schema(description = "杈呭崟浣�1鎹㈢畻姣旂巼", example = "12")
+    private BigDecimal unitMeasureRate1;
+
+    @Schema(description = "杈呭崟浣�2缂栧彿", example = "3")
+    private Long unitMeasureId3;
+
+    @Schema(description = "杈呭崟浣�2鎹㈢畻姣旂巼", example = "100")
+    private BigDecimal unitMeasureRate2;
+
+    @Schema(description = "榛樿浠撳簱缂栧彿", example = "1")
+    private Long warehouseId;
+
+    @Schema(description = "榛樿浠撳簱缂栫爜", example = "WH001")
+    private String warehouseCode;
 
     @Schema(description = "鐗╂枡绫诲瀷", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
     private Integer itemType;
@@ -57,6 +72,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;
 
@@ -72,4 +95,32 @@
     @Schema(description = "澶囨敞", example = "澶囨敞淇℃伅")
     private String remark;
 
-}
\ No newline at end of file
+    @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;
+
+}

--
Gitblit v1.9.3