6 天以前 0ed338976c6cabb5ee17983e3ee1bedb529a0ccb
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
120
121
122
123
124
125
126
127
128
129
130
package cn.iocoder.yudao.module.erp.controller.admin.purchase.vo.request;
 
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
 
import java.math.BigDecimal;
import java.time.LocalDateTime;
 
@Schema(description = "管理后台 - ERP 采购申请 Response VO")
@Data
public class ErpPurchaseRequestRespVO {
 
    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long id;
 
    @Schema(description = "采购申请单号", requiredMode = Schema.RequiredMode.REQUIRED, example = "CGSQ001")
    private String no;
 
    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "0")
    private Integer status;
 
    @Schema(description = "申请人编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long requestUserId;
 
    @Schema(description = "申请人姓名", example = "张三")
    private String requestUserName;
 
    @Schema(description = "申请部门编号", example = "1")
    private Long requestDeptId;
 
    @Schema(description = "申请部门名称", example = "生产部")
    private String requestDeptName;
 
    @Schema(description = "申请时间", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime requestTime;
 
    @Schema(description = "申请理由", example = "生产需要")
    private String requestReason;
 
    @Schema(description = "供应商编号", example = "1")
    private Long supplierId;
 
    @Schema(description = "供应商名称", example = "供应商A")
    private String supplierName;
 
    @Schema(description = "定金金额", example = "1000.00")
    private BigDecimal depositPrice;
 
    @Schema(description = "合计数量", requiredMode = Schema.RequiredMode.REQUIRED)
    private BigDecimal totalCount;
 
    @Schema(description = "合计价格", requiredMode = Schema.RequiredMode.REQUIRED)
    private BigDecimal totalPrice;
 
    @Schema(description = "产品名称列表", example = "产品A,产品B")
    private String productNames;
 
    @Schema(description = "生成的采购订单编号", example = "1")
    private Long orderId;
 
    @Schema(description = "生成的采购订单号", example = "CGDD001")
    private String orderNo;
 
    @Schema(description = "入库状态(0:未入库 1:部分入库 2:全部入库)", example = "0")
    private Integer inStatus;
 
    @Schema(description = "附件地址", example = "https://xxx.com/xxx.pdf")
    private String fileUrl;
 
    @Schema(description = "备注", example = "备注")
    private String remark;
 
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
 
    @Schema(description = "申请明细列表")
    private java.util.List<Item> items;
 
    @Schema(description = "申请明细项")
    @Data
    public static class Item {
 
        @Schema(description = "编号", example = "1")
        private Long id;
 
        @Schema(description = "产品编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
        private Long productId;
 
        @Schema(description = "产品名称", example = "产品A")
        private String productName;
 
        @Schema(description = "产品条码", example = "12345678")
        private String productBarCode;
 
        @Schema(description = "产品单位编号", example = "1")
        private Long productUnitId;
 
        @Schema(description = "产品单位名称", example = "个")
        private String productUnitName;
 
        @Schema(description = "产品参考单价", example = "100.00")
        private BigDecimal productPrice;
 
        @Schema(description = "数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
        private BigDecimal count;
 
        @Schema(description = "总价", example = "1000.00")
        private BigDecimal totalPrice;
 
        @Schema(description = "税率,百分比", example = "13")
        private BigDecimal taxPercent;
 
        @Schema(description = "税额", example = "130.00")
        private BigDecimal taxPrice;
 
        @Schema(description = "需求日期")
        private LocalDateTime demandTime;
 
        @Schema(description = "备注", example = "备注")
        private String remark;
 
        @Schema(description = "是否需要来料检验", example = "true")
        private Boolean qcCheckFlag;
 
        @Schema(description = "入库数量", example = "10.00")
        private BigDecimal inCount;
 
    }
 
}