This commit is contained in:
2026-08-05 09:11:48 +08:00
parent db8774627e
commit 3ffa7ec55f
11 changed files with 141 additions and 41 deletions
@@ -281,7 +281,7 @@ async function openDetail(row: InboundOrderSummary) {
detailError.value = null
detail.value = null
try {
const response = await getPlatformInbound(recordCustomerId(row), row.id)
const response = await getPlatformInbound(row.tenantId, row.id)
if (disposed || requestId !== detailRequestId) return
detail.value = response
} catch (error) {
@@ -293,10 +293,8 @@ async function openDetail(row: InboundOrderSummary) {
}
function closeDetail() { resetDetail() }
function recordCustomerId(row: InboundOrderSummary) { return row.customerId || row.companyId || selectedCustomerId.value }
function openWorkspace(row: InboundOrderSummary) {
const customerId = recordCustomerId(row)
void router.push({ name: 'inbound-order-detail', params: { inboundId: row.id }, query: customerId ? { tenantId: customerId } : undefined })
void router.push({ name: 'inbound-order-detail', params: { inboundId: row.id }, query: { tenantId: row.tenantId } })
}
function formatNumber(value: number | null, digits = 3) { return value === null ? '—' : value.toFixed(digits) }
function formatDate(value: string | null) {