|
@@ -485,20 +485,16 @@
|
|
|
await this.programProjectListInfoService.queryById(row.id).then(({data}) => {
|
|
|
if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
|
|
|
this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
|
- this.err = true
|
|
|
+ this.refreshList()
|
|
|
+ } else {
|
|
|
+ this.processService.revokeProcIns(row.procInsId).then(({data}) => {
|
|
|
+ let form = {status: '3', id: row.id}
|
|
|
+ this.programProjectListInfoService.updateStatusById(form)
|
|
|
+ this.$message.success(data)
|
|
|
+ this.refreshList()
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
- if (this.err === true) {
|
|
|
- this.err = ''
|
|
|
- this.refreshList()
|
|
|
- } else {
|
|
|
- this.processService.revokeProcIns(row.procInsId).then(({data}) => {
|
|
|
- let form = {status: '3', id: row.id}
|
|
|
- this.programProjectListInfoService.updateStatusById(form)
|
|
|
- this.$message.success(data)
|
|
|
- this.refreshList()
|
|
|
- })
|
|
|
- }
|
|
|
})
|
|
|
},
|
|
|
// 发起一级校审
|
|
@@ -564,20 +560,16 @@
|
|
|
await this.programProjectListInfoService.findByIdAudit(row.auditId1).then(({data}) => {
|
|
|
if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
|
|
|
this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
|
- this.err = true
|
|
|
+ this.refreshList()
|
|
|
+ } else {
|
|
|
+ this.processService.revokeProcIns(row.procInsId1).then(({data}) => {
|
|
|
+ let form = {status: '3', id: row.auditId1}
|
|
|
+ this.programProjectListInfoService.updateStatusByAuditId(form)
|
|
|
+ this.$message.success(data)
|
|
|
+ this.refreshList()
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
- if (this.err === true) {
|
|
|
- this.err = ''
|
|
|
- this.refreshList()
|
|
|
- } else {
|
|
|
- this.processService.revokeProcIns(row.procInsId1).then(({data}) => {
|
|
|
- let form = {status: '3', id: row.auditId1}
|
|
|
- this.programProjectListInfoService.updateStatusByAuditId(form)
|
|
|
- this.$message.success(data)
|
|
|
- this.refreshList()
|
|
|
- })
|
|
|
- }
|
|
|
})
|
|
|
},
|
|
|
// 发起二级校审
|
|
@@ -643,20 +635,16 @@
|
|
|
await this.programProjectListInfoService.findByIdAudit(row.auditId2).then(({data}) => {
|
|
|
if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
|
|
|
this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
|
- this.err = true
|
|
|
+ this.refreshList()
|
|
|
+ } else {
|
|
|
+ this.processService.revokeProcIns(row.procInsId2).then(({data}) => {
|
|
|
+ let form = {status: '3', id: row.auditId2}
|
|
|
+ this.programProjectListInfoService.updateStatusByAuditId(form)
|
|
|
+ this.$message.success(data)
|
|
|
+ this.refreshList()
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
- if (this.err === true) {
|
|
|
- this.err = ''
|
|
|
- this.refreshList()
|
|
|
- } else {
|
|
|
- this.processService.revokeProcIns(row.procInsId2).then(({data}) => {
|
|
|
- let form = {status: '3', id: row.auditId2}
|
|
|
- this.programProjectListInfoService.updateStatusByAuditId(form)
|
|
|
- this.$message.success(data)
|
|
|
- this.refreshList()
|
|
|
- })
|
|
|
- }
|
|
|
})
|
|
|
},
|
|
|
// 发起三级校审
|
|
@@ -722,20 +710,16 @@
|
|
|
await this.programProjectListInfoService.findByIdAudit(row.auditId3).then(({data}) => {
|
|
|
if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
|
|
|
this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
|
- this.err = true
|
|
|
+ this.refreshList()
|
|
|
+ } else {
|
|
|
+ this.processService.revokeProcIns(row.procInsId3).then(({data}) => {
|
|
|
+ let form = {status: '3', id: row.auditId3}
|
|
|
+ this.programProjectListInfoService.updateStatusByAuditId(form)
|
|
|
+ this.$message.success(data)
|
|
|
+ this.refreshList()
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
- if (this.err === true) {
|
|
|
- this.err = ''
|
|
|
- this.refreshList()
|
|
|
- } else {
|
|
|
- this.processService.revokeProcIns(row.procInsId3).then(({data}) => {
|
|
|
- let form = {status: '3', id: row.auditId3}
|
|
|
- this.programProjectListInfoService.updateStatusByAuditId(form)
|
|
|
- this.$message.success(data)
|
|
|
- this.refreshList()
|
|
|
- })
|
|
|
- }
|
|
|
})
|
|
|
},
|
|
|
// 发起项目登记归档
|
|
@@ -801,20 +785,16 @@
|
|
|
await this.programProjectListInfoService.findByIdArchive(row.archiveId).then(({data}) => {
|
|
|
if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
|
|
|
this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
|
- this.err = true
|
|
|
+ this.refreshList()
|
|
|
+ } else {
|
|
|
+ this.processService.revokeProcIns(row.procInsIdArchive).then(({data}) => {
|
|
|
+ let form = {status: '3', id: row.archiveId}
|
|
|
+ this.programProjectListInfoService.updateStatusByArchiveId(form)
|
|
|
+ this.$message.success(data)
|
|
|
+ this.refreshList()
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
- if (this.err === true) {
|
|
|
- this.err = ''
|
|
|
- this.refreshList()
|
|
|
- } else {
|
|
|
- this.processService.revokeProcIns(row.procInsIdArchive).then(({data}) => {
|
|
|
- let form = {status: '3', id: row.archiveId}
|
|
|
- this.programProjectListInfoService.updateStatusByArchiveId(form)
|
|
|
- this.$message.success(data)
|
|
|
- this.refreshList()
|
|
|
- })
|
|
|
- }
|
|
|
})
|
|
|
},
|
|
|
// 下载一级校审
|
|
@@ -930,13 +910,19 @@
|
|
|
})
|
|
|
},
|
|
|
saveReportNo (id) {
|
|
|
- this.loading = true
|
|
|
- this.programProjectListInfoService.saveReportNo(id).then((data) => {
|
|
|
- this.$message.success(data.data)
|
|
|
- this.refreshList()
|
|
|
- this.loading = false
|
|
|
- }).catch((e) => {
|
|
|
- this.loading = false
|
|
|
+ this.$confirm(`确定生成项目报告号吗?`, '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ this.loading = true
|
|
|
+ this.programProjectListInfoService.saveReportNo(id).then((data) => {
|
|
|
+ this.$message.success(data.data)
|
|
|
+ this.refreshList()
|
|
|
+ this.loading = false
|
|
|
+ }).catch((e) => {
|
|
|
+ this.loading = false
|
|
|
+ })
|
|
|
})
|
|
|
},
|
|
|
// 校对
|
|
@@ -1010,20 +996,16 @@
|
|
|
await this.proofreadIssuedService.findById(row.id).then(({data}) => {
|
|
|
if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
|
|
|
this.$message.error('数据已发生改变或不存在,请刷新数据')
|
|
|
- this.err = true
|
|
|
+ this.refreshList()
|
|
|
+ } else {
|
|
|
+ this.processService.revokeProcIns(row.procInsId4).then(({data}) => {
|
|
|
+ let form = {status: '3', id: row.id}
|
|
|
+ this.proofreadIssuedService.updateStatus(form)
|
|
|
+ this.$message.success(data)
|
|
|
+ this.refreshList()
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
- if (this.err === true) {
|
|
|
- this.err = ''
|
|
|
- this.refreshList()
|
|
|
- } else {
|
|
|
- this.processService.revokeProcIns(row.procInsId4).then(({data}) => {
|
|
|
- let form = {status: '3', id: row.id}
|
|
|
- this.proofreadIssuedService.updateStatus(form)
|
|
|
- this.$message.success(data)
|
|
|
- this.refreshList()
|
|
|
- })
|
|
|
- }
|
|
|
})
|
|
|
}
|
|
|
}
|