package com.dk.mdm.model.vo.ivt;

import cn.afterturn.easypoi.excel.annotation.Excel;
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.TimestampTypeHandler;
import com.dk.common.infrastructure.handler.UuidTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 *  入库退货明细
 */
@Data
@Accessors(chain = true)
public class IntoReturnItemVO  {

    /*
     * 数据库字段
     */

    /**
     * 明细ID
     */
    @ApiModelProperty(value = "明细ID")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String itemId;


    /**
     * 退货单ID
     */
    @ApiModelProperty(value = "退货单ID")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String returnId;


    /**
     * 入库单ID
     */
    @ApiModelProperty(value = "入库单ID")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String intoId;


    /**
     * 入库单明细ID
     */
    @ApiModelProperty(value = "入库单明细ID")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String intoItemId;


    /**
     * 采购订单ID
     */
    @ApiModelProperty(value = "采购订单ID")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String purId;


    /**
     * 采购明细ID
     */
    @ApiModelProperty(value = "采购明细ID")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String purItemId;


    @ApiModelProperty(value = "来源单明细ID (采购订单、出库退货)")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String fromItemId;


    /**
     * 商品顺序
     */
    @ApiModelProperty(value = "商品顺序")
    private Integer itemIndex;


    /**
     * 商品ID
     */
    @ApiModelProperty(value = "商品ID")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String skuId;


    /**
     * 商品数量
     */
    @ApiModelProperty(value = "商品数量")
    private BigDecimal itemQty;


    /**
     * 标价
     */
    @ApiModelProperty(value = "标价")
    private BigDecimal priceStd;


    /**
     * 标价金额 (商品数量*标价)
     */
    @ApiModelProperty(value = "标价金额 (商品数量*标价)")
    private BigDecimal amtStd;


    /**
     * 退货价
     */
    @ApiModelProperty(value = "退货价")
    private BigDecimal priceReturn;


    /**
     * 退货金额 (商品数量*退货价)
     */
    @ApiModelProperty(value = "退货金额 (商品数量*退货价)")
    private BigDecimal itemAmt;


    /**
     * 非标号
     */
    @ApiModelProperty(value = "非标号")
    private String nonStdCode;


    /**
     * 入库状态
     */
    @ApiModelProperty(value = "入库状态")
    private String outStatus;



    /**
     * 出库中数量
     */
    @ApiModelProperty(value = "出库中数量")
    private BigDecimal outingQty;


    /**
     * 出库中金额
     */
    @ApiModelProperty(value = "出库中金额")
    private BigDecimal outingAmt;


    /**
     * 已出库数量
     */
    @ApiModelProperty(value = "已出库数量")
    private BigDecimal outQty;


    /**
     * 已出库金额
     */
    @ApiModelProperty(value = "已出库金额")
    private BigDecimal outAmt;


    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remarks;


    /**
     * 有效标识 (1：正常 0：停用)
     */
    @ApiModelProperty(value = "有效标识 (1：正常 0：停用)")
    private Boolean flgValid;


    /**
     * 企业ID
     */
    @ApiModelProperty(value = "企业ID")
    private Integer cpId;


    /**
     * 创建时间 (触发器自动处理)
     */
    @ApiModelProperty(value = "创建时间 (触发器自动处理)")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(typeHandler = TimestampTypeHandler.class)
    private LocalDateTime opCreateTime;


    /**
     * 创建用户 (触发器自动处理)
     */
    @ApiModelProperty(value = "创建用户 (触发器自动处理)")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String opCreateUserId;


    /**
     * 修改时间 (触发器自动处理)
     */
    @ApiModelProperty(value = "修改时间 (触发器自动处理)")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(typeHandler = TimestampTypeHandler.class)
    private LocalDateTime opUpdateTime;


    /**
     * 修改用户 (触发器自动处理)
     */
    @ApiModelProperty(value = "修改用户 (触发器自动处理)")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String opUpdateUserId;


    /**
     * 数据操作应用 (触发器自动处理)
     */
    @ApiModelProperty(value = "数据操作应用 (触发器自动处理)")
    private String opAppCode;


    /**
     * 数据时间戳 (触发器自动处理)
     */
    @ApiModelProperty(value = "数据时间戳 (触发器自动处理)")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(typeHandler = TimestampTypeHandler.class)
    private LocalDateTime opTimestamp;


    /**
     * 数据操作数据库用户 (触发器自动处理)
     */
    @ApiModelProperty(value = "数据操作数据库用户 (触发器自动处理)")
    private String opDbUser;


    @ApiModelProperty(value = "库存ID")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String invId;




    private static final long serialVersionUID = 1L;

}
