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

import com.zt.plat.module.qms.core.aspect.annotation.Dict;
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.time.LocalDateTime;

@Schema(description = "管理后台 - 物料大类 Response VO")
@Data
@ExcelIgnoreUnannotated
public class MaterialProductRespVO {

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

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

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

    @Schema(description = "节点类型,分类|产品", example = "2")
    @ExcelProperty("节点类型,分类|产品")
    private String nodeType;

    @Schema(description = "名称", example = "张三")
    @ExcelProperty("名称")
    private String name;

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

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

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

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

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

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

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

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

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

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

    @Schema(description = "允许按量领取")
    @ExcelProperty("允许按量领取")
    @Dict(dicCode = "yes_or_no")
    private String enablePartial;

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

    @Schema(description = "开封后保质期是否变化")
    @ExcelProperty("开封后保质期是否变化")
    @Dict(dicCode = "yes_or_no")
    private String openDueFlag;

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

    @Schema(description = "是否危险品")
    @ExcelProperty("是否危险品")
    @Dict(dicCode = "yes_or_no")
    private String hazardous;

    @Schema(description = "是否标准溶液")
    @ExcelProperty("是否标准溶液")
    @Dict(dicCode = "yes_or_no")
    private String standardSolutionFlag;

    @Schema(description = "是否标准物质")
    @ExcelProperty("是否标准物质")
    @Dict(dicCode = "yes_or_no")
    private String standardMaterialFlag;

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

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

    @Schema(description = "禁用")
    @ExcelProperty("禁用")
    private String cancelFlag;

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

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

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}