生产工序
This commit is contained in:
@@ -20,5 +20,6 @@ const getters = {
|
||||
rawMaterialList: state => state.category.rawMaterialList,
|
||||
bomMap: state => state.category.bomMap,
|
||||
financialAccounts: state => state.finance.financialAccounts,
|
||||
processList: state => state.craft.processList,
|
||||
}
|
||||
export default getters
|
||||
|
||||
@@ -8,6 +8,7 @@ import permission from './modules/permission'
|
||||
import settings from './modules/settings'
|
||||
import category from './modules/category'
|
||||
import finance from './modules/finance'
|
||||
import craft from './modules/craft'
|
||||
import getters from './getters'
|
||||
|
||||
Vue.use(Vuex)
|
||||
@@ -21,7 +22,8 @@ const store = new Vuex.Store({
|
||||
permission,
|
||||
settings,
|
||||
category,
|
||||
finance
|
||||
finance,
|
||||
craft
|
||||
},
|
||||
getters
|
||||
})
|
||||
|
||||
26
klp-ui/src/store/modules/craft.js
Normal file
26
klp-ui/src/store/modules/craft.js
Normal file
@@ -0,0 +1,26 @@
|
||||
import { listProcesse } from "@/api/wms/craft";
|
||||
|
||||
const state = {
|
||||
processList: [],
|
||||
}
|
||||
|
||||
const mutations = {
|
||||
SET_PROCESS_LIST(state, processList) {
|
||||
state.processList = processList;
|
||||
},
|
||||
}
|
||||
|
||||
const actions = {
|
||||
getProcessList({ commit }) {
|
||||
listProcesse({ pageSize: 1000 }).then(response => {
|
||||
commit('SET_PROCESS_LIST', response.rows);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export default {
|
||||
namespaced: true,
|
||||
state,
|
||||
mutations,
|
||||
actions
|
||||
}
|
||||
@@ -12,8 +12,8 @@ const mutations = {
|
||||
|
||||
const actions = {
|
||||
getFinancialAccounts({ commit }) {
|
||||
listAccount().then(response => {
|
||||
commit('SET_FINANCIAL_ACCOUNTS', response.data);
|
||||
listAccount({ pageSize: 1000 }).then(response => {
|
||||
commit('SET_FINANCIAL_ACCOUNTS', response.rows);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user