| | |
| | | |
| | | import cn.idev.excel.annotation.ExcelIgnoreUnannotated; |
| | | import cn.idev.excel.annotation.ExcelProperty; |
| | | import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat; |
| | | import cn.iocoder.yudao.framework.excel.core.convert.DictConvert; |
| | | import cn.iocoder.yudao.module.erp.enums.DictTypeConstants; |
| | | import cn.iocoder.yudao.module.system.api.storage.dto.StorageBlobRespDTO; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import jakarta.validation.constraints.NotNull; |
| | | import lombok.Data; |
| | |
| | | private String no; |
| | | |
| | | @Schema(description = "采购状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") |
| | | @ExcelProperty("采购状态") |
| | | @ExcelProperty(value = "采购状态", converter = DictConvert.class) |
| | | @DictFormat(DictTypeConstants.AUDIT_STATUS) |
| | | private Integer status; |
| | | |
| | | @Schema(description = "供应商编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1724") |
| | | private Long supplierId; |
| | | @Schema(description = "供应商名称", example = "芋道") |
| | | @Schema(description = "供应商名称", example = "超级管理员") |
| | | @ExcelProperty("供应商名称") |
| | | private String supplierName; |
| | | |
| | |
| | | @Schema(description = "定金金额,单位:元", requiredMode = Schema.RequiredMode.REQUIRED, example = "7127") |
| | | private BigDecimal depositPrice; |
| | | |
| | | @Schema(description = "来源类型", example = "1") |
| | | @ExcelProperty("来源类型") |
| | | private Integer sourceType; |
| | | |
| | | @Schema(description = "来源单号", example = "GD20260730001") |
| | | @ExcelProperty("来源单号") |
| | | private String sourceNo; |
| | | |
| | | @Schema(description = "来源单据编号", example = "48") |
| | | private Long sourceId; |
| | | |
| | | @Schema(description = "来源类型名称", example = "生产工单") |
| | | private String sourceTypeName; |
| | | |
| | | @Schema(description = "备注", example = "你猜") |
| | | @ExcelProperty("备注") |
| | | private String remark; |
| | | |
| | | @Schema(description = "创建人", example = "芋道") |
| | | @Schema(description = "附件列表") |
| | | private List<StorageBlobRespDTO> attachmentList; |
| | | |
| | | @Schema(description = "创建人", example = "超级管理员") |
| | | private String creator; |
| | | @Schema(description = "创建人名称", example = "芋道") |
| | | @Schema(description = "创建人名称", example = "超级管理员") |
| | | private String creatorName; |
| | | |
| | | @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |