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

import io.swagger.v3.oas.annotations.media.Schema;
import java.math.BigDecimal;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * 工作台 - 双击填充工料机数据 Request VO
 * 从弹窗查询结果复制数据到空白行
 */
@Schema(description = "工作台 - 双击填充工料机数据 Request VO")
@Data
public class WbBoqResourceFillReqVO {

    @Schema(description = "空白行ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "空白行ID不能为空")
    private Long id;

    @Schema(description = "后台工料机ID", example = "1")
    private Long sourceResourceItemId;

    @Schema(description = "编码", example = "C001")
    private String code;

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

    @Schema(description = "型号规格", example = "P.O 42.5")
    private String spec;

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

    @Schema(description = "类型：labor-人工, material-材料, machine-机械", example = "material")
    private String resourceType;

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

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

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

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

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

    @Schema(description = "机类ID（跨专业超出范围时可为null）", example = "1")
    private Long categoryId;
}
