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 | 41 +++++++++++++++++++++++++++++++++--------
1 files changed, 33 insertions(+), 8 deletions(-)
diff --git a/src/views/CNAS/process/method/standardMethod/index.vue b/src/views/CNAS/process/method/standardMethod/index.vue
index 81719d2..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>
@@ -66,6 +73,12 @@
</el-form-item>
<el-form-item label="鏄惁鍚敤" prop="isUse">
<el-select v-model="addForm.isUse" size="small" clearable placeholder="璇烽�夋嫨" style="width: 100%">
+ <el-option label="鍚�" :value="0"></el-option>
+ <el-option label="鏄�" :value="1"></el-option>
+ </el-select>
+ </el-form-item>
+ <el-form-item label="鏄惁鏌ユ柊" prop="needSearchNew">
+ <el-select v-model="addForm.needSearchNew" size="small" placeholder="璇烽�夋嫨" style="width: 100%">
<el-option label="鍚�" :value="0"></el-option>
<el-option label="鏄�" :value="1"></el-option>
</el-select>
@@ -129,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",
@@ -174,6 +186,14 @@
return "primary";
}
},
+ },
+ {
+ label: "鏄惁鏌ユ柊",
+ prop: "needSearchNew",
+ width: "90px",
+ dataType: "tag",
+ formatData: (value) => value == 1 ? "鏄�" : "鍚�",
+ formatType: (value) => value == 1 ? "success" : "info",
},
{label: "鍒涘缓浜�", prop: "createUserName"},
{label: "鍒涘缓鏃堕棿", prop: "createTime"},
@@ -232,6 +252,9 @@
isUse: [
{required: true, message: "璇烽�夋嫨鏄惁鍚敤", trigger: "change"},
],
+ needSearchNew: [
+ {required: true, message: "璇烽�夋嫨鏄惁鏌ユ柊", trigger: "change"},
+ ],
},
};
},
@@ -245,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;
@@ -270,12 +294,12 @@
refresh() {
this.loadIndustryOptions();
this.page.current = 1;
- this.queryParams = {};
+ this.queryParams = {industryId: ''};
this.getList();
},
openAdd() {
this.title = "鏂板";
- this.addForm = {industryIds: [], isProduct: 1, isUse: 1};
+ this.addForm = {industryIds: [], isProduct: 1, isUse: 1, needSearchNew: 0};
this.pendingFiles = [];
this.addDlog = true;
},
@@ -284,6 +308,7 @@
this.addDlog = true;
this.addForm = this.HaveJson(row)
this.addForm.industryIds = this.addForm.industryIds || [];
+ if (this.addForm.needSearchNew == null) this.addForm.needSearchNew = 0;
},
getQualificationList() {
this.getDicts("cnas_method_qualification").then((response) => {
--
Gitblit v1.9.3