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

fencang
x_z 3 years ago
parent 038ee5a59a
commit 51ba4490c5

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

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

Loading…
Cancel
Save