1.修复列入经营异常无法结束流程问题
This commit is contained in:
parent
39a439f32a
commit
1c09a6cf5a
|
|
@ -939,9 +939,26 @@ 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
|
||||
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) {
|
||||
|
|
@ -1058,7 +1075,6 @@ export default {
|
|||
})
|
||||
}).catch(() => {})
|
||||
}
|
||||
})
|
||||
},
|
||||
uploadCallback(res, file) {
|
||||
if (res.code === 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue