package cn.iocoder.yudao.module.trade.controller.admin.domestic.vo; import cn.idev.excel.annotation.ExcelIgnoreUnannotated; import cn.idev.excel.annotation.ExcelProperty; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import java.math.BigDecimal; import java.time.LocalDateTime; import java.util.List; @Schema(description = "管理后台 - 内贸订单 Response VO") @Data @ExcelIgnoreUnannotated public class TradeDomesticOrderRespVO { @Schema(description = "编号", example = "1024") @ExcelProperty("编号") private Long id; @Schema(description = "内贸订单号", example = "NMDD20260916000001") @ExcelProperty("内贸订单号") private String no; @Schema(description = "客户编号", example = "18336") private Long customerId; @Schema(description = "客户名称", example = "客户A") @ExcelProperty("客户名称") private String customerName; @Schema(description = "业务员用户编号", example = "17144") private Long saleUserId; @Schema(description = "业务员名称", example = "张三") @ExcelProperty("业务员") private String saleUserName; @Schema(description = "订单日期") @ExcelProperty("订单日期") private LocalDateTime orderTime; @Schema(description = "交货地址", example = "新疆乌鲁木齐市") @ExcelProperty("交货地址") private String deliveryAddress; @Schema(description = "合计数量", example = "10") @ExcelProperty("合计数量") private BigDecimal totalCount; @Schema(description = "合计金额(元)", example = "1230") @ExcelProperty("合计金额") private BigDecimal totalPrice; @Schema(description = "已回款金额(元)", example = "500") @ExcelProperty("已回款金额") private BigDecimal receivedPrice; @Schema(description = "未结余额(元)", example = "730") @ExcelProperty("未结余额") private BigDecimal unpaidPrice; @Schema(description = "状态", example = "20") private Integer status; @Schema(description = "状态名", example = "审核通过") @ExcelProperty("状态") private String statusName; @Schema(description = "工作流编号", example = "1043") private String processInstanceId; @Schema(description = "出库状态(0 未出库 / 1 部分出库 / 2 全部出库)", example = "0") @ExcelProperty("出库状态") private Integer outStatus; @Schema(description = "已出库数量", example = "0") private BigDecimal outCount; @Schema(description = "备注", example = "备注信息") @ExcelProperty("备注") private String remark; @Schema(description = "创建时间") @ExcelProperty("创建时间") private LocalDateTime createTime; @Schema(description = "创建人", example = "25682") private String creator; @Schema(description = "创建人名字", example = "张三") @ExcelProperty("创建人") private String creatorName; @Schema(description = "明细列表") private List items; @Schema(description = "内贸订单明细") @Data public static class Item { @Schema(description = "编号", example = "888") private Long id; @Schema(description = "MDM 物料编号", example = "20529") private Long itemId; @Schema(description = "物料编码", example = "ITEM001") private String itemCode; @Schema(description = "物料名称", example = "物料A") private String itemName; @Schema(description = "规格型号", example = "M8*20") private String itemSpecification; @Schema(description = "计量单位编号", example = "1") private Long itemUnitId; @Schema(description = "计量单位名称", example = "个") private String itemUnitName; @Schema(description = "单价(元)", example = "100.00") private BigDecimal itemPrice; @Schema(description = "数量", example = "10") private BigDecimal count; @Schema(description = "小计金额(元)", example = "1000.00") private BigDecimal totalPrice; @Schema(description = "税率(%)", example = "13.00") private BigDecimal taxPercent; @Schema(description = "税额(元)", example = "130.00") private BigDecimal taxPrice; @Schema(description = "上游原料车次批次", example = "PC20260916000001") private String batchCode; @Schema(description = "已出库数量", example = "0") private BigDecimal outCount; @Schema(description = "备注", example = "备注") private String remark; } }