package cn.iocoder.yudao.module.crm.controller.admin.quotation.vo; import cn.idev.excel.annotation.ExcelIgnoreUnannotated; import cn.idev.excel.annotation.ExcelProperty; import io.swagger.v3.oas.annotations.media.Schema; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import java.math.BigDecimal; import java.time.LocalDateTime; import java.util.List; @Schema(description = "管理后台 - CRM 销售报价单 Response VO") @Data @ExcelIgnoreUnannotated public class CrmSaleQuotationRespVO { @Schema(description = "报价单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "10430") @ExcelProperty("报价单编号") private Long id; @Schema(description = "报价单号", requiredMode = Schema.RequiredMode.REQUIRED, example = "QT001") @ExcelProperty("报价单号") private String no; @Schema(description = "报价单名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "报价单A") @ExcelProperty("报价单名称") private String name; @Schema(description = "客户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "18336") @ExcelProperty("客户编号") private Long customerId; @Schema(description = "客户名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "客户A") @ExcelProperty("客户名称") private String customerName; @Schema(description = "商机编号", example = "10864") @ExcelProperty("商机编号") private Long businessId; @Schema(description = "商机名称", example = "商机A") @ExcelProperty("商机名称") private String businessName; @Schema(description = "联系人编号", example = "18546") private Long contactId; @Schema(description = "联系人名称", example = "联系人A") @ExcelProperty("联系人名称") private String contactName; @Schema(description = "负责人的用户编号", example = "25682") @ExcelProperty("负责人编号") private Long ownerUserId; @Schema(description = "负责人名字", example = "张三") @ExcelProperty("负责人名字") private String ownerUserName; @Schema(description = "负责人部门") @ExcelProperty("负责人部门") private String ownerUserDeptName; @Schema(description = "审批状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "20") @ExcelProperty("审批状态") private Integer status; @Schema(description = "工作流编号", example = "1043") private String processInstanceId; @Schema(description = "报价日期") @ExcelProperty("报价日期") private LocalDateTime quotationTime; @Schema(description = "有效期至") @ExcelProperty("有效期至") private LocalDateTime validUntil; @Schema(description = "产品总金额", example = "19510") @ExcelProperty("产品总金额") private BigDecimal totalProductPrice; @Schema(description = "整单折扣", example = "10.00") @ExcelProperty("整单折扣") private BigDecimal discountPercent; @Schema(description = "优惠金额", example = "1951") @ExcelProperty("优惠金额") private BigDecimal discountPrice; @Schema(description = "报价总金额", example = "17559") @ExcelProperty("报价总金额") private BigDecimal totalPrice; @Schema(description = "税率", example = "13.00") @ExcelProperty("税率") private BigDecimal taxRate; @Schema(description = "税额", example = "2282") @ExcelProperty("税额") private BigDecimal taxPrice; @Schema(description = "关联合同编号", example = "12345") private Long contractId; @Schema(description = "关联合同单号", example = "HT001") @ExcelProperty("关联合同单号") private String contractNo; @Schema(description = "附件地址", example = "https://www.baidu.com") private String fileUrl; @Schema(description = "备注", example = "备注信息") @ExcelProperty("备注") private String remark; @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) @ExcelProperty("创建时间") private LocalDateTime createTime; @Schema(description = "创建人", example = "25682") private String creator; @Schema(description = "创建人名字", example = "张三") @ExcelProperty("创建人名字") private String creatorName; @Schema(description = "物料明细列表") private List items; @Schema(description = "物料明细") @Data @NoArgsConstructor @AllArgsConstructor public static class Item { @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "888") private Long id; @Schema(description = "MDM 物料编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "20529") private Long itemId; @Schema(description = "物料编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "ITEM001") private String itemCode; @Schema(description = "物料名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "物料A") private String itemName; @Schema(description = "物料条码", example = "BAR001") private String itemBarCode; @Schema(description = "计量单位编号", example = "1") private Long itemUnitId; @Schema(description = "计量单位名称", example = "个") private String itemUnitName; @Schema(description = "物料原价", requiredMode = Schema.RequiredMode.REQUIRED, example = "100.00") private BigDecimal itemPrice; @Schema(description = "报价单价", requiredMode = Schema.RequiredMode.REQUIRED, example = "123.00") private BigDecimal quotationPrice; @Schema(description = "数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") private BigDecimal count; @Schema(description = "小计金额", requiredMode = Schema.RequiredMode.REQUIRED, example = "1230.00") private BigDecimal totalPrice; @Schema(description = "税率", example = "13.00") private BigDecimal taxPercent; @Schema(description = "税额", example = "159.90") private BigDecimal taxPrice; @Schema(description = "备注", example = "备注") private String remark; } }