package com.maintain.business.domain.vo;

import java.math.BigDecimal;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
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.Set;

/**
 * 物料入库明细视图对象 erp_material_putaway_info
 *
 * @author liushuai
 * @date 2025-04-03
 */
@Data
@ExcelIgnoreUnannotated
public class ErpMaterialPutawayInfoVo implements Serializable {

    private static final long serialVersionUID = 1L;

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

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

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

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

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

    /**
     * 入库类型
     */
    @ExcelProperty(value = "入库类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "putaway_type")
    private String putawayType;

    /**
     * 物资分类ID
     */
    private Long materialTypeId;

    /**
     * 物资分类名称
     */
    private String materialTypeName;

    /**
     * 仓库货位ID
     */
    private Long warehouseLocationId;

    /**
     * 仓库货位类型
     */
    private String warehouseLocationType;

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

    /**
     * 供应商名称
     */
    @ExcelProperty(value = "供应商名称")
    private String vendorName;

    /**
     * 物料ID
     */
    private Long materialId;

    /**
     * 物资编码
     */
    @ExcelProperty(value = "物资编码")
    private String materialCode;

    /**
     * 物资名称
     */
    @ExcelProperty(value = "物资名称")
    private String materialName;

    /**
     * 物资规格
     */
    @ExcelProperty(value = "物资规格")
    private String materialSpecifications;

    /**
     * 物资单位
     */
    @ExcelProperty(value = "物资单位")
    private String materialUnit;

    /**
     * 质保期（月）
     */
    @ExcelProperty(value = "质保期(月)")
    @ColumnWidth(14)
    private Integer materialWarrantyPeriod;

    /**
     * 参考价
     */
    @ExcelProperty(value = "参考价")
    private BigDecimal referencePrice;

    /**
     * 销售价
     */
    @ExcelProperty(value = "销售价")
    private BigDecimal sellingPrice;

    /**
     * 入库数量
     */
    @ExcelProperty(value = "入库数量")
    private BigDecimal putawayNumber;

    /**
     * 入库单价
     */
    @ExcelProperty(value = "入库单价")
    private BigDecimal putawayPrice;

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

    /**
     * 是否存在退货（0否 1是）
     */
    @ExcelProperty(value = "是否存在退货", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_is_enable")
    private Integer isReturns;

    /**
     * 已退数量
     */
    @ExcelProperty(value = "已退数量")
    private BigDecimal returnedNumber;

    /**
     * 已出数量
     */
    @ExcelProperty(value = "已出数量")
    private BigDecimal issuedNumber;

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

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

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

}
