package com.zt.plat.module.erp.controller.admin.erp.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;

@Schema(description = "管理后台 - ERP物料清单(BOM)明细 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ErpBomDetailRespVO {

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

    @Schema(description = "BOM主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "24876")
    @ExcelProperty("BOM主键")
    private String bomId;

    @Schema(description = "ERP物料清单主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "14731")
    @ExcelProperty("ERP物料清单主键")
    private String erpBomId;

    @Schema(description = "子项物料编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("子项物料编码")
    private String childMaterialNumber;

    @Schema(description = "子项物料描述", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("子项物料描述")
    private String childMaterialDescription;

    @Schema(description = "子项类别", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("子项类别")
    private String category;

    @Schema(description = "基本数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("基本数量")
    private BigDecimal quantity;

    @Schema(description = "基本单位", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("基本单位")
    private String unit;

    @Schema(description = "物料标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("物料标识")
    private String identificationType;

}