package cn.iocoder.yudao.module.mes.controller.admin.pro.wage.vo;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import jakarta.validation.constraints.NotBlank;
|
import jakarta.validation.constraints.NotNull;
|
import lombok.Data;
|
|
import java.math.BigDecimal;
|
|
@Schema(description = "管理后台 - MES 工序工资字段新增/修改 Request VO")
|
@Data
|
public class MesProProcessWageFieldSaveReqVO {
|
|
@Schema(description = "编号")
|
private Long id;
|
|
@Schema(description = "工序编号", requiredMode = Schema.RequiredMode.REQUIRED)
|
@NotNull(message = "工序不能为空")
|
private Long processId;
|
|
@Schema(description = "字段编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "TEMP_COEF")
|
@NotBlank(message = "字段编码不能为空")
|
private String fieldCode;
|
|
@Schema(description = "字段名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "高温系数")
|
@NotBlank(message = "字段名称不能为空")
|
private String fieldName;
|
|
@Schema(description = "字段类型:1-数值 2-文本 3-下拉 4-布尔", requiredMode = Schema.RequiredMode.REQUIRED)
|
@NotNull(message = "字段类型不能为空")
|
private Integer fieldType;
|
|
@Schema(description = "单位", example = "系数")
|
private String unit;
|
|
@Schema(description = "工序级固定值", example = "1.10")
|
private String fieldValue;
|
|
@Schema(description = "计算角色:1-系数 2-加减金额 3-计价数量 4-仅记录", requiredMode = Schema.RequiredMode.REQUIRED)
|
@NotNull(message = "计算角色不能为空")
|
private Integer calcRole;
|
|
@Schema(description = "计价数量单价", example = "2.00")
|
private BigDecimal unitPrice;
|
|
@Schema(description = "排序")
|
private Integer sort;
|
|
@Schema(description = "状态:0-启用 1-禁用")
|
private Integer status;
|
|
@Schema(description = "备注")
|
private String remark;
|
|
}
|