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

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.time.LocalDate;

/**
 * @author shenyifei
 */
@Data
@Schema(title = "发货单创建")
@EqualsAndHashCode(callSuper = true)
public class ShipOrderCreateCmd extends Command {

	/**
	 * 发货单ID
	 */
	@Schema(title = "发货单ID", type = "string", requiredMode = Schema.RequiredMode.REQUIRED)
	private Long shipOrderId;

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

	/**
	 * 发货单编号
	 */
	@Schema(title = "发货单编号")
	private String orderSn;

	/**
	 * 发货地址
	 */
	@Schema(title = "发货地址")
	private String shippingAddress;

	/**
	 * 收货地址
	 */
	@Schema(title = "收货地址")
	private String receivingAddress;

	/**
	 * 发货日期
	 */
	@Schema(title = "发货日期")
	private LocalDate shippingDate;

	/**
	 * 预计到仓时间
	 */
	@Schema(title = "预计到仓时间")
	private LocalDate estimatedArrivalDate;

	/**
	 * 西瓜品级
	 */
	@Schema(title = "西瓜品级")
	private String watermelonGrade;

	/**
	 * 司机姓名
	 */
	@Schema(title = "司机姓名")
	private String driverName;

	/**
	 * 司机手机号
	 */
	@Schema(title = "司机手机号")
	private String driverPhone;

	/**
	 * 车牌号码
	 */
	@Schema(title = "车牌号码")
	private String licensePlate;

	/**
	 * 运费欠款(元)
	 */
	@Schema(title = "运费欠款(元)")
	private BigDecimal freightDebt;

	/**
	 * 草帘欠款(元)
	 */
	@Schema(title = "草帘欠款(元)")
	private BigDecimal strawMatDebt;

	/**
	 * 商标费(元)
	 */
	@Schema(title = "商标费(元)")
	private BigDecimal trademarkFee;

	/**
	 * 人工费(元)
	 */
	@Schema(title = "人工费(元)")
	private BigDecimal laborFee;

	/**
	 * 纸箱费(元)
	 */
	@Schema(title = "纸箱费(元)")
	private BigDecimal cartonFee;

	/**
	 * 打码费(元)
	 */
	@Schema(title = "打码费(元)")
	private BigDecimal codingFee;

	/**
	 * 计提费(元)
	 */
	@Schema(title = "计提费(元)")
	private BigDecimal provisionFee;

	/**
	 * 合计金额(元)
	 */
	@Schema(title = "合计金额(元)")
	private BigDecimal totalAmount;

	/**
	 * 瓜农姓名逗号隔开
	 */
	@Schema(title = "瓜农姓名逗号隔开")
	private String farmerInfo;

	/**
	 * 公司ID
	 */
	@Schema(title = "公司ID", type = "string")
	private Long companyId;

	/**
	 * 公司名称
	 */
	@Schema(title = "公司名称")
	private String companyName;

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

	/**
	 * 创建人ID
	 */
	@Schema(title = "创建人ID", type = "string", requiredMode = Schema.RequiredMode.REQUIRED)
	private Long createdBy;

	/**
	 * 创建人姓名
	 */
	@Schema(title = "创建人姓名")
	private String createdByName;

}