工作组会议维护 详情跳转判断

This commit is contained in:
fengachen
2021-09-15 11:09:00 +08:00
parent 50db160383
commit 0ff1bd6344
3 changed files with 23 additions and 12 deletions
+9 -5
View File
@@ -300,11 +300,15 @@ export default {
* 去合同详情 传入合同id
* */
toContractDetail() {
this.$router.push({
path: '/contractManagement/RevenueContractDetail', query: {
revenueId: this.basicInfo.contractId
}
})
if(this.basicInfo.contractId){
this.$router.push({
path: '/contractManagement/RevenueContractDetail', query: {
revenueId: this.basicInfo.contractId
}
})
}else {
this.$message.warn('该项目未与合同关联')
}
},
/*
* 每一个项目的来款方式不同
+11 -7
View File
@@ -59,14 +59,18 @@ export default {
* 获取文件信息
* */
async initFileList(fileIds) {
const fileList = []
let arr = fileIds.split(',')
for (let i = 0; i < arr.length; i++) {
let fileObj = {}
fileObj = await this.getFileInfo(arr[i])
fileList.push({id: fileObj.id, name: fileObj.fileName})
if(fileIds){
const fileList = []
let arr = fileIds.split(',')
for (let i = 0; i < arr.length; i++) {
let fileObj = {}
fileObj = await this.getFileInfo(arr[i])
fileList.push({id: fileObj.id, name: fileObj.fileName})
}
this.fileList = [...fileList]
}else {
this.fileList = []
}
this.fileList = [...fileList]
},
handlePreview(file) {
if (file && file.id) {
@@ -308,6 +308,9 @@ export default {
* 报名信息
* */
applyMsg() {
this.$router.push({
path: '/incomePayments/meetManage/SignUpInfoList'
})
},
/*
* 创建时间开始禁用