Commit 9ae73433 by Joey

feat: 工作流审批后返回列表页

parent f491bbf4
import { getUUID } from "../query-actions/util/lib"; import { getUUID } from "../query-actions/util/lib";
import Bridge from '../components-control/util/bridge'
import SelectApprovers from '../components-control/select-approvers.vue' import SelectApprovers from '../components-control/select-approvers.vue'
export default { export default {
execute: function (bill, param) { execute: function (bill, param) {
...@@ -91,27 +92,12 @@ export default { ...@@ -91,27 +92,12 @@ export default {
window.osConfig.appOpenMode && window.osConfig.appOpenMode &&
window.osConfig.appOpenMode == "apploader" window.osConfig.appOpenMode == "apploader"
) { ) {
GMS.$hideContainer.$portalAPI.emit('nros-tag-close') GMS.$hideContainer.$portalAPI.emit('entry-tag-close')
GMS.$hideContainer.$portalAPI.emit(
"open-new-page", //打开一个新的页签
getUUID(),
"runner-bill-form",
{
templateName: param.param.viewName,
id: billId,
state:'readOnly'
},
{
openWay: "FUNCTAB",
title: "单据详情",
}
);
} }
else { else if (Bridge.vm) {
GMS.$hideContainer.$router.push({ Bridge.vm.modal_visible = false
path: "/showInnerBillForm/" + param.param.viewName + "/" + billId
})
} }
window.GMS.vbus.$emit('refresh-workflow-job-view')
} }
}.bind(this) }.bind(this)
) )
......
import { getUUID } from "../query-actions/util/lib"; import { getUUID } from "../query-actions/util/lib";
import Bridge from '../components-control/util/bridge'
export default { export default {
execute: function (bill, param) { execute: function (bill, param) {
if(bill){ if(bill){
...@@ -42,27 +43,12 @@ export default { ...@@ -42,27 +43,12 @@ export default {
window.osConfig.appOpenMode && window.osConfig.appOpenMode &&
window.osConfig.appOpenMode == "apploader" window.osConfig.appOpenMode == "apploader"
) { ) {
GMS.$hideContainer.$portalAPI.emit('nros-tag-close') GMS.$hideContainer.$portalAPI.emit('entry-tag-close')
GMS.$hideContainer.$portalAPI.emit(
"open-new-page", //打开一个新的页签
getUUID(),
"runner-bill-form",
{
templateName: param.param.viewName,
id: billId,
state:'readOnly'
},
{
openWay: "FUNCTAB",
title: "单据详情",
}
);
} }
else { else if (Bridge.vm) {
GMS.$hideContainer.$router.push({ Bridge.vm.modal_visible = false
path: "/showInnerBillForm/" + param.param.viewName + "/" + billId
})
} }
window.GMS.vbus.$emit('refresh-workflow-job-view')
} }
}.bind(this) }.bind(this)
) )
......
...@@ -104,6 +104,9 @@ export default { ...@@ -104,6 +104,9 @@ export default {
this.templateName = this.templateOptionList[0]?.templateName; this.templateName = this.templateOptionList[0]?.templateName;
this.handleSearch(); this.handleSearch();
}); });
window.GMS.vbus.$on('refresh-workflow-job-view', () => {
this.handleSearch()
})
}, },
methods: { methods: {
......
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