Преглед изворни кода

通用工艺和产品工艺列表增加字段执行文件和标准

jiaxiaoqiang пре 7 месеци
родитељ
комит
e05d156561

+ 23 - 8
src/views/base/craftManagement/route/index.vue

@@ -48,12 +48,12 @@
           >编辑</el-button
         >
         <el-button
-            link
-            type="danger"
-            icon="el-icon-edit"
-            v-if="row.usable === 0"
-            @click="deleteRow(row, index)"
-        >删除</el-button
+          link
+          type="danger"
+          icon="el-icon-edit"
+          v-if="row.usable === 0"
+          @click="deleteRow(row, index)"
+          >删除</el-button
         >
         <el-button
           link
@@ -120,7 +120,6 @@ import { copyRoute } from "@/api/craft/route/index";
 // 数据字典相关
 const { dicts } = useDictionaryStore();
 
-
 // 传入一个url,后面不带/
 const { form, data, option, search, page, toDeleteIds, Methords, Utils } =
   useCrud({
@@ -231,7 +230,7 @@ const bindProcess = (row) => {
 // 设置表格列或者其他自定义的option
 option.value = Object.assign(option.value, {
   selection: true,
-  labelWidth: 110,
+  labelWidth: 130,
   menuWidth: 250,
   delBtn: false,
   searchLabelWidth: 110,
@@ -287,6 +286,7 @@ option.value = Object.assign(option.value, {
         value: "dictValue",
       },
     },
+
     {
       label: "通用工艺id",
       prop: "commonRouteId",
@@ -315,6 +315,21 @@ option.value = Object.assign(option.value, {
       overHidden: true,
     },
     {
+      label: "执行文件和标准",
+      prop: "executeFileStd",
+      width: 180,
+      addDisplay: true,
+      editDisabled: true,
+      overHidden: true,
+      rules: [
+        {
+          required: true,
+          message: "执行文件和标准不能为空",
+          trigger: "blur",
+        },
+      ],
+    },
+    {
       label: "产品名称",
       prop: "prodtName",
       overHidden: true,

+ 16 - 1
src/views/base/craftManagement/routeCommon/index.vue

@@ -196,7 +196,7 @@ const bindProcess = (row) => {
 // 设置表格列或者其他自定义的option
 option.value = Object.assign(option.value, {
   selection: true,
-  labelWidth: 110,
+  labelWidth: 130,
   searchLabelWidth: 110,
   column: [
     {
@@ -249,6 +249,21 @@ option.value = Object.assign(option.value, {
         value: "dictValue",
       },
     },
+    {
+      label: "执行文件和标准",
+      prop: "executeFileStd",
+      width: 180,
+      addDisplay: true,
+      editDisabled: true,
+      overHidden: true,
+      rules: [
+        {
+          required: true,
+          message: "执行文件和标准不能为空",
+          trigger: "blur",
+        },
+      ],
+    },
     // 在产品那边绑定了工艺路线才是已绑定
     {
       label: "启用状态",