package 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.math.BigDecimal;
import java.util.List;

/**
 * @author shenyifei
 */
@Data
@Schema(title = "采购订单供应商信息创建")
@EqualsAndHashCode(callSuper = true)
public class OrderSupplier extends Command {

	/**
	 * 记录ID
	 */
	@Schema(title = "记录ID", type = "string", requiredMode = Schema.RequiredMode.REQUIRED)
	private Long orderSupplierId;

	/**
	 * 订单ID
	 */
	@Schema(title = "订单ID", type = "string")
	private Long orderId;

	/**
	 * 供应商ID
	 */
	@Schema(title = "供应商ID", type = "string")
	private Long supplierId;

	/**
	 * 供应商姓名
	 */
	@Schema(title = "供应商姓名", requiredMode = Schema.RequiredMode.REQUIRED)
	private String name;

	/**
	 * 身份证号
	 */
	@Schema(title = "身份证号", requiredMode = Schema.RequiredMode.REQUIRED)
	private String idCard;

	/**
	 * 银行卡号
	 */
	@Schema(title = "银行卡号", requiredMode = Schema.RequiredMode.REQUIRED)
	private String bankCard;

	/**
	 * 手机号
	 */
	@Schema(title = "手机号", requiredMode = Schema.RequiredMode.REQUIRED)
	private String phone;

	/**
	 * 微信二维码
	 */
	@Schema(title = "微信二维码")
	private String wechatQr;

	/**
	 * 是否最后一家
	 */
	@Schema(title = "是否最后一家", requiredMode = Schema.RequiredMode.REQUIRED)
	private Boolean isLast;

	/**
	 * 空磅是否包含纸箱
	 */
	@Schema(title = "空磅是否包含纸箱", requiredMode = Schema.RequiredMode.REQUIRED)
	private Boolean isPaper;

	/**
	 * 空车重量(kg)
	 */
	@Schema(title = "空车重量(kg)", requiredMode = Schema.RequiredMode.REQUIRED)
	private BigDecimal emptyWeight;

	/**
	 * 总重量(kg)
	 */
	@Schema(title = "总重量(kg)", requiredMode = Schema.RequiredMode.REQUIRED)
	private BigDecimal totalWeight;

	/**
	 * 毛重(kg)
	 */
	@Schema(title = "毛重(kg)", requiredMode = Schema.RequiredMode.REQUIRED)
	private BigDecimal grossWeight;

	/**
	 * 净重(kg)
	 */
	@Schema(title = "净重(kg)", requiredMode = Schema.RequiredMode.REQUIRED)
	private BigDecimal netWeight;

	/**
	 * 采购单价(元/斤)
	 */
	@Schema(title = "采购单价(元/斤)", requiredMode = Schema.RequiredMode.REQUIRED)
	private BigDecimal purchasePrice;

	/**
	 * 销售单价(元/斤)
	 */
	@Schema(title = "销售单价(元/斤)", requiredMode = Schema.RequiredMode.REQUIRED)
	private BigDecimal salePrice;

	/**
	 * 发票金额
	 */
	@Schema(title = "发票金额", requiredMode = Schema.RequiredMode.REQUIRED)
	private BigDecimal invoiceAmount;

	/**
	 * 空车照片
	 */
	@Schema(title = "空车照片")
	private String emptyWeightImg;

	/**
	 * 满载照片
	 */
	@Schema(title = "满载照片")
	private String totalWeightImg;

	/**
	 * 是否上传票证
	 */
	@Schema(title = "是否上传票证", requiredMode = Schema.RequiredMode.REQUIRED)
	private Boolean invoiceUpload;

	/**
	 * 发票
	 */
	@Schema(title = "发票")
	private List<String> invoiceImg;

	/**
	 * 是否上传合同
	 */
	@Schema(title = "是否上传合同", requiredMode = Schema.RequiredMode.REQUIRED)
	private Boolean contractUpload;

	/**
	 * 合同
	 */
	@Schema(title = "合同")
	private List<String> contractImg;

	/**
	 * 产品ID
	 */
	@Schema(title = "产品ID", type = "string")
	private Long productId;

	/**
	 * 产品名称
	 */
	@Schema(title = "产品名称")
	private String productName;

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