From 5135afdaccbf0769271dc99bd9528307c2ec8039 Mon Sep 17 00:00:00 2001 From: zeelatan Date: Fri, 27 Mar 2026 22:21:30 +0800 Subject: [PATCH] feat: improve original table selection workflow --- frontend/src/new/stores/quotationStore.ts | 6 + .../src/new/views/DocumentRecognition.vue | 490 +++++++++++++++++- 2 files changed, 472 insertions(+), 24 deletions(-) diff --git a/frontend/src/new/stores/quotationStore.ts b/frontend/src/new/stores/quotationStore.ts index 8443590..3c6c870 100644 --- a/frontend/src/new/stores/quotationStore.ts +++ b/frontend/src/new/stores/quotationStore.ts @@ -46,6 +46,12 @@ export interface DocumentRecognitionState { visibleColumns: string[] isUploadSectionCollapsed: boolean columnMappings?: Record + sourceSelectionRange?: { + startRow: number + endRow: number + startCol: number + endCol: number + } | null selectedQuotationType?: string hasData: boolean } diff --git a/frontend/src/new/views/DocumentRecognition.vue b/frontend/src/new/views/DocumentRecognition.vue index 2572a37..89f3b38 100644 --- a/frontend/src/new/views/DocumentRecognition.vue +++ b/frontend/src/new/views/DocumentRecognition.vue @@ -355,8 +355,26 @@
-

原始表格 已识别 {{ originalTableData.length }} 项

-
+
+
+

原始表格 已识别 {{ originalTableData.length }} 项

+

{{ originalSelectionSummary }}

+
+
+ + + +
+
+
@@ -367,7 +385,15 @@ - @@ -445,7 +471,7 @@
+ {{ row[header] || '' }}
+ + + + + + + + + + + +
+
+
+