From 4acf9156ee445cb9f2367d77824e1c6e25b397ab Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期六, 14 三月 2026 10:52:45 +0800
Subject: [PATCH] 工序和公益路线页面开发

---
 src/views/basicData/parameterMaintenance/index.vue |  279 ++++++++++++++++++++++++++-----------------------------
 1 files changed, 134 insertions(+), 145 deletions(-)

diff --git a/src/views/basicData/parameterMaintenance/index.vue b/src/views/basicData/parameterMaintenance/index.vue
index 0400952..5d7a30c 100644
--- a/src/views/basicData/parameterMaintenance/index.vue
+++ b/src/views/basicData/parameterMaintenance/index.vue
@@ -7,11 +7,12 @@
                   style="width: 200px"
                   placeholder="璇疯緭鍏ュ弬鏁板悕绉�"
                   clearable />
-        <span class="search_title ml10">鍏宠仈浜у搧绫诲瀷锛�</span>
+        <!-- 鍏宠仈浜у搧绫诲瀷鎼滅储 -->
+        <!-- <span class="search_title ml10">鍏宠仈浜у搧绫诲瀷锛�</span>
         <el-input v-model="searchForm.productName"
                   style="width: 200px"
                   placeholder="璇疯緭鍏ュ叧鑱斾骇鍝佺被鍨�"
-                  clearable />
+                  clearable /> -->
         <el-button type="primary"
                    @click="handleQuery"
                    style="margin-left: 10px">鎼滅储</el-button>
@@ -19,9 +20,10 @@
         <el-button type="primary"
                    @click="handleAdd"
                    style="margin-left: 10px">鏂板鍙傛暟</el-button>
-        <el-button type="primary"
+        <!-- 浜у搧绫诲瀷缁存姢鎸夐挳 -->
+        <!-- <el-button type="primary"
                    @click="handleProductTypeMaintenance"
-                   style="margin-left: 10px">浜у搧绫诲瀷缁存姢</el-button>
+                   style="margin-left: 10px">浜у搧绫诲瀷缁存姢</el-button> -->
       </div>
     </div>
     <div class="table_list">
@@ -106,7 +108,8 @@
           <el-input v-model="formData.parameterFormat"
                     placeholder="璇疯緭鍏ュ弬鏁版牸寮�" />
         </el-form-item>
-        <el-form-item label="鍏宠仈浜у搧绫诲瀷"
+        <!-- 鍏宠仈浜у搧绫诲瀷 -->
+        <!-- <el-form-item label="鍏宠仈浜у搧绫诲瀷"
                       prop="parameterValue">
           <el-select v-model="formData.parameterValue"
                      placeholder="璇烽�夋嫨鍏宠仈浜у搧绫诲瀷">
@@ -115,7 +118,7 @@
                        :label="item.label"
                        :value="item.value" />
           </el-select>
-        </el-form-item>
+        </el-form-item> -->
         <el-form-item label="鏍囧噯鍊�"
                       v-if="formData.parameterType2 === '1'"
                       prop="standardValue">
@@ -149,7 +152,7 @@
       </template>
     </el-dialog>
     <!-- 浜у搧绫诲瀷缁存姢瀵硅瘽妗� -->
-    <el-dialog v-model="productTypeDialogVisible"
+    <!-- <el-dialog v-model="productTypeDialogVisible"
                title="浜у搧绫诲瀷缁存姢"
                width="600px">
       <div class="product-type-header">
@@ -159,9 +162,9 @@
       <el-table :data="productTypeList"
                 border
                 style="width: 100%; margin-top: 10px; margin-bottom: 20px">
-        <!-- <el-table-column prop="typeCode"
+        <el-table-column prop="typeCode"
                          label="绫诲瀷缂栫爜"
-                         width="150" /> -->
+                         width="150" />
         <el-table-column prop="typeName"
                          label="绫诲瀷鍚嶇О" />
         <el-table-column label="鎿嶄綔"
@@ -176,20 +179,20 @@
           </template>
         </el-table-column>
       </el-table>
-    </el-dialog>
+    </el-dialog> -->
     <!-- 鏂板/缂栬緫浜у搧绫诲瀷瀵硅瘽妗� -->
