From ee9f886cb8e6c767e4a4fe15743a826d8755fc61 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Fri, 29 May 2026 09:40:42 +0800 Subject: [PATCH] =?UTF-8?q?2026-05-29=20=E6=96=B0=E5=A2=9E=E6=8A=80?= =?UTF-8?q?=E6=9C=AF=E5=8F=82=E6=95=B0=E5=8D=A1-=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../technicalSpecificationList.vue | 23 ++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/src/views/modules/sampleManagement/technicalSpecificationList.vue b/src/views/modules/sampleManagement/technicalSpecificationList.vue index 5ede013..5988e02 100644 --- a/src/views/modules/sampleManagement/technicalSpecificationList.vue +++ b/src/views/modules/sampleManagement/technicalSpecificationList.vue @@ -651,8 +651,7 @@ sp: '', nodeId: '', documentSource: '', - menuId: this.queryOnly ? '103002' : this.$route.meta.menuId, - excludeStatusList: [] + menuId: this.$route.meta.menuId }, nodeOptions: [], pageIndex: 1, @@ -1115,9 +1114,9 @@ limit: this.pageSize, site: this.$store.state.user.site, userName: this.$store.state.user.name, - codeNo:this.$route.params.docNo, - excludeStatusList: this.buildExcludeStatusList() + codeNo:this.$route.params.docNo } + this.applyQueryOnlyFilter(inData) technicalSpecificationListSearch(inData).then(({data}) => { if (data.code == 0) { this.dataList1 = data.page.list @@ -1161,11 +1160,17 @@ }, methods: { buildExcludeStatusList () { - return this.queryOnly ? ['death', 'dead'] : [] + return this.queryOnly ? ['death', 'dead'] : null }, applyQueryOnlyFilter (target) { - target.excludeStatusList = this.buildExcludeStatusList() + if (this.queryOnly) { + target.excludeStatusList = this.buildExcludeStatusList() + target.menuId = '103002' + } else { + delete target.excludeStatusList + delete target.excludeStatusClause + } }, selectionChangeMainHandle(val) { @@ -1629,7 +1634,9 @@ }, fetchNodeOptions() { - getNodeList(this.searchData).then(({ data }) => { + const params = Object.assign({}, this.searchData) + this.applyQueryOnlyFilter(params) + getNodeList(params).then(({ data }) => { if (data && data.code === 0) { this.nodeOptions = data.rows.map(item => ({ id: item.nodeId, @@ -1653,7 +1660,7 @@ params.site = this.$store.state.user.site params.userName = this.$store.state.user.name params.userId = this.$store.state.user.id.toString() - params.excludeStatusList = this.buildExcludeStatusList() + this.applyQueryOnlyFilter(params) this.dataListLoading = true; technicalSpecificationListSearchByAnyField(params).then(({data})=>{ if (data && data.code === 0){