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

import com.xunhong.erp.turbo.api.biz.dto.enums.CostBelongEnum;
import com.xunhong.erp.turbo.api.biz.dto.enums.CostTypeEnum;
import com.xunhong.erp.turbo.base.dto.Command;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author shenyifei
 */
@Data
@Schema(title = "费用创建")
@EqualsAndHashCode(callSuper = true)
public class CostCreateCmd extends Command {

    /**
     * 费用ID
     */
    @Schema(title = "费用ID", type = "string", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long costId;

    /**
     * 费用类型：1_辅料类型；2_人工类型；3_产地类型；4_其他类型；5_物流类型
     */
    @Schema(title = "费用类型：1_辅料类型；2_人工类型；3_产地类型；4_其他类型；5_物流类型", requiredMode = Schema.RequiredMode.REQUIRED)
    private CostTypeEnum type;

    /**
     * 费用归属：0_无归属；1_工头；2_产地；3_司机；
     */
    @Schema(title = "费用归属：0_无归属；1_工头；2_产地；3_司机；", requiredMode = Schema.RequiredMode.REQUIRED)
    private CostBelongEnum belong;

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

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

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

    /**
     * 备注
     */
    @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;

	/**
	 * 成本项ID
	 */
	@Schema(title = "成本项ID")
	private List<Long> costItemIds;

}

