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
package cn.iocoder.yudao.module.erp.controller.admin.purchase.vo.demand;
 
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
public class ErpPurchaseDemandRespVO {
 
    @Schema(description = "编号", example = "1")
    private Long id;
 
    @Schema(description = "需求单号", example = "CGXQ20261030001")
    private String no;
 
    @Schema(description = "供货商编号", example = "1")
    private Long supplierId;
 
    @Schema(description = "供货商名称", example = "滦南五金供应商")
    private String supplierName;
 
    @Schema(description = "采购品类(1 代理商品 2 原辅料)", example = "1")
    private Integer purchaseCategory;
 
    @Schema(description = "来源(1 生产计划自动生成 2 手工创建)", example = "2")
    private Integer sourceType;
 
    @Schema(description = "关联生产任务(工单号)", example = "MO20261030001")
    private String workOrderNo;
 
    @Schema(description = "需求日期", example = "2026-11-15")
    private LocalDate demandTime;
 
    @Schema(description = "用途说明", example = "车间维修备件")
    private String purpose;
 
    @Schema(description = "状态(1 未采购 2 已采购)", example = "1")
    private Integer status;
 
    @Schema(description = "合计数量", example = "100.000000")
    private BigDecimal totalCount;
 
    @Schema(description = "生成的采购订单编号", example = "1")
    private Long orderId;
 
    @Schema(description = "生成的采购订单号", example = "CGDD20261030001")
    private String orderNo;
 
    @Schema(description = "备注", example = "尽快到货")
    private String remark;
 
    @Schema(description = "产品名称列表", example = "螺栓,螺母")
    private String productNames;
 
    @Schema(description = "明细列表")
    private List<Item> items;
 
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
 
    @Schema(description = "需求明细项")
    @Data
    public static class Item {
 
        @Schema(description = "编号", example = "1")
        private Long id;
 
        @Schema(description = "产品编号", example = "3113")
        private Long productId;
 
        @Schema(description = "产品名称", example = "螺栓")
        private String productName;
 
        @Schema(description = "产品条码", example = "6901234567890")
        private String productBarCode;
 
        @Schema(description = "产品单位编号", example = "3114")
        private Long productUnitId;
 
        @Schema(description = "产品单位名称", example = "个")
        private String productUnitName;
 
        @Schema(description = "参考单价", example = "100.00")
        private BigDecimal productPrice;
 
        @Schema(description = "数量", example = "10.00")
        private BigDecimal count;
 
        @Schema(description = "备注", example = "急需")
        private String remark;
 
    }
 
}