Selaa lähdekoodia

fix:修改是否工装导致的报错

lupeng 6 kuukautta sitten
vanhempi
commit
49bdf0bc04
2 muutettua tiedostoa jossa 60 lisäystä ja 2 poistoa
  1. 56 0
      src/views/base/frock/index.vue
  2. 4 2
      src/views/base/materials/index.vue

+ 56 - 0
src/views/base/frock/index.vue

@@ -275,6 +275,62 @@ option.value = Object.assign(option.value, {
       ],
     },
     {
+      label: "是否工装",
+      prop: "frock",
+      search: true,
+      width: 90,
+      overHidden: true,
+      filterable: true,
+      hide: true,
+      display: false,
+      type: "radio", //类型为单选框
+      dicData: [
+        {
+          label: "是",
+          value: "1",
+        },
+        {
+          label: "否",
+          value: "0",
+        },
+      ],
+      value: "1",
+      rules: [
+        {
+          required: true,
+          message: "是否工装",
+          trigger: "blur",
+        },
+      ],
+    },
+    {
+      label: "关重件",
+      prop: "important",
+      search: true,
+      width: 90,
+      overHidden: true,
+      filterable: true,
+      type: "radio", //类型为单选框
+      dicData: [
+        {
+          label: "是",
+          value: "1",
+        },
+        {
+          label: "否",
+          value: "0",
+        },
+      ],
+      value: "0",
+      rules: [
+        {
+          required: true,
+          message: "是否关重件",
+          trigger: "blur",
+        },
+      ],
+    },
+    {
       label: "质量等级",
       prop: "qualityLevelDictValue",
       search: true,

+ 4 - 2
src/views/base/materials/index.vue

@@ -378,13 +378,15 @@ option.value = Object.assign(option.value, {
         },
       ],
     },
-    /*{
+    {
       label: "是否工装",
       prop: "frock",
       search: true,
       width: 90,
       overHidden: true,
       filterable: true,
+      hide: true,
+      display: false,
       type: "radio", //类型为单选框
       dicData: [
         {
@@ -404,7 +406,7 @@ option.value = Object.assign(option.value, {
           trigger: "blur",
         },
       ],
-    },*/
+    },
     {
       label: "筛选规范",
       prop: "selectionSpec",