package cn.iocoder.yudao.module.srm.controller.admin.inquiry.vo;
|
|
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 = "管理后台 - 询价比价 Response VO")
|
@Data
|
public class SrmInquiryRespVO {
|
|
@Schema(description = "询价单ID")
|
private Long id;
|
|
@Schema(description = "询价单号")
|
private String no;
|
|
@Schema(description = "询价标题")
|
private String title;
|
|
@Schema(description = "状态:0 草稿、10 询价中、20 已转订单、30 已取消")
|
private Integer status;
|
|
@Schema(description = "询价日期")
|
private LocalDate inquiryDate;
|
|
@Schema(description = "报价截止日期")
|
private LocalDate deadline;
|
|
@Schema(description = "采购员用户编号")
|
private Long purchaserUserId;
|
|
@Schema(description = "备注")
|
private String remark;
|
|
@Schema(description = "创建时间")
|
private LocalDateTime createTime;
|
|
@Schema(description = "产品行列表")
|
private List<Item> items;
|
|
@Schema(description = "参与供应商列表")
|
private List<Supplier> suppliers;
|
|
@Schema(description = "全部报价")
|
private List<Quote> quotes;
|
|
@Schema(description = "已生成的采购订单")
|
private List<Order> orders;
|
|
@Schema(description = "询价产品行")
|
@Data
|
public static class Item {
|
|
private Long id;
|
private Long inquiryId;
|
private Long productId;
|
private Long productUnitId;
|
private String productCode;
|
private String productName;
|
private String productSpec;
|
private String unitName;
|
private BigDecimal quantity;
|
private BigDecimal estimatedPrice;
|
private Long selectedSupplierId;
|
private Long selectedQuoteId;
|
private BigDecimal selectedPrice;
|
private String remark;
|
private Integer sort;
|
|
}
|
|
@Schema(description = "参与供应商")
|
@Data
|
public static class Supplier {
|
|
private Long id;
|
private Long supplierId;
|
private String supplierName;
|
private String supplierCode;
|
private Integer quoteStatus;
|
private LocalDateTime quoteTime;
|
private String remark;
|
|
}
|
|
@Schema(description = "产品报价")
|
@Data
|
public static class Quote {
|
|
private Long id;
|
private Long inquiryId;
|
private Long inquiryItemId;
|
private Long supplierId;
|
private BigDecimal price;
|
private BigDecimal taxRate;
|
private Integer deliveryCycle;
|
private String paymentTerms;
|
private String remark;
|
private Boolean isSelected;
|
|
}
|
|
@Schema(description = "已生成的采购订单")
|
@Data
|
public static class Order {
|
|
private Long id;
|
private Long supplierId;
|
private String supplierName;
|
private Long purchaseOrderId;
|
private String purchaseOrderNo;
|
|
}
|
|
}
|