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

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 * 去合同详情 传入合同id
* */ * */
toContractDetail() { toContractDetail() {
this.$router.push({ if(this.basicInfo.contractId){
path: '/contractManagement/RevenueContractDetail', query: { this.$router.push({
revenueId: this.basicInfo.contractId 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) { async initFileList(fileIds) {
const fileList = [] if(fileIds){
let arr = fileIds.split(',') const fileList = []
for (let i = 0; i < arr.length; i++) { let arr = fileIds.split(',')
let fileObj = {} for (let i = 0; i < arr.length; i++) {
fileObj = await this.getFileInfo(arr[i]) let fileObj = {}
fileList.push({id: fileObj.id, name: fileObj.fileName}) 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) { handlePreview(file) {
if (file && file.id) { if (file && file.id) {
@@ -308,6 +308,9 @@ export default {
* 报名信息 * 报名信息
* */ * */
applyMsg() { applyMsg() {
this.$router.push({
path: '/incomePayments/meetManage/SignUpInfoList'
})
}, },
/* /*
* 创建时间开始禁用 * 创建时间开始禁用