package com.xunhong.erp.turbo.api.biz.dto.vo;

import com.alibaba.cola.dto.DTO;
import com.xunhong.erp.turbo.api.biz.dto.enums.CostItemRuleEnum;
import com.xunhong.erp.turbo.api.biz.dto.enums.CostItemTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author shenyifei
 */
@Data
@Schema(title = "费用项目表")
@EqualsAndHashCode(callSuper = true)
public class CostItemVO extends DTO {

	/**
	 * 项目ID
	 */
	@Schema(title = "项目ID", type = "string", requiredMode = Schema.RequiredMode.REQUIRED)
	private Long costItemId;

	/**
	 * 项目类型：1_辅料类型；2_人工类型；
	 */
	@Schema(title = "项目类型：1_辅料类型；2_人工类型；", requiredMode = Schema.RequiredMode.REQUIRED)
	private CostItemTypeEnum type;

	/**
	 * 项目名称
	 */
	@Schema(title = "项目名称", requiredMode = Schema.RequiredMode.REQUIRED)
	private String name;

	/**
	 * 单价
	 */
	@Schema(title = "单价")
	private BigDecimal price;

	/**
	 * 单位
	 */
	@Schema(title = "单位")
	private String unit;

	/**
	 * 录入规则：1_填数量；2_选纸箱；
	 */
	@Schema(title = "录入规则：1_填数量；2_选纸箱；", requiredMode = Schema.RequiredMode.REQUIRED)
	private CostItemRuleEnum rule;

	/**
	 * 备注
	 */
	@Schema(title = "备注")
	private String remark;

	/**
	 * 排序号
	 */
	@Schema(title = "排序号", requiredMode = Schema.RequiredMode.REQUIRED)
	private BigDecimal sort;

	/**
	 * 状态：1_启用；0_禁用
	 */
	@Schema(title = "状态：1_启用；0_禁用", requiredMode = Schema.RequiredMode.REQUIRED)
	private Boolean status;

	/**
	 * 创建时间
	 */
	@Schema(title = "创建时间")
	private LocalDateTime createdAt;

}

