Commit a166c001 by Joey

perf(@gms/gms-plugin-billexpand): 工会同意驳回报错信息

parent ab85e119
...@@ -89,8 +89,9 @@ export default { ...@@ -89,8 +89,9 @@ export default {
fn() fn()
} else { } else {
bill.setControlsSate(param["_control_name_"], "enable", true) bill.setControlsSate(param["_control_name_"], "enable", true)
if (data.message.includes('还款金额不能大于未还金额')) { if (data.message) {
GMS.$hideContainer.$message.error("还款金额不能大于未还金额!"); const errMsg = data.message.split('nested exception is')
GMS.$hideContainer.$message.error(errMsg && errMsg[1] || '操作异常请联系管理员');
} }
else { else {
GMS.$hideContainer.$message.error("操作异常请联系管理员"); GMS.$hideContainer.$message.error("操作异常请联系管理员");
......
...@@ -40,7 +40,13 @@ export default { ...@@ -40,7 +40,13 @@ export default {
this.approval(bill, param); this.approval(bill, param);
} else { } else {
bill.setControlsSate(param["_control_name_"], "enable", true) bill.setControlsSate(param["_control_name_"], "enable", true)
GMS.$hideContainer.$message.error("操作异常请联系管理员"); if (data.message) {
const errMsg = data.message.split('nested exception is')
GMS.$hideContainer.$message.error(errMsg && errMsg[1] || '操作异常请联系管理员');
}
else {
GMS.$hideContainer.$message.error("操作异常请联系管理员");
}
} }
}.bind(this)); }.bind(this));
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment