diff --git a/buyer/src/pages/home/orderCenter/Complain.vue b/buyer/src/pages/home/orderCenter/Complain.vue index 64a40157b..be4e4e6c3 100644 --- a/buyer/src/pages/home/orderCenter/Complain.vue +++ b/buyer/src/pages/home/orderCenter/Complain.vue @@ -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 = [] diff --git a/buyer/src/pages/home/orderCenter/OrderDetail.vue b/buyer/src/pages/home/orderCenter/OrderDetail.vue index 10dc7fd8d..937e2f3ce 100644 --- a/buyer/src/pages/home/orderCenter/OrderDetail.vue +++ b/buyer/src/pages/home/orderCenter/OrderDetail.vue @@ -297,7 +297,11 @@ @click="comment(order.order.sn, goodsIndex)" >评价