完善测试建表并统一前端格式
This commit is contained in:
@@ -130,11 +130,7 @@ onMounted(loadOrders)
|
||||
</div>
|
||||
|
||||
<div class="review-cards">
|
||||
<div
|
||||
v-for="order in orders"
|
||||
:key="order.id"
|
||||
class="review-card"
|
||||
>
|
||||
<div v-for="order in orders" :key="order.id" class="review-card">
|
||||
<div class="card-header">
|
||||
<div class="order-info">
|
||||
<span class="order-no" @click="openDetail(order)">{{ order.order_no }}</span>
|
||||
@@ -167,26 +163,23 @@ onMounted(loadOrders)
|
||||
<div class="info-row">
|
||||
<span class="info-label">订单总额</span>
|
||||
<span class="info-value"
|
||||
>{{ formatCentWithSymbol((order.rent_amount_cent || 0) + order.deposit_amount_cent) }}(租金{{
|
||||
formatCentWithSymbol(order.rent_amount_cent || 0)
|
||||
}}
|
||||
/ 押金{{ formatCentWithSymbol(order.deposit_amount_cent) }})</span
|
||||
>{{
|
||||
formatCentWithSymbol((order.rent_amount_cent || 0) + order.deposit_amount_cent)
|
||||
}}(租金{{ formatCentWithSymbol(order.rent_amount_cent || 0) }} / 押金{{
|
||||
formatCentWithSymbol(order.deposit_amount_cent)
|
||||
}})</span
|
||||
>
|
||||
</div>
|
||||
<div class="info-row">
|
||||
<span class="info-label">退款金额</span>
|
||||
<span class="info-value refund-amount">{{ formatCentWithSymbol(order.refund_amount_cent || 0) }}</span>
|
||||
<span class="info-value refund-amount">{{
|
||||
formatCentWithSymbol(order.refund_amount_cent || 0)
|
||||
}}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-actions">
|
||||
<el-button
|
||||
:icon="View"
|
||||
size="small"
|
||||
@click="openDetail(order)"
|
||||
>
|
||||
查看详情
|
||||
</el-button>
|
||||
<el-button :icon="View" size="small" @click="openDetail(order)"> 查看详情 </el-button>
|
||||
<el-button
|
||||
:icon="Check"
|
||||
type="primary"
|
||||
@@ -211,28 +204,16 @@ onMounted(loadOrders)
|
||||
</div>
|
||||
|
||||
<!-- 驳回弹窗 -->
|
||||
<el-dialog
|
||||
v-model="rejectVisible"
|
||||
title="驳回退款"
|
||||
width="420px"
|
||||
>
|
||||
<el-dialog v-model="rejectVisible" title="驳回退款" width="420px">
|
||||
<div v-if="rejectOrder" class="reject-dialog">
|
||||
<p class="reject-tip">请选择驳回方式:</p>
|
||||
<div class="reject-options">
|
||||
<el-button
|
||||
type="primary"
|
||||
:loading="submitting"
|
||||
@click="handleRejectRestore"
|
||||
>
|
||||
<el-button type="primary" :loading="submitting" @click="handleRejectRestore">
|
||||
驳回退款(恢复订单)
|
||||
</el-button>
|
||||
<p class="option-desc">仅驳回退款请求,订单恢复至待交接状态,交接流程可继续</p>
|
||||
|
||||
<el-button
|
||||
type="danger"
|
||||
:loading="submitting"
|
||||
@click="handleRejectClose"
|
||||
>
|
||||
<el-button type="danger" :loading="submitting" @click="handleRejectClose">
|
||||
驳回退款并关闭订单
|
||||
</el-button>
|
||||
<p class="option-desc">驳回退款且关闭订单,商品下架归档,订单不可再操作</p>
|
||||
|
||||
Reference in New Issue
Block a user