bug修复

prod
wj 2 years ago
parent bbe011f959
commit 5bdd1b1294

@ -440,33 +440,34 @@ export default {
} }
}, },
deleteCodeArray(index, row) { deleteCodeArray(index, row) {
let _this = this
this.$confirm("此操作将永久删除该数据, 是否继续?", "提示", { this.$confirm("此操作将永久删除该数据, 是否继续?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}).then(() => { }).then(() => {
if (this.orderEditor) { if (_this.formData.billNo) {
this.detailLoading = true; _this.detailLoading = true;
if (this.$isNotBlank(row.id)) { if (_this.$isNotBlank(row.id)) {
delReceiveDetail({id: row.id}) delReceiveDetail({id: row.id})
.then(response => { .then(response => {
this.detailLoading = false; _this.detailLoading = false;
if (response.code === 20000) { if (response.code === 20000) {
this.getOrderDetailList(); _this.getOrderDetailList();
} else { } else {
this.$message.error(response.message); _this.$message.error(response.message);
} }
}) })
.catch(() => { .catch(() => {
this.detailLoading = false; _this.detailLoading = false;
}) })
} else { } else {
this.$message.success('删除成功'); _this.$message.success('删除成功');
this.codeArray.splice(index, 1); _this.codeArray.splice(index, 1);
} }
} else { } else {
this.$message.success('删除成功'); _this.$message.success('删除成功');
this.codeArray.splice(index, 1); _this.codeArray.splice(index, 1);
} }
}).catch(() => { }).catch(() => {

Loading…
Cancel
Save