| | |
| | | package cn.iocoder.yudao.module.erp.controller.admin.purchase.vo.request; |
| | | |
| | | import cn.idev.excel.annotation.ExcelIgnore; |
| | | import cn.idev.excel.annotation.ExcelIgnoreUnannotated; |
| | | import cn.idev.excel.annotation.ExcelProperty; |
| | | import cn.iocoder.yudao.module.system.api.storage.dto.StorageBlobRespDTO; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | | @Schema(description = "管理后台 - ERP 采购申请 Response VO") |
| | | @Data |
| | | @ExcelIgnoreUnannotated |
| | | public class ErpPurchaseRequestRespVO { |
| | | |
| | | @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| | | @ExcelIgnore |
| | | private Long id; |
| | | |
| | | @Schema(description = "采购申请单号", requiredMode = Schema.RequiredMode.REQUIRED, example = "CGSQ001") |
| | | @ExcelProperty("采购申请单号") |
| | | private String no; |
| | | |
| | | @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "0") |
| | | @ExcelProperty(value = "状态", converter = cn.iocoder.yudao.module.erp.convert.ErpPurchaseRequestStatusConvert.class) |
| | | private Integer status; |
| | | |
| | | @Schema(description = "申请人编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| | | @ExcelProperty("申请人编号") |
| | | private Long requestUserId; |
| | | |
| | | @Schema(description = "申请人姓名", example = "张三") |
| | | @ExcelProperty("申请人姓名") |
| | | private String requestUserName; |
| | | |
| | | @Schema(description = "申请部门编号", example = "1") |
| | | @ExcelProperty("申请部门编号") |
| | | private Long requestDeptId; |
| | | |
| | | @Schema(description = "申请部门名称", example = "生产部") |
| | | @ExcelProperty("申请部门名称") |
| | | private String requestDeptName; |
| | | |
| | | @Schema(description = "申请时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| | | @ExcelProperty("申请时间") |
| | | private LocalDateTime requestTime; |
| | | |
| | | @Schema(description = "申请理由", example = "生产需要") |
| | | @ExcelProperty("申请理由") |
| | | private String requestReason; |
| | | |
| | | @Schema(description = "供应商编号", example = "1") |
| | | @ExcelProperty("供应商编号") |
| | | private Long supplierId; |
| | | |
| | | @Schema(description = "供应商名称", example = "供应商A") |
| | | @ExcelProperty("供应商名称") |
| | | private String supplierName; |
| | | |
| | | @Schema(description = "定金金额", example = "1000.00") |
| | | @ExcelProperty("定金金额") |
| | | private BigDecimal depositPrice; |
| | | |
| | | @Schema(description = "合计数量", requiredMode = Schema.RequiredMode.REQUIRED) |
| | | @ExcelProperty("合计数量") |
| | | private BigDecimal totalCount; |
| | | |
| | | @Schema(description = "合计价格", requiredMode = Schema.RequiredMode.REQUIRED) |
| | | @ExcelProperty("合计价格") |
| | | private BigDecimal totalPrice; |
| | | |
| | | @Schema(description = "产品名称列表", example = "产品A,产品B") |
| | | @ExcelProperty("产品名称列表") |
| | | private String productNames; |
| | | |
| | | @Schema(description = "生成的采购订单编号", example = "1") |
| | | @ExcelIgnore |
| | | private Long orderId; |
| | | |
| | | @Schema(description = "生成的采购订单号", example = "CGDD001") |
| | | @ExcelProperty("采购订单号") |
| | | private String orderNo; |
| | | |
| | | @Schema(description = "附件地址", example = "https://xxx.com/xxx.pdf") |
| | | private String fileUrl; |
| | | @Schema(description = "入库状态", example = "0") |
| | | @ExcelProperty(value = "入库状态", converter = cn.iocoder.yudao.module.erp.convert.ErpPurchaseOrderInStatusConvert.class) |
| | | private Integer inStatus; |
| | | |
| | | @Schema(description = "备注", example = "备注") |
| | | @ExcelProperty("备注") |
| | | private String remark; |
| | | |
| | | @Schema(description = "附件列表") |
| | | @ExcelIgnore |
| | | private List<StorageBlobRespDTO> attachmentList; |
| | | |
| | | @Schema(description = "创建时间") |
| | | @ExcelProperty("创建时间") |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "申请明细列表") |
| | | @ExcelIgnore |
| | | private java.util.List<Item> items; |
| | | |
| | | @Schema(description = "申请明细项") |
| | |
| | | private BigDecimal taxPrice; |
| | | |
| | | @Schema(description = "需求日期") |
| | | private LocalDateTime demandTime; |
| | | private LocalDate demandTime; |
| | | |
| | | @Schema(description = "备注", example = "备注") |
| | | private String remark; |
| | | |
| | | @Schema(description = "是否需要来料检验", example = "true") |
| | | private Boolean qcCheckFlag; |
| | | |
| | | @Schema(description = "入库数量", example = "10.00") |
| | | private BigDecimal inCount; |
| | | |
| | | } |
| | | |
| | | } |