package cn.iocoder.yudao.module.pms.controller.admin.iotmaterialrequisitiondetail.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;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - PMS 物料领用明细 Response VO")
@Data
@ExcelIgnoreUnannotated
public class IotMaterialRequisitionDetailRespVO {

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

    @Schema(description = "物料领用单id", example = "19409")
    @ExcelProperty("物料领用单id")
    private Long requisitionId;

    @Schema(description = "工厂id", example = "19409")
    private Long factoryId;

    @Schema(description = "costCenterId", example = "19409")
    private Long costCenterId;

    @Schema(description = "物料id", example = "16249")
    @ExcelProperty("物料id")
    private Long materialId;

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

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

    @Schema(description = "领用数量")
    @ExcelProperty("领用数量")
    private BigDecimal requisitionQuantity;

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

    @Schema(description = "单价(元)", example = "16087")
    @ExcelProperty("单价(元)")
    private BigDecimal unitPrice;

    @Schema(description = "总金额(元)", example = "26026")
    @ExcelProperty("总金额(元)")
    private BigDecimal totalPrice;

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

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

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

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

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    /**
     * 扩展字段
     */
    @Schema(description = "工厂名称", example = "瑞恒兴域")
    private String factory;

    @Schema(description = "成本中心名称", example = "瑞恒兴域-制氮-吐哈-HY-C4")
    private String costCenter;

    @Schema(description = "当前库存数量 实时查询")
    private BigDecimal quantity;
}