From 2a3974b86007dedcf994afafdf74c91627c22530 Mon Sep 17 00:00:00 2001 From: bb_pan Date: Sun, 14 Sep 2025 21:06:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/business/businessHandling/index.vue | 10 +++++++--- src/views/material/back/component/addReturn.vue | 2 +- .../material/lease/apply/component/addToolsApply.vue | 2 +- src/views/material/purchase/goodsAccept/editTools.vue | 2 +- .../purchase/goodsArrived/component/addTools.vue | 2 +- .../repair/inventoryScrap/component/addToolsApply.vue | 2 +- .../toolsBack/back/component/addReturn.vue | 2 +- .../toolsLease/apply/component/addToolsApply.vue | 2 +- 8 files changed, 14 insertions(+), 10 deletions(-) diff --git a/src/views/business/businessHandling/index.vue b/src/views/business/businessHandling/index.vue index 9860adf7..1af6785c 100644 --- a/src/views/business/businessHandling/index.vue +++ b/src/views/business/businessHandling/index.vue @@ -383,7 +383,7 @@ - + {{ maForm.unitName }} @@ -1013,7 +1013,7 @@ export default { // 搜索处理函数 handleSearchImpl(query) { if (!query) { - // this.filteredOptions = [...this.flattenTypeOptions] + this.filteredOptions = [...this.flattenTypeOptions] return } @@ -1173,21 +1173,23 @@ export default { } if (this.isEdit) { try { + this.loading = true const res = await editLeaseTask(params) if (res.code === 200) { this.$modal.msgSuccess('操作成功') // 关闭页面 this.$tab.closePage() } - this.loading = false } catch (error) { console.log('🚀 ~ error:', error) + } finally { this.loading = false } } else if (!this.isEdit) { console.log('新增') console.log(this.equipmentList) try { + this.loading = true const res = await addLeaseTask(params) if (res.code === 200) { this.$modal.msgSuccess('操作成功') @@ -1198,6 +1200,8 @@ export default { } } catch (error) { console.log('🚀 ~ error:', error) + } finally { + this.loading = false } } }) diff --git a/src/views/material/back/component/addReturn.vue b/src/views/material/back/component/addReturn.vue index f115131b..28a1a247 100644 --- a/src/views/material/back/component/addReturn.vue +++ b/src/views/material/back/component/addReturn.vue @@ -769,7 +769,7 @@ export default { // 搜索处理函数 handleSearchImpl(query) { if (!query) { - // this.filteredOptions = [...this.flattenTypeOptions] + this.filteredOptions = [...this.flattenTypeOptions] return } diff --git a/src/views/material/lease/apply/component/addToolsApply.vue b/src/views/material/lease/apply/component/addToolsApply.vue index 4af52792..5f6a2bb9 100644 --- a/src/views/material/lease/apply/component/addToolsApply.vue +++ b/src/views/material/lease/apply/component/addToolsApply.vue @@ -770,7 +770,7 @@ export default { // 搜索处理函数 handleSearchImpl(query) { if (!query) { - // this.filteredOptions = [...this.flattenTypeOptions]; + this.filteredOptions = [...this.flattenTypeOptions]; return; } diff --git a/src/views/material/purchase/goodsAccept/editTools.vue b/src/views/material/purchase/goodsAccept/editTools.vue index 6fd35454..9a628400 100644 --- a/src/views/material/purchase/goodsAccept/editTools.vue +++ b/src/views/material/purchase/goodsAccept/editTools.vue @@ -650,7 +650,7 @@ export default { // 搜索处理函数 handleSearchImpl(query) { if (!query) { - // this.filteredOptions = [...this.flattenTypeOptions] + this.filteredOptions = [...this.flattenTypeOptions] return } diff --git a/src/views/material/purchase/goodsArrived/component/addTools.vue b/src/views/material/purchase/goodsArrived/component/addTools.vue index afccc248..e4507834 100644 --- a/src/views/material/purchase/goodsArrived/component/addTools.vue +++ b/src/views/material/purchase/goodsArrived/component/addTools.vue @@ -733,7 +733,7 @@ export default { // 搜索处理函数 handleSearchImpl(query) { if (!query) { - // this.filteredOptions = [...this.flattenTypeOptions] + this.filteredOptions = [...this.flattenTypeOptions] return } diff --git a/src/views/material/repair/inventoryScrap/component/addToolsApply.vue b/src/views/material/repair/inventoryScrap/component/addToolsApply.vue index fc081c69..4f5d8929 100644 --- a/src/views/material/repair/inventoryScrap/component/addToolsApply.vue +++ b/src/views/material/repair/inventoryScrap/component/addToolsApply.vue @@ -410,7 +410,7 @@ export default { // 搜索处理函数 handleSearchImpl(query) { if (!query) { - // this.filteredOptions = [...this.flattenTypeOptions] + this.filteredOptions = [...this.flattenTypeOptions] return } diff --git a/src/views/materialsStation/toolsBack/back/component/addReturn.vue b/src/views/materialsStation/toolsBack/back/component/addReturn.vue index ad60420e..6d82ab2b 100644 --- a/src/views/materialsStation/toolsBack/back/component/addReturn.vue +++ b/src/views/materialsStation/toolsBack/back/component/addReturn.vue @@ -520,7 +520,7 @@ export default { // 搜索处理函数 handleSearchImpl(query) { if (!query) { - // this.filteredOptions = [...this.flattenTypeOptions] + this.filteredOptions = [...this.flattenTypeOptions] return } diff --git a/src/views/materialsStation/toolsLease/apply/component/addToolsApply.vue b/src/views/materialsStation/toolsLease/apply/component/addToolsApply.vue index 0b613ae9..481786be 100644 --- a/src/views/materialsStation/toolsLease/apply/component/addToolsApply.vue +++ b/src/views/materialsStation/toolsLease/apply/component/addToolsApply.vue @@ -532,7 +532,7 @@ export default { // 搜索处理函数 handleSearchImpl(query) { if (!query) { - // this.filteredOptions = [...this.flattenTypeOptions] + this.filteredOptions = [...this.flattenTypeOptions] return }