From bb0e99f8cd27dd6cbe60db96d0e985aebd6e45ed Mon Sep 17 00:00:00 2001
From: 吴羡 <16976746+Xian-TT3@user.noreply.gitee.com>
Date: 星期三, 21 十月 2026 15:05:36 +0800
Subject: [PATCH] feat: 标准查新支持删除并补充查新信息

---
 src/views/CNAS/process/method/standardMethod/index.vue |   21 ++++++++++++++-------
 1 files changed, 14 insertions(+), 7 deletions(-)

diff --git a/src/views/CNAS/process/method/standardMethod/index.vue b/src/views/CNAS/process/method/standardMethod/index.vue
index ead7cd7..b141bf1 100644
--- a/src/views/CNAS/process/method/standardMethod/index.vue
+++ b/src/views/CNAS/process/method/standardMethod/index.vue
@@ -19,6 +19,13 @@
             <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="queryParams.name"
                       @keyup.enter="refreshTable()"></el-input>
           </el-form-item>
+          <el-form-item label="鏍囧噯鍒嗙被" prop="industryId">
+            <el-select v-model="queryParams.industryId" size="small" clearable filterable placeholder="璇烽�夋嫨"
+                       style="width: 180px">
+              <el-option v-for="item in industryOptions" :key="item.id" :label="item.laboratoryName"
+                         :value="item.id"/>
+            </el-select>
+          </el-form-item>
           <el-form-item>
             <el-button type="primary" size="small" @click="refreshTable">鏌ヨ</el-button>
             <el-button size="small" @click="refresh">閲嶇疆</el-button>
@@ -34,8 +41,8 @@
     <!-- 鏂板/缂栬緫 -->
     <el-dialog :title="title" v-model="addDlog" width="500px">
       <el-form :model="addForm" ref="addForm" :rules="addRules" label-position="right" label-width="120px">
-        <el-form-item label="琛屼笟" prop="industryIds">
-          <el-select v-model="addForm.industryIds" multiple filterable clearable collapse-tags placeholder="璇烽�夋嫨琛屼笟"
+        <el-form-item label="鏍囧噯鍒嗙被" prop="industryIds">
+          <el-select v-model="addForm.industryIds" multiple filterable clearable collapse-tags placeholder="璇烽�夋嫨鏍囧噯鍒嗙被"
                      style="width: 100%">
             <el-option v-for="item in industryOptions" :key="item.id" :label="item.laboratoryName" :value="item.id"/>
           </el-select>
@@ -52,7 +59,7 @@
           <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="addForm.remark">
           </el-input>
         </el-form-item>
-        <el-form-item label="璧勮川" prop="qualificationId">
+        <el-form-item v-if="title === '缂栬緫'" label="璧勮川" prop="qualificationId">
           <el-select v-model="addForm.qualificationId" size="small" clearable placeholder="璇烽�夋嫨" style="width: 100%">
             <el-option v-for="item in qualificationList" :key="item.value" :label="item.label" :value="item.value">
             </el-option>
@@ -135,14 +142,13 @@
       addPower: true,
       title: "鏂板",
       inPower: true,
-      queryParams: {},
+      queryParams: {industryId: ''},
       tableData: [],
       column: [
-        {label: "琛屼笟", prop: "industryNames", width: "140px"},
+        {label: "鏍囧噯鍒嗙被", prop: "industryNames", width: "140px"},
         {label: "鏍囧噯缂栧彿", prop: "code", width: "100px"},
         {label: "鏍囧噯鎻忚堪", prop: "name", width: "100px"},
         {label: "澶囨敞", prop: "remark"},
-        {label: "璧勮川", prop: "qualificationId"},
         {
           label: "鏄惁浜у搧鏍囧噯",
           prop: "isProduct",
@@ -262,6 +268,7 @@
       this.tableLoading = true;
       let param = {...this.queryParams, ...this.page};
       delete param.total;
+      if (param.industryId === '' || param.industryId === null) delete param.industryId;
       selectStandardMethodList({...param})
         .then((res) => {
           this.tableLoading = false;
@@ -287,7 +294,7 @@
     refresh() {
       this.loadIndustryOptions();
       this.page.current = 1;
-      this.queryParams = {};
+      this.queryParams = {industryId: ''};
       this.getList();
     },
     openAdd() {

--
Gitblit v1.9.3