From fea1ae05be12e4453e7bd976553c6a4b861ff273 Mon Sep 17 00:00:00 2001 From: wuteng <419274783@qq.com> Date: Tue, 8 Jul 2025 17:13:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E5=AE=A2=E6=88=B7=E5=8D=95=E7=8B=AC?= =?UTF-8?q?=E6=8A=A5=E4=BB=B7=EF=BC=8C=E5=88=A0=E9=99=A4=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../emisQuotePrice/vipTransQuotePriceList.vue | 24 +++++++++++++++---- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/src/views/emis/emisQuotePrice/vipTransQuotePriceList.vue b/src/views/emis/emisQuotePrice/vipTransQuotePriceList.vue index 2cd3afa0..8183decd 100644 --- a/src/views/emis/emisQuotePrice/vipTransQuotePriceList.vue +++ b/src/views/emis/emisQuotePrice/vipTransQuotePriceList.vue @@ -565,13 +565,27 @@ export default { }, /** 删除按钮操作 */ handleDelete(row) { - const quoteIds = row.quoteId || this.ids; - this.$modal.confirm('是否确认删除').then(function() { - return delEmisQuotePrice(quoteIds); + const quoteIds = row.quoteId || this.ids.filter(Boolean); + let that = this; + this.$modal.confirm('是否确认删除').then(function () { + if (quoteIds.length == 0) { //已上传 + that.selectionList.forEach((item, index) => { + that.emisQuotePriceList.forEach((v, i) => { + if (item.index === v.index) { + that.emisQuotePriceList.splice(i, 1) + } + }) + }) + that.total = that.emisQuotePriceList.length; + } else { //已新增 + delEmisQuotePrice(quoteIds).then(() => { + that.getList(); + }) + } }).then(() => { - this.getList(); this.$modal.msgSuccess("删除成功"); - }).catch(() => {}); + that.$refs.multipleTable.clearSelection(); + }).catch(() => { }); }, /** 导出按钮操作 */ handleExport() {