修复订单详情错误

This commit is contained in:
yml
2026-04-09 02:36:09 +08:00
parent 98cc0c16fc
commit b509394b09
6 changed files with 137 additions and 15 deletions
+2
View File
@@ -164,6 +164,7 @@ export interface AdminOrderDetail {
paidAt: string | null
createdAt: string
updatedAt: string
itemSummary: string
rawPayload: Record<string, unknown>
bindingSummary: {
totalTaskCount: number
@@ -177,6 +178,7 @@ export interface AdminOrderDetail {
orderItemId: number
skuCode: string
skuName: string
itemTitle: string
quantity: number
deliveryMode: string
spec: Record<string, unknown>
@@ -66,6 +66,11 @@ function formatSpecSummary(spec: Record<string, unknown>) {
</div>
<div class="info-grid">
<article class="info-tile">
<span>商品标题</span>
<strong>{{ detail.order.itemSummary || '-' }}</strong>
<small>来自订单详情 title / 商品标题字段</small>
</article>
<article class="info-tile">
<span>订单金额</span>
<strong>{{ detail.order.totalAmount }} {{ detail.order.currency }}</strong>
@@ -103,6 +108,7 @@ function formatSpecSummary(spec: Record<string, unknown>) {
<thead>
<tr>
<th>SKU</th>
<th>标题</th>
<th>商品</th>
<th>发放方式</th>
<th>数量</th>
@@ -112,6 +118,7 @@ function formatSpecSummary(spec: Record<string, unknown>) {
<tbody>
<tr v-for="item in detail.items" :key="item.orderItemId">
<td>{{ item.skuCode }}</td>
<td>{{ item.itemTitle || '-' }}</td>
<td>{{ item.skuName }}</td>
<td>{{ item.deliveryMode }}</td>
<td>{{ item.quantity }}</td>