Explorar el Código

修改数据字典

chencc hace 1 año
padre
commit
eecb847fda

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

@@ -171,7 +171,7 @@
               class="ele-block"
             >
               <el-option
-                v-for="item in attributeList"
+                v-for="item in lbjtList"
                 :key="item.value"
                 :value="item.value"
                 :label="item.label"
@@ -336,7 +336,33 @@
             value: '3'
           }
         ],
-
+        dictList: [
+          {
+            label: '加工',
+            value: 1
+          },
+          {
+            label: '装配',
+            value: 3
+          },
+        ],
+        lbjtList: [
+        {
+          label: '自制件',
+          value: 1
+        },
+        {
+          label: '采购件',
+          value: 2
+        },
+        {
+          label: '外协件',
+          value: 3
+        }, {
+          label: '受托件',
+          value: 4
+        }
+      ],
         attributeList: [
         {
             label: '总装',
@@ -354,7 +380,7 @@
             value: 4
           }
         ],
-        dictList: [],
+        // dictList: [],
 
         rules: {
           dosage: [{ required: true, message: ' ', trigger: 'blur' }],
@@ -368,7 +394,7 @@
     },
 
     created() {
-      this.getDictList('productionType');
+      // this.getDictList('productionType');
     },
 
     beforeDestroy() {},

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

@@ -291,6 +291,18 @@ export default {
         1: '已发布'
       },
 
+      dictList: [
+          {
+            label: '加工',
+            value: 1
+          },
+          {
+            label: '装配',
+            value: 3
+          },
+        ],
+
+
       attributeList: [
         {
           label: '总装',
@@ -358,12 +370,12 @@ export default {
       sccjList: [],
       newTreeId: null,
       responsesList: [],
-      dictList: []
+      // dictList: []
     };
   },
 
   created() {
-    this.getDictList('productionType');
+    // this.getDictList('productionType');
     // this.getZeroPartPros('zeroPartPros');
     this.getContactList();
   },