package com.bonus.material.purchase.domain.vo;

import com.bonus.material.archives.domain.ElcSignatureInfo;
import com.bonus.material.purchase.domain.PurchaseCheckDetails;
import com.bonus.material.purchase.domain.PurchaseSignRecord;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author : 阮世耀
 * @version : 1.0
 * @Description: 新购任务验收单vo
 */
@Data
public class PurchaseCheckFormVo {

    @ApiModelProperty(value = "任务id")
    private Long taskId;

    @ApiModelProperty(value = "任务单号")
    private String code;

    @ApiModelProperty(value = "生产厂家")
    private String supplier;

    @ApiModelProperty(value = "到货日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date arrivalDate;

    @ApiModelProperty(value = "供应科")
    private String supplyDept;

    private List<PurchaseSignRecord> gySignUrl = new ArrayList<>();

    private List<PurchaseSignRecord> scSignUrl = new ArrayList<>();

    private List<PurchaseSignRecord> kgSignUrl = new ArrayList<>();

    @ApiModelProperty("生产技术科")
    private String productionTechDept;

    @ApiModelProperty("审核（班长）")
    private String reviewer;

    @ApiModelProperty("库管班")
    private String warehouseTeam;

    @ApiModelProperty("物资列表")
    private List<PurchaseCheckDetails> materialList = new ArrayList<>();

    /** 验收人信息 */
    @ApiModelProperty(value = "验收人信息")
    private List<ElcSignatureInfo> infoList;

    private String signUrl;

    @ApiModelProperty(value = "签名类型 手写0 和 图片上传1")
    private String signType;

}
