Commit dc3023cf by 袁成

Merge branch 'develop' of ssh://nvwa.jiuqi.com.cn:2222/GFP/RBC/rbc-frontend into develop-yuancheng

parents 4db6d38f 4d6860db
...@@ -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('缺少参数');
......
...@@ -181,8 +181,8 @@ export default { ...@@ -181,8 +181,8 @@ export default {
} }
}, },
mounted() { mounted() {
this.reviewParam['taskId'] = GMS.$hideContainer.$route.query.taskId; this.reviewParam['taskId'] = GMS.workflowTaskId
this.taskId = GMS.$hideContainer.$route.query.taskId; this.taskId = GMS.workflowTaskId;
// this.reviewParam['billid'] = this.$route.query.id; // this.reviewParam['billid'] = this.$route.query.id;
this.context.bill.setGlobalParam('reviewParam',this.reviewParam); this.context.bill.setGlobalParam('reviewParam',this.reviewParam);
this.value = this.context.bill.getGlobalParam('reviewParam').suggestions this.value = this.context.bill.getGlobalParam('reviewParam').suggestions
......
...@@ -14,13 +14,11 @@ export default { ...@@ -14,13 +14,11 @@ export default {
} }
let templateName = param.viewName; let templateName = param.viewName;
let billId = context.selects[0][param.billId]; let billId = context.selects[0][param.billId];
window.GMS.workflowTaskId = context.selects[0][param.taskId]
if ( if (
window.osConfig.appOpenMode && window.osConfig.appOpenMode &&
window.osConfig.appOpenMode == "apploader" window.osConfig.appOpenMode == "apploader"
) { ) {
GMS.$hideContainer.$router.push({
path: "/approvalBillForm/" + param.viewName + "/" + context.selects[0][param.billId] + "?taskId=" + context.selects[0][param.taskId]
});
GMS.$hideContainer.$portalAPI.emit( GMS.$hideContainer.$portalAPI.emit(
"open-new-page", //打开一个新的页签 "open-new-page", //打开一个新的页签
getUUID(), getUUID(),
...@@ -36,15 +34,6 @@ export default { ...@@ -36,15 +34,6 @@ export default {
} }
); );
} else { } else {
let href = window.location.href
if (href.indexOf('taskId') > -1) {
href = href.substring(0, href.indexOf('taskId'))
href += 'taskId=' + context.selects[0][param.taskId]
}
else {
href += '?taskId=' + context.selects[0][param.taskId]
}
window.location.href = href
GMS.$hideContainer.addComponent(typesBill, {}, function(c) { GMS.$hideContainer.addComponent(typesBill, {}, function(c) {
c.templateName = templateName; c.templateName = templateName;
c.billId = billId; c.billId = billId;
......
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