|
@@ -631,6 +631,13 @@
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ 'loading': {
|
|
|
|
+ handler (newVal) {
|
|
|
|
+ this.$emit('changeLoading', newVal)
|
|
|
|
+ this.$refs.archiveFile.changeLoading(newVal)
|
|
|
|
+ this.$refs.signatureFile.changeLoading(newVal)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
components: {
|
|
components: {
|
|
@@ -835,6 +842,45 @@
|
|
this.doSubmit('save', callback)
|
|
this.doSubmit('save', callback)
|
|
},
|
|
},
|
|
startForm (callback) {
|
|
startForm (callback) {
|
|
|
|
+ this.loading = true
|
|
|
|
+ this.projectReportService.queryById(this.inputForm.id).then(({data}) => {
|
|
|
|
+ if (data.signatureType === '1') {
|
|
|
|
+ this.projectReportService.findBySignatureId(this.inputForm.sid1).then(({data}) => {
|
|
|
|
+ if (data.status !== '0' && data.status !== '1' && data.status !== '3') { // 审核状态不是“未发起”或“暂存”或“撤回”,就弹出提示
|
|
|
|
+ this.loading = false
|
|
|
|
+ this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
|
|
+ throw new Error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
|
|
+ } else {
|
|
|
|
+ this.startFormTrue(callback)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ if (data.signatureType === '2') {
|
|
|
|
+ this.projectReportService.findBySignatureId(this.inputForm.sid2).then(({data}) => {
|
|
|
|
+ if (data.status !== '0' && data.status !== '1' && data.status !== '3') { // 审核状态不是“未发起”或“暂存”或“撤回”,就弹出提示
|
|
|
|
+ this.loading = false
|
|
|
|
+ this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
|
|
+ throw new Error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
|
|
+ } else {
|
|
|
|
+ this.startFormTrue(callback)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ if (data.signatureType === '3') {
|
|
|
|
+ this.projectReportService.findBySignatureId(this.inputForm.sid3).then(({data}) => {
|
|
|
|
+ if (data.status !== '0' && data.status !== '1' && data.status !== '3') { // 审核状态不是“未发起”或“暂存”或“撤回”,就弹出提示
|
|
|
|
+ this.loading = false
|
|
|
|
+ this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
|
|
+ throw new Error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
|
|
+ } else {
|
|
|
|
+ this.startFormTrue(callback)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ startFormTrue (callback) {
|
|
|
|
+ this.loading = true
|
|
console.log('form' + this.inputForm.signatureType)
|
|
console.log('form' + this.inputForm.signatureType)
|
|
let title = `发起流程【会计-报告签章-电子公章】`
|
|
let title = `发起流程【会计-报告签章-电子公章】`
|
|
let describe = `[会计-报告签章-电子公章`
|
|
let describe = `[会计-报告签章-电子公章`
|
|
@@ -880,11 +926,13 @@
|
|
if (this.commonJS.isNotEmpty(list)) {
|
|
if (this.commonJS.isNotEmpty(list)) {
|
|
list.forEach((item, index) => {
|
|
list.forEach((item, index) => {
|
|
if (this.commonJS.isEmpty(item.fileType)) {
|
|
if (this.commonJS.isEmpty(item.fileType)) {
|
|
|
|
+ this.loading = false
|
|
this.$message.error('第' + (index + 1) + '条附件信息没有填写文件类型')
|
|
this.$message.error('第' + (index + 1) + '条附件信息没有填写文件类型')
|
|
this.loading = false
|
|
this.loading = false
|
|
throw new Error('第' + (index + 1) + '条附件信息没有填写文件类型')
|
|
throw new Error('第' + (index + 1) + '条附件信息没有填写文件类型')
|
|
}
|
|
}
|
|
if (this.commonJS.isEmpty(item.sealType)) {
|
|
if (this.commonJS.isEmpty(item.sealType)) {
|
|
|
|
+ this.loading = false
|
|
this.$message.error('第' + (index + 1) + '条附件信息没有填写盖章类型')
|
|
this.$message.error('第' + (index + 1) + '条附件信息没有填写盖章类型')
|
|
this.loading = false
|
|
this.loading = false
|
|
throw new Error('第' + (index + 1) + '条附件信息没有填写盖章类型')
|
|
throw new Error('第' + (index + 1) + '条附件信息没有填写盖章类型')
|
|
@@ -909,43 +957,52 @@
|
|
this.loading = false
|
|
this.loading = false
|
|
throw new Error('流程发起失败')
|
|
throw new Error('流程发起失败')
|
|
})
|
|
})
|
|
|
|
+ }).catch(() => {
|
|
|
|
+ this.loading = false
|
|
|
|
+ throw new Error('流程发起失败')
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
|
|
+ } else {
|
|
|
|
+ this.loading = false
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
reapplyForm (callback) {
|
|
reapplyForm (callback) {
|
|
|
|
+ this.loading = true
|
|
console.log(this.inputForm)
|
|
console.log(this.inputForm)
|
|
this.projectReportService.queryById(this.inputForm.id).then(({data}) => {
|
|
this.projectReportService.queryById(this.inputForm.id).then(({data}) => {
|
|
console.log('info' + data)
|
|
console.log('info' + data)
|
|
if (data.signatureType === '1') {
|
|
if (data.signatureType === '1') {
|
|
this.projectReportService.findBySignatureId(this.inputForm.sid1).then(({data}) => {
|
|
this.projectReportService.findBySignatureId(this.inputForm.sid1).then(({data}) => {
|
|
if (data.status !== '4') { // 审核状态不是“驳回”,就弹出提示
|
|
if (data.status !== '4') { // 审核状态不是“驳回”,就弹出提示
|
|
|
|
+ this.loading = false
|
|
this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
throw new Error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
throw new Error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
} else {
|
|
} else {
|
|
- this.startForm(callback)
|
|
|
|
|
|
+ this.startFormTrue(callback)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
if (data.signatureType === '2') {
|
|
if (data.signatureType === '2') {
|
|
this.projectReportService.findBySignatureId(this.inputForm.sid2).then(({data}) => {
|
|
this.projectReportService.findBySignatureId(this.inputForm.sid2).then(({data}) => {
|
|
if (data.status !== '4') { // 审核状态不是“驳回”,就弹出提示
|
|
if (data.status !== '4') { // 审核状态不是“驳回”,就弹出提示
|
|
|
|
+ this.loading = false
|
|
this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
throw new Error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
throw new Error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
} else {
|
|
} else {
|
|
- this.startForm(callback)
|
|
|
|
|
|
+ this.startFormTrue(callback)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
if (data.signatureType === '3') {
|
|
if (data.signatureType === '3') {
|
|
this.projectReportService.findBySignatureId(this.inputForm.sid3).then(({data}) => {
|
|
this.projectReportService.findBySignatureId(this.inputForm.sid3).then(({data}) => {
|
|
if (data.status !== '4') { // 审核状态不是“驳回”,就弹出提示
|
|
if (data.status !== '4') { // 审核状态不是“驳回”,就弹出提示
|
|
|
|
+ this.loading = false
|
|
this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
throw new Error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
throw new Error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
} else {
|
|
} else {
|
|
- this.startForm(callback)
|
|
|
|
|
|
+ this.startFormTrue(callback)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -986,11 +1043,14 @@
|
|
this.projectReportService.saveReportArchive(this.inputForm.id).then(() => {
|
|
this.projectReportService.saveReportArchive(this.inputForm.id).then(() => {
|
|
let table = 'cw_project_report_signature'
|
|
let table = 'cw_project_report_signature'
|
|
callback(table, this.inputForm.sid1, this.inputForm)
|
|
callback(table, this.inputForm.sid1, this.inputForm)
|
|
|
|
+ this.loading = false
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
|
|
+ } else {
|
|
|
|
+ this.loading = false
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -1031,12 +1091,15 @@
|
|
this.projectReportService.saveReportArchive(this.inputForm.id).then(() => {
|
|
this.projectReportService.saveReportArchive(this.inputForm.id).then(() => {
|
|
let table = 'cw_project_report_signature'
|
|
let table = 'cw_project_report_signature'
|
|
callback(table, this.inputForm.sid3, this.inputForm)
|
|
callback(table, this.inputForm.sid3, this.inputForm)
|
|
|
|
+ this.loading = false
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
|
|
+ } else {
|
|
|
|
+ this.loading = false
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -1078,17 +1141,20 @@
|
|
this.inputForm.assignee = this.inputForm.signatureAnnotator2
|
|
this.inputForm.assignee = this.inputForm.signatureAnnotator2
|
|
let table = 'cw_project_report_signature'
|
|
let table = 'cw_project_report_signature'
|
|
callback(table, this.inputForm.sid2, this.inputForm)
|
|
callback(table, this.inputForm.sid2, this.inputForm)
|
|
|
|
+ this.loading = false
|
|
}
|
|
}
|
|
if (data.signatureType === '签字注师2审核') {
|
|
if (data.signatureType === '签字注师2审核') {
|
|
let param = {status: '7', id: this.inputForm.sid2}
|
|
let param = {status: '7', id: this.inputForm.sid2}
|
|
this.projectReportService.updateSignatureStatusById(param)
|
|
this.projectReportService.updateSignatureStatusById(param)
|
|
callback()
|
|
callback()
|
|
|
|
+ this.loading = false
|
|
}
|
|
}
|
|
if (data.signatureType === '签章管理人审核') {
|
|
if (data.signatureType === '签章管理人审核') {
|
|
let param = {status: '5', id: this.inputForm.sid2}
|
|
let param = {status: '5', id: this.inputForm.sid2}
|
|
this.projectReportService.updateSignatureStatusById(param).then(() => {
|
|
this.projectReportService.updateSignatureStatusById(param).then(() => {
|
|
this.projectReportService.saveReportArchive(this.inputForm.id).then(() => {
|
|
this.projectReportService.saveReportArchive(this.inputForm.id).then(() => {
|
|
callback()
|
|
callback()
|
|
|
|
+ this.loading = false
|
|
})
|
|
})
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -1096,6 +1162,8 @@
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
|
|
+ } else {
|
|
|
|
+ this.loading = false
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -1134,6 +1202,7 @@
|
|
if (this.inputForm.signatureType === '1') {
|
|
if (this.inputForm.signatureType === '1') {
|
|
this.projectReportService.findBySignatureId(this.inputForm.sid1).then(({data}) => {
|
|
this.projectReportService.findBySignatureId(this.inputForm.sid1).then(({data}) => {
|
|
if (data.status !== this.inputForm.status1) { // status的值不等于“审核中”就弹出提示
|
|
if (data.status !== this.inputForm.status1) { // status的值不等于“审核中”就弹出提示
|
|
|
|
+ this.loading = false
|
|
this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
throw new Error()
|
|
throw new Error()
|
|
} else {
|
|
} else {
|
|
@@ -1141,6 +1210,7 @@
|
|
// 驳回
|
|
// 驳回
|
|
let param = {status: '4', id: data.id}
|
|
let param = {status: '4', id: data.id}
|
|
this.projectReportService.updateSignatureStatusById(param).then(() => {
|
|
this.projectReportService.updateSignatureStatusById(param).then(() => {
|
|
|
|
+ this.loading = false
|
|
callback()
|
|
callback()
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -1149,6 +1219,7 @@
|
|
let param = {status: '3', id: data.id}
|
|
let param = {status: '3', id: data.id}
|
|
this.projectReportService.updateSignatureStatusById(param).then(() => {
|
|
this.projectReportService.updateSignatureStatusById(param).then(() => {
|
|
callback()
|
|
callback()
|
|
|
|
+ this.loading = false
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -1157,6 +1228,7 @@
|
|
if (this.inputForm.signatureType === '3') {
|
|
if (this.inputForm.signatureType === '3') {
|
|
this.projectReportService.findBySignatureId(this.inputForm.sid3).then(({data}) => {
|
|
this.projectReportService.findBySignatureId(this.inputForm.sid3).then(({data}) => {
|
|
if (data.status !== this.inputForm.status3) { // status的值不等于“审核中”就弹出提示
|
|
if (data.status !== this.inputForm.status3) { // status的值不等于“审核中”就弹出提示
|
|
|
|
+ this.loading = false
|
|
this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
throw new Error()
|
|
throw new Error()
|
|
} else {
|
|
} else {
|
|
@@ -1164,6 +1236,7 @@
|
|
// 驳回
|
|
// 驳回
|
|
let param = {status: '4', id: data.id}
|
|
let param = {status: '4', id: data.id}
|
|
this.projectReportService.updateSignatureStatusById(param).then(() => {
|
|
this.projectReportService.updateSignatureStatusById(param).then(() => {
|
|
|
|
+ this.loading = false
|
|
callback()
|
|
callback()
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -1171,6 +1244,7 @@
|
|
// 撤回
|
|
// 撤回
|
|
let param = {status: '3', id: data.id}
|
|
let param = {status: '3', id: data.id}
|
|
this.projectReportService.updateSignatureStatusById(param).then(() => {
|
|
this.projectReportService.updateSignatureStatusById(param).then(() => {
|
|
|
|
+ this.loading = false
|
|
callback()
|
|
callback()
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -1180,6 +1254,7 @@
|
|
if (this.inputForm.signatureType === '2') {
|
|
if (this.inputForm.signatureType === '2') {
|
|
this.projectReportService.findBySignatureId(this.inputForm.sid2).then(({data}) => {
|
|
this.projectReportService.findBySignatureId(this.inputForm.sid2).then(({data}) => {
|
|
if (data.status !== this.inputForm.status2) { // status的值不等于“审核中”就弹出提示
|
|
if (data.status !== this.inputForm.status2) { // status的值不等于“审核中”就弹出提示
|
|
|
|
+ this.loading = false
|
|
this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
throw new Error()
|
|
throw new Error()
|
|
} else {
|
|
} else {
|
|
@@ -1187,6 +1262,7 @@
|
|
// 驳回
|
|
// 驳回
|
|
let param = {status: '4', id: data.id}
|
|
let param = {status: '4', id: data.id}
|
|
this.projectReportService.updateSignatureStatusById(param).then(() => {
|
|
this.projectReportService.updateSignatureStatusById(param).then(() => {
|
|
|
|
+ this.loading = false
|
|
callback()
|
|
callback()
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -1194,6 +1270,7 @@
|
|
// 撤回
|
|
// 撤回
|
|
let param = {status: '3', id: data.id}
|
|
let param = {status: '3', id: data.id}
|
|
this.projectReportService.updateSignatureStatusById(param).then(() => {
|
|
this.projectReportService.updateSignatureStatusById(param).then(() => {
|
|
|
|
+ this.loading = false
|
|
callback()
|
|
callback()
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -1204,6 +1281,7 @@
|
|
if (this.inputForm.signatureType === '1') {
|
|
if (this.inputForm.signatureType === '1') {
|
|
this.projectReportService.findBySignatureId(this.inputForm.sid1).then(({data}) => {
|
|
this.projectReportService.findBySignatureId(this.inputForm.sid1).then(({data}) => {
|
|
if (data.status !== '4') { // status的值不等于“驳回”就弹出提示
|
|
if (data.status !== '4') { // status的值不等于“驳回”就弹出提示
|
|
|
|
+ this.loading = false
|
|
this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
throw new Error()
|
|
throw new Error()
|
|
} else {
|
|
} else {
|
|
@@ -1211,6 +1289,7 @@
|
|
let param = {status: '0', id: data.id}
|
|
let param = {status: '0', id: data.id}
|
|
this.projectReportService.updateSignatureStatusById(param).then(() => {
|
|
this.projectReportService.updateSignatureStatusById(param).then(() => {
|
|
callback()
|
|
callback()
|
|
|
|
+ this.loading = false
|
|
})
|
|
})
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -1218,6 +1297,7 @@
|
|
if (this.inputForm.signatureType === '3') {
|
|
if (this.inputForm.signatureType === '3') {
|
|
this.projectReportService.findBySignatureId(this.inputForm.sid3).then(({data}) => {
|
|
this.projectReportService.findBySignatureId(this.inputForm.sid3).then(({data}) => {
|
|
if (data.status !== '4') { // status的值不等于“驳回”就弹出提示
|
|
if (data.status !== '4') { // status的值不等于“驳回”就弹出提示
|
|
|
|
+ this.loading = false
|
|
this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
throw new Error()
|
|
throw new Error()
|
|
} else {
|
|
} else {
|
|
@@ -1225,6 +1305,7 @@
|
|
let param = {status: '0', id: data.id}
|
|
let param = {status: '0', id: data.id}
|
|
this.projectReportService.updateSignatureStatusById(param).then(() => {
|
|
this.projectReportService.updateSignatureStatusById(param).then(() => {
|
|
callback()
|
|
callback()
|
|
|
|
+ this.loading = false
|
|
})
|
|
})
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -1232,6 +1313,7 @@
|
|
if (this.inputForm.signatureType === '2') {
|
|
if (this.inputForm.signatureType === '2') {
|
|
this.projectReportService.findBySignatureId(this.inputForm.sid2).then(({data}) => {
|
|
this.projectReportService.findBySignatureId(this.inputForm.sid2).then(({data}) => {
|
|
if (data.status !== '4') { // status的值不等于“驳回”就弹出提示
|
|
if (data.status !== '4') { // status的值不等于“驳回”就弹出提示
|
|
|
|
+ this.loading = false
|
|
this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
throw new Error()
|
|
throw new Error()
|
|
} else {
|
|
} else {
|
|
@@ -1239,6 +1321,7 @@
|
|
let param = {status: '0', id: data.id}
|
|
let param = {status: '0', id: data.id}
|
|
this.projectReportService.updateSignatureStatusById(param).then(() => {
|
|
this.projectReportService.updateSignatureStatusById(param).then(() => {
|
|
callback()
|
|
callback()
|
|
|
|
+ this.loading = false
|
|
})
|
|
})
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -1247,6 +1330,8 @@
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
|
|
+ } else {
|
|
|
|
+ this.loading = false
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|