//定义state类型
export type SearchState = {
  kingdeeSearch: Object;
  thirdPartySearch: Object;
  monitoringSearch: Object;
  productSearch: Object;
};

//定义state
export const state: SearchState = {
  kingdeeSearch: {},
  thirdPartySearch: {},
  monitoringSearch: {},
  productSearch: {},
};
//定义mutations
export const mutations = {
  setkingdeeSearch(state: SearchState, data: Object) {
    state.kingdeeSearch = data;
  },

  setproductSearch(state: SearchState, data: Object) {
    state.productSearch = data;
  },

  setThirdPartySearch(state: SearchState, data: Object) {
    state.thirdPartySearch = data;
  },

  setMonitoringSearch(state: SearchState, data: Object) {
    state.monitoringSearch = data;
  },
};
// //定义actions
// export const actions = {};
// //定义getters
// export const getters = {
//   getData(state: SearchState) {
//     return state.kingdeeSearch;
//   },
// };

export default {
  namespaced: true,
  state,
  mutations,
  // actions,
  // getters,
};
