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_inventory_record
 *
 * @author liushuai
 * @date 2025-07-16
 */
@Data
@ExcelIgnoreUnannotated
public class ErpMaterialInventoryRecordVo implements Serializable {

    private static final long serialVersionUID = 1L;

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

    /**
     * 主键
     */
    private Long recordId;

    /**
     * 明细ID（入库|退货|出库|退料）
     */
    @ExcelProperty(value = "明细ID", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "入=库|退货|出库|退料")
    private Long infoId;

    /**
     * 入库单号
     */
    private String putawayCode;

    /**
     * 报修单号
     */
    private String repairNumber;

    /**
     * 退货单号
     */
    private String returnsCode;

    /**
     * 出库单号
     */
    private String outNumber;

    /**
     * 退料单号
     */
    private String returnNumber;

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

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

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

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

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

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

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

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

    /**
     * 物资品牌
     */
    @ExcelProperty(value = "物资品牌")
    private String materialBrand;
    /**
     * 采购标的
     */
    @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;

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

    /**
     * 部门ID
     */
    @ExcelProperty(value = "部门ID")
    private Long deptId;

    /**
     * 仓库ID
     */
    @ExcelProperty(value = "仓库ID")
    private Long warehouseId;

    /**
     * 数量
     */
    @ExcelProperty(value = "数量")
    private BigDecimal number;

    /**
     * 单价
     */
    @ExcelProperty(value = "单价")
    private BigDecimal price;

    /**
     * 金额
     */
    @ExcelProperty(value = "金额")
    private BigDecimal money;

    /**
     * 类型（1入库2退货3出库4退料）
     */
    @ExcelProperty(value = "类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=入库2退货3出库4退料")
    private String type;

    /**
     * 创建部门(数据权限)
     */
    @ExcelProperty(value = "创建部门(数据权限)", converter = ExcelDictConvert.class)
    private Long createDeptId;

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

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


}
