From 3d77c58e63b7752fa2ce522ae88681851ec1c677 Mon Sep 17 00:00:00 2001 From: "pikachu1995@126.com" Date: Wed, 11 Nov 2026 22:41:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(buyer):=20=E4=BF=AE=E5=A4=8D=E5=B7=B2?= =?UTF-8?q?=E5=8F=96=E6=B6=88=E8=AE=A2=E5=8D=95=E4=BB=8D=E5=8F=AF=E5=8F=91?= =?UTF-8?q?=E8=B5=B7=E6=8A=95=E8=AF=89=E4=B8=8E=E5=94=AE=E5=90=8E=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buyer/src/pages/home/orderCenter/Complain.vue | 5 +++++ buyer/src/pages/home/orderCenter/OrderDetail.vue | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) 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)" >评价