ソースを参照

修改结构bom 字段显示

chencc 1 年間 前
コミット
0d475d10a5
1 ファイル変更37 行追加2 行削除
  1. 37 2
      src/views/material/BOMmanage/index.vue

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

@@ -37,9 +37,18 @@
           <template v-slot:rootCategoryLevelId="{ row }">
             {{  rootCategoryLevelIdText(row.rootCategoryLevelId) }}
           </template>
+          <template v-slot:componentAttribute="{ row }">
+            <el-select v-model="row.componentAttribute" filterable multiple disabled class="ele-block" size="mini">
+            <el-option v-for="item in sxtList" :key="item.value" :value="item.value" :label="item.label"></el-option>
+            </el-select>
+            <!-- {{  attributeTypeText(row.attributeType) }} -->
+
+          </template>
 
           <template v-slot:attributeType="{ row }">
+    
             {{  attributeTypeText(row.attributeType) }}
+
           </template>
 
           <template v-slot:produceType="{ row }">
@@ -154,17 +163,25 @@ export default {
           label: '物品分类',
           showOverflowTooltip: true
         },
+        {
+          slot: 'componentAttribute',
+          prop: 'componentAttribute',
+          label: '属性类型',
+          showOverflowTooltip: true,
+          minWidth: 100,
+        },
         {
           slot: 'attributeType',
           prop: 'attributeType',
-          label: '属性类型',
+          label: '物料类型',
           showOverflowTooltip: true
         },
         {
           prop: 'produceType',
           slot: 'produceType',
           label: '生产类型',
-          showOverflowTooltip: true
+          showOverflowTooltip: true,
+          minWidth: 100,
         },
 
 
@@ -211,6 +228,24 @@ export default {
           label: '操作'
         }
       ],
+      sxtList: [
+        {
+          label: '自制件',
+          value: 1
+        },
+        {
+          label: '采购件',
+          value: 2
+        },
+        {
+          label: '外协件',
+          value: 3
+        },
+        {
+          label: '受托件',
+          value: 4
+        }
+      ],
       statusOpt: {
         0: '草稿',
         1: '已发布',