package com.zt.plat.module.qms.resource.material.controller.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.zt.plat.framework.common.pojo.PageParam;
import com.zt.plat.module.qms.core.aspect.annotation.Dict;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

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

import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 物料大类分页 Request VO")
@Data
public class MaterialProductPageReqVO extends PageParam {

    @Schema(description = "业务类型")
    private String businessType;

    @Schema(description = "部门ids")
    private List<Long> departmentIds;

    @Schema(description = "仓库ids")
    private List<Long> warehouseIds;

    @Schema(description = "库位ids")
    private List<Long> locationIds;

    @Schema(description = "父id", example = "7533")
    private Long parentId;

    @Schema(description = "id路径")
    private String idPath;

    @Schema(description = "数据类型")
    private String nodeType;

    @Schema(description = "编码,原始数据编码")
    private String code;

    @Schema(description = "名称", example = "ZT")
    private String name;

    @Schema(description = "其他配置")
    private String customConfig;

    @Schema(description = "自定义表单")
    private String customForm;

    @Schema(description = "扩展数据")
    private String customData;

    @Schema(description = "标签")
    private String tag;

    @Schema(description = "标签模板")
    private String labelTemplateKey;

    @Schema(description = "型号")
    private String modelNo;

    @Schema(description = "规格")
    private String specification;

    @Schema(description = "技术参数")
    private String parameter;

    @Schema(description = "制造商")
    private String manufacturer;

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

    @Schema(description = "允许按量领取,1-领用时输入量，按量领取；0-领用时不能输入量，整个领走")
    private Integer enablePartial;

    @Schema(description = "保质期（天）")
    private Integer[] due;

    @Schema(description = "开封后保质期是否变化,1-是，0-否")
    private Integer openDueFlag;

    @Schema(description = "开封后保质期（天）")
    private Integer[] openDueAfter;

    @Schema(description = "是否危险品,1-是，0-否")
    private Integer hazardous;

    @Schema(description = "是否标准溶液,1-是，0-否")
    private Integer standardSolutionFlag;

    @Schema(description = "是否标准物质,1-是，0-否")
    private Integer standardMaterialFlag;

    @Schema(description = "复标周期,单位：天。小于等于0-不复标")
    private Integer[] reviewDue;

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

    @Schema(description = "禁用标识")
    private Integer cancelFlag;

    @Schema(description = "是否检化验,1-是，0-否")
    private Integer assayFlag;

    @Schema(description = "是否进行库存预警,1-是，0-否")
    private Integer InventoryAlarmFlag;

    @Schema(description = "库存预警级别,safe-安全，warn-警告，danger")
    private String InventoryAlarmLevel;

    @Schema(description = "库存预警区间,json格式配置")
    private String InventoryAlarmRange;

    @Schema(description = "所属部门")
    private String systemDepartmentCode;

    @Schema(description = "备注")
    private String remark;

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


    //============扩展字段===========
    List<Long> rootIdList;

}