| | |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | |
| | | @Data |
| | | public class ErpPurchaseRequestSaveReqVO { |
| | | |
| | | @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "17386") |
| | | @Schema(description = "编号(修改时必填)", example = "1") |
| | | private Long id; |
| | | |
| | | @Schema(description = "申请时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| | |
| | | @Schema(description = "申请理由", example = "生产需要") |
| | | private String requestReason; |
| | | |
| | | @Schema(description = "供应商编号(可选)", example = "1724") |
| | | @Schema(description = "供应商编号", example = "1") |
| | | private Long supplierId; |
| | | |
| | | @Schema(description = "优惠率,百分比", example = "99.88") |
| | | @Schema(description = "优惠率,百分比", example = "10") |
| | | private BigDecimal discountPercent; |
| | | |
| | | @Schema(description = "附件地址", example = "https://www.iocoder.cn") |
| | | @Schema(description = "定金金额", example = "1000.00") |
| | | private BigDecimal depositPrice; |
| | | |
| | | @Schema(description = "附件地址", example = "https://xxx.com/xxx.pdf") |
| | | private String fileUrl; |
| | | |
| | | @Schema(description = "备注", example = "你猜") |
| | | @Schema(description = "备注", example = "备注") |
| | | private String remark; |
| | | |
| | | @Schema(description = "申请明细列表") |
| | | @NotEmpty(message = "申请明细列表不能为空") |
| | | @Schema(description = "申请明细列表", requiredMode = Schema.RequiredMode.REQUIRED) |
| | | @NotEmpty(message = "申请明细不能为空") |
| | | @Valid |
| | | private List<Item> items; |
| | | |
| | | @Schema(description = "申请明细项") |
| | | @Data |
| | | public static class Item { |
| | | |
| | | @Schema(description = "申请项编号", example = "11756") |
| | | @Schema(description = "编号(修改时必填)", example = "1") |
| | | private Long id; |
| | | |
| | | @Schema(description = "产品编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "3113") |
| | | @Schema(description = "产品编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| | | @NotNull(message = "产品编号不能为空") |
| | | private Long productId; |
| | | |
| | | @Schema(description = "产品单位编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "3113") |
| | | @NotNull(message = "产品单位编号不能为空") |
| | | @Schema(description = "产品单位编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| | | @NotNull(message = "产品单位不能为空") |
| | | private Long productUnitId; |
| | | |
| | | @Schema(description = "产品单价(参考价)", example = "100.00") |
| | | @Schema(description = "产品参考单价", example = "100.00") |
| | | private BigDecimal productPrice; |
| | | |
| | | @Schema(description = "数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "100.00") |
| | | @Schema(description = "数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") |
| | | @NotNull(message = "数量不能为空") |
| | | private BigDecimal count; |
| | | |
| | | @Schema(description = "税率,百分比", example = "13.00") |
| | | @Schema(description = "税率,百分比", example = "13") |
| | | private BigDecimal taxPercent; |
| | | |
| | | @Schema(description = "需求日期", example = "2024-01-01") |
| | | private LocalDate demandTime; |
| | | @Schema(description = "需求日期") |
| | | private LocalDateTime demandTime; |
| | | |
| | | @Schema(description = "备注", example = "随便") |
| | | @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; |
| | | |
| | | } |
| | | |
| | | } |