修复订单详情错误
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user