|
@@ -107,7 +107,10 @@
|
|
|
label="工艺路线"
|
|
label="工艺路线"
|
|
|
name="工艺路线"
|
|
name="工艺路线"
|
|
|
>
|
|
>
|
|
|
- <routing :taskParam="currentNodeData"></routing>
|
|
|
|
|
|
|
+ <routing
|
|
|
|
|
+ ref="routingRef"
|
|
|
|
|
+ :taskParam="currentNodeData"
|
|
|
|
|
+ ></routing>
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
<el-tab-pane
|
|
<el-tab-pane
|
|
|
v-if="currentNodeData.bomType == 2"
|
|
v-if="currentNodeData.bomType == 2"
|
|
@@ -205,7 +208,13 @@
|
|
|
this.getTreeData();
|
|
this.getTreeData();
|
|
|
},
|
|
},
|
|
|
handleClick(tab) {
|
|
handleClick(tab) {
|
|
|
- console.log(tab);
|
|
|
|
|
|
|
+ if (
|
|
|
|
|
+ tab.name === '工艺路线' &&
|
|
|
|
|
+ this.currentNodeData.children?.length < 1
|
|
|
|
|
+ ) {
|
|
|
|
|
+ this.$refs.routingRef.reload();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if (tab.name === '工艺' && this.currentNodeData.children?.length < 1) {
|
|
if (tab.name === '工艺' && this.currentNodeData.children?.length < 1) {
|
|
|
this.$refs.workmanshipRef.reload();
|
|
this.$refs.workmanshipRef.reload();
|
|
|
}
|
|
}
|
|
@@ -302,6 +311,16 @@
|
|
|
getBomGetById(id).then((res) => {
|
|
getBomGetById(id).then((res) => {
|
|
|
this.versions = res.data.versions;
|
|
this.versions = res.data.versions;
|
|
|
this.currentNodeData = res.data;
|
|
this.currentNodeData = res.data;
|
|
|
|
|
+
|
|
|
|
|
+ if (
|
|
|
|
|
+ this.activeName == '工艺路线' &&
|
|
|
|
|
+ this.currentNodeData.children?.length < 1
|
|
|
|
|
+ ) {
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
|
+ this.$refs.routingRef.reload();
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if (
|
|
if (
|
|
|
this.activeName == '工艺' &&
|
|
this.activeName == '工艺' &&
|
|
|
this.currentNodeData.children?.length < 1
|
|
this.currentNodeData.children?.length < 1
|