Commit a166c001 by Joey

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

parent ab85e119
......@@ -89,8 +89,9 @@ export default {
fn()
} else {
bill.setControlsSate(param["_control_name_"], "enable", true)
if (data.message.includes('还款金额不能大于未还金额')) {
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("操作异常请联系管理员");
......
......@@ -40,7 +40,13 @@ export default {
this.approval(bill, param);
} else {
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));
} 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