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;

/**
 * 物资视图对象 erp_material
 *
 * @author liushuai
 * @date 2025-04-03
 */
@Data
@ExcelIgnoreUnannotated
public class ErpMaterialVo implements Serializable {

    private static final long serialVersionUID = 1L;

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

    /**
     * 部门ID
     */
    private Long deptId;

    /**
     * 部门名称
     */
    private String deptName;

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

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

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

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

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

    /**
     * 物资单位
     */
    @ExcelProperty(value = "物资单位", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "material_unit")
    private String materialUnit;

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

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

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

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

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

    /**
     * 仓库名称
     */
    private String warehouseName;

    /**
     * 仓库货位编码
     */
    private String warehouseLocationCode;

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

    /**
     * 物资品牌
     */
    @ExcelProperty(value = "物资品牌")
    private String materialBrand;
    /**
     * 生产厂家
     */
    @ExcelProperty(value = "生产厂家")
    private String manufacturer;
    /**
     * 采购标的
     */
    @ExcelProperty(value = "采购标的")
    private String procurementSubject;
    /**
     * 适用车型
     */
    @ExcelProperty(value = "适用车型")
    private String compatibleWith;
    /**
     * 物资图片
     */
    private String materialUrl;
    /**
     * 质保期（月）
     */
    @ExcelProperty(value = "质保期(月)")
    private Integer materialWarrantyPeriod;

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

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

    /**
     * 库存数量
     */
    private BigDecimal inventory;

    /**
     * 是否启用（0否 1是 默认1）
     */
    @ExcelProperty(value = "是否启用", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_is_enable")
    private String isEnable;

    /**
     * 是否通用（0否 1是 默认1）
     */
    @ExcelProperty(value = "是否通用", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_is_enable")
    private String isUniversal;

    /**
     * 是否盘点中（0否 1是 默认0）
     */
    private Integer isCheck;

    /**
     * 创建人
     */
    private String createBy;

    /**
     * 创建时间
     */
    private String createTime;


}
