package cn.iocoder.yudao.module.system.controller.admin.biz.vo.materialio.outboundreturn;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

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

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Data
@Schema(description = "管理后台 - 出库退回单 Response VO")
public class MaterialOutboundReturnOrderRespVO {

    @Schema(description = "退回单ID", example = "1")
    private Long id;

    @Schema(description = "退回单号", example = "CKRH20230101001")
    private String orderNo;

    @Schema(description = "原出库单ID", example = "100")
    private Long sourceOutboundOrderId;

    @Schema(description = "原出库单号", example = "CK20230101001")
    private String sourceOutboundOrderNo;

    @Schema(description = "退回日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate orderDate;

    @Schema(description = "状态", example = "1")
    private Integer status;

    @Schema(description = "备注", example = "测试退回")
    private String remark;

    @Schema(description = "退回原因", example = "测试退回")
    private String returnReason;

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

    private String auditor;
    private String auditResult;
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime auditTime;
    private String auditRemark;

    @Schema(description = "明细列表")
    private List<MaterialOutboundReturnOrderItemRespVO> items;
}
