From a7b67a31daf58bce6ba6564f243dc979858c258b Mon Sep 17 00:00:00 2001 From: zhangrenyuan <18990852002@163.com> Date: Wed, 4 Feb 2026 16:56:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E9=A6=96=E9=A1=B5=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC):=20=E4=BF=AE=E5=A4=8D=E6=94=B6=E6=AC=BE?= =?UTF-8?q?=E5=A4=84=E7=90=86=E6=B6=88=E6=81=AF=E8=B7=B3=E8=BD=AC=E6=97=B6?= =?UTF-8?q?tab=E5=8F=82=E6=95=B0=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复消息状态与目标路径匹配逻辑,确保只有对应角色的收款处理消息才设置tab为'pass'。避免非相关消息跳转时携带错误的查询参数。 --- src/views/home.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/views/home.vue b/src/views/home.vue index 04a8685..5de3201 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -321,8 +321,16 @@ const handleMessageClick = async (item) => { closeMessageDialog() const targetPath = item?.queryId ? getPathByQueryId(item.queryId) : null const messageStatus = Number(item?.status) - const tab = messageStatus === 7 ? 'pass' : (messageStatus === 1 ? 'wait' : null) - if (targetPath && tab && (targetPath.includes('/moneyManage/receiveDetail/receiveFinance') || targetPath.includes('/moneyManage/receiveDetail/receiveManager'))) { + + // 1是代表收款处理的已通过,7是代表的收款处理(负责人)的已通过 + let tab = null + if (messageStatus === 1 && targetPath?.includes('/moneyManage/receiveDetail/receiveFinance')) { + tab = 'pass' + } else if (messageStatus === 7 && targetPath?.includes('/moneyManage/receiveDetail/receiveManager')) { + tab = 'pass' + } + + if (targetPath && tab) { await router.push({ path: targetPath, query: { tab } }) } else { await router.push(targetPath || getOrderPage(item.status) || '/noPermission')