package com.cf.imes.module.executor.controller.admin.order.vo.order;

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

import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 生产单表 order_{N} Response VO")
@Data
@ExcelIgnoreUnannotated
public class OrderRespVO {

    @Schema(description = "生产单号，主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "15091")
    @ExcelProperty("生产单号，主键")
    private Long id;

    @Schema(description = "父单号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("父单号")
    private Long parentNo;

    @Schema(description = "生产单日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("交付日期")
    private LocalDateTime orderDate;

    @Schema(description = "交付日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("交付日期")
    private LocalDateTime deliveryDate;

    @Schema(description = "生产单类型，1主单 2子单", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("生产单类型，1主单 2子单")
    private Boolean orderType;

    @Schema(description = "生产单排序号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("生产单排序号")
    private Integer orderSort;

    @Schema(description = "CAD数据类型，1CAD 2WebCAD 3Excel", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("CAD数据类型，1CAD 2WebCAD 3Excel")
    private Integer dataType;

    @Schema(description = "订单状态，订单状态，0空订单1新单2生产中3生产完成", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("订单状态，订单状态，0空订单1新单2生产中3生产完成")
    private Integer status;

    @Schema(description = "自定义单号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("自定义单号")
    private String customOrderNo;

    @Schema(description = "客户", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("客户")
    private String customer;

    @Schema(description = "客户地址", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("客户地址")
    private String address;

    @Schema(description = "客户电话", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("客户电话")
    private String phoneNumber;

    @Schema(description = "经销商", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("经销商")
    private String dealer;

    @Schema(description = "经销商电话", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("经销商电话")
    private String dealerPhoneNumber;

    @Schema(description = "业务员", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("业务员")
    private String salesman;

    @Schema(description = "拆单员", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("拆单员")
    private String splitter;

    @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    private Boolean deleted;

}