|
|
@@ -21,24 +21,20 @@
|
|
|
v-model="currentNodeData.bomType"
|
|
|
@change="bomChange"
|
|
|
>
|
|
|
- <el-radio-button :label="1"
|
|
|
- >PBOM </el-radio-button
|
|
|
- >
|
|
|
+ <el-radio-button :label="1">PBOM </el-radio-button>
|
|
|
<el-radio-button
|
|
|
- v-if="[1, 9].includes(rootPathIdParent)"
|
|
|
+ v-if="[1, 9].includes(rootPathIdParent)"
|
|
|
:label="2"
|
|
|
>MBOM</el-radio-button
|
|
|
>
|
|
|
<el-radio-button
|
|
|
- v-if="[1, 9].includes(rootPathIdParent)"
|
|
|
+ v-if="[1, 9].includes(rootPathIdParent)"
|
|
|
:label="3"
|
|
|
>ABOM</el-radio-button
|
|
|
>
|
|
|
</el-radio-group>
|
|
|
</div>
|
|
|
|
|
|
-
|
|
|
-
|
|
|
<el-input
|
|
|
size="small"
|
|
|
placeholder="在结构中查找"
|
|
|
@@ -156,7 +152,10 @@
|
|
|
<el-tab-pane
|
|
|
label="工艺路线"
|
|
|
name="工艺路线"
|
|
|
- v-if="[1, 9].includes(rootPathIdParent) && currentNodeData.bomType != 1"
|
|
|
+ v-if="
|
|
|
+ [1, 9].includes(rootPathIdParent) &&
|
|
|
+ currentNodeData.bomType != 1
|
|
|
+ "
|
|
|
>
|
|
|
<routing
|
|
|
ref="routingRef"
|
|
|
@@ -166,7 +165,10 @@
|
|
|
<el-tab-pane
|
|
|
label="工序配置"
|
|
|
name="工序配置"
|
|
|
- v-if="[1, 9].includes(rootPathIdParent) && currentNodeData.bomType != 1"
|
|
|
+ v-if="
|
|
|
+ [1, 9].includes(rootPathIdParent) &&
|
|
|
+ currentNodeData.bomType != 1
|
|
|
+ "
|
|
|
>
|
|
|
<workmanship
|
|
|
ref="workmanshipRef"
|
|
|
@@ -251,7 +253,7 @@
|
|
|
'$route.query': {
|
|
|
immediate: true, // 启用立即执行
|
|
|
handler(newQuery, oldQuery) {
|
|
|
- this.rootPathIdParent = Number(newQuery.categoryLevelPathIdParent)
|
|
|
+ this.rootPathIdParent = Number(newQuery.categoryLevelPathIdParent);
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
@@ -277,7 +279,6 @@
|
|
|
this.categoryId = this.$route.query.categoryId;
|
|
|
this.noBack = this.$route.query.noBack;
|
|
|
|
|
|
-
|
|
|
(this.currentNodeData = {
|
|
|
bomType: this.$route.query.bType || 1,
|
|
|
children: []
|
|
|
@@ -393,7 +394,7 @@
|
|
|
handBomDetails(id) {
|
|
|
if (id) {
|
|
|
getBomGetById(id).then((res) => {
|
|
|
- this.versions = res.data.versions;
|
|
|
+ // this.versions = res.data.versions;
|
|
|
this.currentNodeData = res.data;
|
|
|
|
|
|
if (
|