Ver código fonte

fix:工序组件物料采集添加是否需要

luoxiao 4 semanas atrás
pai
commit
fb1e7bdf0f

+ 23 - 23
src/views/base/craftManagement/route/components/configs.ts

@@ -86,29 +86,29 @@ export const getTableConfig = (id: string) => {
           dicData: dicts.danwei_type,
           props: { label: "dictLabel", value: "dictValue" },
         },
-        // {
-        //   label: "是否需要",
-        //   prop: "isTrace",
-        //   type: "radio", //类型为单选框
-        //   dicData: [
-        //     {
-        //       label: "需采集物料",
-        //       value: 1,
-        //     },
-        //     {
-        //       label: "非必须采集物料",
-        //       value: 0,
-        //     },
-        //   ],
-        //   value: 1,
-        //   rules: [
-        //     {
-        //       required: true,
-        //       message: "是否需要",
-        //       trigger: "blur",
-        //     },
-        //   ],
-        // },
+        {
+          label: "是否需要",
+          prop: "isTrace",
+          type: "radio", //类型为单选框
+          dicData: [
+            {
+              label: "需采集物料",
+              value: 1,
+            },
+            {
+              label: "非必须采集物料",
+              value: 0,
+            },
+          ],
+          value: 1,
+          rules: [
+            {
+              required: true,
+              message: "是否需要",
+              trigger: "blur",
+            },
+          ],
+        },
       ],
     },
     // 辅料采集