package cn.iocoder.yudao.module.erp.api.purchase.dto;
|
|
import lombok.Data;
|
|
import java.math.BigDecimal;
|
import java.time.LocalDate;
|
import java.time.LocalDateTime;
|
import java.util.List;
|
|
/**
|
* ERP 采购申请 Response DTO
|
*
|
* 供 SRM 询价比价等模块通过 RPC 读取采购申请及其明细。
|
*/
|
@Data
|
public class ErpPurchaseRequestRespDTO {
|
|
/**
|
* 编号
|
*/
|
private Long id;
|
|
/**
|
* 采购申请单号
|
*/
|
private String no;
|
|
/**
|
* 状态:0 未提交 10 审批中 20 审核通过 30 审核不通过 40 已取消
|
*/
|
private Integer status;
|
|
/**
|
* 申请人编号
|
*/
|
private Long requestUserId;
|
|
/**
|
* 申请部门编号
|
*/
|
private Long requestDeptId;
|
|
/**
|
* 申请时间
|
*/
|
private LocalDateTime requestTime;
|
|
/**
|
* 申请理由
|
*/
|
private String requestReason;
|
|
/**
|
* 供应商编号(可选)
|
*/
|
private Long supplierId;
|
|
/**
|
* 备注
|
*/
|
private String remark;
|
|
/**
|
* 已生成的采购台账编号
|
*/
|
private Long orderId;
|
|
/**
|
* 已生成的采购台账单号
|
*/
|
private String orderNo;
|
|
/**
|
* 已发起的询价单编号
|
*/
|
private Long inquiryId;
|
|
/**
|
* 已发起的询价单号
|
*/
|
private String inquiryNo;
|
|
/**
|
* 申请明细
|
*/
|
private List<Item> items;
|
|
@Data
|
public static class Item {
|
|
/**
|
* 明细编号
|
*/
|
private Long id;
|
|
/**
|
* 产品编号
|
*/
|
private Long productId;
|
|
/**
|
* 产品单位编号
|
*/
|
private Long productUnitId;
|
|
/**
|
* 数量
|
*/
|
private BigDecimal count;
|
|
/**
|
* 需求日期
|
*/
|
private LocalDate demandTime;
|
|
/**
|
* 是否需要来料检验
|
*/
|
private Boolean qcCheckFlag;
|
|
/**
|
* 备注
|
*/
|
private String remark;
|
}
|
|
}
|