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

import lombok.*;

import java.math.BigDecimal;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.cf.imes.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static com.cf.imes.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 生产单表 order_{N}分页 Request VO")
@Data
@ToString(callSuper = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class OrderPageReqVO extends PageParam {

    @Schema(description = "生产单号")
    private Long id;

    @Schema(description = "父单号")
    private Long parentNo;

    @Schema(description = "生产单日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] orderDate;

    @Schema(description = "交付日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] deliveryDate;

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

    @Schema(description = "生产单排序号")
    private Integer orderSort;

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

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

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

    @Schema(description = "客户")
    private String customer;

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

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

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

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

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

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

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

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "是否作废", example = "0")
    private Boolean deleted;

    private Long organId;
}