Browse Source

完善生成还款计划表--点击生成时增加二次确认弹框提示

master
yunuo970428 9 months ago
parent
commit
9a2a3aef0a
  1. 37
      anrui-riskcenter-ui/src/views/repaymentschedule/repaymentscheduleAdd.vue

37
anrui-riskcenter-ui/src/views/repaymentschedule/repaymentscheduleAdd.vue

@ -365,22 +365,29 @@ export default {
}
},
saveOrUpdate() {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
this.submitdisabled = true
this.formobj.userSid = window.sessionStorage.getItem('userSid')
req.loanCreateSchedulePdf(this.formobj).then((res) => {
if (res.success) {
this.$message({ showClose: true, type: 'success', message: '生成成功' })
this.handleReturn('true')
}
else {
const tip = '请再次确认填写信息是否正确,确定后数据会传送到财务系统中。'
this.$confirm(tip, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
this.submitdisabled = true
this.formobj.userSid = window.sessionStorage.getItem('userSid')
req.loanCreateSchedulePdf(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
}
}).catch(() => {
this.submitdisabled = false
})
}
})
}
})
})
},
lookJR() {

Loading…
Cancel
Save