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
| import { requestClient } from '#/api/request';
|
| export namespace CrmSaleQuotationAiApi {
| /** OCR 识别后的报价物料明细 */
| export interface OcrItemVO {
| itemName?: string;
| itemSpec?: string;
| count?: number;
| quotationPrice?: number;
| }
|
| /** AI OCR 识别报价文件响应 */
| export interface OcrResultVO {
| name?: string;
| customerName?: string;
| quotationTime?: string;
| validUntil?: string;
| taxRate?: number;
| discountPercent?: number;
| remark?: string;
| items?: OcrItemVO[];
| rawText?: string;
| }
| }
|
| /** AI OCR 识别报价文件 */
| export function ocrSaleQuotation(blobId: number) {
| return requestClient.post<CrmSaleQuotationAiApi.OcrResultVO>(
| '/crm/sale-quotation/ai/ocr',
| { blobId },
| );
| }
|
|