gaoluyang
4 天以前 cdaec80a5ffa474f69e5c36f0312be3c0abf2210
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
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;
 
    }
 
}