1.修复添加删除分仓展示错误问题

fencang
x_z 3 years ago
parent 038ee5a59a
commit 51ba4490c5

@ -25,7 +25,7 @@
<el-form-item>
<el-button-group style="margin-left: 10px;display:flex;">
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="getList"></el-button>
<el-button type="primary" icon="search" @click="search"></el-button>
<el-button type="primary" icon="search" @click="handleAddClick"
:disabled="!configParms.typeScan"
>新增
@ -254,6 +254,14 @@ export default {
handleChange() {
this.getList();
},
handleCurrentChange(val) {
this.filterQuery.page = val;
this.getList();
},
search() {
this.filterQuery.page = 1;
this.getList();
},
getList() {
this.loading = true;
getJoinBussinessType(this.filterQuery)

@ -321,6 +321,7 @@ export default {
isDefault: null,
page: 1,
limit: 20,
parentId: null,
thirdSysFk: null,
},
mergeList: [],
@ -464,7 +465,6 @@ export default {
this.$refs["dataForm"].clearValidate();
//
this.$refs["dataForm"].resetFields();
this.getList();
}
},
//
@ -530,7 +530,11 @@ export default {
return false;
}
this.$message.success("删除成功");
this.loadSubData(row.parentId);
let param = {
code: row.parentId,
thirdSysFk: row.thirdSysFk
}
this.loadSubData(param);
})
.catch(() => {
this.deleteLoading = false;
@ -544,14 +548,17 @@ export default {
//
forSubSubmit() {
if (this.$isBlank(this.subData.name)) {
this.$message.error("分库名称不能为空!");
return;
}
saveSubWarehouse(this.subData, this.subFromName).then((response) => {
if (response.code == 20000) {
this.loadSubData(this.subData.parentId);
let row = {
code: this.subData.parentId,
thirdSysFk: this.subData.thirdSysFk
}
this.loadSubData(row);
this.subFormVisible = false;
} else {
this.$message.error(response.message);
@ -560,10 +567,8 @@ export default {
}).catch(() => {
this.subFormVisible = false;
});
},
formSubmit() {
if (!isBlank(this.formData.code)) {
if (Number(this.formData.code) + '' === NaN + '') {
@ -604,9 +609,9 @@ export default {
}
}
}
//
this.resetForm();
this.getList();
//
this.resetForm();
})
.catch(() => {
this.formLoading = false;

Loading…
Cancel
Save