package cn.iocoder.yudao.module.pms.controller.admin.iotmaterialrequisition.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 static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 物料领用分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class IotMaterialRequisitionPageReqVO extends PageParam {

    @Schema(description = "部门id", example = "21691")
    private Long deptId;

    @Schema(description = "物料领用单编号")
    private String requisitionNumber;

    @Schema(description = "物料领用单名称", example = "李四")
    private String name;

    @Schema(description = "领用用途(1维修  2保养 3其它)", example = "2")
    private Integer type;

    @Schema(description = "领用人姓名")
    private String responsiblePerson;

    @Schema(description = "物料总费用")
    private BigDecimal cost;

    @Schema(description = "领用结果(1待执行 2已执行)")
    private Integer result;

    @Schema(description = "其他费用")
    private BigDecimal otherCost;

    @Schema(description = "人工费用")
    private BigDecimal laborCost;

    @Schema(description = "领用日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] requisitionTime;

    @Schema(description = "领用原因", example = "不好")
    private String reason;

    @Schema(description = "备注（如特殊要求、紧急程度）", example = "你说的对")
    private String remark;

    @Schema(description = "状态 0=未出库 1=已出库 2=已关闭", example = "1")
    private Integer status;

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

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

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

}