Commit 123ce1e7 authored by chenzj's avatar chenzj

修复物料分类的同步的bug

parent 553f40d4
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
:loading="syncLoading"
type="primary" type="primary"
icon="el-icon-refresh" icon="el-icon-refresh"
size="mini" size="mini"
...@@ -184,6 +185,8 @@ export default { ...@@ -184,6 +185,8 @@ export default {
isExpandAll: true, isExpandAll: true,
// 重新渲染表格状态 // 重新渲染表格状态
refreshTable: true, refreshTable: true,
syncLoading: false,
// 查询参数 // 查询参数
queryParams: { queryParams: {
itemTypeName: undefined, itemTypeName: undefined,
...@@ -298,11 +301,14 @@ export default { ...@@ -298,11 +301,14 @@ export default {
}, },
/** 同步SAP */ /** 同步SAP */
handleSynchronism() { handleSynchronism() {
this.syncLoading = true;
this.reset(); this.reset();
synItemType().then(res => { synItemType().then(res => {
if(res.code === 200) { if(res.code === 200) {
this.$modal.msgSuccess("同步成功");
this.getList(); this.getList();
} }
this.syncLoading = false;
}); });
}, },
/** 提交按钮 */ /** 提交按钮 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment