From 0ab7050e0308a74d15375a518c46ad92d36bf270 Mon Sep 17 00:00:00 2001 From: DXC Date: Tue, 21 Apr 2026 13:18:44 +0800 Subject: [PATCH] =?UTF-8?q?feat(outbound):=20=E6=89=B9=E9=87=8F=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E4=B8=8B=E6=94=AF=E6=8C=81=E7=82=B9=E5=87=BB=E6=95=B4?= =?UTF-8?q?=E8=A1=8C=E5=88=87=E6=8D=A2=E9=80=89=E4=B8=AD=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inventory-web/src/views/outbound/Selection.vue | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/inventory-web/src/views/outbound/Selection.vue b/inventory-web/src/views/outbound/Selection.vue index 7c5f09e..80ebdef 100644 --- a/inventory-web/src/views/outbound/Selection.vue +++ b/inventory-web/src/views/outbound/Selection.vue @@ -52,12 +52,15 @@ /> @@ -390,6 +393,7 @@ let stockSearchTimer: ReturnType | null = null // 表格引用 const manualTableRef = ref>() +const tableRef = ref>() // BOM 相关 const bomOptions = ref([]) @@ -725,6 +729,16 @@ const handleSelectionChange = (val: any[]) => { } } +const handleBulkRowClick = (row: any) => { + if (isBulkMode.value && tableRef.value) { + tableRef.value.toggleRowSelection(row, undefined) + } +} + +const getRowClassName = () => { + return isBulkMode.value ? 'bulk-clickable-row' : '' +} + const cancelBulkMode = () => { isBulkMode.value = false selectedRows.value = [] @@ -858,4 +872,8 @@ const confirmExport = () => { .sig-label { font-size: 14px; margin-bottom: 40px; text-align: left; width: 100%; } .sig-line { border-bottom: 1px solid #000; width: 100%; height: 1px; display: block; } } + +:deep(.bulk-clickable-row) { + cursor: pointer; +}