From 6c930e66a08c381e56bdf08212a0be590f7977b1 Mon Sep 17 00:00:00 2001 From: TiaStars Date: Thu, 9 May 2024 19:21:30 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=BA=93=E6=8B=BC=E6=8E=A5?= =?UTF-8?q?=E3=80=81=E4=B8=8A=E4=BC=A0=E9=99=84=E4=BB=B6=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../records/components/index.vue | 413 ++++++++++-------- .../projectInfo/components/tabOne/index.vue | 3 +- 2 files changed, 222 insertions(+), 194 deletions(-) diff --git a/src/views/onlineDeclaration/records/components/index.vue b/src/views/onlineDeclaration/records/components/index.vue index 47429a5..a3f91cc 100644 --- a/src/views/onlineDeclaration/records/components/index.vue +++ b/src/views/onlineDeclaration/records/components/index.vue @@ -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 }) diff --git a/src/views/project/projectInfo/components/tabOne/index.vue b/src/views/project/projectInfo/components/tabOne/index.vue index a5d64e3..6961b60 100644 --- a/src/views/project/projectInfo/components/tabOne/index.vue +++ b/src/views/project/projectInfo/components/tabOne/index.vue @@ -30,7 +30,7 @@ - {{ item.value }} + {{ item.value }} @@ -152,6 +152,7 @@ export default { info:[], fileInfo:[], loading:false, + VUE_APP_BASE_API:process.env.VUE_APP_BASE_API, } }, mounted() {