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

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

import java.util.List;

/**
 * @author shenyifei
 */
@Data
@Schema(title = "采购订单创建")
@EqualsAndHashCode(callSuper = true)
public class PurchaseOrderCreateCmd extends Command {
	/**
	 * 订单ID（更新时使用）
	 */
	@Schema(title = "采购订单ID", type = "string")
	private Long orderId;

	/**
	 * 步骤标识
	 */
	@Schema(title = "步骤标识")
	private Integer active;

	/**
	 * 产地负责人
	 */
	@Schema(title = "产地负责人")
	private String originPrincipal;

	/**
	 * 工头
	 */
	@Schema(title = "工头")
	private String foreman;

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

	/**
	 * 创建人ID
	 */
	@Schema(title = "创建人ID", type = "string", hidden = true)
	private Long createdBy;

	/**
	 * 创建人名称
	 */
	@Schema(title = "创建人名称", type = "string", hidden = true)
	private String createdByName;

	/**
	 * 车辆信息
	 */
	@Schema(title = "车辆信息", requiredMode = Schema.RequiredMode.REQUIRED)
	private OrderVehicle orderVehicle;

	/**
	 * 经销商信息
	 */
	@Schema(title = "经销商信息", requiredMode = Schema.RequiredMode.REQUIRED)
	private OrderDealer orderDealer;

	/**
	 * 供应商信息
	 */
	@Schema(title = "供应商信息", requiredMode = Schema.RequiredMode.REQUIRED)
	private List<OrderSupplier> orderSupplierList;

	/**
	 * 费用信息
	 */
	@Schema(title = "采购订单费用信息", requiredMode = Schema.RequiredMode.REQUIRED)
	private List<OrderCost> orderCostList;

	/**
	 * 费用信息
	 */
	@Schema(title = "采购订单费用信息", requiredMode = Schema.RequiredMode.REQUIRED)
	private List<OrderCostItem> orderCostItemList;

	/**
	 * 包装箱信息
	 */
	@Schema(title = "采购订单包装箱信息", requiredMode = Schema.RequiredMode.REQUIRED)
	private List<OrderPackage> orderPackageList;
}