-    <el-dialog v-model="productTypeFormVisible"
+    <!-- <el-dialog v-model="productTypeFormVisible"
                :title="productTypeDialogTitle"
                width="400px">
       <el-form :model="productTypeForm"
                :rules="productTypeRules"
                ref="productTypeFormRef"
                label-width="100px">
-        <!-- <el-form-item label="绫诲瀷缂栫爜"
+        <el-form-item label="绫诲瀷缂栫爜"
                       prop="typeCode">
           <el-input v-model="productTypeForm.typeCode"
                     placeholder="璇疯緭鍏ョ被鍨嬬紪鐮�" />
-        </el-form-item> -->
+        </el-form-item>
         <el-form-item label="绫诲瀷鍚嶇О"
                       prop="typeName">
           <el-input v-model="productTypeForm.typeName"
@@ -203,7 +206,7 @@
                      @click="handleProductTypeSubmit">纭畾</el-button>
         </span>
       </template>
-    </el-dialog>
+    </el-dialog> -->
   </div>
 </template>
 
@@ -214,7 +217,7 @@
     addParameter,
     updateParameter,
     delParameter,
-    getProductTypes as getProductTypesApi,
+    // getProductTypes as getProductTypesApi,
   } from "@/api/basicData/parameterMaintenance.js";
   import { listType } from "@/api/system/dict/type";
   import PIMTable from "@/components/PIMTable/PIMTable.vue";
@@ -252,10 +255,11 @@
       label: "鍙傛暟鏍煎紡",
       prop: "parameterFormat",
     },
-    {
-      label: "鍏宠仈浜у搧绫诲瀷",
-      prop: "parameterValue",
-    },
+    // 鍏宠仈浜у搧绫诲瀷鍒�
+    // {
+    //   label: "鍏宠仈浜у搧绫诲瀷",
+    //   prop: "parameterValue",
+    // },
     {
       label: "鏍囧噯鍊�",
       prop: "standardValue",
@@ -325,7 +329,7 @@
     parameterType2: "1",
     parameterType: "",
     parameterFormat: "",
-    parameterValue: "",
+    // parameterValue: "",
     standardValue: "",
     unit: "",
   });
@@ -342,31 +346,31 @@
     parameterFormat: [
       { required: true, message: "璇烽�夋嫨鍙傛暟鏍煎紡", trigger: "change" },
     ],
-    parameterValue: [
-      { required: true, message: "璇烽�夋嫨鍏宠仈浜у搧绫诲瀷", trigger: "change" },
-    ],
+    // parameterValue: [
+    //   { required: true, message: "璇烽�夋嫨鍏宠仈浜у搧绫诲瀷", trigger: "change" },
+    // ],
     standardValue: [{ required: true, message: "璇疯緭鍏ユ爣鍑嗗��", trigger: "blur" }],
     unit: [{ required: true, message: "璇疯緭鍏ュ崟浣�", trigger: "blur" }],
   });
-  const productTypes = ref([]);
+  // const productTypes = ref([]);
   const isEdit = ref(false);
 
-  // 浜у搧绫诲瀷缁存姢鐩稿叧
-  const productTypeDialogVisible = ref(false);
-  const productTypeFormVisible = ref(false);
-  const productTypeDialogTitle = ref("");
-  const productTypeFormRef = ref(null);
-  const productTypeList = ref([]);
-  const productTypeForm = reactive({
-    id: null,
-    // typeCode: "",
-    typeName: "",
-  });
-  const productTypeRules = reactive({
-    // typeCode: [{ required: true, message: "璇疯緭鍏ョ被鍨嬬紪鐮�", trigger: "blur" }],
-    typeName: [{ required: true, message: "璇疯緭鍏ョ被鍨嬪悕绉�", trigger: "blur" }],
-  });
-  const isProductTypeEdit = ref(false);
+  // 浜у搧绫诲瀷缁存姢鐩稿叧 - 宸叉敞閲�
+  // const productTypeDialogVisible = ref(false);
+  // const productTypeFormVisible = ref(false);
+  // const productTypeDialogTitle = ref("");
+  // const productTypeFormRef = ref(null);
+  // const productTypeList = ref([]);
+  // const productTypeForm = reactive({
+  //   id: null,
+  //   typeCode: "",
+  //   typeName: "",
+  // });
+  // const productTypeRules = reactive({
+  //   typeCode: [{ required: true, message: "璇疯緭鍏ョ被鍨嬬紪鐮�", trigger: "blur" }],
+  //   typeName: [{ required: true, message: "璇疯緭鍏ョ被鍨嬪悕绉�", trigger: "blur" }],
+  // });
+  // const isProductTypeEdit = ref(false);
   const handleParameterTypeChange = () => {
     if (formData.parameterType === "鏁板�兼牸寮�") {
       formData.parameterFormat = "#.0000";
@@ -376,65 +380,65 @@
       formData.parameterFormat = "";
     }
   };
