4 天以前 7188f28998d47c286e34cbd525986603cfc19ba9
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
package cn.iocoder.yudao.module.erp.controller.admin.purchase.vo.request;
 
import cn.idev.excel.annotation.ExcelIgnore;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import cn.iocoder.yudao.module.system.api.storage.dto.StorageBlobRespDTO;
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
@ExcelIgnoreUnannotated
public class ErpPurchaseRequestRespVO {
 
    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelIgnore
    private Long id;
 
    @Schema(description = "采购申请单号", requiredMode = Schema.RequiredMode.REQUIRED, example = "CGSQ001")
    @ExcelProperty("采购申请单号")
    private String no;
 
    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "0")
    @ExcelProperty(value = "状态", converter = cn.iocoder.yudao.module.erp.convert.ErpPurchaseRequestStatusConvert.class)
    private Integer status;
 
    @Schema(description = "申请人编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("申请人编号")
    private Long requestUserId;
 
    @Schema(description = "申请人姓名", example = "张三")
    @ExcelProperty("申请人姓名")
    private String requestUserName;
 
    @Schema(description = "申请部门编号", example = "1")
    @ExcelProperty("申请部门编号")
    private Long requestDeptId;
 
    @Schema(description = "申请部门名称", example = "生产部")
    @ExcelProperty("申请部门名称")
    private String requestDeptName;
 
    @Schema(description = "申请时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("申请时间")
    private LocalDateTime requestTime;
 
    @Schema(description = "申请理由", example = "生产需要")
    @ExcelProperty("申请理由")
    private String requestReason;
 
    @Schema(description = "供应商编号", example = "1")
    @ExcelProperty("供应商编号")
    private Long supplierId;
 
    @Schema(description = "供应商名称", example = "供应商A")
    @ExcelProperty("供应商名称")
    private String supplierName;
 
    @Schema(description = "定金金额", example = "1000.00")
    @ExcelProperty("定金金额")
    private BigDecimal depositPrice;
 
    @Schema(description = "合计数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("合计数量")
    private BigDecimal totalCount;
 
    @Schema(description = "合计价格", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("合计价格")
    private BigDecimal totalPrice;
 
    @Schema(description = "产品名称列表", example = "产品A,产品B")
    @ExcelProperty("产品名称列表")
    private String productNames;
 
    @Schema(description = "生成的采购订单编号", example = "1")
    @ExcelIgnore
    private Long orderId;
 
    @Schema(description = "生成的采购订单号", example = "CGDD001")
    @ExcelProperty("采购订单号")
    private String orderNo;
 
    @Schema(description = "入库状态", example = "0")
    @ExcelProperty(value = "入库状态", converter = cn.iocoder.yudao.module.erp.convert.ErpPurchaseOrderInStatusConvert.class)
    private Integer inStatus;
 
    @Schema(description = "备注", example = "备注")
    @ExcelProperty("备注")
    private String remark;
 
    @Schema(description = "附件列表")
    @ExcelIgnore
    private List<StorageBlobRespDTO> attachmentList;
 
    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;
 
    @Schema(description = "申请明细列表")
    @ExcelIgnore
    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 LocalDate demandTime;
 
        @Schema(description = "备注", example = "备注")
        private String remark;
 
        @Schema(description = "是否需要来料检验", example = "true")
        private Boolean qcCheckFlag;
 
        @Schema(description = "入库数量", example = "10.00")
        private BigDecimal inCount;
 
    }
 
}