Browse Source

完善贷前信用审核

master
yunuo970428 2 years ago
parent
commit
1237452293
  1. 78
      anrui-riskcenter-ui/src/views/financialclerkbycreditvetting/financialclerkbycreditvettingAdd.vue

78
anrui-riskcenter-ui/src/views/financialclerkbycreditvetting/financialclerkbycreditvettingAdd.vue

@ -323,65 +323,37 @@ export default {
saveOrUpdate() {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
if (this.formobj.zffkjg === '' || this.formobj.gsfkjg === '') {
this.$confirm('仅填写了部分审核结果,是否继续提交', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.getUrl()
this.submitdisabled = true
req.saveOrUpdate(this.formobj).then((res) => {
if (res.success) {
this.$message({ showClose: true, type: 'success', message: '保存成功' })
this.handleReturn('true')
} else {
this.submitdisabled = false
}
}).catch(() => {
this.submitdisabled = false
})
})
} else {
this.getUrl()
this.submitdisabled = true
req.saveOrUpdate(this.formobj).then((res) => {
if (res.success) {
this.$message({ showClose: true, type: 'success', message: '保存成功' })
this.handleReturn('true')
} else {
this.submitdisabled = false
}
}).catch(() => {
this.getUrl()
this.submitdisabled = true
req.saveOrUpdate(this.formobj).then((res) => {
if (res.success) {
this.$message({ showClose: true, type: 'success', message: '保存成功' })
this.handleReturn('true')
} else {
this.submitdisabled = false
})
}
}
}).catch(() => {
this.submitdisabled = false
})
}
})
},
handleConfirm() {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
if (this.formobj.zffkjg === '' || this.formobj.gsfkjg === '') {
this.$confirm('仅填写了部分审核结果,是否继续提交', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.getUrl()
this.submitdisabled = true
req.finStaffConfirm(this.formobj).then((res) => {
if (res.success) {
this.$message({ showClose: true, type: 'success', message: '操作成功' })
this.handleReturn('true')
} else {
this.submitdisabled = false
}
}).catch(() => {
this.submitdisabled = false
})
})
} else {
if (this.formobj.gsfkjg === '') {
this.$message({ showClose: true, type: 'error', message: '公司风控审核结果不能为空' })
return
}
if (this.formobj.zffkjg === '') {
this.$message({ showClose: true, type: 'error', message: '资方风控审核结果不能为空' })
return
}
this.$confirm('请确认是否继续提交', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.getUrl()
this.submitdisabled = true
req.finStaffConfirm(this.formobj).then((res) => {
@ -394,7 +366,7 @@ export default {
}).catch(() => {
this.submitdisabled = false
})
}
})
}
})
},

Loading…
Cancel
Save