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