|
|
@@ -64,7 +64,7 @@
|
|
|
:custom-style="btnStyle" @click.stop="handleAction('evaluate', order)">评价</u-button>
|
|
|
|
|
|
<!-- 查看物流 -->
|
|
|
- <u-button v-if="order.showCheckExpress == 1 && order.status != '4' && order.status != '3'" size="mini" shape="circle"
|
|
|
+ <u-button v-if="order.showCheckExpress == 1" size="mini" shape="circle"
|
|
|
type="primary" plain :custom-style="btnStyle"
|
|
|
@click.stop="handleAction('logistics', order)">查看物流</u-button>
|
|
|
|
|
|
@@ -78,7 +78,7 @@
|
|
|
|
|
|
|
|
|
<!-- 申请售后 -->
|
|
|
- <u-button v-if="order.showAfterSales == 1 && order.status != '4' && order.status != '3'" size="mini" shape="circle" type="error"
|
|
|
+ <u-button v-if="order.showAfterSales == 1" size="mini" shape="circle" type="error"
|
|
|
plain :custom-style="btnStyle" @click.stop="handleAction('refund', order)">申请售后</u-button>
|
|
|
|
|
|
<!-- 取消订单 (未包含在Flags中,保留原逻辑: 待付款且未取消) -->
|
|
|
@@ -94,7 +94,7 @@
|
|
|
@click.stop="handleAction('detail', order)">查看详情</u-button>
|
|
|
|
|
|
<!-- 申请开票 -->
|
|
|
- <u-button v-if="order.showApplyInvoice == 1 && order.status != '4' && order.status != '3'" size="mini" shape="circle" plain
|
|
|
+ <u-button v-if="order.showApplyInvoice == 1" size="mini" shape="circle" plain
|
|
|
:custom-style="btnStyle" @click.stop="handleAction('invoice', order)">申请开票</u-button>
|
|
|
|
|
|
<!-- 投诉 -->
|
|
|
@@ -107,7 +107,7 @@
|
|
|
|
|
|
<!-- 更多操作 (在待收货和已完成状态下显示) -->
|
|
|
<u-button
|
|
|
- v-if="(order.showAfterSales == 1 || order.showCheckExpress == 1 || order.showApplyInvoice == 1) && (order.status == '3' || order.status == '4')"
|
|
|
+ v-if="(order.showAfterSales == 1 || order.showCheckExpress == 1 || order.showApplyInvoice == 1) && (order.status == '3' || order.status == '5')"
|
|
|
size="mini" shape="circle" plain :custom-style="btnStyle" @click.stop="handleMoreAction">更多</u-button>
|
|
|
|
|
|
</view>
|
|
|
@@ -150,13 +150,14 @@
|
|
|
})
|
|
|
},
|
|
|
getStatusText(order) {
|
|
|
- //订单状态:1-待付款 2-待发货 3-待收货 4-已完成 5-已取消
|
|
|
+ //订单状态:1-待付款 2-待发货 3-待收货 4-用户已签收 5-已完成 6-已取消
|
|
|
const map = {
|
|
|
'1': '待付款',
|
|
|
'2': '待发货',
|
|
|
'3': '待收货',
|
|
|
- '4': '已完成',
|
|
|
- '5': '已取消',
|
|
|
+ '4': '用户已签收',
|
|
|
+ '5': '已完成',
|
|
|
+ '6': '已取消',
|
|
|
}
|
|
|
return map[order.status] || '未知状态'
|
|
|
},
|