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

import com.alibaba.cola.dto.DTO;
import com.xunhong.erp.turbo.api.biz.dto.enums.CostItemCostTypeEnum;
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 itemId;

	/**
	 * 费用类型：1_包装材料；2_人工费用；3_其他费用；4_固定费用；5_工头垫付；6_产地垫付
	 */
	@Schema(title = "费用类型：1_包装材料；2_人工费用；3_其他费用；4_固定费用；5_工头垫付；6_产地垫付", requiredMode = Schema.RequiredMode.REQUIRED)
	private CostItemCostTypeEnum costType;

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

	/**
	 * 单位
	 */
	@Schema(title = "单位", requiredMode = Schema.RequiredMode.REQUIRED)
	private String unit;

	/**
	 * 单价
	 */
	@Schema(title = "单价", requiredMode = Schema.RequiredMode.REQUIRED)
	private BigDecimal price;

	/**
	 * 是否在录入时显示
	 */
	@Schema(title = "是否在录入时显示", requiredMode = Schema.RequiredMode.REQUIRED)
	private Boolean showInEntry;

	/**
	 * 是否需要填写数量和单价
	 */
	@Schema(title = "是否需要填写数量和单价", requiredMode = Schema.RequiredMode.REQUIRED)
	private Boolean requireQuantityAndPrice;

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

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

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

}
