From fafe0a6fc5095f6e21cc5bf20bccddfd3318a521 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Thu, 23 Apr 2026 10:38:05 +0800 Subject: [PATCH] =?UTF-8?q?2026-04-23=201=E3=80=81=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E6=97=B6=E6=8A=80=E6=9C=AF=E5=8F=82=E6=95=B0=E5=8D=A1=E5=8D=87?= =?UTF-8?q?=E7=89=88=E4=BC=98=E5=8C=96=202=E3=80=81=E7=89=A9=E6=96=99?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=93=8D=E4=BD=9C=E8=B0=83=E6=95=B4=EF=BC=8C?= =?UTF-8?q?=E5=8F=AF=E5=88=A0=E9=99=A4=E6=AD=A3=E5=BC=8F=E7=89=A9=E6=96=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/part/partInformation.vue | 26 +++++++++---------- .../project/projectInfo/projectInfo.vue | 1 + 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/src/views/modules/part/partInformation.vue b/src/views/modules/part/partInformation.vue index e281250..cbd37ec 100644 --- a/src/views/modules/part/partInformation.vue +++ b/src/views/modules/part/partInformation.vue @@ -60,7 +60,6 @@ 查询 新增 - 删除 Routing 转正式物料 编码详情 + 删除 @@ -5244,23 +5243,22 @@ }, // 物料信息删除 - delModal () { - if (this.partSelections.length === 0) { - this.$message.warning('请勾选要删除的物料信息!') - return - } - this.$confirm(`是否删除这 `+ this.partSelections.length +` 条物料信息?`, '提示', { + delModal (row) { + this.$confirm(`是否删除该物料信息 [${row.partNo}]?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { - let tempData = { - informationList: this.partSelections - } - partInformationDelete(tempData).then(({data}) => { + const loading = this.$loading({ + lock: true, + text: '正在删除,请稍候...', + spinner: 'el-icon-loading', + background: 'rgba(0, 0, 0, 0.7)' + }) + partInformationDelete(row).then(({data}) => { + loading.close() if (data && data.code === 0) { this.getDataList() - this.partSelections = [] this.$message({ message: '操作成功', type: 'success', @@ -5272,6 +5270,8 @@ confirmButtonText: '确定' }) } + }).catch(() => { + loading.close() }) }) }, diff --git a/src/views/modules/project/projectInfo/projectInfo.vue b/src/views/modules/project/projectInfo/projectInfo.vue index 69942c1..ea2914e 100644 --- a/src/views/modules/project/projectInfo/projectInfo.vue +++ b/src/views/modules/project/projectInfo/projectInfo.vue @@ -84,6 +84,7 @@