package com.bonus.material.scrap.domain.vo;

import com.bonus.common.core.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.poi.ss.usermodel.HorizontalAlignment;

import java.math.BigDecimal;

/**
 * 报废台账返回实体类
 * @author ma_sh
 */
@Data
public class ScrapDetailsListVo {

    @ApiModelProperty(value = "物资类型名称")
    @Excel(name = "类型名称")
    private String typeName;

    /** 规格ID */
    @ApiModelProperty(value = "规格ID")
    private Long typeId;

    @ApiModelProperty(value = "规格型号名称")
    @Excel(name = "规格型号")
    private String typeModelName;

    @ApiModelProperty(value = "单位")
    @Excel(name = "计量单位")
    private String unitName;

    /** 报废数量 */
    @Excel(name = "报废数量", align = HorizontalAlignment.RIGHT)
    @ApiModelProperty(value = "报废数量")
    private BigDecimal scrapNum;

    @ApiModelProperty(value = "费用合计")
    @Excel(name = "报废费用(万元)", align = HorizontalAlignment.RIGHT)
    private BigDecimal totalCost;

    @ApiModelProperty(value = "购置价")
    private BigDecimal buyPrice;

    @ApiModelProperty(value = "报废类型")
    @Excel(name = "报废类型")
    private String scrapStyle;

    @ApiModelProperty(value = "(1退料2,维修审核，3盘点报废)")
    private String scrapSource;

    /** （0自然，1人为） */
    @Excel(name = "损坏类型")
    private String scrapType;

    @ApiModelProperty(value = "任务创建人昵称")
    @Excel(name = "审核人")
    private String auditName;

    @ApiModelProperty(value = "本次审核周期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核日期", width = 30, dateFormat = "yyyy-MM-dd")
    private String month;

    @ApiModelProperty(value = "台账审核状态 0待审核，1已审核，2驳回")
    private String ledgerStatus;

    @ApiModelProperty(value = "台账审核状态 0待审核，1已审核，2驳回")
    private String remark;

}
