修复新增申购单据:产品录入删除后重新录入会报错,接着录入其他产品,会显示该产品和之前报错的产品

prod
1178634255 2 years ago
parent 68ab5246a9
commit 483232e5fc

@ -418,6 +418,7 @@ export default {
}
},
deleteCodeArray(index, row) {
this.orderEditor=true;
this.$confirm("此操作将永久删除该数据, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
@ -426,16 +427,20 @@ export default {
this.$refs.multipleTable.setCurrentRow();
this.currentRow = {};
this.selectedIndex = "";
//this.$message.success(this.orderEditor);
if (this.orderEditor) {
this.detailLoading = true;
//this.$message.success(6666);
if (this.$isNotBlank(row.id)) {
//this.$message.success(66661);
delApplyDetail(row.id)
.then(response => {
//this.$message.success(66662);
this.detailLoading = false;
if (response.code === 20000) {
//this.$message.success(66663);
this.$message.success(response.data);
// this.getStockOrderDetailList();
this.getStockOrderDetailList();
this.codeArray.splice(index, 1);
} else {
this.$message.error(response.message);

Loading…
Cancel
Save