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; +}