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

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

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

@ -30,7 +30,7 @@
<el-col :span="21">
<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;">
<a :href="item.url" target="_blank">{{ item.value }}</a>
<a :href="VUE_APP_BASE_API + item.url" target="_blank">{{ item.value }}</a>
</span>
</el-col>
</el-row>
@ -152,6 +152,7 @@ export default {
info:[],
fileInfo:[],
loading:false,
VUE_APP_BASE_API:process.env.VUE_APP_BASE_API,
}
},
mounted() {

Loading…
Cancel
Save