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

prod
吕天方 1 year ago
parent a10db39b7a
commit 6c930e66a0

@ -758,10 +758,12 @@ export default {
// console.log(response,"response");
if(option.templateId == "1") {
this.form = response.data.bmsProjectSettlementAwardQueryVo //1
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]
@ -783,8 +785,10 @@ export default {
this.form.fileListFour = [...this.uploadListFour]
})
}
}
if(option.templateId == "2") {
this.form = response.data.bmsBigStrongAwardQueryVo //2
if(this.form.developmentPlan) {
let developmentPlan = this.form.developmentPlan.split(',')
developmentPlan.forEach(item => {
this.uploadList.push({name: item,url: item})
@ -792,8 +796,10 @@ export default {
this.form.fileList = [...this.uploadList]
})
}
}
if(option.templateId == "3") {
this.form = response.data.bmsCarrierConstructionAward //3
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(',')
@ -813,8 +819,10 @@ export default {
this.form.fileListThree = [...this.uploadListThree]
})
}
}
if(option.templateId == "4") {
this.form = response.data.bmsPlatformConstructionAward //4
if(this.form.agreement) {
let agreement = this.form.agreement.split(',')
agreement.forEach(item => {
this.uploadList.push({name: item,url: item})
@ -822,9 +830,11 @@ export default {
this.form.fileList = [...this.uploadList]
})
}
}
if(option.templateId == "5") {
this.form = {...response.data.bmsBrandingAward} //5
this.form.level = this.form.level + ''
if(this.form.evidence) {
let evidence = this.form.evidence.split(',')
evidence.forEach(item => {
this.uploadList.push({name: item,url: item})
@ -832,9 +842,11 @@ export default {
this.form.fileList = [...this.uploadList]
})
}
}
if(option.templateId == "6") {
this.form = response.data.bmsSceneOpeningAward //6
this.form.type = this.form.type + ''
if(this.form.material) {
let material = this.form.material.split(',')
material.forEach(item => {
this.uploadList.push({name: item,url: item})
@ -842,8 +854,10 @@ export default {
this.form.fileList = [...this.uploadList]
})
}
}
if(option.templateId == "7") {
this.form = response.data.bmsCreditManagement //7
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(',')
@ -863,8 +877,10 @@ export default {
this.form.fileListThree = [...this.uploadListThree]
})
}
}
if(option.templateId == "8") {
this.form = response.data.bmsIndustrialInternetAward //8
if(this.form.material) {
let material = this.form.material.split(',')
material.forEach(item => {
this.uploadList.push({name: item,url: item})
@ -873,8 +889,10 @@ export default {
this.form.fileList = [...this.uploadList]
})
}
}
if(option.templateId == "9") {
this.form = response.data.bmsManufacturingServicesAward //9
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(',')
@ -900,8 +918,10 @@ export default {
this.form.fileListFour = [...this.uploadListFour]
})
}
}
if(option.templateId == "10") {
this.form = response.data.bmsLogisticsDevelopmentAward //10
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(',')
@ -927,8 +947,14 @@ export default {
this.form.fileListFour = [...this.uploadListFour]
})
}
}
if(option.templateId == "11") {
this.form = response.data.bmsIntegrationIndustries //11
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(',')
@ -984,6 +1010,7 @@ export default {
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