2023-05-05 14:20:13 +08:00
|
|
|
import * as types from '../types'
|
2023-05-29 17:27:57 +08:00
|
|
|
// import { getStore, setStore } from '@config/utils.js'
|
2023-05-05 14:20:13 +08:00
|
|
|
|
|
|
|
|
const state = {
|
|
|
|
|
materObj: {}, // 物料查询-盘点修改
|
2023-05-29 17:27:57 +08:00
|
|
|
hcxCheckObj: {} // 缓存线盘点 - 盘点修改
|
2023-05-05 14:20:13 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const getters = {
|
|
|
|
|
materObj: state => state.materObj,
|
2023-05-08 15:39:30 +08:00
|
|
|
hcxCheckObj: state => state.hcxCheckObj,
|
|
|
|
|
defaultActive: state => state.defaultActive
|
2023-05-05 14:20:13 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const actions = {
|
|
|
|
|
materObj ({commit}, res) {
|
|
|
|
|
commit(types.MATER_OBJ, res)
|
|
|
|
|
},
|
|
|
|
|
hcxCheckObj ({commit}, res) {
|
|
|
|
|
commit(types.HCX_CHECK_OBJ, res)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const mutations = {
|
|
|
|
|
[types.MATER_OBJ] (state, res) {
|
|
|
|
|
state.materObj = res
|
|
|
|
|
},
|
|
|
|
|
[types.HCX_CHECK_OBJ] (state, res) {
|
|
|
|
|
state.hcxCheckObj = res
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
state,
|
|
|
|
|
getters,
|
|
|
|
|
actions,
|
|
|
|
|
mutations
|
|
|
|
|
}
|