From 9310e218d00fc58ab2f05358494372aa76de8620 Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Wed, 25 Dec 2024 18:22:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/material/back/component/addReturn.vue | 11 ++++------- src/views/material/lease/outBound/index.vue | 2 +- .../material/repair/repairManage/component/home.vue | 2 +- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/views/material/back/component/addReturn.vue b/src/views/material/back/component/addReturn.vue index f68ae556..76242db2 100644 --- a/src/views/material/back/component/addReturn.vue +++ b/src/views/material/back/component/addReturn.vue @@ -824,7 +824,7 @@ export default { }, /** 删除按钮操作 */ - handleDelete(row) { + handleDelete(row,index) { this.$modal .confirm('是否确认删除所选择的数据项?') .then(() => { @@ -833,12 +833,9 @@ export default { this.deviceType.splice(index, 1) this.propsKey++ } - }) - this.equipmentList.forEach((item, index) => { - if (item.id == row.id) { - this.equipmentList.splice(index, 1) - } - }) + }) + this.equipmentList.splice(index+1, 1) + }) .catch(() => {}) // this.equipmentList.splice(row.index, 1) diff --git a/src/views/material/lease/outBound/index.vue b/src/views/material/lease/outBound/index.vue index 5b72260f..ce69ea32 100644 --- a/src/views/material/lease/outBound/index.vue +++ b/src/views/material/lease/outBound/index.vue @@ -864,7 +864,7 @@ import { } from "@/api/lease/out"; import vueEasyPrint from "vue-easy-print"; // import chapter from '../../../../utils/chapter'; -import printJS from 'print-js'; +// import printJS from 'print-js'; export default { dicts: ["lease_task_status"], components: { vueEasyPrint }, diff --git a/src/views/material/repair/repairManage/component/home.vue b/src/views/material/repair/repairManage/component/home.vue index 98b2e5ff..ef33e4f4 100644 --- a/src/views/material/repair/repairManage/component/home.vue +++ b/src/views/material/repair/repairManage/component/home.vue @@ -577,7 +577,7 @@ export default { return rejectRepair(taskIds); }).then(() => { this.getList(); - this.$modal.msgSuccess("删除成功"); + this.$modal.msgSuccess("驳回成功"); }).catch(() => {}); },