package com.dk.mdm.model.response.ivt; import cn.afterturn.easypoi.excel.annotation.Excel; import com.alibaba.fastjson.JSONArray; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableName; import com.dk.common.infrastructure.annotaiton.ExportTitle; import com.dk.common.infrastructure.handler.JsonTypeHandler; import com.dk.common.infrastructure.handler.TimestampTypeHandler; import com.dk.common.infrastructure.handler.UuidTypeHandler; import com.dk.common.model.pojo.PageInfo; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonProperty; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.AllArgsConstructor; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import lombok.experimental.Accessors; import java.io.Serializable; import java.math.BigDecimal; import java.time.LocalDateTime; /** * 出库明细 */ @Data @NoArgsConstructor @AllArgsConstructor @ExportTitle("出库明细") public class OutboundItemResponse { /* * 数据库字段 */ /** * 明细ID */ @ApiModelProperty(value = "明细ID") @TableField(typeHandler = UuidTypeHandler.class) private String itemId; /** * 出库ID */ @ApiModelProperty(value = "出库ID") @TableField(typeHandler = UuidTypeHandler.class) private String outId; /** * 入库类型 (【系统字典】销售出库、采退出库、其他出库) */ @Excel(name = "入库类型 (【系统字典】销售出库、采退出库、其他出库)") @ApiModelProperty(value = "入库类型 (【系统字典】销售出库、采退出库、其他出库)") private String outType; /** * 来源单ID (销售订单、入库退货) */ @ApiModelProperty(value = "来源单ID (销售订单、入库退货)") @TableField(typeHandler = UuidTypeHandler.class) private String fromId; /** * 来源单明细ID (销售订单、入库退货) */ @ApiModelProperty(value = "来源单明细ID (销售订单、入库退货)") @TableField(typeHandler = UuidTypeHandler.class) private String fromItemId; /** * 商品顺序 */ @Excel(name = "商品顺序") @ApiModelProperty(value = "商品顺序") private Integer itemIndex; /** * 商品ID */ @ApiModelProperty(value = "商品ID") @TableField(typeHandler = UuidTypeHandler.class) private String skuId; /** * 出库价 */ @Excel(name = "出库价") @ApiModelProperty(value = "出库价") private BigDecimal priceOut; /** * 非标号 */ @Excel(name = "非标号") @ApiModelProperty(value = "非标号") private String nonStdCode; /** * 出库状态 */ @Excel(name = "出库状态") @ApiModelProperty(value = "出库状态") private String outStatus; /** * 出库中数量 */ @Excel(name = "出库中数量") @ApiModelProperty(value = "出库中数量") private BigDecimal outingQty; /** * 出库中金额 */ @Excel(name = "出库中金额") @ApiModelProperty(value = "出库中金额") private BigDecimal outingAmt; /** * 已出库数量 */ @Excel(name = "已出库数量") @ApiModelProperty(value = "已出库数量") private BigDecimal outQty; /** * 已出库金额 */ @Excel(name = "已出库金额") @ApiModelProperty(value = "已出库金额") private BigDecimal outAmt; /** * 已出库退货数量 */ @Excel(name = "已出库退货数量") @ApiModelProperty(value = "已出库退货数量") private BigDecimal returnQty; /** * 已出库退货金额 */ @Excel(name = "已出库退货金额") @ApiModelProperty(value = "已出库退货金额") private BigDecimal returnAmt; /** * 备注 */ @Excel(name = "备注") @ApiModelProperty(value = "备注") private String remarks; /** * 库存ID */ @ApiModelProperty(value = "库存ID") @TableField(typeHandler = UuidTypeHandler.class) private String invId; /** * 成本单价 */ @Excel(name = "成本单价") @ApiModelProperty(value = "成本单价") private BigDecimal costPrice; /** * 成本金额 */ @Excel(name = "成本金额") @ApiModelProperty(value = "成本金额") private BigDecimal costAmt; /** * 有效标识 (1:正常 0:停用) */ @Excel(name = "有效标识 (1:正常 0:停用)") @ApiModelProperty(value = "有效标识 (1:正常 0:停用)") private Boolean flgValid; @Excel(name = "箱(出库中)") @ApiModelProperty(value = "箱(出库中)") private Integer outingBox; @Excel(name = "片(出库中)") @ApiModelProperty(value = "片(出库中)") private Integer outingPiece; @Excel(name = "箱(已出库)") @ApiModelProperty(value = "箱(已出库)") private Integer outBox; @Excel(name = "片(已出库)") @ApiModelProperty(value = "片(已出库)") private Integer outPiece; /** * 企业ID */ @ApiModelProperty(value = "企业ID") private Integer cpId; @ApiModelProperty(value = "源出库单ID") @JsonProperty(value = "sOutId") @TableField(typeHandler = UuidTypeHandler.class) private String sOutId; @ApiModelProperty(value = "源出库单明细ID") @JsonProperty(value = "sOutItemId") @TableField(typeHandler = UuidTypeHandler.class) private String sOutItemId; @ApiModelProperty(value = "源销售订单ID") @JsonProperty(value = "sOrderId") @TableField(typeHandler = UuidTypeHandler.class) private String sOrderId; @ApiModelProperty(value = "源销售明细ID") @JsonProperty(value = "sOrderItemId") @TableField(typeHandler = UuidTypeHandler.class) private String sOrderItemId; @Excel(name = "商品编码") @ApiModelProperty(value = "商品编码") private String skuCode; @Excel(name = "商品型号") @ApiModelProperty(value = "商品型号") private String skuModel; @Excel(name = "商品名称") @ApiModelProperty(value = "商品名称") private String skuName; @Excel(name = "仓库名称") @ApiModelProperty(value = "仓库名称") private String whName; @Excel(name = "出库状态") @ApiModelProperty(value = "出库状态") private String outStatusName; @Excel(name = "订单数量") @ApiModelProperty(value = "订单数量") private BigDecimal orderQty; @Excel(name = "可出库数量") @ApiModelProperty(value = "可出库数量") private BigDecimal canOutingQty; @ApiModelProperty(value = "仓库ID") private String whId; @Excel(name = "库存数量") @ApiModelProperty(value = "库存数量") private BigDecimal invQty; @Excel(name = "可用量") @ApiModelProperty(value = "可用量") private BigDecimal usableQty; @ApiModelProperty(value = "出库明细ID") private String outItemId; @ApiModelProperty(value = "订单明细ID") private String orderItemId; @ApiModelProperty(value = "已出库数量") private BigDecimal outboundOutQty; @ApiModelProperty(value = "可退货数量") private BigDecimal canReturnQty; @ApiModelProperty(value = "库存类型(入库,出库)") private String inventoryType; @ApiModelProperty(value = "库存业务类型(入库4种,出库4中)") private String inventoryDocCode; @Excel(name = "商品品牌名称") @ApiModelProperty(value = "商品品牌名称") private String brandName; @Excel(name = "品牌简称") @ApiModelProperty(value = "商品品牌简称") private String shortName; @Excel(name = "商品规格") @ApiModelProperty(value = "商品规格") private String skuSpec; private String fromNo; @ApiModelProperty(value = "新建编辑标识true:新建,false:编辑") private Boolean addOrEditFlag; @Excel(name = "商品图片 (index(显示顺序)、name(文件名)、path(路径)、type(类型)、time(上传时间)...)") @ApiModelProperty(value = "商品图片 (index(显示顺序)、name(文件名)、path(路径)、type(类型)、time(上传时间)...)") @TableField(typeHandler = JsonTypeHandler.class) private JSONArray skuImages; private static final long serialVersionUID = 1L; }