ysy 1 год назад
Родитель
Сommit
d2a593abbc
1 измененных файлов с 6 добавлено и 16 удалено
  1. 6 16
      src/views/material/BOMmanage/details.vue

+ 6 - 16
src/views/material/BOMmanage/details.vue

@@ -15,7 +15,7 @@
         :responsive="false"
       >
         <div class="ele-border-lighter sys-organization-list">
-          <div class="radio_box rx-cc" v-if="[1, 9].includes(rootPathIdParent)">
+          <div class="radio_box rx-cc">
             <el-radio-group
               size="small"
               v-model="currentNodeData.bomType"
@@ -25,29 +25,19 @@
                 >PBOM </el-radio-button
               >
               <el-radio-button
-           
+              v-if="[1, 9].includes(rootPathIdParent)"
                 :label="2"
                 >MBOM</el-radio-button
               >
               <el-radio-button
-             
+              v-if="[1, 9].includes(rootPathIdParent)"
                 :label="3"
                 >ABOM</el-radio-button
               >
             </el-radio-group>
           </div>
 
-          <div class="radio_box rx-cc" v-else>
-            <el-radio-group
-              size="small"
-              v-model="currentNodeData.bomType"
-              @change="bomChange"
-            >
-              <el-radio-button :label="1"
-                >PBOM </el-radio-button
-              >
-            </el-radio-group>
-          </div>
+
 
           <el-input
             size="small"
@@ -166,7 +156,7 @@
               <el-tab-pane
                 label="工艺路线"
                 name="工艺路线"
-                v-if="[1, 9].includes(rootPathIdParent)"
+                v-if="[1, 9].includes(rootPathIdParent) && currentNodeData.bomType != 1"
               >
                 <routing
                   ref="routingRef"
@@ -176,7 +166,7 @@
               <el-tab-pane
                 label="工序配置"
                 name="工序配置"
-                v-if="[1, 9].includes(rootPathIdParent)"
+                 v-if="[1, 9].includes(rootPathIdParent) && currentNodeData.bomType != 1"
               >
                 <workmanship
                   ref="workmanshipRef"