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

import com.xunhong.erp.turbo.api.biz.dto.common.OrderCompany;
import com.xunhong.erp.turbo.api.biz.dto.common.OrderRebate;
import com.xunhong.erp.turbo.api.biz.dto.common.OrderShip;
import com.xunhong.erp.turbo.api.biz.dto.enums.PurchaseOrderPricingMethodEnum;
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 PurchaseOrderApproveCmd extends PurchaseOrderCreateCmd {

	@Schema(title = "采购订单ID", requiredMode = Schema.RequiredMode.REQUIRED, type = "string")
	private Long orderId;

	@Schema(title = "是否是暂存", type = "boolean", requiredMode = Schema.RequiredMode.REQUIRED)
	private Boolean draft;

	/**
	 * 报价方式：1_按毛重报价；2_按净重报价；
	 */
	@Schema(title = "报价方式：1_按毛重报价；2_按净重报价；")
	private PurchaseOrderPricingMethodEnum pricingMethod;

	/**
	 * 公司信息
	 */
	@Schema(title = "公司信息", requiredMode = Schema.RequiredMode.REQUIRED)
	private OrderCompany orderCompany;

	/**
	 * 返点信息
	 */
	@Schema(title = "返点信息", requiredMode = Schema.RequiredMode.REQUIRED)
	private OrderRebate orderRebate;

	@Schema(title = "发货单信息", requiredMode = Schema.RequiredMode.REQUIRED)
	private List<OrderShip> orderShipList;
}

