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')