大客户单独报价,删除功能调整
This commit is contained in:
parent
5213d9fadc
commit
fea1ae05be
@ -565,13 +565,27 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 删除按钮操作 */
|
/** 删除按钮操作 */
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
const quoteIds = row.quoteId || this.ids;
|
const quoteIds = row.quoteId || this.ids.filter(Boolean);
|
||||||
this.$modal.confirm('是否确认删除').then(function() {
|
let that = this;
|
||||||
return delEmisQuotePrice(quoteIds);
|
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(() => {
|
}).then(() => {
|
||||||
this.getList();
|
|
||||||
this.$modal.msgSuccess("删除成功");
|
this.$modal.msgSuccess("删除成功");
|
||||||
}).catch(() => {});
|
that.$refs.multipleTable.clearSelection();
|
||||||
|
}).catch(() => { });
|
||||||
},
|
},
|
||||||
/** 导出按钮操作 */
|
/** 导出按钮操作 */
|
||||||
handleExport() {
|
handleExport() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user