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

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

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

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - PMS 出库分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class IotOutboundPageReqVO extends PageParam {

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

    @Schema(description = "组织部门id", example = "10467")
    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) 专业公司")
    private String factory;

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

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

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

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

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

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

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

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

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

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

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

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

    @Schema(description = "出库时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] deliveryTime;

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

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

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

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

    @Schema(description = "流程实例id", example = "19361")
    private String processInstanceId;

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

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    private List<Long> deptIds;

}
