fix(web-admin): 采集大表导出将 sdfq 等作废编码显示为文案

科研捐赠导出把作废类型编码原样写入储存状态和废弃原因。改为走字典并回退协议状态文案。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-11-06 11:58:48 +08:00
1 parent 411a4cb57c
commit 348c5c1d3c
6 files changed
+71 -6

No files matched your search

@@ -206,7 +206,8 @@
buildPresignLedgerRows,
fetchAllPages,
PRESIGN_HEADERS,
saveCollectionLedgerWorkbook
saveCollectionLedgerWorkbook,
prepareCollectionLedgerExport
} from '@/utils/collection-ledger-export'
import { formatDisplayOrDash } from '@/utils/datetime-display'
import { formatMoneyDisplay } from '@/utils/money-format'
@@ -262,6 +263,7 @@
if (exporting.value) return
exporting.value = true
try {
await prepareCollectionLedgerExport()
const rows = selectedRows.value.length
? selectedRows.value
: await fetchAllPages((page, pageSize) =>
@@ -465,7 +465,8 @@
RESEARCH_HEADERS,
buildResearchLedgerRows,
fetchAllPages,
saveCollectionLedgerWorkbook
saveCollectionLedgerWorkbook,
prepareCollectionLedgerExport
} from '@/utils/collection-ledger-export'
import {
flattenProtocolAuditRows,
@@ -545,6 +546,7 @@
if (exporting.value) return
exporting.value = true
try {
await prepareCollectionLedgerExport()
const rows = selectedFlatRows.value.length
? selectedFlatRows.value
: flattenProtocolAuditRows(
@@ -433,7 +433,8 @@
CELL_STORAGE_HEADERS,
buildCellStorageLedgerRows,
fetchAllPages,
saveCollectionLedgerWorkbook
saveCollectionLedgerWorkbook,
prepareCollectionLedgerExport
} from '@/utils/collection-ledger-export'
import {
flattenProtocolAuditRows,
@@ -510,6 +511,7 @@
if (exporting.value) return
exporting.value = true
try {
await prepareCollectionLedgerExport()
const rows = selectedFlatRows.value.length
? selectedFlatRows.value
: flattenProtocolAuditRows(
@@ -525,7 +525,8 @@
CUSTOMER_SERVICE_HEADERS,
buildCustomerServiceLedgerRows,
fetchAllPages,
saveCollectionLedgerWorkbook
saveCollectionLedgerWorkbook,
prepareCollectionLedgerExport
} from '@/utils/collection-ledger-export'
defineOptions({ name: 'UnifiedSampleInfoPage' })
@@ -653,6 +654,7 @@
if (exporting.value || !isCellStorage.value) return
exporting.value = true
try {
await prepareCollectionLedgerExport()
const rows = selectedRows.value.length
? selectedRows.value
: await fetchAllPages((page, pageSize) =>