-  // 浜у搧绫诲瀷缁存姢鎸夐挳鐐瑰嚮浜嬩欢
-  const handleProductTypeMaintenance = () => {
-    productTypeDialogVisible.value = true;
-    getProductTypeList();
-  };
+  // 浜у搧绫诲瀷缁存姢鎸夐挳鐐瑰嚮浜嬩欢 - 宸叉敞閲�
+  // const handleProductTypeMaintenance = () => {
+  //   productTypeDialogVisible.value = true;
+  //   getProductTypeList();
+  // };
 
-  // 鑾峰彇浜у搧绫诲瀷鍒楄〃
-  const getProductTypeList = () => {
-    productTypeList.value = [
-      { id: 1, typeCode: "TYPE001", typeName: "3.5鐮屽潡" },
-      { id: 2, typeCode: "TYPE002", typeName: "5.0鐮屽潡" },
-      { id: 3, typeCode: "TYPE003", typeName: "鏉挎潗" },
-    ];
-  };
+  // 鑾峰彇浜у搧绫诲瀷鍒楄〃 - 宸叉敞閲�
+  // const getProductTypeList = () => {
+  //   productTypeList.value = [
+  //     { id: 1, typeCode: "TYPE001", typeName: "3.5鐮屽潡" },
+  //     { id: 2, typeCode: "TYPE002", typeName: "5.0鐮屽潡" },
+  //     { id: 3, typeCode: "TYPE003", typeName: "鏉挎潗" },
+  //   ];
+  // };
 
-  // 鏂板浜у搧绫诲瀷
-  const handleAddProductType = () => {
-    isProductTypeEdit.value = false;
-    productTypeDialogTitle.value = "鏂板浜у搧绫诲瀷";
-    productTypeForm.id = null;
-    productTypeForm.typeCode = "";
-    productTypeForm.typeName = "";
-    productTypeFormVisible.value = true;
-  };
+  // 鏂板浜у搧绫诲瀷 - 宸叉敞閲�
+  // const handleAddProductType = () => {
+  //   isProductTypeEdit.value = false;
+  //   productTypeDialogTitle.value = "鏂板浜у搧绫诲瀷";
+  //   productTypeForm.id = null;
+  //   productTypeForm.typeCode = "";
+  //   productTypeForm.typeName = "";
+  //   productTypeFormVisible.value = true;
+  // };
 
-  // 缂栬緫浜у搧绫诲瀷
-  const handleEditProductType = row => {
-    isProductTypeEdit.value = true;
-    productTypeDialogTitle.value = "缂栬緫浜у搧绫诲瀷";
-    productTypeForm.id = row.id;
-    productTypeForm.typeCode = row.typeCode;
-    productTypeForm.typeName = row.typeName;
-    productTypeFormVisible.value = true;
-  };
+  // 缂栬緫浜у搧绫诲瀷 - 宸叉敞閲�
+  // const handleEditProductType = row => {
+  //   isProductTypeEdit.value = true;
+  //   productTypeDialogTitle.value = "缂栬緫浜у搧绫诲瀷";
+  //   productTypeForm.id = row.id;
+  //   productTypeForm.typeCode = row.typeCode;
+  //   productTypeForm.typeName = row.typeName;
+  //   productTypeFormVisible.value = true;
+  // };
 
