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/standardMethodsChange/index.vue | 83 ++++++++++++++++++++++-------------------
1 files changed, 45 insertions(+), 38 deletions(-)
diff --git a/src/views/CNAS/process/method/standardMethodsChange/index.vue b/src/views/CNAS/process/method/standardMethodsChange/index.vue
index a372307..03b8602 100644
--- a/src/views/CNAS/process/method/standardMethodsChange/index.vue
+++ b/src/views/CNAS/process/method/standardMethodsChange/index.vue
@@ -4,7 +4,7 @@
<div style="display: flex;">
<div style="margin-bottom: 18px;margin-right: 10px;display: flex;align-items: center;line-height: 32px;">
<span style="width: 88px;font-size: 14px;font-weight: 700;color: var(--lims-text-2);">鏍囧噯鏂规硶</span>
- <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="searchForm.methodName"
+ <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="searchForm.standardName"
@keyup.enter="searchList"></el-input>
</div>
<div style="line-height: 30px;">
@@ -17,51 +17,54 @@
</div>
</div>
<div class="table">
- <lims-table :tableData="tableData" :column="tableColumn" :height="'calc(100vh - 250px)'"
- @pagination="pagination" :page="page" :tableLoading="tableLoading"></lims-table>
+ <limsTable :column="tableColumn" :height="'calc(100vh - 23em)'" :table-data="tableData"
+ :table-loading="tableLoading" :page="page"
+ @pagination="pagination">
+ </limsTable>
</div>
- <formDIaChange v-if="formDIa" ref="formDIa" :operationType="operationType" @closeDia="closeDia"></formDIaChange>
+ <component :is="'formDIa'" v-if="formDIa" ref="formDIa" :operationType="operationType" :verify-type="0"
+ @closeDia="closeDia" />
</div>
</template>
<script>
-import formDIaChange from './component/formDIaChange.vue';
import limsTable from '@/components/Table/lims-table.vue'
-import {
- delMethodVerify,
- exportMethodVerify,
- pagesMethodVerify
-} from '@/api/cnas/process/method/standardMethodsChange'
+import formDIa from '../methodVerification/component/formDIa.vue'
+import { delMethodVerify, exportMethodVerify, pagesMethodVerify } from '@/api/cnas/process/method/methodVerification'
export default {
- name: 'StandardMethodschange',
- // import 寮曞叆鐨勭粍浠堕渶瑕佹敞鍏ュ埌瀵硅薄涓墠鑳戒娇鐢�
- components: { limsTable, formDIaChange },
+ name: 'StandardMethodsChange',
+ components: { limsTable, formDIa },
data() {
- // 杩欓噷瀛樻斁鏁版嵁
return {
searchForm: {
- methodName: '',
+ standardName: '',
operationType: 0,
},
- options: [
- { label: '涓婂崐骞�', value: '1' },
- { label: '涓嬪崐骞�', value: '2' },
- ],
tableColumn: [
{
label: '鏍囧噯鏂规硶',
prop: 'methodName',
- minWidth: '100'
+ minWidth: '120'
},
{
- label: '楠岃瘉鍘熷洜',
+ label: '鍙樻洿鍘熷洜',
prop: 'verifyReason',
- minWidth: '100'
+ minWidth: '120'
},
{
label: '涓昏鎶�鏈彉鍖�',
prop: 'technologyChange',
+ minWidth: '120'
+ },
+ {
+ label: '纭鏃堕棿',
+ prop: 'confirmDate',
+ minWidth: '100'
+ },
+ {
+ label: '鍒涘缓鏃堕棿',
+ prop: 'createTime',
minWidth: '100'
},
{
@@ -69,6 +72,13 @@
minWidth: '60',
label: '鎿嶄綔',
operation: [
+ {
+ name: '璇︽儏',
+ type: 'text',
+ clickFun: (row) => {
+ this.openFormDia('view', row);
+ },
+ },
{
name: '缂栬緫',
type: 'text',
@@ -91,16 +101,15 @@
this.deleteRow(row);
},
}
-
]
}
],
tableData: [],
tableLoading: false,
page: {
- size: 10,
+ size: 20,
current: 1,
- total: 0,
+ total: 0
},
formDIa: false,
operationType: '',
@@ -109,16 +118,16 @@
mounted() {
this.searchList()
},
- // 鏂规硶闆嗗悎
methods: {
// 鏌ヨ鍒楄〃
searchList() {
const entity = {
- methodName: this.searchForm.methodName,
+ standardName: this.searchForm.standardName,
operationType: this.searchForm.operationType,
}
+ const page = this.page
this.tableLoading = true
- pagesMethodVerify({ ... this.page, ...entity }).then(res => {
+ pagesMethodVerify({ ...page, ...entity }).then(res => {
this.tableLoading = false
if (res.code === 200) {
this.tableData = res.data.records
@@ -151,7 +160,7 @@
},
// 閲嶇疆鏌ヨ鏉′欢
resetSearchForm() {
- this.searchForm.methodName = '';
+ this.searchForm.standardName = '';
this.searchList()
},
openFormDia(type, row) {
@@ -161,19 +170,17 @@
this.$refs.formDIa.openDia(row)
})
},
+ // 瀵煎嚭
+ downLoadPost(row) {
+ exportMethodVerify({ methodVerifyId: row.methodVerifyId }).then(res => {
+ const blob = new Blob([res], { type: 'application/msword' });
+ this.$download.saveAs(blob, '鏍囧噯鏂规硶鍙樻洿璁板綍.docx')
+ })
+ },
// 鍏抽棴寮规
closeDia() {
this.formDIa = false
this.searchList()
- },
- // 瀵煎嚭
- downLoadPost(row) {
- this.outLoading = true
- exportMethodVerify({ methodVerifyId: row.methodVerifyId }).then(res => {
- this.outLoading = false
- const blob = new Blob([res], { type: 'application/msword' });
- this.$download.saveAs(blob, '鏍囧噯锛堟柟娉曪級纭璁板綍.docx')
- })
},
// 鍒嗛〉鍒囨崲
pagination(page) {
--
Gitblit v1.9.3