package com.cf.imes.module.executor.controller.admin.manage.pack.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.Setter;

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


@Schema(description = "管理后台 - 订单表 order_{N} Response VO")
@Data
@Setter
public class PackRespVO {


    @Schema(description = "订单号", example = "7788")
    private Long id;

    @Schema(description = "父订单号", example = "7788")
    private Long parentId;

    @Schema(description = "包裹ID", example = "7788")
    private Long packId;

    @Schema(description = "订单类型", example = "1")
    private Integer orderType;

    @Schema(description = "自定义单号",example = "ABCD")
    private String customOrderNo;


    @Schema(description = "经销商电话",example = "ABCD")
    private String dealerPhoneNumber;


    @Schema(description = "经销商",example = "ABCD")
    private String dealer;


    @Schema(description = "订单日期",example = "ABCD")
    private LocalDateTime orderDate;


    @Schema(description = "交付日期",example = "ABCD")
    private LocalDateTime deliveryDate;


    @Schema(description = "打包状态",example = "0")
    private Integer packaged;


    @Schema(description = "客户",example = "张三")
    private String customer;


    @Schema(description = "客户地址",example = "AABB")
    private String address;


    @Schema(description = "客户电话",example = "ABCD")
    private String phoneNumber;


    @Schema(description = "业务员",example = "ABCD")
    private String salesman;


    @Schema(description = "拆单员",example = "ABCD")
    private String splitter;


    @Schema(description = "备注",example = "ABCD")
    private String remark;


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

    @Schema(description = "已打包数-包裹数")
    private Integer packCount;

    @Schema(description = "已打包板件数")
    private Integer packedPlatesCount;

    @Schema(description = "已打包配件数")
    private Integer packedPartsCount;


    @Schema(description = "总片数-板件总数")
    private Integer totalPieceCount;


    @Schema(description = "待处理量")
    private Long pendingNum;

    @Schema(description = "子订单")
    private List<PackRespVO> child;
}
