package com.yhy.module.core.controller.admin.resource.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import java.math.BigDecimal;
import java.util.List;
import lombok.Data;

@Schema(description = "管理后台 - 工料机项及价格列表响应 VO")
@Data
public class ResourceItemWithPricesRespVO {

    @Schema(description = "工料机项ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long id;

    @Schema(description = "编码（来自目录树）", requiredMode = Schema.RequiredMode.REQUIRED, example = "C001")
    private String code;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "水泥 P.O 42.5")
    private String name;

    @Schema(description = "型号规格", example = "袋装 50kg")
    private String spec;

    @Schema(description = "类别ID", example = "1")
    private Long categoryId;

    @Schema(description = "类别名称", example = "水泥")
    private String categoryName;

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

    @Schema(description = "税率", example = "0.13")
    private BigDecimal taxRate;

    @Schema(description = "除税基价", example = "450.00")
    private BigDecimal taxExclBasePrice;

    @Schema(description = "含税基价", example = "508.50")
    private BigDecimal taxInclBasePrice;

    @Schema(description = "除税编制价", example = "460.00")
    private BigDecimal taxExclCompilePrice;

    @Schema(description = "含税编制价", example = "519.80")
    private BigDecimal taxInclCompilePrice;

    @Schema(description = "价格历史列表")
    private List<ResourceItemPriceRespVO> prices;
}
