gaoluyang
4 天以前 d39e4f7d839167c16425086dfa2f8747bccfdff9
yudao-module-erp/src/main/java/cn/iocoder/yudao/module/erp/controller/admin/purchase/vo/order/ErpPurchaseOrderSaveReqVO.java
@@ -26,14 +26,42 @@
    @NotNull(message = "采购时间不能为空")
    private LocalDateTime orderTime;
    @Schema(description = "采购类型:1生产 2办公用品 3其他", example = "1")
    private Integer purchaseType;
    @Schema(description = "合同号(客户手工输入,不自动生成)", example = "HT2026110001")
    private String contractNo;
    @Schema(description = "项目名称(非必填)", example = "1号产线改造")
    private String projectName;
    @Schema(description = "付款日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "付款日期不能为空,请选择付款日期后再保存")
    private LocalDateTime paymentDate;
    @Schema(description = "付款方式:1电汇 2汇票 3现金 4手机支付", example = "1")
    private Integer paymentMethod;
    @Schema(description = "优惠率,百分比", requiredMode = Schema.RequiredMode.REQUIRED, example = "99.88")
    private BigDecimal discountPercent;
    @Schema(description = "定金金额,单位:元", example = "7127")
    private BigDecimal depositPrice;
    @Schema(description = "来源类型", example = "1")
    private Integer sourceType;
    @Schema(description = "来源单号", example = "GD20260730001")
    private String sourceNo;
    @Schema(description = "来源单据编号", example = "48")
    private Long sourceId;
    @Schema(description = "备注", example = "你猜")
    private String remark;
    @Schema(description = "附件 blobId 列表", example = "[1, 2, 3]")
    private List<Long> blobIds;
    @Schema(description = "订单清单列表")
    private List<Item> items;
@@ -48,6 +76,9 @@
        @NotNull(message = "产品编号不能为空")
        private Long productId;
        @Schema(description = "产品编号(MDM 物料编码快照)", example = "MDM001")
        private String productCode;
        @Schema(description = "产品单位单位", requiredMode = Schema.RequiredMode.REQUIRED, example = "3113")
        @NotNull(message = "产品单位单位不能为空")
        private Long productUnitId;