Commit 75523cb1 by 乔延琦

Merge branch 'develop-zhouyi' into 'develop'

Develop zhouyi

See merge request GFP/RBC/rbc-frontend!24
parents d87ac7b3 aee2af66
...@@ -142,6 +142,13 @@ export default { ...@@ -142,6 +142,13 @@ export default {
this.init = true; this.init = true;
}); });
}); });
GMS.vbus.$on("workflow-state-change", (val) => {
console.log('refresh', val)
this.init = false;
this.$nextTick(() => {
this.init = true;
})
})
GMS.vbus.$on("submitSuccess", (res, param) => { GMS.vbus.$on("submitSuccess", (res, param) => {
GMS.vbus.$emit("custom-query-refresh"); GMS.vbus.$emit("custom-query-refresh");
GMS.vbus.$emit("tab-count-refresh"); GMS.vbus.$emit("tab-count-refresh");
...@@ -169,6 +176,7 @@ export default { ...@@ -169,6 +176,7 @@ export default {
GMS.vbus.$off("saveSuccess"); GMS.vbus.$off("saveSuccess");
GMS.vbus.$off("submitSuccess"); GMS.vbus.$off("submitSuccess");
GMS.vbus.$off("change-form-state"); GMS.vbus.$off("change-form-state");
GMS.vbus.$off("workflow-state-change")
}, },
}; };
</script> </script>
......
...@@ -55,15 +55,16 @@ export default { ...@@ -55,15 +55,16 @@ export default {
} }
} }
// 监听工作流状态改变 // 监听工作流状态改变
GMS.vbus.$on("workflow-state-change", (val) => { GMS.vbus.$on("workflow-state-change", this.handleWorkflowStateChange)
this.workflowState = val
this.getBtnGroup()
})
}, },
beforeDestroy() { beforeDestroy() {
GMS.vbus.$off("workflow-state-change"); GMS.vbus.$off("workflow-state-change", this.handleWorkflowStateChange);
}, },
methods: { methods: {
handleWorkflowStateChange(val) {
this.workflowState = val
this.getBtnGroup()
},
checkParent() { checkParent() {
let curNode = this.$refs.btnGroup let curNode = this.$refs.btnGroup
while (curNode) { while (curNode) {
...@@ -130,7 +131,7 @@ export default { ...@@ -130,7 +131,7 @@ export default {
case 90: case 90:
return disableState.includes('90') return disableState.includes('90')
case 91: case 91:
return disableState.includes('91') return disableState.includes('91') || getBillState()
case 92: case 92:
return disableState.includes('92') return disableState.includes('92')
case 1: case 1:
......
...@@ -1372,7 +1372,7 @@ export default { ...@@ -1372,7 +1372,7 @@ export default {
"description": "", "description": "",
"title": "财务_保存[CW_saveAction]", "title": "财务_保存[CW_saveAction]",
"value": "CW_saveAction", "value": "CW_saveAction",
"btnDisable": "billReadOnly;90;91;92" "btnDisable": "billReadOnly;90;92"
}, },
{ {
"discard": false, "discard": false,
...@@ -1482,7 +1482,7 @@ export default { ...@@ -1482,7 +1482,7 @@ export default {
"description": "", "description": "",
"title": "财务_提交[CW_submitAction]", "title": "财务_提交[CW_submitAction]",
"value": "CW_submitAction", "value": "CW_submitAction",
"btnDisable": "billEdit;90;91;92" "btnDisable": "billEdit;90;92"
}, },
{ {
"discard": false, "discard": false,
......
...@@ -56,8 +56,16 @@ export default { ...@@ -56,8 +56,16 @@ export default {
// this.type = 'load' // this.type = 'load'
}); });
}); });
GMS.vbus.$on("workflow-state-change", (val) => {
console.log('refresh', val)
this.init = false;
this.$nextTick(() => {
this.init = true;
})
})
}, },
beforeDestroy() { beforeDestroy() {
GMS.vbus.$off("workflow-state-change")
GMS.vbus.$off("change-form-state"); GMS.vbus.$off("change-form-state");
this.$portalAPI.off('on-close-tag', this.checkBillChange) this.$portalAPI.off('on-close-tag', this.checkBillChange)
}, },
......
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