package com.maintain.business.domain.vo;

import java.math.BigDecimal;
import java.util.Date;

import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.maintain.common.annotation.ExcelDictFormat;
import com.maintain.common.convert.ExcelDictConvert;
import lombok.Data;
import java.util.Date;

import java.io.Serializable;
import java.util.List;

/**
 * 物料退货视图对象 erp_material_returns
 *
 * @author liushuai
 * @date 2025-04-07
 */
@Data
@ExcelIgnoreUnannotated
public class ErpMaterialReturnsVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 仓库名称
     */
    @ExcelProperty(value = "仓库名称")
    private String warehouseName;

    /**
     * 退货单号
     */
    @ExcelProperty(value = "退货单号")
    private String returnsCode;

    /**
     * 入库单号
     */
    @ExcelProperty(value = "入库单号")
    private String putawayCode;

    /**
     * 到货单号
     */
    @ExcelProperty(value = "到货单号")
    private String arrivalNumber;

    /**
     * 订单单号
     */
    @ExcelProperty(value = "订单单号")
    private String orderNumber;

    /**
     * 退货金额
     */
    @ExcelProperty(value = "退货金额")
    private BigDecimal returnsMoney;

    /**
     * 退货时间
     */
    @ExcelProperty(value = "退货时间")
    @DateTimeFormat("yyyy-MM-dd")
    @ColumnWidth(20)
    private Date returnsTime;

    /**
     * 入库ID
     */
    private Long putawayId;

    /**
     * 入库类型（1采购入库 2铺货入库）
     */
    private String putawayType;

    /**
     * 入库时间
     */
    private Date putawayTime;

    /**
     * 入库金额
     */
    private BigDecimal putawayMoney;

    /**
     * 仓库ID
     */
    private Long warehouseId;



    /**
     * 供应商ID
     */
    private Long vendorId;

    /**
     * 供应商名称
     */
    private String vendorName;

    /**
     * 创建人
     */
    @ExcelProperty(value = "创建人")
    private String createBy;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    @ColumnWidth(20)
    private Date createTime;

    /**
     * 物料退货明细列表
     */
    private List<ErpMaterialReturnsInfoVo> returnsInfoList;


}
