package com.storlead.sales.pojo.vo.sku;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.storlead.framework.annotate.Dict;
import com.storlead.framework.mybatis.entity.SysBaseField;
import com.storlead.sales.pojo.vo.sku.SsdSkuDetailVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "QuotationDetailVO", description = "报价单详情VO")
public class QuotationDetailVO extends SysBaseField {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    private Long id;

    @ApiModelProperty(value = "编码")
    private String dataCode;

    @ApiModelProperty(value = "关联客户id")
    private Long customerId;

    @ApiModelProperty(value = "关联商机id")
    private Long businessId;

    @ApiModelProperty(value = "关联订单id")
    private Long orderFormId;

    @ApiModelProperty(value = "描述")
    private String describe;

    @ApiModelProperty(value = "报价单类型：1国内、2海外")
    @Dict(dictCode = "quotation_type",valueField = "quotationTypeName")
    private Integer quotationType;

    @ApiModelProperty(value = "报价单类型：国内/海外")
    private String quotationTypeName;

    @ApiModelProperty(value = "总金额（人民币）")
    private BigDecimal totalOrderAmt;

    @ApiModelProperty(value = "产品金额（人民币）")
    private BigDecimal productTotalOrderAmt;

    @ApiModelProperty(value = "其他费用（人民币）")
    private BigDecimal otherAmt;

    @ApiModelProperty(value = "总金额（美元）")
    private BigDecimal totalEarnestAmt;

    @ApiModelProperty(value = "对接人员id")
    private Long abutmentUserId;

    @ApiModelProperty(value = "总数量")
    private Integer totalNumber;

    @ApiModelProperty(value = "报价单语言 1: 中文 2: 英文")
    private Integer languageType;

    @ApiModelProperty(value = "产品详情List")
    private List<SsdSkuDetailVO> ssdSkuDetailVOList;
}
