1.修复列入经营异常无法结束流程问题

This commit is contained in:
lwd 2026-01-05 21:11:03 +08:00
parent 39a439f32a
commit 1c09a6cf5a
1 changed files with 128 additions and 112 deletions

View File

@ -939,126 +939,142 @@ export default {
if (this.$util.isEmpty(this.form.caseSource)) {
return this.$message.warning('请选择案件来源')
}
console.log(this.form.specause)
// ===== =====
if (this.form.endApply === '5') { //
//
if (this.$util.isEmpty(this.form.endReason)) {
return this.$message.warning('请输入结束原因')
}
//
this.executeSubmitLogic()
return //
}
// /退/
this.$refs.form.validate(valid => {
if (!valid) return
if (this.showRadio) { // 线
validateBiz({ ids: this.bizList[0].toIncludeId, validType: 'CLUE', entertype: this.bizType, checkInBiz: 'false' }).then(res => {
if (res.code === 0) {
let str = ''
let type = 'info'
if (res.data.length > 0) {
for (const item of res.data) {
str += item.entname + item.reason + ''
}
if (this.form.endApply === '5') {
str += '是否结束流程?'
}else{
str += '是否继续提交?'
}
type = 'warning'
this.executeSubmitLogic()
})
},
// ===== =====
executeSubmitLogic() {
if (this.showRadio) { // 线
validateBiz({ ids: this.bizList[0].toIncludeId, validType: 'CLUE', entertype: this.bizType, checkInBiz: 'false' }).then(res => {
if (res.code === 0) {
let str = ''
let type = 'info'
if (res.data.length > 0) {
for (const item of res.data) {
str += item.entname + item.reason + ''
}
if (this.form.endApply === '5') {
str += '是否结束流程?'
} else {
if (this.form.endApply === '5') {
str = '是否结束流程?'
}else{
str = '是否继续提交?'
str += '是否继续提交?'
}
type = 'warning'
} else {
if (this.form.endApply === '5') {
str = '是否结束流程?'
} else {
str = '是否继续提交?'
}
}
this.$confirm(str, '提示', { type: type }).then(() => {
this.submitLoading = true
this.form.bizseq = this.bizseq
this.form.workflowid = this.workflowId
this.form.opiniontype = this.bizType === 'company' ? '1' : '0'
this.form.handler = this.user.username
this.form.handlerid = this.user.primaryKey
this.form.opinioncontent = this.form.opinion
this.form.spereasons = this.spereasons
this.form.remark = this.remark
this.form.decisionContent = this.decisionContent
this.form.nextPerformerids = this.form.reviewerId
this.form.caseSource = this.caseSource //
for (const i in this.reviewer) {
if (this.reviewer[i].primaryKey === this.form.reviewerId) {
this.form.nextPerformerNames = this.reviewer[i].name
}
}
this.$confirm(str, '提示', { type: type }).then(() => {
this.submitLoading = true
this.form.bizseq = this.bizseq
this.form.workflowid = this.workflowId
this.form.opiniontype = this.bizType === 'company' ? '1' : '0'
this.form.handler = this.user.username
this.form.handlerid = this.user.primaryKey
this.form.opinioncontent = this.form.opinion
this.form.spereasons = this.spereasons
this.form.remark = this.remark
this.form.decisionContent = this.decisionContent
this.form.nextPerformerids = this.form.reviewerId
this.form.caseSource = this.caseSource //
for (const i in this.reviewer) {
if (this.reviewer[i].primaryKey === this.form.reviewerId) {
this.form.nextPerformerNames = this.reviewer[i].name
}
this.form.nextNodeID = 'handleExptlist'
if (this.form.endApply === '5') {
this.form.nextNodeID = 'overFinish'
this.form.opinioncontent = this.form.endReason
}
nextAbnormaInclusionProcess({
tasklistid: this.tasklistid,
bizseq: this.bizseq,
nextNodeID: this.form.nextNodeID,
opinion: {
opiniontype: this.form.opiniontype,
handler: this.user.username,
handlerid: this.user.primaryKey,
handledate: this.form.handledate,
opinioncontent: this.form.opinioncontent
},
nextPerformerIds: [this.form.nextPerformerids],
nextPerformerNames: [this.form.nextPerformerNames],
tsBizSpeListModel: this.form
}).then(res => {
this.submitLoading = false
if (res.code === 0) {
this.$message.success('提交成功')
this.$router.back()
}
this.form.nextNodeID = 'handleExptlist'
if (this.form.endApply === '5') {
this.form.nextNodeID = 'overFinish'
this.form.opinioncontent = this.form.endReason
}
nextAbnormaInclusionProcess({
tasklistid: this.tasklistid,
bizseq: this.bizseq,
nextNodeID: this.form.nextNodeID,
opinion: {
opiniontype: this.form.opiniontype,
handler: this.user.username,
handlerid: this.user.primaryKey,
handledate: this.form.handledate,
opinioncontent: this.form.opinioncontent
},
nextPerformerIds: [this.form.nextPerformerids],
nextPerformerNames: [this.form.nextPerformerNames],
tsBizSpeListModel: this.form
}).then(res => {
this.submitLoading = false
if (res.code === 0) {
this.$message.success('提交成功')
this.$router.back()
}
})
}).catch(() => {})
})
}).catch(() => {})
}
})
} else {
this.$confirm('是否确认提交', '提示').then(() => {
this.submitLoading = true
this.form.bizseq = this.bizseq
this.form.workflowid = this.workflowId
this.form.opiniontype = this.bizType === 'company' ? '1' : '0'
this.form.handler = this.user.username
this.form.handlerid = this.user.primaryKey
this.form.opinioncontent = this.form.opinion
this.form.spereasons = this.spereasons
this.form.remark = this.remark
this.form.decisionContent = this.decisionContent
this.form.nextPerformerids = this.form.reviewerId
for (const i in this.reviewer) {
if (this.reviewer[i].primaryKey === this.form.reviewerId) {
this.form.nextPerformerNames = this.reviewer[i].name
}
}
this.form.nextNodeID = 'handleExptlist'
if (this.form.endApply === '5') {
this.form.nextNodeID = 'overExptlist'
this.form.opinioncontent = this.form.endReason
}
nextAbnormaInclusionProcess({
tasklistid: this.tasklistid,
bizseq: this.bizseq,
nextNodeID: this.form.nextNodeID,
opinion: {
opiniontype: this.form.opiniontype,
handler: this.user.username,
handlerid: this.user.primaryKey,
handledate: this.form.handledate,
opinioncontent: this.form.opinioncontent
},
nextPerformerIds: [this.form.nextPerformerids],
nextPerformerNames: [this.form.nextPerformerNames],
tsBizSpeListModel: this.form
}).then(res => {
this.submitLoading = false
if (res.code === 0) {
this.$message.success('提交成功')
// this.$router.back()
this.$router.push('/todo/list')
}
})
} else {
this.$confirm('是否确认提交', '提示').then(() => {
this.submitLoading = true
this.form.bizseq = this.bizseq
this.form.workflowid = this.workflowId
this.form.opiniontype = this.bizType === 'company' ? '1' : '0'
this.form.handler = this.user.username
this.form.handlerid = this.user.primaryKey
this.form.opinioncontent = this.form.opinion
this.form.spereasons = this.spereasons
this.form.remark = this.remark
this.form.decisionContent = this.decisionContent
this.form.nextPerformerids = this.form.reviewerId
for (const i in this.reviewer) {
if (this.reviewer[i].primaryKey === this.form.reviewerId) {
this.form.nextPerformerNames = this.reviewer[i].name
}
}
this.form.nextNodeID = 'handleExptlist'
if (this.form.endApply === '5') {
this.form.nextNodeID = 'overExptlist'
this.form.opinioncontent = this.form.endReason
}
nextAbnormaInclusionProcess({
tasklistid: this.tasklistid,
bizseq: this.bizseq,
nextNodeID: this.form.nextNodeID,
opinion: {
opiniontype: this.form.opiniontype,
handler: this.user.username,
handlerid: this.user.primaryKey,
handledate: this.form.handledate,
opinioncontent: this.form.opinioncontent
},
nextPerformerIds: [this.form.nextPerformerids],
nextPerformerNames: [this.form.nextPerformerNames],
tsBizSpeListModel: this.form
}).then(res => {
this.submitLoading = false
if (res.code === 0) {
this.$message.success('提交成功')
// this.$router.back()
this.$router.push('/todo/list')
}
})
}).catch(() => {})
}
})
}).catch(() => {})
}
},
uploadCallback(res, file) {
if (res.code === 0) {