package cn.iocoder.yudao.module.supplier.controller.admin.product.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

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

import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 供应商主数据 Response VO")
@Data
@ExcelIgnoreUnannotated
public class SupplierRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "2791")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "供应商编号 自动生成")
    @ExcelProperty("供应商编号 自动生成")
    private String code;

    @Schema(description = "供应商名称", example = "张三")
    @ExcelProperty("供应商名称")
    private String name;

    @Schema(description = "供应商分类")
    @ExcelProperty("供应商分类")
    private String classification;

    @Schema(description = "公司类型", example = "1")
    @ExcelProperty("公司类型")
    private String type;

    @Schema(description = "供应商性质")
    @ExcelProperty("供应商性质")
    private String nature;

    @Schema(description = "社会信用代码")
    @ExcelProperty("社会信用代码")
    private String creditCode;

    @Schema(description = "纳税人识别号")
    @ExcelProperty("纳税人识别号")
    private String tin;

    @Schema(description = "法人")
    @ExcelProperty("法人")
    private String corporation;

    @Schema(description = "成立日期")
    @ExcelProperty("成立日期")
    private LocalDateTime incorporationDate;

    @Schema(description = "公司地址")
    @ExcelProperty("公司地址")
    private String address;

    @Schema(description = "经营范围")
    @ExcelProperty("经营范围")
    private String bizScope;

    @Schema(description = "注册资金 单位：万元")
    @ExcelProperty("注册资金 单位：万元")
    private BigDecimal registeredCapital;

    @Schema(description = "年营业额 单位：万元")
    @ExcelProperty("年营业额 单位：万元")
    private BigDecimal annualTurnove;

    @Schema(description = "公司规模 数据字典")
    @ExcelProperty("公司规模 数据字典")
    private String size;

    @Schema(description = "商品状态: 1 草稿 2活动 3 关闭", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("商品状态: 1 草稿 2活动 3 关闭")
    private Integer status;

    @Schema(description = "备注", example = "随便")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "工作流编号", example = "14558")
    @ExcelProperty("工作流编号")
    private String processInstanceId;

    @Schema(description = "审批状态 未提交、审批中、审批通过、审批不通过、已取消", example = "2")
    @ExcelProperty("审批状态 未提交、审批中、审批通过、审批不通过、已取消")
    private Integer auditStatus;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "供应商证件列表")
    private List<CertificateRespVO> certificates = new ArrayList<>();

    @Schema(description = "供应商联系人信息列表")
    private List<ContactRespVO> contacts = new ArrayList<>();

    @Schema(description = "供应商核心产品列表")
    private List<CoreProductRespVO> coreProducts = new ArrayList<>();

    @Schema(description = "供应商联系记录列表")
    private List<ConnectRecordRespVO> connectRecords = new ArrayList<>();

    @Schema(description = "部门id")
    private Long deptId;

    @Schema(description = "客商性质")
    private String customerNature;
    @Schema(description = "sap编码")
    private String sapCode;
}
