From 5b843ee7210342ca339826dce239ba76500df10a Mon Sep 17 00:00:00 2001 From: shenzhouyu Date: Mon, 24 Aug 2026 18:36:17 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E6=96=99=E7=AE=A1=E7=90=86=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=B7=A5=E5=BA=8F=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/modules/qc/qcPartAttribute.vue | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/cclqms-vue/src/views/modules/qc/qcPartAttribute.vue b/cclqms-vue/src/views/modules/qc/qcPartAttribute.vue index 506bb3c..e1d856f 100644 --- a/cclqms-vue/src/views/modules/qc/qcPartAttribute.vue +++ b/cclqms-vue/src/views/modules/qc/qcPartAttribute.vue @@ -4265,10 +4265,27 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.qcSpecList = data.rows || [] + this.validateQcSpecFilters() this.syncQcSpecCurrentRow() } }) }, + resetQcSpecFilters() { + this.qcSpecFilterType = '' + this.qcSpecFilterIpqcMethod = '' + this.qcSpecFilterOperation = '' + this.resetQcSpecTableSelection() + }, + validateQcSpecFilters() { + if (this.qcSpecFilterOperation) { + const operationExists = (this.qcSpecList || []).some( + (item) => (item.operation || '') === this.qcSpecFilterOperation + ) + if (!operationExists) { + this.qcSpecFilterOperation = '' + } + } + }, syncQcSpecCurrentRow() { if (!this.qcSpecCurrentRow) return const currentItemNo = this.qcSpecCurrentRow.itemNo @@ -6419,7 +6436,11 @@ export default { changeCurrentRow(row, oldRow) { // 判断是否是获取焦点的事件 if (row) { + const partChanged = !oldRow || row.partNo !== oldRow.partNo || row.site !== oldRow.site this.partCurrentRow = JSON.parse(JSON.stringify(row)) + if (partChanged) { + this.resetQcSpecFilters() + } //刷新当前页表(主表行点击时不调用 searchPartAttributeDetails) this.refreshCurrentTabTable(true) }