Commit 9ae73433 by Joey

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

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