mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-11-12 03:48:55 +08:00
fix(buyer): 修复已取消订单仍可发起投诉与售后申请的问题
This commit is contained in:
@@ -90,6 +90,11 @@ const reasonList = ref([]); // 投诉原因
|
||||
|
||||
function getOrderDetail() { // 获取订单详情
|
||||
orderDetail(route.query.sn).then(res => {
|
||||
if (res.result?.order?.orderStatus === 'CANCELLED') {
|
||||
Message.warning('订单已取消,无法发起投诉');
|
||||
router.push({ name: 'MyOrder' });
|
||||
return;
|
||||
}
|
||||
order.value = res.result
|
||||
orderGoods.value = res.result.orderItems[route.query.index]
|
||||
orderGoods.value.uploadList = []
|
||||
|
||||
@@ -297,7 +297,11 @@
|
||||
@click="comment(order.order.sn, goodsIndex)"
|
||||
>评价</button>
|
||||
<el-button
|
||||
v-if="goods.complainStatus == 'NO_APPLY'"
|
||||
v-if="
|
||||
order.order?.orderStatus !== 'CANCELLED' &&
|
||||
order.order?.payStatus === 'PAID' &&
|
||||
goods.complainStatus == 'NO_APPLY'
|
||||
"
|
||||
@click="complain(order.order.sn, goodsIndex)"
|
||||
type="danger"
|
||||
size="small"
|
||||
@@ -306,6 +310,7 @@
|
||||
<el-button
|
||||
v-if="
|
||||
!isECouponOrder &&
|
||||
order.order?.orderStatus !== 'CANCELLED' &&
|
||||
(goods.afterSaleStatus.includes('NOT_APPLIED') ||
|
||||
goods.afterSaleStatus.includes('PART_AFTER_SALE'))
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user