Commit f6d68162 by Joey

fix(@gms/gms-plugin-billexpand): 增加没有找到选择审批人时的提示

parent 6ebac789
...@@ -13,11 +13,15 @@ export default { ...@@ -13,11 +13,15 @@ export default {
} }
else if (res.data.code != 200) { else if (res.data.code != 200) {
// this.executeApproval(bill, param) // this.executeApproval(bill, param)
GMS.$hideContainer.$Message.error(res.data.msg || '获取审批人列表失败'); GMS.$hideContainer.$Message.error(res.data.msg || '提交失败,请联系系统管理员');
return return
} }
const nodeData = res.data.ApproverVo const nodeData = res.data.ApproverVo
const optionList = [...nodeData.approvers] const optionList = [...nodeData.approvers]
if (optionList.length == 0) {
GMS.$hideContainer.$Message.error('未找到下一节点的审批人')
return
}
GMS.$hideContainer.$Modal.confirm({ GMS.$hideContainer.$Modal.confirm({
width: 700, width: 700,
render: (h) => { render: (h) => {
...@@ -52,7 +56,7 @@ export default { ...@@ -52,7 +56,7 @@ export default {
} }
}); });
}).catch(() => { }).catch(() => {
GMS.$hideContainer.$Message.error('获取审批人列表失败'); GMS.$hideContainer.$Message.error('未找到下一节点的审批人');
}) })
} else { } else {
alert('缺少参数'); alert('缺少参数');
......
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