package cn.iocoder.yudao.module.stockOperate.vo;

import cn.iocoder.yudao.common.RepairDictConstants;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 用于采购单导出VO
 *
 * @author 小李
 * @date 16:03 2024/12/3
**/
@Data
@ExcelIgnoreUnannotated
public class RepairSoExportVO {

    /**
     * 单据编号;自动生成
     */
    @ExcelProperty("单号")
    private String soNo;

    @ExcelProperty("供应商")
    private String supplierName;

    @ExcelProperty("操作人")
    private String userName;

    @ExcelProperty("数量")
    private Integer itemCount;

    @ExcelProperty("金额")
    private BigDecimal totalPrice;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat(RepairDictConstants.REPAIR_SO_STATUS)
    private String soStatus;

    @ExcelProperty("备注")
    private String remark;

    @ExcelProperty("门店")
    private String corpName;
}
