package cn.iocoder.yudao.module.erp.controller.admin.purchase.vo.request;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import lombok.Data;
|
|
import java.math.BigDecimal;
|
import java.time.LocalDateTime;
|
|
@Schema(description = "管理后台 - ERP 采购申请 Response VO")
|
@Data
|
public class ErpPurchaseRequestRespVO {
|
|
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
private Long id;
|
|
@Schema(description = "采购申请单号", requiredMode = Schema.RequiredMode.REQUIRED, example = "CGSQ001")
|
private String no;
|
|
@Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "0")
|
private Integer status;
|
|
@Schema(description = "申请人编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
private Long requestUserId;
|
|
@Schema(description = "申请人姓名", example = "张三")
|
private String requestUserName;
|
|
@Schema(description = "申请部门编号", example = "1")
|
private Long requestDeptId;
|
|
@Schema(description = "申请部门名称", example = "生产部")
|
private String requestDeptName;
|
|
@Schema(description = "申请时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
private LocalDateTime requestTime;
|
|
@Schema(description = "申请理由", example = "生产需要")
|
private String requestReason;
|
|
@Schema(description = "供应商编号", example = "1")
|
private Long supplierId;
|
|
@Schema(description = "供应商名称", example = "供应商A")
|
private String supplierName;
|
|
@Schema(description = "定金金额", example = "1000.00")
|
private BigDecimal depositPrice;
|
|
@Schema(description = "合计数量", requiredMode = Schema.RequiredMode.REQUIRED)
|
private BigDecimal totalCount;
|
|
@Schema(description = "合计价格", requiredMode = Schema.RequiredMode.REQUIRED)
|
private BigDecimal totalPrice;
|
|
@Schema(description = "产品名称列表", example = "产品A,产品B")
|
private String productNames;
|
|
@Schema(description = "生成的采购订单编号", example = "1")
|
private Long orderId;
|
|
@Schema(description = "生成的采购订单号", example = "CGDD001")
|
private String orderNo;
|
|
@Schema(description = "入库状态(0:未入库 1:部分入库 2:全部入库)", example = "0")
|
private Integer inStatus;
|
|
@Schema(description = "附件地址", example = "https://xxx.com/xxx.pdf")
|
private String fileUrl;
|
|
@Schema(description = "备注", example = "备注")
|
private String remark;
|
|
@Schema(description = "创建时间")
|
private LocalDateTime createTime;
|
|
@Schema(description = "申请明细列表")
|
private java.util.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")
|
private Long productId;
|
|
@Schema(description = "产品名称", example = "产品A")
|
private String productName;
|
|
@Schema(description = "产品条码", example = "12345678")
|
private String productBarCode;
|
|
@Schema(description = "产品单位编号", example = "1")
|
private Long productUnitId;
|
|
@Schema(description = "产品单位名称", example = "个")
|
private String productUnitName;
|
|
@Schema(description = "产品参考单价", example = "100.00")
|
private BigDecimal productPrice;
|
|
@Schema(description = "数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
|
private BigDecimal count;
|
|
@Schema(description = "总价", example = "1000.00")
|
private BigDecimal totalPrice;
|
|
@Schema(description = "税率,百分比", example = "13")
|
private BigDecimal taxPercent;
|
|
@Schema(description = "税额", example = "130.00")
|
private BigDecimal taxPrice;
|
|
@Schema(description = "需求日期")
|
private LocalDateTime demandTime;
|
|
@Schema(description = "备注", example = "备注")
|
private String remark;
|
|
@Schema(description = "是否需要来料检验", example = "true")
|
private Boolean qcCheckFlag;
|
|
@Schema(description = "入库数量", example = "10.00")
|
private BigDecimal inCount;
|
|
}
|
|
}
|