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

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

/**
 * 工作台 - 工料机编码查询 Response VO
 * 用于新增工料机时弹窗查询
 */
@Schema(description = "工作台 - 工料机编码查询 Response VO")
@Data
public class WbResourceSearchRespVO {

    @Schema(description = "工料机ID（本项目=wb_boq_resource.sourceResourceItemId，非项目=resource_item.id）")
    private Long id;

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

    @Schema(description = "名称")
    private String name;

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

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

    @Schema(description = "数据来源：project=本项目, standard=非项目")
    private String source;

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

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

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

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

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

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

    @Schema(description = "机类ID")
    private Long categoryId;

    @Schema(description = "后台工料机ID（用于创建时引用）")
    private Long sourceResourceItemId;
}
