产品,原料和bom更新后重新加载store
This commit is contained in:
@@ -238,6 +238,7 @@ export default {
|
||||
this.loading = false;
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
this.$store.dispatch('category/getBomMap');
|
||||
}).catch(() => {
|
||||
}).finally(() => {
|
||||
this.loading = false;
|
||||
|
||||
@@ -134,6 +134,7 @@ export default {
|
||||
bomId: bomData.bomId
|
||||
});
|
||||
}
|
||||
this.$store.dispatch('category/getBomMap');
|
||||
|
||||
// 触发事件
|
||||
this.$emit('addBom', bomData);
|
||||
@@ -153,6 +154,7 @@ export default {
|
||||
bomCode: this.info.bomCode
|
||||
}).then(_ => {
|
||||
this.$message.success('更新BOM成功');
|
||||
this.$store.dispatch('category/getBomMap');
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user