产品和原材料配置BOM
This commit is contained in:
@@ -16,5 +16,7 @@ const getters = {
|
||||
topbarRouters:state => state.permission.topbarRouters,
|
||||
defaultRoutes:state => state.permission.defaultRoutes,
|
||||
sidebarRouters:state => state.permission.sidebarRouters,
|
||||
productList: state => state.category.productList,
|
||||
rawMaterialList: state => state.category.rawMaterialList,
|
||||
}
|
||||
export default getters
|
||||
|
||||
@@ -58,9 +58,15 @@ const actions = {
|
||||
}
|
||||
};
|
||||
|
||||
const getters = {
|
||||
productList: state => Object.values(state.productMap),
|
||||
rawMaterialList: state => Object.values(state.rawMaterialMap)
|
||||
}
|
||||
|
||||
export default {
|
||||
namespaced: true,
|
||||
state,
|
||||
mutations,
|
||||
actions
|
||||
actions,
|
||||
getters
|
||||
};
|
||||
Reference in New Issue
Block a user