From 173855b299e89930b5ea2ff9a9295fde9d0f55b5 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期六, 07 十一月 2026 08:51:43 +0800
Subject: [PATCH] feat: 同步质检、生产、销售、财务与人事前端功能
---
src/views/crm/saleQuotation/modules/ocr-upload.vue | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/src/views/crm/saleQuotation/modules/ocr-upload.vue b/src/views/crm/saleQuotation/modules/ocr-upload.vue
index 09233bb..3fe8563 100644
--- a/src/views/crm/saleQuotation/modules/ocr-upload.vue
+++ b/src/views/crm/saleQuotation/modules/ocr-upload.vue
@@ -52,18 +52,17 @@
step.value = 1;
processingTip.value = '姝e湪杩涜鎶ヤ环鍗曡瘑鍒紝璇风◢鍊�...';
const ocrData = await ocrSaleQuotation(blobId);
- // 妫�鏌ラ敊璇�
- if (ocrData.rawText && !ocrData.name && !ocrData.customerName && ocrData.items?.length === 0) {
- // 鎵�鏈夊瓧娈典负 null锛宺awText 鍖呭惈閿欒鎻愮ず
+ const hasData = !!(
+ ocrData.name || ocrData.customerName || ocrData.quotationTime
+ || ocrData.validUntil || ocrData.taxRate != null || ocrData.discountPercent != null
+ || ocrData.remark || ocrData.items?.length
+ );
+ if (ocrData.rawText && !hasData) {
processingTip.value = '';
step.value = 0;
message.error(ocrData.rawText);
return;
}
- // 妫�鏌ユ槸鍚﹀叏閮ㄤ负绌�
- const hasData = ocrData.name || ocrData.customerName || ocrData.quotationTime
- || ocrData.validUntil || ocrData.taxRate || ocrData.discountPercent
- || ocrData.remark || (ocrData.items && ocrData.items.length > 0);
if (!hasData) {
processingTip.value = '';
step.value = 0;
--
Gitblit v1.9.3