Browse Source

fix:工序目标值

lupeng 4 ngày trước cách đây
mục cha
commit
885e98487e

+ 2 - 17
src/components/CommonTable/configs/tableConfig.ts

@@ -4,11 +4,11 @@ import dictDataUtil from "@/common/configs/dictDataUtil";
 
 const switchOp = [
   {
-    label: "",
+    label: "",
     value: 0,
   },
   {
-    label: "",
+    label: "",
     value: 1,
   },
 ];
@@ -65,21 +65,6 @@ export const tableConfig = {
         ],
       },
 
-      {
-        label: "目标值(%)",
-        prop: "targetRate",
-        type: "number",
-        max: 100,
-        min: 0,
-        span: 12,
-        rules: [
-          {
-            required: true,
-            message: "目标值不能为空",
-            trigger: "blur",
-          },
-        ],
-      },
 
       {
         label: "工序标注",

+ 22 - 0
src/views/statistic/qualityGoal/processGoal.vue

@@ -26,6 +26,14 @@ option.value = Object.assign(option.value, {
     {
       label: "工序编码",
       prop: "operationCode",
+      readonly: "true",
+      rules: [
+        {
+          required: true,
+          message: "请选择工序编码",
+          trigger: "blur",
+        },
+      ],
       click: () => {
         startToChooseProcess();
       },
@@ -33,6 +41,20 @@ option.value = Object.assign(option.value, {
     {
       label: "工序名称",
       prop: "operationName",
+      disabled: "true",
+    },
+    {
+      label: "目标值(%)",
+      prop: "target",
+      type: "number",
+      min: 0,
+      rules: [
+        {
+          required: true,
+          message: "请输入目标值",
+          trigger: "blur",
+        },
+      ],
     },
   ],
 });