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