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;
|
|
}
|