|
|
@ -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() { |
|
|
|