package com.dk.mdm.model.response.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.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 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 IntoReturnItemResponse  {

    /*
     * 数据库字段
     */

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



    @ApiModelProperty(value = "来源单ID (销售订单、入库退货)")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String fromId;


    @ApiModelProperty(value = "入库类型 (【系统字典】采购入库、销退入库、其他入库)")
    private String intoType;


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


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


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


    /**
     * 入库单明细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;


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


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


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


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


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


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


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


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


    /**
     * 入库状态
     */
    @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 String remarks;


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


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




    @Excel(name = "商品编码")
    @ApiModelProperty(value = "商品编码")
    private String skuCode;

    @Excel(name = "商品名称")
    @ApiModelProperty(value = "商品名称")
    private String skuName;

    @Excel(name = "商品型号")
    @ApiModelProperty(value = "商品型号")
    private String skuModel;

    @ApiModelProperty(value = "商品图")
    @TableField(typeHandler = JsonTypeHandler.class)
    private String skuImages;


    @TableField(typeHandler = UuidTypeHandler.class)
    @ApiModelProperty(value = "入库仓库")
    private String whId;


    @Excel(name = "仓库名称")
    @ApiModelProperty(value = "仓库名称")
    private String whName;

    /**
     * 已入库数量
     */
    @Excel(name = "已入库数量")
    @ApiModelProperty(value = "已入库数量")
    private BigDecimal intoQty;


    /**
     * 已入库金额
     */
    @Excel(name = "已入库金额")
    @ApiModelProperty(value = "已入库金额")
    private BigDecimal intoAmt;

    /**
     * 已入库退货数量
     */
    @Excel(name = "已入库退货数量")
    @ApiModelProperty(value = "已入库退货数量")
    private BigDecimal returnQty;


    /**
     * 已入库退货金额
     */
    @Excel(name = "已入库退货金额")
    @ApiModelProperty(value = "已入库退货金额")
    private BigDecimal returnAmt;

    @ApiModelProperty(value = "可退数量")
    private BigDecimal rejectQty;


    private static final long serialVersionUID = 1L;

}
