3 天以前 83e1b4d0e661f11a407fd6ea86e906b9b87b7180
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package cn.iocoder.yudao.module.crm.controller.admin.quotation.ai.vo;
 
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
 
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;
 
@Schema(description = "管理后台 - AI OCR 识别报价文件响应 VO")
@Data
public class CrmSaleQuotationOcrRespVO {
 
    @Schema(description = "报价单名称", example = "XX公司报价单")
    private String name;
 
    @Schema(description = "客户名称", example = "XX科技有限公司")
    private String customerName;
 
    @Schema(description = "报价日期", example = "2026-07-31")
    private LocalDate quotationTime;
 
    @Schema(description = "有效期至", example = "2026-08-30")
    private LocalDate validUntil;
 
    @Schema(description = "税率(百分比)", example = "13.0")
    private BigDecimal taxRate;
 
    @Schema(description = "折扣率(百分比)", example = "5.0")
    private BigDecimal discountPercent;
 
    @Schema(description = "备注", example = "含税含运费")
    private String remark;
 
    @Schema(description = "识别出的物料明细")
    private List<Item> items;
 
    @Schema(description = "原始识别文本(前端可选展示)")
    private String rawText;
 
    @Schema(description = "物料明细项")
    @Data
    public static class Item {
 
        @Schema(description = "物料名称", example = "伺服电机")
        private String itemName;
 
        @Schema(description = "物料规格", example = "SV-1000W")
        private String itemSpec;
 
        @Schema(description = "数量", example = "10")
        private BigDecimal count;
 
        @Schema(description = "单价", example = "1500.00")
        private BigDecimal quotationPrice;
    }
 
}