-  // 鍒犻櫎浜у搧绫诲瀷
-  const handleDeleteProductType = row => {
-    ElMessageBox.confirm("纭畾瑕佸垹闄よ浜у搧绫诲瀷鍚楋紵", "鎻愮ず", {
-      confirmButtonText: "纭畾",
-      cancelButtonText: "鍙栨秷",
-      type: "warning",
-    })
-      .then(() => {
-        ElMessage.success("鍒犻櫎鎴愬姛");
-        getProductTypeList();
-      })
-      .catch(() => {});
-  };
+  // 鍒犻櫎浜у搧绫诲瀷 - 宸叉敞閲�
+  // const handleDeleteProductType = row => {
+  //   ElMessageBox.confirm("纭畾瑕佸垹闄よ浜у搧绫诲瀷鍚楋紵", "鎻愮ず", {
+  //     confirmButtonText: "纭畾",
+  //     cancelButtonText: "鍙栨秷",
+  //     type: "warning",
+  //   })
+  //     .then(() => {
+  //       ElMessage.success("鍒犻櫎鎴愬姛");
+  //       getProductTypeList();
+  //     })
+  //     .catch(() => {});
+  // };
 
-  // 鎻愪氦浜у搧绫诲瀷琛ㄥ崟
-  const handleProductTypeSubmit = () => {
-    productTypeFormRef.value.validate(valid => {
-      if (valid) {
-        ElMessage.success(isProductTypeEdit.value ? "缂栬緫鎴愬姛" : "鏂板鎴愬姛");
-        productTypeFormVisible.value = false;
-        getProductTypeList();
-      }
-    });
-  };
+  // 鎻愪氦浜у搧绫诲瀷琛ㄥ崟 - 宸叉敞閲�
+  // const handleProductTypeSubmit = () => {
+  //   productTypeFormRef.value.validate(valid => {
+  //     if (valid) {
+  //       ElMessage.success(isProductTypeEdit.value ? "缂栬緫鎴愬姛" : "鏂板鎴愬姛");
+  //       productTypeFormVisible.value = false;
+  //       getProductTypeList();
+  //     }
+  //   });
+  // };
 
   // 鏌ヨ鍒楄〃
   /** 鎼滅储鎸夐挳鎿嶄綔 */
@@ -460,15 +464,15 @@
     tableLoading.value = true;
     // 娉ㄩ噴鎺堿PI璋冪敤锛屼娇鐢ㄥ亣鏁版嵁
     /*const params = { ...searchForm, ...page };
-                                                                    parameterListPage(params)
-                                                                      .then(res => {
-                                                                        tableLoading.value = false;
-                                                                        tableData.value = res.data;
-                                                                        page.total = res.total || 0;
-                                                                      })
-                                                                      .catch(() => {
-                                                                        tableLoading.value = false;
-                                                                      });*/
+                                                                                              parameterListPage(params)
+                                                                                                .then(res => {
+                                                                                                  tableLoading.value = false;
+                                                                                                  tableData.value = res.data;
+                                                                                                  page.total = res.total || 0;
+                                                                                                })
+                                                                                                .catch(() => {
+                                                                                                  tableLoading.value = false;
+                                                                                                });*/
 
     // 鍋囨暟鎹�
     setTimeout(() => {
@@ -534,29 +538,14 @@
     }, 500);
   };
 
