From 4cdebbcb9a4461539aee69da5aeea0b69bf2b29b Mon Sep 17 00:00:00 2001 From: Aoi_Tori <2547614904@qq.com> Date: Fri, 20 Jun 2025 15:53:02 +0800 Subject: [PATCH] 2025/6/20 --- src/utils/highlight.js | 18 ++++++++++++ src/views/common/filterSearch.vue | 28 ++++--------------- src/views/modules/part/partInformation.vue | 4 +-- .../modules/test/testSoBom/testTable.vue | 17 +++++------ 4 files changed, 35 insertions(+), 32 deletions(-) diff --git a/src/utils/highlight.js b/src/utils/highlight.js index 336b5f5..580d9a8 100644 --- a/src/utils/highlight.js +++ b/src/utils/highlight.js @@ -6,6 +6,24 @@ export default { const selects = el.querySelectorAll('.el-select'); const textareas = el.querySelectorAll('textarea'); + // function applyHighlight(inputEl) { + // const isModified = inputEl.value !== null && inputEl.value.trim() !== ''; + // if (isModified) { + // inputEl.classList.add('highlight'); + // } else { + // inputEl.classList.remove('highlight'); + // } + // } + // + // inputs.forEach(inputEl => { + // // 初始检查 + // applyHighlight(inputEl); + // + // // 监听输入变化 + // inputEl.addEventListener('input', function() { + // applyHighlight(inputEl); + // }); + // }); // 处理所有的 input 元素 inputs.forEach(inputEl => { diff --git a/src/views/common/filterSearch.vue b/src/views/common/filterSearch.vue index 7237d97..751605e 100644 --- a/src/views/common/filterSearch.vue +++ b/src/views/common/filterSearch.vue @@ -406,17 +406,9 @@ export default {
- - - - + + +
@@ -476,17 +468,9 @@ export default {
- - - - + + +
diff --git a/src/views/modules/part/partInformation.vue b/src/views/modules/part/partInformation.vue index 4d6ba06..94e3f75 100644 --- a/src/views/modules/part/partInformation.vue +++ b/src/views/modules/part/partInformation.vue @@ -128,8 +128,8 @@ 更多 - 产品BOM - 配方BOM + 产品BOM + 配方BOM Routing 转正式物料 diff --git a/src/views/modules/test/testSoBom/testTable.vue b/src/views/modules/test/testSoBom/testTable.vue index a897b2c..fd4aad0 100644 --- a/src/views/modules/test/testSoBom/testTable.vue +++ b/src/views/modules/test/testSoBom/testTable.vue @@ -447,10 +447,11 @@ export default { this.testSoBom.unitCost = (data.rows && data.rows.length === 1)?data.rows[0].inventoryValue:0; this.testSoBom.status = row.status; this.partDialogFlag = false; + this.queryLoading = false }else { this.$message.warning(data.msg); + this.queryLoading = false } - this.queryLoading = false }).catch((error)=>{ this.$message.error(error) this.queryLoading = false @@ -678,13 +679,13 @@ export default { this.closePartDialog(); } }, - queryLoading(newVal,oldVal){ - if (newVal){ - setTimeout(()=>{ - this.queryLoading = false - },5000) - } - } + // queryLoading(newVal,oldVal){ + // if (newVal){ + // setTimeout(()=>{ + // this.queryLoading = false + // },5000) + // } + // } } }