package cn.iocoder.yudao.module.pms.controller.admin.iotoutbound.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 出库 Response VO")
@Data
@ExcelIgnoreUnannotated
public class IotOutboundRespVO {

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

    @Schema(description = "入库id", example = "27552")
    @ExcelProperty("入库id")
    private Long storageId;

    @Schema(description = "组织部门id", example = "10467")
    @ExcelProperty("组织部门id")
    private Long deptId;

    @Schema(description = "工厂id", example = "10467")
    private Long factoryId;
    @Schema(description = "库存地点id", example = "10467")
    private Long storageLocationId;
    @Schema(description = "成本中心id", example = "10467")
    private Long costCenterId;

    @Schema(description = "工厂(SAP) 专业公司")
    @ExcelProperty("工厂(SAP) 专业公司")
    private String factory;

    @Schema(description = "库存地点 - SAP 部门 项目部级")
    @ExcelProperty("库存地点 - SAP 部门 项目部级")
    private String projectDepartment;

    @Schema(description = "成本中心(SAP) 库存地点 小队")
    @ExcelProperty("成本中心(SAP) 库存地点 小队")
    private String costCenter;

    @Schema(description = "设备id", example = "10467")
    private Long deviceId;

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

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

    @Schema(description = "物料组", example = "王五")
    @ExcelProperty("物料组")
    private String materialGroupName;

    @Schema(description = "物料组id", example = "27897")
    @ExcelProperty("物料组id")
    private Long materialGroupId;

    @Schema(description = "出库数量")
    @ExcelProperty("出库数量")
    private BigDecimal quantity;

    @Schema(description = "单价", example = "19965")
    @ExcelProperty("单价")
    private BigDecimal unitPrice;

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

    @Schema(description = "使用方向 对应BOM节点", example = "2254")
    @ExcelProperty("使用方向 对应BOM节点")
    private Long bomNodeId;

    @Schema(description = "使用类型(1维修 2保养 3临时)", example = "1")
    @ExcelProperty("使用类型(1维修 2保养 3临时)")
    private Integer type;

    @Schema(description = "出库时间")
    @ExcelProperty("出库时间")
    private LocalDateTime deliveryTime;

    @Schema(description = "出库原因", example = "不香")
    @ExcelProperty("出库原因")
    private String reason;

    @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 = "流程实例id", example = "19361")
    @ExcelProperty("流程实例id")
    private String processInstanceId;

    @Schema(description = "审批状态 未提交、审批中、审批通过、审批不通过、已取消", example = "1")
    @ExcelProperty("审批状态 未提交、审批中、审批通过、审批不通过、已取消")
    private Integer auditStatus;

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

}