Browse Source

修改bom 字段

chencc 1 year ago
parent
commit
4bb5f4c08f

+ 52 - 2
src/views/material/BOMmanage/components/detailedList.vue

@@ -4,6 +4,7 @@
     <BOMSearch @search="reload" :statusOpt="statusOpt" />
     <ele-pro-table ref="table" :key="tableKey" :columns="columns" :pagination="pagination"
       :header-cell-style="headerCellStyle" :datasource="datasource" class="dict-table" tool-class="ele-toolbar-actions">
+
       <template v-slot:toolbar>
         <div class="toolbar_box">
           <div v-if="attributeData.status != 1">
@@ -29,7 +30,6 @@
       </template>
 
       <template v-slot:dosage="{ row }">
-
         <el-input v-model="row.dosage" placeholder="请输入" size="mini" style="width: 68px">
         </el-input>
       </template>
@@ -368,8 +368,51 @@ export default {
         {
           label: '模具',
           value: 5
-        }
+        },
+        {
+          label: '备品备件',
+          value: 6
+        },
+        {
+          label: '零部件',
+          value: 3
+        },
+        {
+          label: '舟皿',
+          value: 8
+        },
+        {
+          label: '消耗材料',
+          value: 10
+        },
+        {
+          label: '包装材料',
+          value: 13
+        },
+        {
+          label: '生产辅助设备',
+          value: 14
+        },
+        {
+          label: '仪表计量设备',
+          value: 15
+        },
+        {
+          label: '会计科目',
+          value: 23
+        },
+        {
+          label: '周转盘',
+          value: 26
+        },
+        {
+          label: '废品',
+          value: 28
+        },
+      
       ],
+
+
       isList: false,
       isId: null,
       tableKey: "",
@@ -451,6 +494,8 @@ export default {
   methods: {
 
     rootCategoryLevelIdText(v) {
+      console.log(v,'111111');
+
       if (v) {
         let a = this.rootCategoryLevelIdList.find(item => item.value == v)
         return a.label
@@ -553,9 +598,13 @@ export default {
         id: this.attributeData.id,
         bomType: this.attributeData.bomType
       });
+
       if (this.isList) {
         data = this.listTow;
       }
+
+      console.log(data, 'data');
+
       return data;
     },
 
@@ -566,6 +615,7 @@ export default {
 
     async getDictList(code) {
       let { data: res } = await getByCode(code);
+
       this.dictList = res.map((item) => {
         let values = Object.keys(item);
         return {

+ 41 - 2
src/views/material/BOMmanage/index.vue

@@ -297,11 +297,50 @@ export default {
         {
           label: '模具',
           value: 5
-        },{
+        },
+        {
           label: '备品备件',
           value: 6
-        }
+        },
+        {
+          label: '零部件',
+          value: 3
+        },
+        {
+          label: '舟皿',
+          value: 8
+        },
+        {
+          label: '消耗材料',
+          value: 10
+        },
+        {
+          label: '包装材料',
+          value: 13
+        },
+        {
+          label: '生产辅助设备',
+          value: 14
+        },
+        {
+          label: '仪表计量设备',
+          value: 15
+        },
+        {
+          label: '会计科目',
+          value: 23
+        },
+        {
+          label: '周转盘',
+          value: 26
+        },
+        {
+          label: '废品',
+          value: 28
+        },
+      
       ],
+
       activeName: '1',
 
       isSubmit: false,