菜单页面嵌入

This commit is contained in:
2023-05-08 15:39:30 +08:00
parent 0ad2d6fffd
commit f5c03864d9
43 changed files with 825 additions and 42 deletions

View File

@@ -1,14 +1,17 @@
import * as types from '../types'
// import { getStore, setStore } from '@config/mUtils.js'
import { getStore, setStore } from '@config/utils.js'
const state = {
materObj: {}, // 物料查询-盘点修改
hcxCheckObj: {} // 缓存线盘点 - 盘点修改
hcxCheckObj: {}, // 缓存线盘点 - 盘点修改,
defaultActive: getStore('defaultActive') || '1',
sideActive: getStore('sideActive') || '1'
}
const getters = {
materObj: state => state.materObj,
hcxCheckObj: state => state.hcxCheckObj
hcxCheckObj: state => state.hcxCheckObj,
defaultActive: state => state.defaultActive
}
const actions = {
@@ -17,6 +20,10 @@ const actions = {
},
hcxCheckObj ({commit}, res) {
commit(types.HCX_CHECK_OBJ, res)
},
getDefaultActive ({commit}, res) {
setStore('defaultActive', res)
commit(types.GET_DEFAULT_ACTIVE, res)
}
}
@@ -26,6 +33,9 @@ const mutations = {
},
[types.HCX_CHECK_OBJ] (state, res) {
state.hcxCheckObj = res
},
[types.GET_DEFAULT_ACTIVE] (state, res) {
state.defaultActive = res
}
}