From 85156554438bb13930c89072ee0b7fa93192a7fe Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期四, 16 七月 2026 17:43:30 +0800
Subject: [PATCH] 1.联调优化采购申请到入库的整个逻辑

---
 yudao-module-erp/src/main/java/cn/iocoder/yudao/module/erp/controller/admin/purchase/vo/request/ErpPurchaseRequestSaveReqVO.java |   92 ++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 92 insertions(+), 0 deletions(-)

diff --git a/yudao-module-erp/src/main/java/cn/iocoder/yudao/module/erp/controller/admin/purchase/vo/request/ErpPurchaseRequestSaveReqVO.java b/yudao-module-erp/src/main/java/cn/iocoder/yudao/module/erp/controller/admin/purchase/vo/request/ErpPurchaseRequestSaveReqVO.java
new file mode 100644
index 0000000..97b9f8b
--- /dev/null
+++ b/yudao-module-erp/src/main/java/cn/iocoder/yudao/module/erp/controller/admin/purchase/vo/request/ErpPurchaseRequestSaveReqVO.java
@@ -0,0 +1,92 @@
+package cn.iocoder.yudao.module.erp.controller.admin.purchase.vo.request;
+
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+import jakarta.validation.constraints.NotEmpty;
+import jakarta.validation.constraints.NotNull;
+import lombok.Data;
+
+import java.math.BigDecimal;
+import java.time.LocalDateTime;
+import java.util.List;
+
+@Schema(description = "绠$悊鍚庡彴 - ERP 閲囪喘鐢宠鏂板/淇敼 Request VO")
+@Data
+public class ErpPurchaseRequestSaveReqVO {
+
+    @Schema(description = "缂栧彿锛堜慨鏀规椂蹇呭~锛�", example = "1")
+    private Long id;
+
+    @Schema(description = "鐢宠鏃堕棿", requiredMode = Schema.RequiredMode.REQUIRED)
+    @NotNull(message = "鐢宠鏃堕棿涓嶈兘涓虹┖")
+    private LocalDateTime requestTime;
+
+    @Schema(description = "鐢宠鐞嗙敱", example = "鐢熶骇闇�瑕�")
+    private String requestReason;
+
+    @Schema(description = "渚涘簲鍟嗙紪鍙�", example = "1")
+    private Long supplierId;
+
+    @Schema(description = "浼樻儬鐜囷紝鐧惧垎姣�", example = "10")
+    private BigDecimal discountPercent;
+
+    @Schema(description = "瀹氶噾閲戦", example = "1000.00")
+    private BigDecimal depositPrice;
+
+    @Schema(description = "闄勪欢鍦板潃", example = "https://xxx.com/xxx.pdf")
+    private String fileUrl;
+
+    @Schema(description = "澶囨敞", example = "澶囨敞")
+    private String remark;
+
+    @Schema(description = "鐢宠鏄庣粏鍒楄〃", requiredMode = Schema.RequiredMode.REQUIRED)
+    @NotEmpty(message = "鐢宠鏄庣粏涓嶈兘涓虹┖")
+    @Valid
+    private List<Item> items;
+
+    @Schema(description = "鐢宠鏄庣粏椤�")
+    @Data
+    public static class Item {
+
+        @Schema(description = "缂栧彿锛堜慨鏀规椂蹇呭~锛�", example = "1")
+        private Long id;
+
+        @Schema(description = "浜у搧缂栧彿", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
+        @NotNull(message = "浜у搧缂栧彿涓嶈兘涓虹┖")
+        private Long productId;
+
+        @Schema(description = "浜у搧鍗曚綅缂栧彿", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
+        @NotNull(message = "浜у搧鍗曚綅涓嶈兘涓虹┖")
+        private Long productUnitId;
+
+        @Schema(description = "浜у搧鍙傝�冨崟浠�", example = "100.00")
+        private BigDecimal productPrice;
+
+        @Schema(description = "鏁伴噺", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
+        @NotNull(message = "鏁伴噺涓嶈兘涓虹┖")
+        private BigDecimal count;
+
+        @Schema(description = "绋庣巼锛岀櫨鍒嗘瘮", example = "13")
+        private BigDecimal taxPercent;
+
+        @Schema(description = "闇�姹傛棩鏈�")
+        private LocalDateTime demandTime;
+
+        @Schema(description = "澶囨敞", example = "澶囨敞")
+        private String remark;
+
+        @Schema(description = "鏄惁闇�瑕佹潵鏂欐楠�", example = "true")
+        private Boolean qcCheckFlag;
+
+        @Schema(description = "浜у搧鍚嶇О锛堝墠绔睍绀虹敤锛屽悗绔拷鐣ワ級", example = "浜у搧A")
+        private String productName;
+
+        @Schema(description = "浜у搧鏉$爜锛堝墠绔睍绀虹敤锛屽悗绔拷鐣ワ級", example = "12345678")
+        private String productBarCode;
+
+        @Schema(description = "浜у搧鍗曚綅鍚嶇О锛堝墠绔睍绀虹敤锛屽悗绔拷鐣ワ級", example = "涓�")
+        private String productUnitName;
+
+    }
+
+}
\ No newline at end of file

--
Gitblit v1.9.3