diff --git a/src/views/system/dept/invWarehouse.vue b/src/views/system/dept/invWarehouse.vue index 33507207..7ec7a658 100644 --- a/src/views/system/dept/invWarehouse.vue +++ b/src/views/system/dept/invWarehouse.vue @@ -33,7 +33,7 @@ :default-expand-all="isExpandAll" :tree-props="{children: 'children', hasChildren: 'hasChildren'}" > - + - @@ -458,13 +458,25 @@ export default { }) .catch(() => { }); - + this.sysSubList=null; }, + hideForm() { // 新增,编辑---取消 this.formVisible = false; this.subFormVisible = false; + this.resetForm(); return true; }, + // 刷新表单 + resetForm() { + if (this.$refs["dataForm"]) { + // 清空验证信息表单 + this.$refs["dataForm"].clearValidate(); + // 刷新表单 + this.$refs["dataForm"].resetFields(); + this.getList(); + } + }, forInvSubmit() { // 新增,编辑---提交 this.$refs["dataForm"].validate(valid => { if (valid) { @@ -567,6 +579,8 @@ export default { hideThrWarehouseTable() { this.thrWareHouseVisible = false; this.thrSubWareHouseVisible = false; + //刷新表单 + this.thirdSubQuery.name=""; }, //绑定第三方分库 bindSubThrWarehouse() { diff --git a/src/views/thirdSys/inv/index.vue b/src/views/thirdSys/inv/index.vue index 7bc4d8fd..ca21dd46 100644 --- a/src/views/thirdSys/inv/index.vue +++ b/src/views/thirdSys/inv/index.vue @@ -605,7 +605,8 @@ export default { }) .catch(() => { this.formLoading = false; - this.$refs["dataForm"].resetFields(); + // 刷新表单 + this.resetForm(); }); } });