|
|
@ -321,8 +321,16 @@ const handleMessageClick = async (item) => { |
|
|
closeMessageDialog() |
|
|
closeMessageDialog() |
|
|
const targetPath = item?.queryId ? getPathByQueryId(item.queryId) : null |
|
|
const targetPath = item?.queryId ? getPathByQueryId(item.queryId) : null |
|
|
const messageStatus = Number(item?.status) |
|
|
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 } }) |
|
|
await router.push({ path: targetPath, query: { tab } }) |
|
|
} else { |
|
|
} else { |
|
|
await router.push(targetPath || getOrderPage(item.status) || '/noPermission') |
|
|
await router.push(targetPath || getOrderPage(item.status) || '/noPermission') |
|
|
|