package com.maintain.business.domain.vo;

import java.math.BigDecimal;
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;

/**
 * 物资盘点明细视图对象 erp_material_check_info
 *
 * @author liushuai
 * @date 2025-04-03
 */
@Data
@ExcelIgnoreUnannotated
public class ErpMaterialCheckInfoVo implements Serializable {

    private static final long serialVersionUID = 1L;

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

    /**
     * 物资盘点表ID
     */
    private Long checkId;

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

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

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

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

    /**
     * 仓库货位类型
     */
    @ExcelProperty(value = "仓库货位类型")
    private String warehouseLocationType;

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

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

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

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

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

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

    /**
     * 质保期（月）
     */
    @ExcelProperty(value = "质保期", converter = ExcelDictConvert.class)
    private Integer materialWarrantyPeriod;

    /**
     * 库存数量
     */
    @ExcelProperty(value = "库存数量")
    private BigDecimal inventory;

    /**
     * 盘点数量
     */
    @ExcelProperty(value = "盘点数量")
    private BigDecimal checkNum;

    /**
     * 期间出库数量
     */
    @ExcelProperty(value = "期间出库数量")
    private BigDecimal periodOutNum;

    /**
     * 结果数量
     */
    @ExcelProperty(value = "结果数量")
    private BigDecimal resultNum;

    /**
     * 盘点结果（1盘盈 2盘亏）
     */
    @ExcelProperty(value = "盘点结果", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=盘盈,2=盘亏")
    private Integer resultState;


}
