package com.maintain.business.domain.vo;

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

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.business.domain.ErpMaterialPutawayInfo;
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_putaway
 *
 * @author liushuai
 * @date 2025-04-03
 */
@Data
@ExcelIgnoreUnannotated
public class ErpMaterialPutawayVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 入库单主键
     */
    private Long id;

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

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

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

    /**
     * 入库类型（1采购入库 2铺货入库）
     */
    @ExcelProperty(value = "入库类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "putaway_type")
    private String putawayType;

    /**
     * 入库时间
     */
    @ExcelProperty(value = "入库时间")
    @ColumnWidth(20)
    private Date putawayTime;

    /**
     * 入库金额
     */
    @ExcelProperty(value = "入库金额")
    private BigDecimal putawayMoney;

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

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

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

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

    /**
     * 状态（1登记中 2已入库）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "putaway_state")
    private Integer state;

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

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

    /**
     * 物料入库明细列表
     */
    private List<ErpMaterialPutawayInfoVo> putawayInfoList;


}
