大客户单独报价,删除功能调整

This commit is contained in:
wuteng 2025-07-08 17:13:30 +08:00
parent 5213d9fadc
commit fea1ae05be

View File

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