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 javax.validation.constraints.*;
import java.math.BigDecimal;

@Schema(description = "管理后台 - 维修工单对应物料新增/修改 Request VO")
@Data
public class IotMaintainMaterialsSaveReqVO {

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

    @Schema(description = "维修工单id", requiredMode = Schema.RequiredMode.REQUIRED, example = "2757")
    @NotNull(message = "维修工单id不能为空")
    private Long maintainId;

    @Schema(description = "维修项id", requiredMode = Schema.RequiredMode.REQUIRED, example = "10896")
    @NotNull(message = "维修项id不能为空")
    private Long bomId;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    private Long factoryId;

    private Long costCenterId;
}
