package cn.iocoder.yudao.module.pms.controller.admin.maintain.materials.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 维修工单对应物料 Response VO")
@Data
@ExcelIgnoreUnannotated
public class IotMaintainMaterialsRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "9612")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "维修工单id", requiredMode = Schema.RequiredMode.REQUIRED, example = "2757")
    @ExcelProperty("维修工单id")
    private Long maintainId;

    @Schema(description = "维修项id", requiredMode = Schema.RequiredMode.REQUIRED, example = "10896")
    @ExcelProperty("维修项id")
    private Long bomId;

    @Schema(description = "保养工单明细设备BOM节点id", example = "6271")
    @ExcelProperty("保养工单明细设备BOM节点id")
    private Long bomNodeId;

    @Schema(description = "物料id", example = "25104")
    @ExcelProperty("物料id")
    private Long materialId;

    @Schema(description = "物料编码")
    @ExcelProperty("物料编码")
    private String materialCode;

    @Schema(description = "物料名称", example = "芋艿")
    @ExcelProperty("物料名称")
    private String materialName;

    @Schema(description = "消耗数量")
    @ExcelProperty("消耗数量")
    private BigDecimal quantity;

    @Schema(description = "单价(元)", example = "1603")
    @ExcelProperty("单价(元)")
    private BigDecimal unitPrice;
    @Schema(description = "单位")
    private String unit;

    @Schema(description = "总金额(元)", example = "1015")
    @ExcelProperty("总金额(元)")
    private BigDecimal totalPrice;

    @Schema(description = "总数量")
    @ExcelProperty("总数量")
    private BigDecimal totalInventoryQuantity;

    @Schema(description = "物料来源 (SAP库存 本地库存...)")
    @ExcelProperty("物料来源 (SAP库存 本地库存...)")
    private String materialSource;

    @Schema(description = "库存地点")
    @ExcelProperty("库存地点")
    private String inventoryAddress;

    @Schema(description = "排序")
    @ExcelProperty("排序")
    private Integer sort;

    @Schema(description = "状态 0启用  1停用", example = "2")
    @ExcelProperty("状态 0启用  1停用")
    private Integer status;

    @Schema(description = "备注", example = "你说的对")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
