1.项目结项保存按钮修改为结项填报节点才能修改

This commit is contained in:
zty 2024-09-18 18:18:18 +08:00
parent 7948f4202c
commit 161ea3de25

View File

@ -72,6 +72,7 @@ export default {
},
data() {
return {
executionEdit:'',
tableLoading: true,
recordsData: [],
tableColumnsData: [],
@ -313,7 +314,9 @@ export default {
if (project.ext.endExecutor.includes(getItem('userId'))) {
this.isEdit = true
}
if (this.isEdit) {
if (this.isEdit&& project.ext.taskName=='结项填报') {
this.executionEdit=false//
this.initFormSchema()
this.formBtnData = [
{
title: this.formBtnTitle,
@ -336,7 +339,7 @@ export default {
}
},
{
title: '取消',
title: '返回',
type: 'default',
callback: () => {
this.$router.go(-1)
@ -346,7 +349,7 @@ export default {
} else {
this.formBtnData = [
{
title: '取消',
title: '返回',
type: 'default',
callback: () => {
this.$router.go(-1)
@ -398,6 +401,7 @@ export default {
}
project.conclusionFile = project.ext.conclusionFile
this.formModel = project
if(project.ext.endRecord!=null){
for (let i = 0; i < project.ext.endRecord.ls.length; i++) {
let record = project.ext.endRecord.ls[i].taskItems;
for (let j = 0; j < record.length; j++) {
@ -405,6 +409,7 @@ export default {
}
}
this.recordsData=project.ext.endRecord.ls
}
this.logOperationData = JSON.parse(JSON.stringify(this.formModel))
}
}
@ -588,7 +593,7 @@ export default {
title: '项目完成情况',
model: 'execution',
externalValue: {
disable: true
disabled: this.executionEdit
}
},
{