package com.ruoyi.info.collection.domain.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.ruoyi.common.annotation.DictDropdown;
import com.ruoyi.common.annotation.Required;
import com.ruoyi.common.annotation.TextFormat;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 招投标供应商明细Excel对象
 */
@Data
public class CcdiPurchaseTransactionSupplierExcel implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @ExcelProperty(value = "采购事项ID", index = 0)
    @ColumnWidth(20)
    @Required
    @TextFormat
    private String purchaseId;

    @ExcelProperty(value = "供应商名称", index = 1)
    @ColumnWidth(25)
    @Required
    private String supplierName;

    @ExcelProperty(value = "供应商统一信用代码", index = 2)
    @ColumnWidth(25)
    @TextFormat
    private String supplierUscc;

    @ExcelProperty(value = "供应商联系人", index = 3)
    @ColumnWidth(15)
    private String contactPerson;

    @ExcelProperty(value = "供应商联系电话", index = 4)
    @ColumnWidth(18)
    @TextFormat
    private String contactPhone;

    @ExcelProperty(value = "供应商银行账户", index = 5)
    @ColumnWidth(20)
    @TextFormat
    private String supplierBankAccount;

    @ExcelProperty(value = "是否中标", index = 6)
    @ColumnWidth(12)
    @DictDropdown(dictType = "ccdi_yes_no_flag")
    private String isBidWinner;

    @ExcelProperty(value = "排序", index = 7)
    @ColumnWidth(10)
    private Integer sortOrder;
}
