|
@ -589,25 +589,37 @@ const getAnnexFileList = async (row) => { |
|
|
const annexData = annexTableData.value.find(annex=>annex.label === item.label) |
|
|
const annexData = annexTableData.value.find(annex=>annex.label === item.label) |
|
|
let subDetailTableData = null |
|
|
let subDetailTableData = null |
|
|
if(annexData){ |
|
|
if(annexData){ |
|
|
|
|
|
|
|
|
// HL-5940 maxLength 是限制的列表最大数量 |
|
|
// HL-5940 maxLength 是限制的列表最大数量 |
|
|
let hiddenUpload = false |
|
|
let hiddenUpload = false |
|
|
if(item.maxLength&&annexList.length>=item.maxLength){ |
|
|
if(item.maxLength){ |
|
|
hiddenUpload = true |
|
|
if(annexList.length>=item.maxLength){ |
|
|
|
|
|
hiddenUpload = true |
|
|
|
|
|
}else{ |
|
|
|
|
|
hiddenUpload = false |
|
|
|
|
|
} |
|
|
let findAnnex = annexTableData.value.find(item1=>item1.label==item.label) |
|
|
let findAnnex = annexTableData.value.find(item1=>item1.label==item.label) |
|
|
if(findAnnex){ |
|
|
if(findAnnex){ |
|
|
findAnnex.hiddenUpload = hiddenUpload || item.hiddenUpload || false // 是否展示上传按钮 |
|
|
findAnnex.hiddenUpload = hiddenUpload || item.hiddenUpload || false // 是否展示上传按钮 |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
annexData.annexList = annexList |
|
|
annexData.annexList = annexList |
|
|
subDetailTableData = annexData.subDetailTableData |
|
|
subDetailTableData = annexData.subDetailTableData |
|
|
}else{ |
|
|
}else{ |
|
|
|
|
|
|
|
|
subDetailTableData = item?.subDetailTableData |
|
|
subDetailTableData = item?.subDetailTableData |
|
|
// HL-5940 maxLength 是限制的列表最大数量 |
|
|
// HL-5940 maxLength 是限制的列表最大数量 |
|
|
let hiddenUpload = false |
|
|
let hiddenUpload = false |
|
|
if(item.maxLength&&annexList.length>=item.maxLength){ |
|
|
if(item.maxLength){ |
|
|
hiddenUpload = true |
|
|
if(annexList.length>=item.maxLength){ |
|
|
|
|
|
hiddenUpload = true |
|
|
|
|
|
}else{ |
|
|
|
|
|
hiddenUpload = false |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
annexTableData.value.push({ |
|
|
annexTableData.value.push({ |
|
|
align:item.align, |
|
|
align:item.align, |
|
|
label: item.label, |
|
|
label: item.label, |
|
|