package cn.iocoder.yudao.module.project.vo;

import cn.iocoder.yudao.common.RepairDictConstants;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 导入、导出excel用的配件VO
 *
 * @author 小李
 * @date 15:38 2024/11/29
**/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = false)
public class RepairWaresExcelVO {

    @ExcelProperty("条形码")
    private String barCode;

    @ExcelProperty("商品编码")
    private String code;

    @ExcelProperty("商品名称")
    private String name;

    @ExcelProperty("规格型号")
    private String model;

    @ExcelProperty("售价")
    private BigDecimal price;

    @ExcelProperty("进价")
    private BigDecimal purPrice;

    @ExcelProperty("所属分类")
    private String type;

    @ExcelProperty(value = "计量单位", converter = DictConvert.class)
    @DictFormat(RepairDictConstants.REPAIR_UNIT)
    private String unit;

    @ExcelProperty("默认仓库")
    private String warehouse;

    @ExcelProperty("最低库存")
    private BigDecimal miniStock;

    @ExcelProperty("最高库存")
    private BigDecimal maxStock;

    @ExcelProperty("当前库存")
    private BigDecimal stock;

    /** 好像找不到这个字典 */
//    @ExcelProperty(value = "配件属性", converter = DictConvert.class)
//    @DictFormat(RepairDictConstants.WARES_ATTRIBUTE)
//    private String attribute;

    @ExcelProperty("适用车型")
    private String carModel;

    /** 好像找不到这个字典 */
//    @ExcelProperty(value = "配件来源", converter = DictConvert.class)
//    @DictFormat(RepairDictConstants.WARES_DATA_FORM)
//    private String dataForm;

    @ExcelProperty("备注")
    private String remark;
}