-  // 鑾峰彇浜у搧绫诲瀷鍒楄〃
-  const getProductTypes = () => {
-    // 娉ㄩ噴鎺堿PI璋冪敤锛屼娇鐢ㄥ亣鏁版嵁
-    /*getProductTypesApi()
-                                                                      .then(res => {
-                                                                        productTypes.value = res.data || [];
-                                                                      })
-                                                                      .catch(() => {
-                                                                        // 澶辫触鏃朵娇鐢ㄦā鎷熸暟鎹�
-                                                                        productTypes.value = [
-                                                                          { label: "3.5鐮屽潡", value: "type1" },
-                                                                          { label: "5.0鐮屽潡", value: "type2" },
-                                                                          { label: "鏉挎潗", value: "type3" },
-                                                                        ];
-                                                                      });*/
-
-    // 鍋囨暟鎹�
-    productTypes.value = [
-      { label: "3.5鐮屽潡", value: "type1" },
-      { label: "5.0鐮屽潡", value: "type2" },
-      { label: "鏉挎潗", value: "type3" },
-    ];
-  };
+  // 鑾峰彇浜у搧绫诲瀷鍒楄〃 - 宸叉敞閲�
+  // const getProductTypes = () => {
+  //   productTypes.value = [
+  //     { label: "3.5鐮屽潡", value: "type1" },
+  //     { label: "5.0鐮屽潡", value: "type2" },
+  //     { label: "鏉挎潗", value: "type3" },
+  //   ];
+  // };
 
   // 鏂板鎸夐挳鐐瑰嚮浜嬩欢
   const handleAdd = () => {
@@ -568,7 +557,7 @@
     formData.parameterType2 = "1";
     formData.parameterType = "";
     formData.parameterFormat = "";
-    formData.parameterValue = "";
+    // formData.parameterValue = "";
     formData.standardValue = "";
     formData.unit = "";
     dialogVisible.value = true;
@@ -584,7 +573,7 @@
     formData.parameterType2 = row.parameterType2 || "1";
     formData.parameterType = row.parameterType;
     formData.parameterFormat = row.parameterFormat;
-    formData.parameterValue = row.parameterValue;
+    // formData.parameterValue = row.parameterValue;
     formData.standardValue = row.standardValue;
     formData.unit = row.unit;
     dialogVisible.value = true;
@@ -600,13 +589,13 @@
       .then(() => {
         // 娉ㄩ噴鎺堿PI璋冪敤锛屼娇鐢ㄥ亣鏁版嵁
         /*delParameter(row.id)
-                                                                      .then(res => {
-                                                                        ElMessage.success("鍒犻櫎鎴愬姛");
-                                                                        getList();
-                                                                      })
-                                                                      .catch(() => {
-                                                                        ElMessage.error("鍒犻櫎澶辫触");
-                                                                      });*/
+                                                                                                .then(res => {
+                                                                                                  ElMessage.success("鍒犻櫎鎴愬姛");
+                                                                                                  getList();
+                                                                                                })
+                                                                                                .catch(() => {
+                                                                                                  ElMessage.error("鍒犻櫎澶辫触");
+                                                                                                });*/
 
         // 鍋囨暟鎹ā鎷�
         ElMessage.success("鍒犻櫎鎴愬姛");
@@ -623,15 +612,15 @@
       if (valid) {
         // 娉ㄩ噴鎺堿PI璋冪敤锛屼娇鐢ㄥ亣鏁版嵁
         /*const api = isEdit.value ? updateParameter : addParameter;
-                                                                      api(formData)
-                                                                        .then(res => {
-                                                                          ElMessage.success(isEdit.value ? "缂栬緫鎴愬姛" : "鏂板鎴愬姛");
-                                                                          dialogVisible.value = false;
-                                                                          getList();
-                                                                        })
-                                                                        .catch(() => {
-                                                                          ElMessage.error(isEdit.value ? "缂栬緫澶辫触" : "鏂板澶辫触");
-                                                                        });*/
+                                                                                                api(formData)
+                                                                                                  .then(res => {
+                                                                                                    ElMessage.success(isEdit.value ? "缂栬緫鎴愬姛" : "鏂板鎴愬姛");
+                                                                                                    dialogVisible.value = false;
+                                                                                                    getList();
+                                                                                                  })
+                                                                                                  .catch(() => {
+                                                                                                    ElMessage.error(isEdit.value ? "缂栬緫澶辫触" : "鏂板澶辫触");
+                                                                                                  });*/
 
         // 鍋囨暟鎹ā鎷�
         ElMessage.success(isEdit.value ? "缂栬緫鎴愬姛" : "鏂板鎴愬姛");
@@ -652,7 +641,7 @@
   onMounted(() => {
     getDictTypes();
     getList();
-    getProductTypes();
+    // getProductTypes();
   });
 </script>
 

--
Gitblit v1.9.3