流程修改、赋值改为深拷贝、增加企业端能一直上传附件

prod
吕天方 12 months ago
parent 0b33daee96
commit 1826ec8f11

@ -5,7 +5,7 @@ VUE_APP_TITLE = 金鸡湖现代服务业品牌管理系统
ENV = 'development' ENV = 'development'
# 金鸡湖现代服务业品牌管理系统/开发环境 # 金鸡湖现代服务业品牌管理系统/开发环境
VUE_APP_BASE_API = 'http://192.168.0.105:9040' VUE_APP_BASE_API = 'http://192.168.0.106:9040'
# VUE_APP_BASE_API = 'http://39.101.188.84:9040' # VUE_APP_BASE_API = 'http://39.101.188.84:9040'
# 路由懒加载 # 路由懒加载

@ -281,3 +281,102 @@ export function putIntegrationIndustries(data) {
}) })
} }
// 修改项目落户上传文件
export function templateOneUpdata(data){
return request({
url: '/system/industrialInternetAward/update',
method: 'put',
data: data
})
}
// 修改做大做强上传文件
export function templateTwoUpdata(data){
return request({
url: '/system/industrialInternetAward/update',
method: 'put',
data: data
})
}
// 修改载体建设上传文件
export function templateThreeUpdata(data){
return request({
url: '/system/industrialInternetAward/update',
method: 'put',
data: data
})
}
// 修改平台建设上传文件
export function templateFourUpdata(data){
return request({
url: '/system/industrialInternetAward/update',
method: 'put',
data: data
})
}
// 修改品牌打造上传文件
export function templateFiveUpdata(data){
return request({
url: '/system/industrialInternetAward/update',
method: 'put',
data: data
})
}
// 修改场景开放上传文件
export function templateSixUpdata(data){
return request({
url: '/system/industrialInternetAward/update',
method: 'put',
data: data
})
}
// 修改信用管理上传文件
export function templateSevenUpdata(data){
return request({
url: '/system/industrialInternetAward/update',
method: 'put',
data: data
})
}
// 修改5G+工业互联网奖补上传文件
export function templateEightUpdata(data){
return request({
url: '/system/industrialInternetAward/update',
method: 'put',
data: data
})
}
// 修改制造服务业有效投入上传文件
export function templateNineUpdata(data){
return request({
url: '/system/industrialInternetAward/update',
method: 'put',
data: data
})
}
// 修改物流发展上传文件
export function templateTenUpdata(data){
return request({
url: '/system/industrialInternetAward/update',
method: 'put',
data: data
})
}
// 修改两业融合上传文件
export function templateElevenUpdata(data){
return request({
url: '/system/industrialInternetAward/update',
method: 'put',
data: data
})
}

