package com.cf.imes.module.executor.controller.admin.plan.saveOptimize;


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

import java.util.Date;

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

@Data
@Schema(description = "优化后的生产单数据")
public class SaveOrderReqVO {

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

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

    @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 = "备注")
    private String remark;

    @Schema(description = "交付日期")
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT)
    private Date deliveryDate;

    @Schema(description = "生产单类型，1主单 2子单")
    private Integer type;

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

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

    @Schema(description = "订单状态，0未排单1已排单2生产中3加工完成4打包完成5入库完成6出库完成")
    private Integer status;

}
