Commit ae2554e9 authored by zhaoyanping's avatar zhaoyanping

fix: 消息跳转-4

parent ffa90c28
......@@ -177,7 +177,7 @@
//离线推送的时候 点击消息的回调函数
aliyunThirdPush.registerThirdPush({}, result => {
console.log("离线厂商通道消息 : " + JSON.stringify(result));
// this.goPageMsg(result.extra)
this.goPageMsg(result)
});
},
......@@ -251,6 +251,14 @@
})
}, 1000);
}
//统筹采购合同
else if(item.messageType == "coordinatePurchaseContract"){
setTimeout(() => {
uni.navigateTo({
url:`/pages/contract/purchaseCoorContract?projectId=`+item.relationId
})
}, 1000);
}
//卖方配置
else if (item.messageType == "sellerConfig") {
setTimeout(() => {
......
......@@ -237,6 +237,9 @@ export default {
},
},
onLoad(options) {
if (options.projectId) {
this.queryParams.projectId = options.projectId
}
if (options.projectId && getApp().globalData.projectData) {
this.queryParams.projectId = options.projectId
this.activeProject = {
......@@ -333,7 +336,12 @@ export default {
}
})
this.projectList = sortByPinyin(projectList);
this.activeProject.value = this.projectList[0].value
if (this.queryParams.projectId) {
const activeProjectItem = this.projectList.find(item => item.bankProjectId == this.queryParams.projectId)
this.activeProject.value = activeProjectItem.value
}else{
this.activeProject.value = this.projectList[0].value
}
this.getProjectInfo()
});
},
......
......@@ -158,7 +158,7 @@ export default {
url: `/pages/other/approvalDetails?status=${res.data.status}&instanceId=${res.data.instanceId}&applyNo=${res.data.applyNo}&moduleName=详情`
})
})
}
//执行预算 contractBudget
else if (item.messageType == "contractBudget") {
......@@ -180,13 +180,19 @@ export default {
url: navigateToUrl
})
}
//统筹采购合同
else if(item.messageType == "coordinatePurchaseContract"){
uni.navigateTo({
url:`/pages/contract/purchaseCoorContract?projectId=`+item.relationId
})
}
//卖方配置
else if (item.messageType == "sellerConfig") {
uni.navigateTo({
url:"/pages/contract/sellersConfig"
})
}
// 其他审批
// 其他审批
else if (item.messageType == "workflowModule"|| item.messageType == "wfNodeApprovePass") {
const findModule = this.moduleList.find(e => e.moduleName == item.messageSource)
console.log(item.messageSource)
......@@ -204,7 +210,7 @@ export default {
url:`/pages/other/approvalIndex?moduleId=${findModule.moduleId}&moduleName=${findModule.moduleName}`
})
}
// 卖方配置 审批详情
// 卖方配置 审批详情
else if(item.messageType == "wfCcSellerConfig"){
uni.navigateTo({
url:`/pages/contract/sellersConfig?to=`+item.instanceId
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment