项目库拼接、上传附件增加判断

prod
吕天方 12 months ago
parent a10db39b7a
commit 6c930e66a0

@ -758,231 +758,258 @@ export default {
// console.log(response,"response"); // console.log(response,"response");
if(option.templateId == "1") { if(option.templateId == "1") {
this.form = response.data.bmsProjectSettlementAwardQueryVo //1 this.form = response.data.bmsProjectSettlementAwardQueryVo //1
let agreement = this.form.agreement.split(',') if(this.form.agreement || this.form.businessLicense || this.form.otherMaterials || this.form.report) {
let businessLicense = this.form.businessLicense.split(',') let agreement = this.form.agreement.split(',')
let otherMaterials = this.form.otherMaterials.split(',') let businessLicense = this.form.businessLicense.split(',')
let report = this.form.report.split(',') let otherMaterials = this.form.otherMaterials.split(',')
agreement.forEach(item => { let report = this.form.report.split(',')
this.uploadListOne.push({name: item,url: item})
this.fileListOne = [...this.uploadListOne] agreement.forEach(item => {
this.form.fileListOne = [...this.uploadListOne] this.uploadListOne.push({name: item,url: item})
}) this.fileListOne = [...this.uploadListOne]
businessLicense.forEach(item => { this.form.fileListOne = [...this.uploadListOne]
this.uploadListTwo.push({name: item,url: item}) })
this.fileListTwo = [...this.uploadListTwo] businessLicense.forEach(item => {
this.form.fileListTwo = [...this.uploadListTwo] this.uploadListTwo.push({name: item,url: item})
}) this.fileListTwo = [...this.uploadListTwo]
otherMaterials.forEach(item => { this.form.fileListTwo = [...this.uploadListTwo]
this.uploadListThree.push({name: item,url: item}) })
this.fileListThree = [...this.uploadListThree] otherMaterials.forEach(item => {
this.form.fileListThree = [...this.uploadListThree] this.uploadListThree.push({name: item,url: item})
}) this.fileListThree = [...this.uploadListThree]
report.forEach(item => { this.form.fileListThree = [...this.uploadListThree]
this.uploadListFour.push({name: item,url: item}) })
this.fileListFour = [...this.uploadListFour] report.forEach(item => {
this.form.fileListFour = [...this.uploadListFour] this.uploadListFour.push({name: item,url: item})
}) this.fileListFour = [...this.uploadListFour]
this.form.fileListFour = [...this.uploadListFour]
})
}
} }
if(option.templateId == "2") { if(option.templateId == "2") {
this.form = response.data.bmsBigStrongAwardQueryVo //2 this.form = response.data.bmsBigStrongAwardQueryVo //2
let developmentPlan = this.form.developmentPlan.split(',') if(this.form.developmentPlan) {
developmentPlan.forEach(item => { let developmentPlan = this.form.developmentPlan.split(',')
this.uploadList.push({name: item,url: item}) developmentPlan.forEach(item => {
this.fileList = [...this.uploadList] this.uploadList.push({name: item,url: item})
this.form.fileList = [...this.uploadList] this.fileList = [...this.uploadList]
}) this.form.fileList = [...this.uploadList]
})
}
} }
if(option.templateId == "3") { if(option.templateId == "3") {
this.form = response.data.bmsCarrierConstructionAward //3 this.form = response.data.bmsCarrierConstructionAward //3
let supportingMaterials = this.form.supportingMaterials.split(',') if(this.form.supportingMaterials || this.form.businessLicense || this.form.fireReport) {
let businessLicense = this.form.businessLicense.split(',') let supportingMaterials = this.form.supportingMaterials.split(',')
let fireReport = this.form.fireReport.split(',') let businessLicense = this.form.businessLicense.split(',')
supportingMaterials.forEach(item => { let fireReport = this.form.fireReport.split(',')
this.uploadListOne.push({name: item,url: item}) supportingMaterials.forEach(item => {
this.fileListOne = [...this.uploadListOne] this.uploadListOne.push({name: item,url: item})
this.form.fileListOne = [...this.uploadListOne] this.fileListOne = [...this.uploadListOne]
}) this.form.fileListOne = [...this.uploadListOne]
businessLicense.forEach(item => { })
this.uploadListTwo.push({name: item,url: item}) businessLicense.forEach(item => {
this.fileListTwo = [...this.uploadListTwo] this.uploadListTwo.push({name: item,url: item})
this.form.fileListTwo = [...this.uploadListTwo] this.fileListTwo = [...this.uploadListTwo]
}) this.form.fileListTwo = [...this.uploadListTwo]
fireReport.forEach(item => { })
this.uploadListThree.push({name: item,url: item}) fireReport.forEach(item => {
this.fileListThree = [...this.uploadListThree] this.uploadListThree.push({name: item,url: item})
this.form.fileListThree = [...this.uploadListThree] this.fileListThree = [...this.uploadListThree]
}) this.form.fileListThree = [...this.uploadListThree]
})
}
} }
if(option.templateId == "4") { if(option.templateId == "4") {
this.form = response.data.bmsPlatformConstructionAward //4 this.form = response.data.bmsPlatformConstructionAward //4
let agreement = this.form.agreement.split(',') if(this.form.agreement) {
agreement.forEach(item => { let agreement = this.form.agreement.split(',')
this.uploadList.push({name: item,url: item}) agreement.forEach(item => {
this.fileList = [...this.uploadList] this.uploadList.push({name: item,url: item})
this.form.fileList = [...this.uploadList] this.fileList = [...this.uploadList]
}) this.form.fileList = [...this.uploadList]
})
}
} }
if(option.templateId == "5") { if(option.templateId == "5") {
this.form = {...response.data.bmsBrandingAward} //5 this.form = {...response.data.bmsBrandingAward} //5
this.form.level = this.form.level + '' this.form.level = this.form.level + ''
let evidence = this.form.evidence.split(',') if(this.form.evidence) {
evidence.forEach(item => { let evidence = this.form.evidence.split(',')
this.uploadList.push({name: item,url: item}) evidence.forEach(item => {
this.fileList = [...this.uploadList] this.uploadList.push({name: item,url: item})
this.form.fileList = [...this.uploadList] this.fileList = [...this.uploadList]
}) this.form.fileList = [...this.uploadList]
})
}
} }
if(option.templateId == "6") { if(option.templateId == "6") {
this.form = response.data.bmsSceneOpeningAward //6 this.form = response.data.bmsSceneOpeningAward //6
this.form.type = this.form.type + '' this.form.type = this.form.type + ''
let material = this.form.material.split(',') if(this.form.material) {
material.forEach(item => { let material = this.form.material.split(',')
this.uploadList.push({name: item,url: item}) material.forEach(item => {
this.fileList = [...this.uploadList] this.uploadList.push({name: item,url: item})
this.form.fileList = [...this.uploadList] this.fileList = [...this.uploadList]
}) this.form.fileList = [...this.uploadList]
})
}
} }
if(option.templateId == "7") { if(option.templateId == "7") {
this.form = response.data.bmsCreditManagement //7 this.form = response.data.bmsCreditManagement //7
let projectPlan = this.form.projectPlan.split(',') if(this.form.projectPlan || this.form.usesFunds || this.form.auditReport) {
let usesFunds = this.form.usesFunds.split(',') let projectPlan = this.form.projectPlan.split(',')
let auditReport = this.form.auditReport.split(',') let usesFunds = this.form.usesFunds.split(',')
projectPlan.forEach(item => { let auditReport = this.form.auditReport.split(',')
this.uploadListOne.push({name: item,url: item}) projectPlan.forEach(item => {
this.fileListOne = [...this.uploadListOne] this.uploadListOne.push({name: item,url: item})
this.form.fileListOne = [...this.uploadListOne] this.fileListOne = [...this.uploadListOne]
}) this.form.fileListOne = [...this.uploadListOne]
usesFunds.forEach(item => { })
this.uploadListTwo.push({name: item,url: item}) usesFunds.forEach(item => {
this.fileListTwo = [...this.uploadListTwo] this.uploadListTwo.push({name: item,url: item})
this.form.fileListTwo = [...this.uploadListTwo] this.fileListTwo = [...this.uploadListTwo]
}) this.form.fileListTwo = [...this.uploadListTwo]
auditReport.forEach(item => { })
this.uploadListThree.push({name: item,url: item}) auditReport.forEach(item => {
this.fileListThree = [...this.uploadListThree] this.uploadListThree.push({name: item,url: item})
this.form.fileListThree = [...this.uploadListThree] this.fileListThree = [...this.uploadListThree]
}) this.form.fileListThree = [...this.uploadListThree]
})
}
} }
if(option.templateId == "8") { if(option.templateId == "8") {
this.form = response.data.bmsIndustrialInternetAward //8 this.form = response.data.bmsIndustrialInternetAward //8
let material = this.form.material.split(',') if(this.form.material) {
material.forEach(item => { let material = this.form.material.split(',')
this.uploadList.push({name: item,url: item}) material.forEach(item => {
// console.log(this.uploadList); this.uploadList.push({name: item,url: item})
this.fileList = [...this.uploadList] // console.log(this.uploadList);
this.form.fileList = [...this.uploadList] this.fileList = [...this.uploadList]
}) this.form.fileList = [...this.uploadList]
})
}
} }
if(option.templateId == "9") { if(option.templateId == "9") {
this.form = response.data.bmsManufacturingServicesAward //9 this.form = response.data.bmsManufacturingServicesAward //9
let filingNotice = this.form.filingNotice.split(',') if(this.form.filingNotice || this.form.invoice || this.form.auditReport || this.form.financialStatements) {
let invoice = this.form.invoice.split(',') let filingNotice = this.form.filingNotice.split(',')
let auditReport = this.form.auditReport.split(',') let invoice = this.form.invoice.split(',')
let financialStatements = this.form.financialStatements.split(',') let auditReport = this.form.auditReport.split(',')
filingNotice.forEach(item => { let financialStatements = this.form.financialStatements.split(',')
this.uploadListOne.push({name: item,url: item}) filingNotice.forEach(item => {
this.fileListOne = [...this.uploadListOne] this.uploadListOne.push({name: item,url: item})
this.form.fileListOne = [...this.uploadListOne] this.fileListOne = [...this.uploadListOne]
}) this.form.fileListOne = [...this.uploadListOne]
invoice.forEach(item => { })
this.uploadListTwo.push({name: item,url: item}) invoice.forEach(item => {
this.fileListTwo = [...this.uploadListTwo] this.uploadListTwo.push({name: item,url: item})
this.form.fileListTwo = [...this.uploadListTwo] this.fileListTwo = [...this.uploadListTwo]
}) this.form.fileListTwo = [...this.uploadListTwo]
auditReport.forEach(item => { })
this.uploadListThree.push({name: item,url: item}) auditReport.forEach(item => {
this.fileListThree = [...this.uploadListThree] this.uploadListThree.push({name: item,url: item})
this.form.fileListThree = [...this.uploadListThree] this.fileListThree = [...this.uploadListThree]
}) this.form.fileListThree = [...this.uploadListThree]
financialStatements.forEach(item => { })
this.uploadListFour.push({name: item,url: item}) financialStatements.forEach(item => {
this.fileListFour = [...this.uploadListFour] this.uploadListFour.push({name: item,url: item})
this.form.fileListFour = [...this.uploadListFour] this.fileListFour = [...this.uploadListFour]
}) this.form.fileListFour = [...this.uploadListFour]
})
}
} }
if(option.templateId == "10") { if(option.templateId == "10") {
this.form = response.data.bmsLogisticsDevelopmentAward //10 this.form = response.data.bmsLogisticsDevelopmentAward //10
let honorCertificate = this.form.honorCertificate.split(',') if(this.form.honorCertificate || this.form.platformName || this.form.filingNotice || this.form.auditReport) {
let platformName = this.form.platformName.split(',') let honorCertificate = this.form.honorCertificate.split(',')
let filingNotice = this.form.filingNotice.split(',') let platformName = this.form.platformName.split(',')
let auditReport = this.form.auditReport.split(',') let filingNotice = this.form.filingNotice.split(',')
honorCertificate.forEach(item => { let auditReport = this.form.auditReport.split(',')
this.uploadListOne.push({name: item,url: item}) honorCertificate.forEach(item => {
this.fileListOne = [...this.uploadListOne] this.uploadListOne.push({name: item,url: item})
this.form.fileListOne = [...this.uploadListOne] this.fileListOne = [...this.uploadListOne]
}) this.form.fileListOne = [...this.uploadListOne]
platformName.forEach(item => { })
this.uploadListTwo.push({name: item,url: item}) platformName.forEach(item => {
this.fileListTwo = [...this.uploadListTwo] this.uploadListTwo.push({name: item,url: item})
this.form.fileListTwo = [...this.uploadListTwo] this.fileListTwo = [...this.uploadListTwo]
}) this.form.fileListTwo = [...this.uploadListTwo]
filingNotice.forEach(item => { })
this.uploadListThree.push({name: item,url: item}) filingNotice.forEach(item => {
this.fileListThree = [...this.uploadListThree] this.uploadListThree.push({name: item,url: item})
this.form.fileListThree = [...this.uploadListThree] this.fileListThree = [...this.uploadListThree]
}) this.form.fileListThree = [...this.uploadListThree]
auditReport.forEach(item => { })
this.uploadListFour.push({name: item,url: item}) auditReport.forEach(item => {
this.fileListFour = [...this.uploadListFour] this.uploadListFour.push({name: item,url: item})
this.form.fileListFour = [...this.uploadListFour] this.fileListFour = [...this.uploadListFour]
}) this.form.fileListFour = [...this.uploadListFour]
})
}
} }
if(option.templateId == "11") { if(option.templateId == "11") {
this.form = response.data.bmsIntegrationIndustries //11 this.form = response.data.bmsIntegrationIndustries //11
let evidence = this.form.evidence.split(',') if(
let businessLicense = this.form.businessLicense.split(',') this.form.evidence || this.form.businessLicense || this.form.taxPaymentCertificate ||
let taxPaymentCertificate = this.form.taxPaymentCertificate.split(',') this.form.auditReport || this.form.equityStructureChart || this.form.declarationReport || this.form.independentAccounting ||
let auditReport = this.form.auditReport.split(',') this.form.capitalVerificationReport || this.form.otherEvidence)
let equityStructureChart = this.form.equityStructureChart.split(',') {
let declarationReport = this.form.declarationReport.split(',') let evidence = this.form.evidence.split(',')
let independentAccounting = this.form.independentAccounting.split(',') let businessLicense = this.form.businessLicense.split(',')
let capitalVerificationReport = this.form.capitalVerificationReport.split(',') let taxPaymentCertificate = this.form.taxPaymentCertificate.split(',')
let otherEvidence = this.form.otherEvidence.split(',') let auditReport = this.form.auditReport.split(',')
evidence.forEach(item => { let equityStructureChart = this.form.equityStructureChart.split(',')
this.uploadListOne.push({name: item,url: item}) let declarationReport = this.form.declarationReport.split(',')
this.fileListOne = [...this.uploadListOne] let independentAccounting = this.form.independentAccounting.split(',')
this.form.fileListOne = [...this.uploadListOne] let capitalVerificationReport = this.form.capitalVerificationReport.split(',')
}) let otherEvidence = this.form.otherEvidence.split(',')
businessLicense.forEach(item => { evidence.forEach(item => {
this.uploadListTwo.push({name: item,url: item}) this.uploadListOne.push({name: item,url: item})
this.fileListTwo = [...this.uploadListTwo] this.fileListOne = [...this.uploadListOne]
this.form.fileListTwo = [...this.uploadListTwo] this.form.fileListOne = [...this.uploadListOne]
}) })
taxPaymentCertificate.forEach(item => { businessLicense.forEach(item => {
this.uploadListThree.push({name: item,url: item}) this.uploadListTwo.push({name: item,url: item})
this.fileListThree = [...this.uploadListThree] this.fileListTwo = [...this.uploadListTwo]
this.form.fileListThree = [...this.uploadListThree] this.form.fileListTwo = [...this.uploadListTwo]
}) })
auditReport.forEach(item => { taxPaymentCertificate.forEach(item => {
this.uploadListFour.push({name: item,url: item}) this.uploadListThree.push({name: item,url: item})
this.fileListFour = [...this.uploadListFour] this.fileListThree = [...this.uploadListThree]
this.form.fileListFour = [...this.uploadListFour] this.form.fileListThree = [...this.uploadListThree]
}) })
equityStructureChart.forEach(item => { auditReport.forEach(item => {
this.uploadListFive.push({name: item,url: item}) this.uploadListFour.push({name: item,url: item})
this.fileListFive = [...this.uploadListFive] this.fileListFour = [...this.uploadListFour]
this.form.fileListFive = [...this.uploadListFive] this.form.fileListFour = [...this.uploadListFour]
}) })
declarationReport.forEach(item => { equityStructureChart.forEach(item => {
this.uploadListSix.push({name: item,url: item}) this.uploadListFive.push({name: item,url: item})
this.fileListSix = [...this.uploadListSix] this.fileListFive = [...this.uploadListFive]
this.form.fileListSix = [...this.uploadListSix] this.form.fileListFive = [...this.uploadListFive]
}) })
independentAccounting.forEach(item => { declarationReport.forEach(item => {
this.uploadListSeven.push({name: item,url: item}) this.uploadListSix.push({name: item,url: item})
this.fileListSeven = [...this.uploadListSeven] this.fileListSix = [...this.uploadListSix]
this.form.fileListSeven = [...this.uploadListSeven] this.form.fileListSix = [...this.uploadListSix]
}) })
capitalVerificationReport.forEach(item => { independentAccounting.forEach(item => {
this.uploadListEight.push({name: item,url: item}) this.uploadListSeven.push({name: item,url: item})
this.fileListEight = [...this.uploadListEight] this.fileListSeven = [...this.uploadListSeven]
this.form.fileListEight = [...this.uploadListEight] this.form.fileListSeven = [...this.uploadListSeven]
}) })
otherEvidence.forEach(item => { capitalVerificationReport.forEach(item => {
this.uploadListNine.push({name: item,url: item}) this.uploadListEight.push({name: item,url: item})
this.fileListNine = [...this.uploadListNine] this.fileListEight = [...this.uploadListEight]
this.form.fileListNine = [...this.uploadListNine] this.form.fileListEight = [...this.uploadListEight]
}) })
otherEvidence.forEach(item => {
this.uploadListNine.push({name: item,url: item})
this.fileListNine = [...this.uploadListNine]
this.form.fileListNine = [...this.uploadListNine]
})
}
} }
this.openCity = true this.openCity = true
}) })

@ -30,7 +30,7 @@
<el-col :span="21"> <el-col :span="21">
<span class="file-link" style="border: 1px solid #dcdfe6;padding: 5px;display: flex; align-items: center; width: 50%;"> <span class="file-link" style="border: 1px solid #dcdfe6;padding: 5px;display: flex; align-items: center; width: 50%;">
<img src="@/assets/images/uploadBgc.jpg" class="li_img" alt="" style="width: 20px; margin-right: 10px;"> <img src="@/assets/images/uploadBgc.jpg" class="li_img" alt="" style="width: 20px; margin-right: 10px;">
<a :href="item.url" target="_blank">{{ item.value }}</a> <a :href="VUE_APP_BASE_API + item.url" target="_blank">{{ item.value }}</a>
</span> </span>
</el-col> </el-col>
</el-row> </el-row>
@ -152,6 +152,7 @@ export default {
info:[], info:[],
fileInfo:[], fileInfo:[],
loading:false, loading:false,
VUE_APP_BASE_API:process.env.VUE_APP_BASE_API,
} }
}, },
mounted() { mounted() {

Loading…
Cancel
Save