tuqin
4 天以前 f785e619ff7cbe99aa80fc7679a244224ab5024f
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
package cn.iocoder.yudao.module.erp.controller.admin.sale.vo.order;
 
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
 
import java.math.BigDecimal;
import java.time.LocalDateTime;
 
/**
 * 待安排生产的销售订单明细 Response VO
 *
 * 供生产车间「从销售订单生成生产计划」使用:
 * 展示已审核、且尚未安排 MPS 的销售订单明细,并带上当前可用库存,
 * 由车间据此判断是否需要生产、生产多少。
 *
 * @author 超级管理员
 */
@Schema(description = "管理后台 - 待安排生产的销售订单明细 Response VO")
@Data
public class ErpSaleOrderPendingProductionRespVO {
 
    @Schema(description = "销售订单编号", example = "1300")
    private Long saleOrderId;
 
    @Schema(description = "销售订单号", example = "XSDD20261102001")
    private String saleOrderNo;
 
    @Schema(description = "销售订单明细编号", example = "11")
    private Long saleOrderItemId;
 
    @Schema(description = "客户编号", example = "1001")
    private Long customerId;
 
    @Schema(description = "客户名称", example = "XX 纸业")
    private String customerName;
 
    @Schema(description = "产品编号", example = "201")
    private Long productId;
 
    @Schema(description = "产品编码", example = "YL-001")
    private String productCode;
 
    @Schema(description = "产品名称", example = "原纸")
    private String productName;
 
    @Schema(description = "规格型号", example = "A4")
    private String productSpecification;
 
    @Schema(description = "单位", example = "吨")
    private String productUnitName;
 
    @Schema(description = "订购数量", example = "500")
    private BigDecimal orderCount;
 
    @Schema(description = "订单日期", example = "2026-11-02 10:00:00")
    private LocalDateTime orderTime;
 
    @Schema(description = "当前可用库存", example = "120")
    private BigDecimal stockQuantity;
 
    @Schema(description = "建议生产数量 = 订购数量 - 可用库存(小于 0 时为 0)", example = "380")
    private BigDecimal suggestQuantity;
 
}