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() {