生产工序
This commit is contained in:
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