@ -1663,7 +1663,7 @@
</span> </span>
<div class="contain_main"> <div class="contain_main">
<div>{{ item.approvalByName }}</div> <div>{{ item.approvalByName }}</div>
<div>审核意见{{ item.approvalOpinions }}</div> <div>审核意见{{ item.approvalOpinions }}</div>
<div class="attach"> <div class="attach">
<div v-if="!item.approvalAttachment"></div> <div v-if="!item.approvalAttachment"></div>
<div class="attach_left" v-if="item.approvalAttachment"></div> <div class="attach_left" v-if="item.approvalAttachment"></div>
@ -1675,9 +1675,11 @@
</div> </div>
</div> </div>
<div>{{ item.approvalTime }}</div> <div>{{ item.approvalTime }}</div>
<img v-if="item.approvalStatus == 1" class="approval_img" src="../../../assets/images/approvalAgree.jpg" alt=""> <div class="right-img">
<img v-if="item.approvalStatus == 2" class="approval_img" src="../../../assets/images/approvalReject.jpg" alt=""> <img v-if="item.approvalStatus == 1" class="approval_img" src="../../../assets/images/approvalAgree.jpg" alt="">
<img v-if="item.approvalStatus == 0" class="approval_img" src="../../../assets/images/approvalPrimary.jpg" alt=""> <img v-if="item.approvalStatus == 2" class="approval_img" src="../../../assets/images/approvalReject.jpg" alt="">
<img v-if="item.approvalStatus == 0" class="approval_img" src="../../../assets/images/approvalPrimary.jpg" alt="">
</div>
</div> </div>
</div> </div>
<!-- <el-steps direction="vertical"> <!-- <el-steps direction="vertical">
@ -1886,7 +1888,6 @@ export default {
}, },
async mounted(){ async mounted(){
let { templateId, templateRecordId, pageType, detailId, enterpriseId} = this.$route.query; let { templateId, templateRecordId, pageType, detailId, enterpriseId} = this.$route.query;
console.log(this.$route.query,"this.$route.query");
this.templateId = templateId this.templateId = templateId
this.templateRecordId = templateRecordId this.templateRecordId = templateRecordId
this.detailId = detailId this.detailId = detailId
@ -1964,23 +1965,23 @@ export default {
let report = this.form.report.split(',') let report = this.form.report.split(',')
agreement.forEach(item => { agreement.forEach(item => {
this.uploadListOne.push({name: item,url: item}) this.uploadListOne.push({name: item,url: item})
this.fileListOne = this.uploadListOne this.fileListOne = [...this.uploadListOne]
this.form.fileListOne = this.uploadListOne this.form.fileListOne = [...this.uploadListOne]
}) })
businessLicense.forEach(item => { businessLicense.forEach(item => {
this.uploadListTwo.push({name: item,url: item}) this.uploadListTwo.push({name: item,url: item})
this.fileListTwo = this.uploadListTwo this.fileListTwo = [...this.uploadListTwo]
this.form.fileListTwo = this.uploadListTwo this.form.fileListTwo = [...this.uploadListTwo]
}) })
otherMaterials.forEach(item => { otherMaterials.forEach(item => {
this.uploadListThree.push({name: item,url: item}) this.uploadListThree.push({name: item,url: item})
this.fileListThree = this.uploadListThree this.fileListThree = [...this.uploadListThree]
this.form.fileListThree = this.uploadListThree this.form.fileListThree = [...this.uploadListThree]
}) })
report.forEach(item => { report.forEach(item => {
this.uploadListFour.push({name: item,url: item}) this.uploadListFour.push({name: item,url: item})
this.fileListFour = this.uploadListFour this.fileListFour = [...this.uploadListFour]
this.form.fileListFour = this.uploadListFour this.form.fileListFour = [...this.uploadListFour]
}) })
} }
if(this.templateId == "2") { if(this.templateId == "2") {
@ -2016,8 +2017,8 @@ export default {
let developmentPlan = this.form.developmentPlan.split(',') let developmentPlan = this.form.developmentPlan.split(',')
developmentPlan.forEach(item => { developmentPlan.forEach(item => {
this.uploadList.push({name: item,url: item}) this.uploadList.push({name: item,url: item})
this.fileList = this.uploadList this.fileList = [...this.uploadList]
this.form.fileList = this.uploadList this.form.fileList = [...this.uploadList]
}) })
} }
if(this.templateId == "3") { if(this.templateId == "3") {
@ -2027,18 +2028,18 @@ export default {
let fireReport = this.form.fireReport.split(',') let fireReport = this.form.fireReport.split(',')
supportingMaterials.forEach(item => { supportingMaterials.forEach(item => {
this.uploadListOne.push({name: item,url: item}) this.uploadListOne.push({name: item,url: item})
this.fileListOne = this.uploadListOne this.fileListOne = [...this.uploadListOne]
this.form.fileListOne = this.uploadListOne this.form.fileListOne = [...this.uploadListOne]
}) })
businessLicense.forEach(item => { businessLicense.forEach(item => {
this.uploadListTwo.push({name: item,url: item}) this.uploadListTwo.push({name: item,url: item})
this.fileListTwo = this.uploadListTwo this.fileListTwo = [...this.uploadListTwo]
this.form.fileListTwo = this.uploadListTwo this.form.fileListTwo = [...this.uploadListTwo]
}) })
fireReport.forEach(item => { fireReport.forEach(item => {
this.uploadListThree.push({name: item,url: item}) this.uploadListThree.push({name: item,url: item})
this.fileListThree = this.uploadListThree this.fileListThree = [...this.uploadListThree]
this.form.fileListThree = this.uploadListThree this.form.fileListThree = [...this.uploadListThree]
}) })
} }
if(this.templateId == "4") { if(this.templateId == "4") {
@ -2046,8 +2047,8 @@ export default {
let agreement = this.form.agreement.split(',') let agreement = this.form.agreement.split(',')
agreement.forEach(item => { agreement.forEach(item => {
this.uploadList.push({name: item,url: item}) this.uploadList.push({name: item,url: item})
this.fileList = this.uploadList this.fileList = [...this.uploadList]
this.form.fileList = this.uploadList this.form.fileList = [...this.uploadList]
}) })
} }
if(this.templateId == "5") { if(this.templateId == "5") {
@ -2056,8 +2057,8 @@ export default {
let evidence = this.form.evidence.split(',') let evidence = this.form.evidence.split(',')
evidence.forEach(item => { evidence.forEach(item => {
this.uploadList.push({name: item,url: item}) this.uploadList.push({name: item,url: item})
this.fileList = this.uploadList this.fileList = [...this.uploadList]
this.form.fileList = this.uploadList this.form.fileList = [...this.uploadList]
}) })
} }
if(this.templateId == "6") { if(this.templateId == "6") {
@ -2066,8 +2067,8 @@ export default {
let material = this.form.material.split(',') let material = this.form.material.split(',')
material.forEach(item => { material.forEach(item => {
this.uploadList.push({name: item,url: item}) this.uploadList.push({name: item,url: item})
this.fileList = this.uploadList this.fileList = [...this.uploadList]
this.form.fileList = this.uploadList this.form.fileList = [...this.uploadList]
}) })
} }
if(this.templateId == "7") { if(this.templateId == "7") {
@ -2077,18 +2078,18 @@ export default {
let auditReport = this.form.auditReport.split(',') let auditReport = this.form.auditReport.split(',')
projectPlan.forEach(item => { projectPlan.forEach(item => {
this.uploadListOne.push({name: item,url: item}) this.uploadListOne.push({name: item,url: item})
this.fileListOne = this.uploadListOne this.fileListOne = [...this.uploadListOne]
this.form.fileListOne = this.uploadListOne this.form.fileListOne = [...this.uploadListOne]
}) })
usesFunds.forEach(item => { usesFunds.forEach(item => {
this.uploadListTwo.push({name: item,url: item}) this.uploadListTwo.push({name: item,url: item})
this.fileListTwo = this.uploadListTwo this.fileListTwo = [...this.uploadListTwo]
this.form.fileListTwo = this.uploadListTwo this.form.fileListTwo = [...this.uploadListTwo]
}) })
auditReport.forEach(item => { auditReport.forEach(item => {
this.uploadListThree.push({name: item,url: item}) this.uploadListThree.push({name: item,url: item})
this.fileListThree = this.uploadListThree this.fileListThree = [...this.uploadListThree]
this.form.fileListThree = this.uploadListThree this.form.fileListThree = [...this.uploadListThree]
}) })
} }
if(this.templateId == "8") { if(this.templateId == "8") {
@ -2096,8 +2097,8 @@ export default {
let material = this.form.material.split(',') let material = this.form.material.split(',')
material.forEach(item => { material.forEach(item => {
this.uploadList.push({name: item,url: item}) this.uploadList.push({name: item,url: item})
this.fileList = this.uploadList this.fileList = [...this.uploadList]
this.form.fileList = this.uploadList this.form.fileList = [...this.uploadList]
}) })
} }
if(this.templateId == "9") { if(this.templateId == "9") {
@ -2108,23 +2109,23 @@ export default {
let financialStatements = this.form.financialStatements.split(',') let financialStatements = this.form.financialStatements.split(',')
filingNotice.forEach(item => { filingNotice.forEach(item => {
this.uploadListOne.push({name: item,url: item}) this.uploadListOne.push({name: item,url: item})
this.fileListOne = this.uploadListOne this.fileListOne = [...this.uploadListOne]
this.form.fileListOne = this.uploadListOne this.form.fileListOne = [...this.uploadListOne]
}) })
invoice.forEach(item => { invoice.forEach(item => {
this.uploadListTwo.push({name: item,url: item}) this.uploadListTwo.push({name: item,url: item})
this.fileListTwo = this.uploadListTwo this.fileListTwo = [...this.uploadListTwo]
this.form.fileListTwo = this.uploadListTwo this.form.fileListTwo = [...this.uploadListTwo]
}) })
auditReport.forEach(item => { auditReport.forEach(item => {
this.uploadListThree.push({name: item,url: item}) this.uploadListThree.push({name: item,url: item})
this.fileListThree = this.uploadListThree this.fileListThree = [...this.uploadListThree]
this.form.fileListThree = this.uploadListThree this.form.fileListThree = [...this.uploadListThree]
}) })
financialStatements.forEach(item => { financialStatements.forEach(item => {
this.uploadListFour.push({name: item,url: item}) this.uploadListFour.push({name: item,url: item})
this.fileListFour = this.uploadListFour this.fileListFour = [...this.uploadListFour]
this.form.fileListFour = this.uploadListFour this.form.fileListFour = [...this.uploadListFour]
}) })
} }
if(this.templateId == "10") { if(this.templateId == "10") {
@ -2135,23 +2136,23 @@ export default {
let auditReport = this.form.auditReport.split(',') let auditReport = this.form.auditReport.split(',')
honorCertificate.forEach(item => { honorCertificate.forEach(item => {
this.uploadListOne.push({name: item,url: item}) this.uploadListOne.push({name: item,url: item})
this.fileListOne = this.uploadListOne this.fileListOne = [...this.uploadListOne]
this.form.fileListOne = this.uploadListOne this.form.fileListOne = [...this.uploadListOne]
}) })
platformName.forEach(item => { platformName.forEach(item => {
this.uploadListTwo.push({name: item,url: item}) this.uploadListTwo.push({name: item,url: item})
this.fileListTwo = this.uploadListTwo this.fileListTwo = [...this.uploadListTwo]
this.form.fileListTwo = this.uploadListTwo this.form.fileListTwo = [...this.uploadListTwo]
}) })
filingNotice.forEach(item => { filingNotice.forEach(item => {
this.uploadListThree.push({name: item,url: item}) this.uploadListThree.push({name: item,url: item})
this.fileListThree = this.uploadListThree this.fileListThree = [...this.uploadListThree]
this.form.fileListThree = this.uploadListThree this.form.fileListThree = [...this.uploadListThree]
}) })
auditReport.forEach(item => { auditReport.forEach(item => {
this.uploadListFour.push({name: item,url: item}) this.uploadListFour.push({name: item,url: item})
this.fileListFour = this.uploadListFour this.fileListFour = [...this.uploadListFour]
this.form.fileListFour = this.uploadListFour this.form.fileListFour = [...this.uploadListFour]
}) })
} }
if(this.templateId == "11") { if(this.templateId == "11") {
@ -2168,48 +2169,48 @@ export default {
let otherEvidence = this.form.otherEvidence.split(',') let otherEvidence = this.form.otherEvidence.split(',')
evidence.forEach(item => { evidence.forEach(item => {
this.uploadListOne.push({name: item,url: item}) this.uploadListOne.push({name: item,url: item})
this.fileListOne = this.uploadListOne this.fileListOne = [...this.uploadListOne]
this.form.fileListOne = this.uploadListOne this.form.fileListOne = [...this.uploadListOne]
}) })
businessLicense.forEach(item => { businessLicense.forEach(item => {
this.uploadListTwo.push({name: item,url: item}) this.uploadListTwo.push({name: item,url: item})
this.fileListTwo = this.uploadListTwo this.fileListTwo = [...this.uploadListTwo]
this.form.fileListTwo = this.uploadListTwo this.form.fileListTwo = [...this.uploadListTwo]
}) })
taxPaymentCertificate.forEach(item => { taxPaymentCertificate.forEach(item => {
this.uploadListThree.push({name: item,url: item}) this.uploadListThree.push({name: item,url: item})
this.fileListThree = this.uploadListThree this.fileListThree = [...this.uploadListThree]
this.form.fileListThree = this.uploadListThree this.form.fileListThree = [...this.uploadListThree]
}) })
auditReport.forEach(item => { auditReport.forEach(item => {
this.uploadListFour.push({name: item,url: item}) this.uploadListFour.push({name: item,url: item})
this.fileListFour = this.uploadListFour this.fileListFour = [...this.uploadListFour]
this.form.fileListFour = this.uploadListFour this.form.fileListFour = [...this.uploadListFour]
}) })
equityStructureChart.forEach(item => { equityStructureChart.forEach(item => {
this.uploadListFive.push({name: item,url: item}) this.uploadListFive.push({name: item,url: item})
this.fileListFive = this.uploadListFive this.fileListFive = [...this.uploadListFive]
this.form.fileListFive = this.uploadListFive this.form.fileListFive = [...this.uploadListFive]
}) })
declarationReport.forEach(item => { declarationReport.forEach(item => {
this.uploadListSix.push({name: item,url: item}) this.uploadListSix.push({name: item,url: item})
this.fileListSix = this.uploadListSix this.fileListSix = [...this.uploadListSix]
this.form.fileListSix = this.uploadListSix this.form.fileListSix = [...this.uploadListSix]
}) })
independentAccounting.forEach(item => { independentAccounting.forEach(item => {
this.uploadListSeven.push({name: item,url: item}) this.uploadListSeven.push({name: item,url: item})
this.fileListSeven = this.uploadListSeven this.fileListSeven = [...this.uploadListSeven]
this.form.fileListSeven = this.uploadListSeven this.form.fileListSeven = [...this.uploadListSeven]
}) })
capitalVerificationReport.forEach(item => { capitalVerificationReport.forEach(item => {
this.uploadListEight.push({name: item,url: item}) this.uploadListEight.push({name: item,url: item})
this.fileListEight = this.uploadListEight this.fileListEight = [...this.uploadListEight]
this.form.fileListEight = this.uploadListEight this.form.fileListEight = [...this.uploadListEight]
}) })
otherEvidence.forEach(item => { otherEvidence.forEach(item => {
this.uploadListNine.push({name: item,url: item}) this.uploadListNine.push({name: item,url: item})
this.fileListNine = this.uploadListNine this.fileListNine = [...this.uploadListNine]
this.form.fileListNine = this.uploadListNine this.form.fileListNine = [...this.uploadListNine]
}) })
} }
}) })
@ -2306,7 +2307,7 @@ export default {
break; break;
} }
}) })
console.log('11', params); // console.log('11', params);
putProjectSettlementAward(params).then((response) => { putProjectSettlementAward(params).then((response) => {
this.$message.success("修改成功"); this.$message.success("修改成功");
this.$router.go(-1) this.$router.go(-1)
@ -2355,7 +2356,7 @@ export default {
break; break;
} }
}) })
console.log('11', params); // console.log('11', params);
putBigStrongAward(params).then((response) => { putBigStrongAward(params).then((response) => {
this.$message.success("修改成功"); this.$message.success("修改成功");
this.$router.go(-1) this.$router.go(-1)
@ -2389,7 +2390,7 @@ export default {
params.fireReport+=`${item.url},` params.fireReport+=`${item.url},`
} }
}) })
console.log('11', params); // console.log('11', params);
putCarrierConstructionAward(params).then((response) => { putCarrierConstructionAward(params).then((response) => {
this.$message.success("修改成功"); this.$message.success("修改成功");
this.$router.go(-1) this.$router.go(-1)
@ -2408,7 +2409,7 @@ export default {
params.agreement+=`${item.url},` params.agreement+=`${item.url},`
} }
}) })
console.log('11', params); // console.log('11', params);
putPlatformConstructionAward(params).then((response) => { putPlatformConstructionAward(params).then((response) => {
this.$message.success("修改成功"); this.$message.success("修改成功");
this.$router.go(-1) this.$router.go(-1)
@ -2426,7 +2427,7 @@ export default {
params.evidence+=`${item.url},` params.evidence+=`${item.url},`
} }
}) })
console.log('11', params); // console.log('11', params);
putBrandingAward(params).then((response) => { putBrandingAward(params).then((response) => {
this.$message.success("修改成功"); this.$message.success("修改成功");
this.$router.go(-1) this.$router.go(-1)
@ -2444,7 +2445,7 @@ export default {
params.material+=`${item.url},` params.material+=`${item.url},`
} }
}) })
console.log('11', params); // console.log('11', params);
putSceneOpeningAward(params).then((response) => { putSceneOpeningAward(params).then((response) => {
this.$message.success("修改成功"); this.$message.success("修改成功");
this.$router.go(-1) this.$router.go(-1)
@ -2475,7 +2476,7 @@ export default {
params.auditReport+=`${item.url},` params.auditReport+=`${item.url},`
} }
}) })
console.log('11', params); // console.log('11', params);
putCreditManagement(params).then((response) => { putCreditManagement(params).then((response) => {
this.$message.success("修改成功"); this.$message.success("修改成功");
this.$router.go(-1) this.$router.go(-1)
@ -2493,7 +2494,7 @@ export default {
params.material+=`${item.url},` params.material+=`${item.url},`
} }
}) })
console.log('11', params); // console.log('11', params);
putIndustrialInternetAward(params).then((response) => { putIndustrialInternetAward(params).then((response) => {
this.$message.success("修改成功"); this.$message.success("修改成功");
this.$router.go(-1) this.$router.go(-1)
@ -2531,7 +2532,7 @@ export default {
params.financialStatements+=`${item.url},` params.financialStatements+=`${item.url},`
} }
}) })
console.log('11', params); // console.log('11', params);
putManufacturingServicesAward(params).then((response) => { putManufacturingServicesAward(params).then((response) => {
this.$message.success("修改成功"); this.$message.success("修改成功");
this.$router.go(-1) this.$router.go(-1)
@ -2569,7 +2570,7 @@ export default {
params.auditReport+=`${item.url},` params.auditReport+=`${item.url},`
} }
}) })
console.log('11', params); // console.log('11', params);
putLogisticsDevelopmentAward(params).then((response) => { putLogisticsDevelopmentAward(params).then((response) => {
this.$message.success("修改成功"); this.$message.success("修改成功");
this.$router.go(-1) this.$router.go(-1)
@ -2643,7 +2644,7 @@ export default {
params.otherEvidence+=`${item.url},` params.otherEvidence+=`${item.url},`
} }
}) })
console.log('11', params); // console.log('11', params);
putIntegrationIndustries(params).then((response) => { putIntegrationIndustries(params).then((response) => {
this.$message.success("修改成功"); this.$message.success("修改成功");
this.$router.go(-1) this.$router.go(-1)
@ -2658,7 +2659,7 @@ export default {
this.fileList = fileList this.fileList = fileList
}, },
handleFileUpload(params) { handleFileUpload(params) {
console.log('params: ', params); // console.log('params: ', params);
this.form.fileName = params.file.name this.form.fileName = params.file.name
const file = params.file const file = params.file
let form = new FormData() let form = new FormData()
@ -2666,9 +2667,12 @@ export default {
uploadFile(form).then(response => { uploadFile(form).then(response => {
// this.fileList = [] // this.fileList = []
this.fileList.push(file) this.fileList.push(file)
this.uploadList.push(response.data) let data = {};
data.name = response.originalFilename;
data.url = response.url;
this.uploadList.push(data)
this.form.fileList = this.fileList this.form.fileList = this.fileList
console.log('this.fileList: ', this.fileList); // console.log('this.fileList: ', this.fileList);
}) })
}, },
deleteUpload(value) { deleteUpload(value) {
@ -2678,7 +2682,7 @@ export default {
}, },
/* 上传一 */ /* 上传一 */
handleFileUploadOne(params) { handleFileUploadOne(params) {
console.log('params: ', params); // console.log('params: ', params);
this.form.fileName = params.file.name this.form.fileName = params.file.name
const file = params.file const file = params.file
let form = new FormData() let form = new FormData()
@ -2691,12 +2695,12 @@ export default {
data.url = response.url; data.url = response.url;
this.uploadList.push(data) this.uploadList.push(data)
this.form.fileListOne = this.fileListOne this.form.fileListOne = this.fileListOne
console.log('this.fileListOne: ', this.fileListOne); // console.log('this.fileListOne: ', this.fileListOne);
}) })
}, },
/* 上传二 */ /* 上传二 */
handleFileUploadTwo(params) { handleFileUploadTwo(params) {
console.log('params: ', params); // console.log('params: ', params);
this.form.fileName = params.file.name this.form.fileName = params.file.name
const file = params.file const file = params.file
let form = new FormData() let form = new FormData()
@ -2704,14 +2708,17 @@ export default {
uploadFile(form).then(response => { uploadFile(form).then(response => {
// this.fileList = [] // this.fileList = []
this.fileListTwo.push(file) this.fileListTwo.push(file)
this.uploadListTwo.push(response.data) let data = {};
data.name = response.originalFilename;
data.url = response.url;
this.uploadListTwo.push(data)
this.form.fileListTwo = this.fileListTwo this.form.fileListTwo = this.fileListTwo
console.log('this.fileListTwo: ', this.fileListTwo); // console.log('this.fileListTwo: ', this.fileListTwo);
}) })
}, },
/* 上传三 */ /* 上传三 */
handleFileUploadThree(params) { handleFileUploadThree(params) {
console.log('params: ', params); // console.log('params: ', params);
this.form.fileName = params.file.name this.form.fileName = params.file.name
const file = params.file const file = params.file
let form = new FormData() let form = new FormData()
@ -2719,14 +2726,17 @@ export default {
uploadFile(form).then(response => { uploadFile(form).then(response => {
// this.fileList = [] // this.fileList = []
this.fileListThree.push(file) this.fileListThree.push(file)
this.uploadListThree.push(response.data) let data = {};
data.name = response.originalFilename;
data.url = response.url;
this.uploadListThree.push(data)
this.form.fileListThree = this.fileListThree this.form.fileListThree = this.fileListThree
console.log('this.fileListThree: ', this.fileListThree); console.log('this.fileListThree: ', this.fileListThree);
}) })
}, },
/* 上传四 */ /* 上传四 */
handleFileUploadFour(params) { handleFileUploadFour(params) {
console.log('params: ', params); // console.log('params: ', params);
this.form.fileName = params.file.name this.form.fileName = params.file.name
const file = params.file const file = params.file
let form = new FormData() let form = new FormData()
@ -2734,14 +2744,17 @@ export default {
uploadFile(form).then(response => { uploadFile(form).then(response => {
// this.fileList = [] // this.fileList = []
this.fileListFour.push(file) this.fileListFour.push(file)
this.uploadListFour.push(response.data) let data = {};
data.name = response.originalFilename;
data.url = response.url;
this.uploadListFour.push(data)
this.form.fileListFour = this.fileListFour this.form.fileListFour = this.fileListFour
console.log('this.fileListFour: ', this.fileListFour); // console.log('this.fileListFour: ', this.fileListFour);
}) })
}, },
/* 上传五 */ /* 上传五 */
handleFileUploadFive(params) { handleFileUploadFive(params) {
console.log('params: ', params); // console.log('params: ', params);
this.form.fileName = params.file.name this.form.fileName = params.file.name
const file = params.file const file = params.file
let form = new FormData() let form = new FormData()
@ -2749,14 +2762,17 @@ export default {
uploadFile(form).then(response => { uploadFile(form).then(response => {
// this.fileList = [] // this.fileList = []
this.fileListFive.push(file) this.fileListFive.push(file)
this.uploadListFive.push(response.data) let data = {};
data.name = response.originalFilename;
data.url = response.url;
this.uploadListFive.push(data)
this.form.fileListFive = this.fileListFive this.form.fileListFive = this.fileListFive
console.log('this.fileListFive: ', this.fileListFive); // console.log('this.fileListFive: ', this.fileListFive);
}) })
}, },
/* 上传六 */ /* 上传六 */
handleFileUploadSix(params) { handleFileUploadSix(params) {
console.log('params: ', params); // console.log('params: ', params);
this.form.fileName = params.file.name this.form.fileName = params.file.name
const file = params.file const file = params.file
let form = new FormData() let form = new FormData()
@ -2764,14 +2780,17 @@ export default {
uploadFile(form).then(response => { uploadFile(form).then(response => {
// this.fileList = [] // this.fileList = []
this.fileListSix.push(file) this.fileListSix.push(file)
this.uploadListSix.push(response.data) let data = {};
data.name = response.originalFilename;
data.url = response.url;
this.uploadListSix.push(data)
this.form.fileListSix = this.fileListSix this.form.fileListSix = this.fileListSix
console.log('this.fileListSix: ', this.fileListSix); // console.log('this.fileListSix: ', this.fileListSix);
}) })
}, },
/* 上传七 */ /* 上传七 */
handleFileUploadSeven(params) { handleFileUploadSeven(params) {
console.log('params: ', params); // console.log('params: ', params);
this.form.fileName = params.file.name this.form.fileName = params.file.name
const file = params.file const file = params.file
let form = new FormData() let form = new FormData()
@ -2779,14 +2798,17 @@ export default {
uploadFile(form).then(response => { uploadFile(form).then(response => {
// this.fileList = [] // this.fileList = []
this.fileListSeven.push(file) this.fileListSeven.push(file)
this.uploadListSeven.push(response.data) let data = {};
data.name = response.originalFilename;
data.url = response.url;
this.uploadListSeven.push(data)
this.form.fileListSeven = this.fileListSeven this.form.fileListSeven = this.fileListSeven
console.log('this.fileListSeven: ', this.fileListSeven); // console.log('this.fileListSeven: ', this.fileListSeven);
}) })
}, },
/* 上传八 */ /* 上传八 */
handleFileUploadEight(params) { handleFileUploadEight(params) {
console.log('params: ', params); // console.log('params: ', params);
this.form.fileName = params.file.name this.form.fileName = params.file.name
const file = params.file const file = params.file
let form = new FormData() let form = new FormData()
@ -2794,14 +2816,17 @@ export default {
uploadFile(form).then(response => { uploadFile(form).then(response => {
// this.fileList = [] // this.fileList = []
this.fileListEight.push(file) this.fileListEight.push(file)
this.uploadListEight.push(response.data) let data = {};
data.name = response.originalFilename;
data.url = response.url;
this.uploadListEight.push(data)
this.form.fileListEight = this.fileListEight this.form.fileListEight = this.fileListEight
console.log('this.fileListEight: ', this.fileListEight); // console.log('this.fileListEight: ', this.fileListEight);
}) })
}, },
/* 上传九 */ /* 上传九 */
handleFileUploadNine(params) { handleFileUploadNine(params) {
console.log('params: ', params); // console.log('params: ', params);
this.form.fileName = params.file.name this.form.fileName = params.file.name
const file = params.file const file = params.file
let form = new FormData() let form = new FormData()
@ -2809,9 +2834,12 @@ export default {
uploadFile(form).then(response => { uploadFile(form).then(response => {
// this.fileList = [] // this.fileList = []
this.fileListNine.push(file) this.fileListNine.push(file)
this.uploadListNine.push(response.data) let data = {};
data.name = response.originalFilename;
data.url = response.url;
this.uploadListNine.push(data)
this.form.fileListNine = this.fileListNine this.form.fileListNine = this.fileListNine
console.log('this.fileListNine: ', this.fileListNine); // console.log('this.fileListNine: ', this.fileListNine);
}) })
}, },
/* 删除上传一 */ /* 删除上传一 */
@ -3176,14 +3204,19 @@ list-style: none; /* 清除列表项前的标记 */
} }
} }
} }
.right-img {
.approval_img {
position: absolute; position: absolute;
z-index: 2; z-index: 2;
top: 0; top: 0;
bottom: 40px;
right: 20px; right: 20px;
width: 85px; display: flex;
height: 80px; align-items: center;
.approval_img {
width: 85px;
height: 80px;
}
} }
} }
.step_contain_one { .step_contain_one {

@ -182,13 +182,13 @@
<!-- <el-radio-group v-model="form.isFrame"> <!-- <el-radio-group v-model="form.isFrame">
<el-radio label="0">Excel批量导入</el-radio> <el-radio label="0">Excel批量导入</el-radio>
</el-radio-group> --> </el-radio-group> -->
<el-radio-group v-model="form.isFrame"> <el-radio-group v-model="form.isFrame" @input="changeIsFrame">
<el-radio label="0">所有企业</el-radio> <el-radio label="0">所有企业</el-radio>
<el-radio label="1">部分企业</el-radio> <el-radio label="1">部分企业</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="14" v-if="form.isFrame == 1"> <el-col :span="14" v-show="form.isFrame == 1">
<el-form-item label="excel导入企业名录" label-width="150px" prop="fileList"> <el-form-item label="excel导入企业名录" label-width="150px" prop="fileList">
<el-upload <el-upload
class="upload-demo" class="upload-demo"
@ -207,7 +207,7 @@
</div> </div>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="10" v-if="form.isFrame == 1"> <el-col :span="10" v-show="form.isFrame == 1">
<el-form-item label-width="0" prop="path"> <el-form-item label-width="0" prop="path">
<el-button plain @click="frontDownload" v-if="fileList.length<= 0" style="background-color: #f1d78c; border: none;"></el-button> <el-button plain @click="frontDownload" v-if="fileList.length<= 0" style="background-color: #f1d78c; border: none;"></el-button>
</el-form-item> </el-form-item>
@ -440,6 +440,18 @@ export default {
} }
}); });
}, },
//
changeIsFrame(value){
if(value == 1){
// 1
} else if(value == 0){
// 0
}
},
/** 查看按钮操作 */ /** 查看按钮操作 */
handleView(row) { handleView(row) {
this.viewVisible = true this.viewVisible = true
@ -490,7 +502,7 @@ export default {
this.$forceUpdate() this.$forceUpdate()
}, },
changeDateRange(val) { changeDateRange(val) {
console.log('val: ', val); // console.log('val: ', val);
this.$forceUpdate() this.$forceUpdate()
this.form.startTime = val[0] this.form.startTime = val[0]
this.form.endTime = val[1] this.form.endTime = val[1]

@ -100,13 +100,13 @@
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.status == 5" class="approval_status5"></span> <span v-if="scope.row.status == 5" class="approval_status5"></span>
<span v-if="scope.row.status == 4" class="approval_status3"></span> <span v-if="scope.row.status == 4" class="approval_status3"></span>
<span v-if="scope.row.status == 3" class="approval_status3"></span> <span v-if="scope.row.status == 3" class="approval_status3"></span>
<span v-if="scope.row.status == 2" class="approval_status1"></span> <span v-if="scope.row.status == 2" class="approval_status1"></span>
<span v-if="scope.row.status == 1" class="approval_status1"></span> <span v-if="scope.row.status == 1" class="approval_status1"></span>
<span v-if="scope.row.status == 0" class="approval_status0">稿</span> <span v-if="scope.row.status == 0" class="approval_status0">稿</span>
<span v-if="scope.row.status == 8" class="approval_status8">-</span> <span v-if="scope.row.status == 8" class="approval_status8">-</span>
<span v-if="scope.row.status == 7" class="approval_status9">-</span> <span v-if="scope.row.status == 7" class="approval_status9">-</span>
<span v-if="scope.row.status == 6" class="approval_status9">-</span> <span v-if="scope.row.status == 6" class="approval_status9">-</span>
<span v-if="scope.row.status == 9" class="approval_status9"></span> <span v-if="scope.row.status == 9" class="approval_status9"></span>
</template> </template>
</el-table-column> </el-table-column>
@ -225,7 +225,7 @@ export default {
// //
rules: { rules: {
approvalStatus: [ approvalStatus: [
{ required: true, message: "请选择日期", trigger: "blur" } { required: true, message: "请选择审批状态", trigger: "blur" }
], ],
approvalOpinions: [ approvalOpinions: [
{ required: true, message: "名录维护方式不能为空", trigger: "blur" } { required: true, message: "名录维护方式不能为空", trigger: "blur" }
@ -326,7 +326,7 @@ export default {
data.name = response.originalFilename; data.name = response.originalFilename;
data.url = response.url; data.url = response.url;
this.uploadList.push(data) this.uploadList.push(data)
console.log('this.fileList: ', this.fileList); // console.log('this.fileList: ', this.fileList);
}) })
}, },
deleteUpload(value) { deleteUpload(value) {

File diff suppressed because it is too large Load Diff

@ -196,12 +196,12 @@
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.status == 5" class="approval_status5"></span> <span v-if="scope.row.status == 5" class="approval_status5"></span>
<span v-if="scope.row.status == 4" class="approval_status3"></span> <span v-if="scope.row.status == 4" class="approval_status3"></span>
<span v-if="scope.row.status == 3" class="approval_status3"></span> <span v-if="scope.row.status == 3" class="approval_status3"></span>
<span v-if="scope.row.status == 2" class="approval_status1"></span> <span v-if="scope.row.status == 2" class="approval_status1"></span>
<span v-if="scope.row.status == 1" class="approval_status1"></span> <span v-if="scope.row.status == 1" class="approval_status1"></span>
<span v-if="scope.row.status == 0" class="approval_status0">稿</span> <span v-if="scope.row.status == 0" class="approval_status0">稿</span>
<span v-if="scope.row.status == 8" class="approval_status8">-</span> <span v-if="scope.row.status == 8" class="approval_status8">-</span>
<!-- <span v-if="scope.row.status == 7" class="approval_status9">-</span> --> <span v-if="scope.row.status == 7" class="approval_status9">-</span>
<!-- <span v-if="scope.row.status == 6" class="approval_status9">-</span> --> <!-- <span v-if="scope.row.status == 6" class="approval_status9">-</span> -->
<span v-if="scope.row.status == 9" class="approval_status9"></span> <span v-if="scope.row.status == 9" class="approval_status9"></span>
</template> </template>
@ -226,6 +226,12 @@
@click="handleEdit(scope.row)" @click="handleEdit(scope.row)"
v-if="userType == '01' && (scope.row.status == 0 || scope.row.status == 8)" v-if="userType == '01' && (scope.row.status == 0 || scope.row.status == 8)"
>编辑</el-button> >编辑</el-button>
<el-button
size="mini"
type="text"
@click="handleUp(scope.row)"
v-if="userType == '01'&& (scope.row.status !== 0 || scope.row.status !== 8)"
>上传附件</el-button>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
@ -324,11 +330,14 @@
<el-button type="primary" @click="submitCityForm" class="btn">确定</el-button> <el-button type="primary" @click="submitCityForm" class="btn">确定</el-button>
</div> </div>
</el-dialog> </el-dialog>
<!-- 修改附件 -->
<updata-change ref="updataChange" />
</div> </div>
</template> </template>
<script> <script>
import { listRecords, exportData, templateList, downloadData, uploadFile, putMunicipalBureauReview, exportZip } from "@/api/onlineDeclartion/records" import { listRecords, exportData, templateList, downloadData, uploadFile, putMunicipalBureauReview, exportZip } from "@/api/onlineDeclartion/records"
import updataChange from "./components/index.vue"
import * as XLSX from 'xlsx' import * as XLSX from 'xlsx'
export default { export default {
name: "Records", name: "Records",
@ -387,6 +396,9 @@ export default {
radio:'', radio:'',
}; };
}, },
components:{
updataChange
},
mounted() { mounted() {
this.cancalDebounce(); this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce); window.addEventListener('resize', this.cancalDebounce);
@ -511,7 +523,6 @@ export default {
}, },
/** 查看审核详情操作 */ /** 查看审核详情操作 */
handleDetail(row){ handleDetail(row){
console.log(row);
this.$router.push({name: 'declareDetailContent',query: { this.$router.push({name: 'declareDetailContent',query: {
templateId: row.templateId, templateId: row.templateId,
templateRecordId: row.templateRecordId, templateRecordId: row.templateRecordId,
@ -520,6 +531,10 @@ export default {
enterpriseId: row.enterpriseId enterpriseId: row.enterpriseId
}}) }})
}, },
/** 上传附件 */
handleUp(row){
this.$refs.updataChange.open(row)
},
/** 修改按钮操作 */ /** 修改按钮操作 */
getTemplateList(val) { getTemplateList(val) {
if(val){ if(val){

@ -1845,7 +1845,10 @@ export default {
uploadFile(form).then(response => { uploadFile(form).then(response => {
// this.fileList = [] // this.fileList = []
this.fileList.push(file) this.fileList.push(file)
this.uploadList.push(response.data) let data = {};
data.name = response.originalFilename;
data.url = response.url;
this.uploadList.push(data)
this.form.fileList = this.fileList this.form.fileList = this.fileList
console.log('this.fileList: ', this.fileList); console.log('this.fileList: ', this.fileList);
}) })
@ -1884,7 +1887,10 @@ export default {
uploadFile(form).then(response => { uploadFile(form).then(response => {
// this.fileList = [] // this.fileList = []
this.fileListTwo.push(file) this.fileListTwo.push(file)
this.uploadListTwo.push(response.data) let data = {};
data.name = response.originalFilename;
data.url = response.url;
this.uploadListTwo.push(data)
// this.form.fileListTwo = this.fileListTwo // this.form.fileListTwo = this.fileListTwo
this.$set(this.form, 'fileListTwo', this.fileListTwo) this.$set(this.form, 'fileListTwo', this.fileListTwo)
// console.log('this.fileListTwo: ', this.fileListTwo); // console.log('this.fileListTwo: ', this.fileListTwo);
@ -1900,7 +1906,10 @@ export default {
uploadFile(form).then(response => { uploadFile(form).then(response => {
// this.fileList = [] // this.fileList = []
this.fileListThree.push(file) this.fileListThree.push(file)
this.uploadListThree.push(response.data) let data = {};
data.name = response.originalFilename;
data.url = response.url;
this.uploadListThree.push(data)
// this.form.fileListThree = this.fileListThree // this.form.fileListThree = this.fileListThree
this.$set(this.form, 'fileListThree', this.fileListThree) this.$set(this.form, 'fileListThree', this.fileListThree)
// console.log('this.fileListThree: ', this.fileListThree); // console.log('this.fileListThree: ', this.fileListThree);
@ -1916,7 +1925,10 @@ export default {
uploadFile(form).then(response => { uploadFile(form).then(response => {
// this.fileList = [] // this.fileList = []
this.fileListFour.push(file) this.fileListFour.push(file)
this.uploadListFour.push(response.data) let data = {};
data.name = response.originalFilename;
data.url = response.url;
this.uploadListFour.push(data)
// this.form.fileListFour = this.fileListFour // this.form.fileListFour = this.fileListFour
this.$set(this.form, 'fileListFour', this.fileListFour) this.$set(this.form, 'fileListFour', this.fileListFour)
// console.log('this.fileListFour: ', this.fileListFour); // console.log('this.fileListFour: ', this.fileListFour);
@ -1932,7 +1944,10 @@ export default {
uploadFile(form).then(response => { uploadFile(form).then(response => {
// this.fileList = [] // this.fileList = []
this.fileListFive.push(file) this.fileListFive.push(file)
this.uploadListFive.push(response.data) let data = {};
data.name = response.originalFilename;
data.url = response.url;
this.uploadListFive.push(data)
// this.form.fileListFive = this.fileListFive // this.form.fileListFive = this.fileListFive
this.$set(this.form, 'fileListFive', this.fileListFive) this.$set(this.form, 'fileListFive', this.fileListFive)
// console.log('this.fileListFive: ', this.fileListFive); // console.log('this.fileListFive: ', this.fileListFive);
@ -1948,7 +1963,10 @@ export default {
uploadFile(form).then(response => { uploadFile(form).then(response => {
// this.fileList = [] // this.fileList = []
this.fileListSix.push(file) this.fileListSix.push(file)
this.uploadListSix.push(response.data) let data = {};
data.name = response.originalFilename;
data.url = response.url;
this.uploadListSix.push(data)
// this.form.fileListSix = this.fileListSix // this.form.fileListSix = this.fileListSix
this.$set(this.form, 'fileListSix', this.fileListSix) this.$set(this.form, 'fileListSix', this.fileListSix)
// console.log('this.fileListSix: ', this.fileListSix); // console.log('this.fileListSix: ', this.fileListSix);
@ -1964,7 +1982,10 @@ export default {
uploadFile(form).then(response => { uploadFile(form).then(response => {
// this.fileList = [] // this.fileList = []
this.fileListSeven.push(file) this.fileListSeven.push(file)
this.uploadListSeven.push(response.data) let data = {};
data.name = response.originalFilename;
data.url = response.url;
this.uploadListSeven.push(data)
// this.form.fileListSeven = this.fileListSeven // this.form.fileListSeven = this.fileListSeven
this.$set(this.form, 'fileListSeven', this.fileListSeven) this.$set(this.form, 'fileListSeven', this.fileListSeven)
// console.log('this.fileListSeven: ', this.fileListSeven); // console.log('this.fileListSeven: ', this.fileListSeven);
@ -1980,7 +2001,10 @@ export default {
uploadFile(form).then(response => { uploadFile(form).then(response => {
// this.fileList = [] // this.fileList = []
this.fileListEight.push(file) this.fileListEight.push(file)
this.uploadListEight.push(response.data) let data = {};
data.name = response.originalFilename;
data.url = response.url;
this.uploadListEight.push(data)
// this.form.fileListEight = this.fileListEight // this.form.fileListEight = this.fileListEight
this.$set(this.form, 'fileListEight', this.fileListEight) this.$set(this.form, 'fileListEight', this.fileListEight)
// console.log('this.fileListEight: ', this.fileListEight); // console.log('this.fileListEight: ', this.fileListEight);
@ -1996,7 +2020,10 @@ export default {
uploadFile(form).then(response => { uploadFile(form).then(response => {
// this.fileList = [] // this.fileList = []
this.fileListNine.push(file) this.fileListNine.push(file)
this.uploadListNine.push(response.data) let data = {};
data.name = response.originalFilename;
data.url = response.url;
this.uploadListNine.push(data)
// this.form.fileListNine = this.fileListNine // this.form.fileListNine = this.fileListNine
this.$set(this.form, 'fileListNine', this.fileListNine) this.$set(this.form, 'fileListNine', this.fileListNine)
// console.log('this.fileListNine: ', this.fileListNine); // console.log('this.fileListNine: ', this.fileListNine);

Loading…
Cancel
Save