diff --git a/src/views/thirdSys/inv/index.vue b/src/views/thirdSys/inv/index.vue index ca21dd46..7091be56 100644 --- a/src/views/thirdSys/inv/index.vue +++ b/src/views/thirdSys/inv/index.vue @@ -495,6 +495,7 @@ export default { this.subData.thirdSysFk = data.thirdSysFk; } this.subFormVisible = true; + localStorage.setItem("code", JSON.stringify(this.subData.code)); }, handleSubDel(row) { @@ -539,7 +540,9 @@ export default { this.$message.error("分库名称不能为空!"); return; } + saveSubWarehouse(this.subData, this.subFromName).then((response) => { + if (response.code == 20000) { let row = { code: this.subData.parentId, @@ -552,6 +555,7 @@ export default { this.subFormVisible = false; } }).catch(() => { + this.subData.code=JSON.parse(localStorage.getItem("code")); this.subFormVisible = false; }); this.resetForm();