|
@@ -3,6 +3,33 @@
|
|
|
<div class="default-width pb-5">
|
|
|
<v-banner color="primary" :text="formatOrderStatusDescription(order)" style="background-color: #00897B; color: #fff;"></v-banner>
|
|
|
|
|
|
+ <!-- 商品列表 -->
|
|
|
+ <v-card class="my-3 pa-5">
|
|
|
+ <h3 class="mb-3">商品列表</h3>
|
|
|
+ <v-divider></v-divider>
|
|
|
+
|
|
|
+ <CtTable
|
|
|
+ class="mt-3"
|
|
|
+ :items="order.items"
|
|
|
+ :headers="headers"
|
|
|
+ :loading="false"
|
|
|
+ :elevation="0"
|
|
|
+ :isTools="false"
|
|
|
+ :showPage="false"
|
|
|
+ itemKey="id"
|
|
|
+ >
|
|
|
+ <template #picUrl="{ item }">
|
|
|
+ <v-img :src="item.picUrl" width="90" height="90" class="my-1"></v-img>
|
|
|
+ </template>
|
|
|
+ <template #spuName="{ item }">
|
|
|
+ <span class="color-primary cursor-pointer" @click="handleToGoodsDetail(item)">{{ item.spuName }}</span>
|
|
|
+ </template>
|
|
|
+ </CtTable>
|
|
|
+ <div class="text-end color-primary mr-3 mt-5 font-size-20">
|
|
|
+ 共{{ order.productCount }}件商品,合计:¥{{ fen2yuan(order.payPrice) }}
|
|
|
+ </div>
|
|
|
+ </v-card>
|
|
|
+
|
|
|
<v-row no-gutters class="mt-3">
|
|
|
<v-col span="6">
|
|
|
<!-- 订单信息 -->
|
|
@@ -31,33 +58,6 @@
|
|
|
</v-card>
|
|
|
</v-col>
|
|
|
</v-row>
|
|
|
-
|
|
|
- <!-- 商品列表 -->
|
|
|
- <v-card class="my-3 pa-5">
|
|
|
- <h3 class="mb-3">商品列表</h3>
|
|
|
- <v-divider></v-divider>
|
|
|
-
|
|
|
- <CtTable
|
|
|
- class="mt-3"
|
|
|
- :items="order.items"
|
|
|
- :headers="headers"
|
|
|
- :loading="false"
|
|
|
- :elevation="0"
|
|
|
- :isTools="false"
|
|
|
- :showPage="false"
|
|
|
- itemKey="id"
|
|
|
- >
|
|
|
- <template #picUrl="{ item }">
|
|
|
- <v-img :src="item.picUrl" width="90" height="90"></v-img>
|
|
|
- </template>
|
|
|
- <template #spuName="{ item }">
|
|
|
- <span class="color-primary cursor-pointer" @click="handleToGoodsDetail(item)">{{ item.spuName }}</span>
|
|
|
- </template>
|
|
|
- </CtTable>
|
|
|
- <div class="text-end color-primary mr-3 mt-5 font-size-20">
|
|
|
- 共{{ order.productCount }}件商品,合计:¥{{ fen2yuan(order.payPrice) }}
|
|
|
- </div>
|
|
|
- </v-card>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -84,8 +84,14 @@ const headers = [
|
|
|
]
|
|
|
|
|
|
onMounted(async () =>{
|
|
|
- if (!id) return Snackbar.error('订单不存在')
|
|
|
const data = await getMallOrderDetail(id)
|
|
|
+ if (!data) {
|
|
|
+ Snackbar.warning('订单不存在')
|
|
|
+ setTimeout(() => {
|
|
|
+ window.close()
|
|
|
+ }, 1000)
|
|
|
+ return
|
|
|
+ }
|
|
|
order.value = data
|
|
|
})
|
|
|
|