ysy 1 rok temu
rodzic
commit
dfaf442c13

+ 0 - 8
src/api/material/BOM.js

@@ -176,14 +176,6 @@ export async function convertABom(data) {
   return Promise.reject(new Error(res.data.message));
 }
 
-// 转换 CBOM
-export async function convertCBom(data) {
-  const res = await request.post(`/main/bomCategory/convertCBom`, data);
-  if (res.data.code == 0) {
-    return res.data;
-  }
-  return Promise.reject(new Error(res.data.message));
-}
 
 
 

+ 1 - 4
src/views/material/BOMmanage/components/attribute.vue

@@ -296,10 +296,7 @@
             label: 'ABOM',
             value: '3'
           },
-          {
-            label: 'CBOM',
-            value: '4'
-          }
+     
         ]
       };
     },

+ 1 - 1
src/views/material/BOMmanage/components/baseInfo.vue

@@ -8,7 +8,7 @@
       <el-col :span="6" label-width="100px">
       <el-form-item label="类型" prop="type">
 
-        {{ dataInfo.bomType == 1 ? "PBOM" :  dataInfo.bomType == 2 ? 'MBOM' :   dataInfo.bomType == 3 ? 'ABOM' :  dataInfo.bomType == 4 ? 'CBOM' : ''}}
+        {{ dataInfo.bomType == 1 ? "PBOM" :  dataInfo.bomType == 2 ? 'MBOM' :   dataInfo.bomType == 3 ? 'ABOM'  : ''}}
           </el-form-item>
           </el-col>
 

+ 1 - 4
src/views/material/BOMmanage/components/bomTreeDialog.vue

@@ -228,10 +228,7 @@
             label: 'ABOM',
             value: '3'
           },
-          {
-            label: 'CBOM',
-            value: '4'
-          }
+       
         ]
       };
     },

+ 8 - 20
src/views/material/BOMmanage/details.vue

@@ -2,7 +2,7 @@
   <div class="ele-body">
     <el-card shadow="never">
       <ele-split-layout
-        width="320px"
+        width="260px"
         allow-collapse
         :resizable="true"
         :min-size="200"
@@ -24,7 +24,7 @@
               <el-radio-button :label="1">PBOM</el-radio-button>
               <el-radio-button :label="2">MBOM</el-radio-button>
               <el-radio-button :label="3">ABOM</el-radio-button>
-              <el-radio-button :label="4">CBOM</el-radio-button>
+
             </el-radio-group>
           </div>
 
@@ -46,11 +46,10 @@
             node-key="id"
             @node-click="handleNodeClick"
           >
-          <span class="custom-tree-node" slot-scope="{ node, data }">
-                 {{ node.label }} / {{ data.code }}
+            <span class="custom-tree-node" slot-scope="{ node, data }">
+              {{ node.label }} / {{ data.code }}
             </span>
-
-        </el-tree>
+          </el-tree>
         </div>
         <template v-slot:content>
           <div class="pbom-box">
@@ -104,17 +103,7 @@
                 >转换ABOM</el-button
               >
 
-              <el-button
-                type="primary"
-                size="mini"
-                icon="el-icon-refresh"
-                plain
-                @click="transformation('C')"
-                v-if="currentNodeData.bomType == 1"
-                >转换CBOM</el-button
-              >
-
-
+   
               <div v-if="!noBack" class="back-btn">
                 <el-button size="mini" icon="el-icon-back" @click="back"
                   >返回</el-button
@@ -205,8 +194,7 @@
         rootTreeId: null,
         defaultProps: {
           children: 'children',
-          label: 'name',
-      
+          label: 'name'
         },
         loading: false,
         filterText: null,
@@ -297,7 +285,7 @@
           text: '转换中...',
           background: 'rgba(0, 0, 0, 0.7)'
         });
-        let ULR = tt == 'M' ? convert :  tt == 'A' ? convertABom : convertCBom;
+        let ULR = tt == 'M' ? convert : tt == 'A' ? convertABom : ''
         ULR({ versions: this.versions, categoryId: this.categoryId }).then(
           (data) => {
             if (data.code == '0') {

+ 1 - 1
src/views/material/BOMmanage/index.vue

@@ -10,7 +10,7 @@
         <el-tab-pane label="PBOM" name="1"> </el-tab-pane>
         <el-tab-pane label="MBOM" name="2"> </el-tab-pane>
         <el-tab-pane label="ABOM" name="3"> </el-tab-pane>
-        <el-tab-pane label="CBOM" name="4"> </el-tab-pane>
+
         <ele-pro-table
           ref="table"
           :columns="columns"