package cn.iocoder.yudao.module.pms.controller.admin.iotmainworkorderbommaterial.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - PMS 保养工单明细设备BOM挂载物料关联 Response VO")
@Data
@ExcelIgnoreUnannotated
public class IotMainWorkOrderBomMaterialRespVO {

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

    @Schema(description = "保养计划id", example = "21957")
    @ExcelProperty("保养计划id")
    private Long mainPlanId;

    @Schema(description = "保养工单id", example = "11659")
    @ExcelProperty("保养工单id")
    private Long workOrderId;

    @Schema(description = "保养工单明细id", example = "28110")
    @ExcelProperty("保养工单明细id")
    private Long mainWorkOrderDetailId;

    @Schema(description = "物料所属设备分类", example = "25032")
    @ExcelProperty("物料所属设备分类")
    private Long deviceCategoryId;

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

    @Schema(description = "设备分类公共BOM节点名称", example = "芋艿")
    @ExcelProperty("设备分类公共BOM节点名称")
    private String name;

    @Schema(description = "设备分类公共BOM节点编码")
    @ExcelProperty("设备分类公共BOM节点编码")
    private String code;

    @Schema(description = "物料id", example = "2521")
    @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 = "25019")
    @ExcelProperty("单价(元)")
    private BigDecimal unitPrice;

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

    @Schema(description = "公里数周期(千米)")
    @ExcelProperty("公里数周期(千米)")
    private BigDecimal kilometerCycle;

    @Schema(description = "公里数周期-提前量(千米)")
    @ExcelProperty("公里数周期-提前量(千米)")
    private BigDecimal kiloCycleLead;

    @Schema(description = "时间周期(小时)")
    @ExcelProperty("时间周期(小时)")
    private BigDecimal timePeriod;

    @Schema(description = "时间周期-提前量(小时)")
    @ExcelProperty("时间周期-提前量(小时)")
    private BigDecimal timePeriodLead;

    @Schema(description = "自然日周期(天)")
    @ExcelProperty("自然日周期(天)")
    private BigDecimal naturalDatePeriod;

    @Schema(description = "自然日周期-提前量(天)")
    @ExcelProperty("自然日周期-提前量(天)")
    private BigDecimal naturalDatePeriodLead;

    @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 = "1")
    @ExcelProperty("状态 0启用  1停用")
    private Integer status;

    @Schema(description = "备注", example = "随便")
    @ExcelProperty("备注")
    private String remark;

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

    /**
     * 扩展字段
     */
    @Schema(description = "总库存数量")
    private BigDecimal totalInventoryQuantity;

    @Schema(description = "单位", example = "kg")
    private String unit;

    @Schema(description = "是否是bom节点关联的物料", example = "Y N")
    private String bomMaterialFlag;

    @Schema(description = "sap 工厂id", example = "30856")
    private Long factoryId;

    @Schema(description = "sap 成本中心id", example = "30856")
    private Long costCenterId;

    @Schema(description = "sap 库存地点id", example = "30856")
    private Long storageLocationId;

    @Schema(description = "sap 工厂名称", example = "四川瑞都")
    private String factory;

    @Schema(description = "sap 成本中心", example = "HY-01")
    private String costCenter;

    @Schema(description = "sap 库存地点", example = "新疆项目部")
    private String projectDepartment;
}